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!
Follow instructions https://en-us.support.motorola.com/app/standalone/bootloader/unlock-your-device-a/ for unlocking bootloader firstly for flashing custom recovery u can use native adb and fastboot tools
P.S But for future please use this repo for getting information about how much vendor is evil https://github.com/melontini/bootloader-unlock-wall-of-shame
The wall of shame is fantastic, thanks for sharing it.
It makes me kinda uneasy to see Google way down the list… :/ This seems suspicious as fuck ! Not about the person who made the list, but when something so evil makes something so easy to unlock, make my eyebrows twitch !
Not only to unlock also install custom key for bootloader and lock bootloader again same way graphenos doing that
I think your best bet is https://xdaforums.com/.
LineageOS has instructions for Windows/Mac/Linux: https://wiki.lineageos.org/adb_fastboot_guide
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.
No, you can do it via the Linux fastboot adb tools. You typically have to paste in a udev rule so system sees the phone as expected. Or if you have a Pixel theGraphenesOS web based setup is easiest, you don’t need any knowledge just click the buttons on the webpage
Can we get that udev rule? Or at least a rough idea how to put it together? I had to put a windows box up just to get this phone talking to a pc
There are various guides, and don’t forget to use Sudo with fastboot command. https://xdaforums.com/t/guide-windows-linux-how-to-unlock-your-bootloader-official-and-unofficial-way.3885578/
Udev rules https://github.com/M0Rf30/android-udev-rules
Did you read my comment?
If you are referring to fastboot oem unlock, there are almost no phones that don’t have dual or even triple bootloader partitions, so that won’t work by itself.
click the buttons on the web page
I wouldn’t trust a chrome USB TTY permission to touch anything hardware of mine.
You can flash twrp or download app to phone. Windows is sefinetly not a requirement because I only have Linux machines
It depends on your phone.
- Non Samsung devices: https://topjohnwu.github.io/Magisk/install.html
- Samsung Devices: https://xdaforums.com/t/official-samsung-odin-v4-1-2-1-dc05e3ea-for-linux.4453423/
Several years ago I came to the conclusion that, for the kind of device models that I personally use (i.e. cheap ones), rooting has now become too complicated and dangerous (if not impossible) and that it’s better simply to move my computing back to the desktop while waiting for a more open and free mobile platform to emerge.
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.Magisk is the only one I know of.