I’ve rooted my android phone many years ago. Back then that was a different phone than I have now, and I was still using Windows.

I’m now trying to find a way to root my current phone (Motorola g62 5G), and have no idea how to do it through Linux. However, I seem to only be able to find instructions that are specific to windows.

How would I go about doing this on Linux (specifically Ubuntu)?

EDIT:

Thanks to a number of answers on here I’ve managed to find my way and rooted my phone. Thanks again, guys!

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I general you need to flash either Magisk or KernelSU by patching to boot image or sideloading in the recovery.
    Motorola seems to change bootloader unlocking for every phone, so the easiest way would be making a Windows VM and just do that.
    I have found a CLI tool for flashing Qualcomm chips while in download mode, but there’s not really any documentation about it.

    • Tattorack@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      My phone still comes preinstalled with a bunch of crap and I want it gone. Like I’m never going to use Google Games, I’m never going to use LinkdIn, I’m never going to use YouTube Music, or Opera Web Browser. None of these apps I can remove without root.

    • iJustGhost@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      For extended phone lifespan, useful for thirdworld countries when OEMs stopped shipping updates to older models. Rooting/Unlocking can give you option to stay in stock and install security updates yourself or installing custom roms like Lineage OS. I use Samsung S9 which it doesn’t recieve updates anymore but I like keeping it so I rooted it to keep up with modern standards.

    • mexicancartel@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Googal shits.

      Also stock android isn’t the best android. And proprietary stock android is so bloated even if it is not chineese

      • mr_right@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        yeah, its not about usability its about the preinstalled FAANG

        also don’t judge not all people can buy pixels or oneplus (even if they had the money) so they have to buy whats available to them (price or brand)

  • non_burglar@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Flashing the phone’s bootloader and image is still done with adb and fastboot, but unlocking the bootloader is by now pretty much done with tools only made for windows.

    Mostly this is because the exploits use factory flashing tools provided by manufacturers, which are nearly always windows.