this post was submitted on 23 Feb 2025
19 points (95.2% liked)

Linux

50398 readers
818 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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)?

top 19 comments
sorted by: hot top controversial new old
[–] potentiallynotfelix@lemmy.fish 2 points 35 minutes ago

Magisk is the only one I know of.

[–] Xanza@lemm.ee 4 points 1 hour ago* (last edited 1 hour ago)
[–] JubilantJaguar@lemmy.world 4 points 3 hours ago

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.

[–] anon5621@lemmy.ml 11 points 5 hours ago* (last edited 5 hours ago) (2 children)

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

[–] aarch64@lemm.ee 2 points 3 hours ago

The wall of shame is fantastic, thanks for sharing it.

[–] mr_right@lemmy.dbzer0.com 1 points 4 hours ago

thanks i just wish i know about them one year ago

[–] Kory@lemmy.ml 10 points 7 hours ago

LineageOS has instructions for Windows/Mac/Linux: https://wiki.lineageos.org/adb_fastboot_guide

[–] Maiq@lemy.lol 12 points 7 hours ago

I think your best bet is https://xdaforums.com/.

[–] non_burglar@lemmy.world 8 points 7 hours ago (1 children)

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.

[–] BCsven@lemmy.ca 2 points 4 hours ago (1 children)

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

[–] non_burglar@lemmy.world 0 points 4 hours ago (1 children)

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.

[–] BCsven@lemmy.ca 1 points 48 minutes ago

You can flash twrp or download app to phone. Windows is sefinetly not a requirement because I only have Linux machines

[–] exu@feditown.com 2 points 7 hours 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.

[–] silverhand@reddthat.com -4 points 5 hours ago (3 children)

What exactly are you hoping to achieve by rooting your phone btw?

From what I know rooting used to make sense back in the 2015's when the Android market used to be littered with shitty OEM OS's filled to the brim with bloatware, ads and restricted functionality. Rooting or installing custom ROMs used to give a very tangible boost to performance in those times. But nowadays most OEMs (except the ultra-cheap Chinese ones) have settled down to a uniform stock-Android-like design with minor design tweaks, and hardware has also improved to the level that it's extremely rare to notice comparable lags. I know Motorola is one of those who prefer to keep their UI as close to stock Android as possible.

[–] Tattorack@lemmy.world 2 points 2 hours ago (1 children)

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.

[–] GrumpyDuckling@sh.itjust.works 1 points 24 minutes ago

You might be able to by connecting it to a pc and using console commands. I was able to do it with a cheap onn tv box.

[–] iJustGhost@lemmy.ml 3 points 4 hours 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 4 points 5 hours ago (1 children)

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 2 points 4 hours 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)