id | title | desc | updated | created |
---|---|---|---|---|
3UT7YPV6Qnr2UL6H6roQ0 |
Motog8power |
1682709194077 |
1629568034286 |
BEWARE:
I am not a developer. I put together this guide for my future self and for others. I had help from the Moto G8 Official Telegram channel community. Software and tools get updated over time so stuff here may get old.
For devs: if you think some stuff needs changing or updating or better written, let me know.
Contents:
This step you only do ONCE.
- Install Android SDK
- Install the latest Motorola USB Drivers
- Download ADB files from Google in
C:
in a new folder namedAndroid
- Put your device in fastboot mode
- Power off your device (make sure your device is not connected with the USB cable, or it will power back on immediately)
- Hold the power button and the volume down button simultaneously until the screen boots into
fastboot
(you'll see some small text at the bottom of the screen on a black background)
- Connect your device via USB to your computer.
- Place the folder of the ADB files from Google in your $PATH
- Open Control Panel
- Open System
- Click on Advanced System settings on the left hand side panel
- In the new window click on Environment Variables...
- In the bottom pane (System variables) find PATH under the Variable column
- Select PATH
- Click on Edit...
- Below the last row, double click on an empty row
- Paste the path of your ADB files. e.g.:
C:\Android\platform-tools_r31.0.2-windows\platform-tools
→ the idea is that the folder is located on yourC:
partition - Restart your computer
- Open a terminal in the path where Android Studio was installed. e.g.:
C:\Program Files\Android\Android Studio\bin
- Type
fastboot devices
. - Your device should show like this
ZY227F2B6F fastboot
- Type
fastboot oem get_unlock_data
- The returned string will be used to retrieve your unlock key.
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
- Copy the whole text where you have
(bootloader)
in front of each line - Go to Scrub Tools
- Paste the copied string in the text box
- Click
Format my data
- It will remove all the extra text and space that do not belong to the string
- Copy the formatted string
- Go to the Motorola website.
- You have to Sign In or Create an account and Sign in.
- At the bottom click Next
- Now you will see the same instructions as in this guide, you can skip them if needed.
- Almost at the bottom, in Step 6 (on the website), paste the formatted string
- Click on the blue button
Can my device be unlocked?
- If your device is unlockable, a "REQUEST UNLOCK KEY" button will now appear at the bottom of this page.
- Click
I Agree
- Click on the blue button
REQUEST UNLOCK KEY
- You will get the key via email along with instruction to unlock the bootloader
- Instruction link
- Open a different terminal in the ADB files from Google, inside here
C:\Android\platform-tools_r31.0.2-windows\platform-tools
- Type
fastboot oem unlock UNIQUE_KEY
→fastboot oem unlock QUXJMX5U3YBFSSTJDFRH
- Hit enter
- On your phone you should see two option, choose with the Volume key the option at the bottom
Unlock bootloader
- Device screen will return to fastboot mode and the line before last should say
flashing_unlocked
. That means you have unlocked the bootloader successfully.
Flashing Motorola Stock Firmware is not the same as flashing a Motorola Stock ROM via TWRP. The following steps apply for new devices which have Slots A/B.
IMPORTANT:
The reason you need to flash the Stock Firmware is because this will populate Slot B, which is "empty" by default and by doing this you don't risk bricking your device.
Moto G8 Power (sofiar) supports Slots A/B. You can skip this step. Here are two methods checking:
- Install Termux, it's a terminal for Android. When the page opens scroll down until you see a
Version 0.112
(or any version number) and at the bottom of that version number click on Download APK - Install Termux on your phone. You might get prompted to allow installation of insecure apps. Toggle the button to allow.
- Open Termux and type
getprop ro.build.ab_update
and hit Enter. - Immediately you should see
true
. If so, it means your device support Seamless Updates.
- You can install this app from Google Play.
- Download the Tool here
- There's also the Telegram channel where you will find the same link (always download the latest version and you can algo get support on Telegram)
- Unzip the file
- Place the file in your
C:
drive, preferrably in theAndroid
folder you created earlier in this guide. - IMPORTANT: make sure the PATH of the Tool has no spaces in it. This means that the
Title
of every higher level folder where the Tool is, should not have any spaces in it. The Tool won't work if there are spaces in its PATH.- WRONG:
C:\Android\my moto g8 power\moto_flash_tool_windows_v0.6.6moto_flash_tool_windows
- CORRECT:
C:\Android\mymotog8power\moto_flash_tool_windows_v0.6.6moto_flash_tool_windows
- WRONG:
Disclaimer: the Moto Flash Tool only works with Android 10 Stock Firmware
- Find the specific Stork Firmware for your device here
- On that website, you need to go into the folder specific to your device
- To find out which one is your device, go into
fastboot
and around the top of the text you should see a similar line (this example is made up)MBM-3.0-sofiar_reteu-3db56gr5f11-223421
- The important thing in that line is
sofiar_reteu
. Depending on your device, those words will be different, go into the folders of each corresponding wordMoto G Power/G⁸ Power (Sofia/Sofiar) Moto G Stylus/G Pro (Sofiap) Moto G⁸/G Fast (Rav)
- open the folder corresponding to the first word
- open the folder called
official
, if there is noofficial
folder, check the folder which has the largest size (that means all the Stock Firmware are in that folder) - inside the
official
folder find the folder corresponding to the second word (e.g.:reteu
). - now you will see several Stock Firmware. Best option is to download the latest one (usually the one at the bottom of the list, or check the Android version number
10, 11
in the title of each Firmware). If you download an earlier Stock Firmware, after you flashed with the Moto Flash Tool you will need to boot your phone and do the OTA updates (meaning you need to into Software Updates in your Settings and update your phone). OTA means Over The Air (updates via Wi-Fi)
- The downloaded Stock Firmware is a .zip file. Copy that file inside the
Firmware
folder which can be found inside the Moto Flash Tool folder. - Boot your phone into
fastboot
- Connect it to your computer via USB. Make sure that on the fastboot screen at the bottom it says `Transfer Mode: USB Connected
- Go into the Moto Flash Tool folder and open
moto_flash_tool-win.exe
- The console will open.
- Select
Flash/extract stock firmare
- Select the .zip file of the Stock ROM
- Type
n
and hit Enter, this will begin the flashing process. This will format data automatically at the end of the process. - The console might no look like it's doing anything, sometimes it hangs, hit Enter and it will show the progress. The third line in the screenshot
Invalid sparse file format at header magic
is normal. - Type
y
and hit enter, this will format the data. - Your device will boot into
fastbootd
and the console will continue flashing. - When it's finished flashing it will ask you whether to format data, choose
yes
. - IMPORTANT STEP > Now boot the phone into system and follow steps until you reach the Android homescreen.
You have to do this step after each time you flash Stock firmware and after each OTA update of a custom ROM.
Download the TWRP image for your specific device, in the case of Moto G8 Power you can find it in the Telegram channel, make sure to get the latest version. This is a different telegram channel than the one with the Moto Flash Tool. Search for TWRP in the channel.
Download the custom ROM you want from the Telegram channel to flash and place it on a SD Card ← That is another Telegram channel.
- Power off device, boot into
fastboot
- Copy the
twrp.img
(doesn't matter if the name is different) inside theplatform-tools
folder. You don't really have to this because you includedplatform-tools
in the $PATH earlier. - Inside the
platform-tools
folder where you copied TWRP open your console (CMD or any other console you have on your computer, devs say PowerShell doesn't work well). - Type
fastboot flash recovery twrp.img
- In your case copy the name of your TWRP image and the file format
.img
and paste it after the wordrecovery
from the step above.
- In your case copy the name of your TWRP image and the file format
- Hit Enter
- Can't remember what happens next, but it flashes TWRP in a few seconds.
- Boot into Recovery if the phone is still in
fastboot
- Choose
recovery
with the volume keys and hit the Power button - The phone will boot into TWRP
- Inside TWRP press on the Wipe button
- Press Format Data, the button at the bottom on the right-hand side
- Go back to main TWRP screen
- Press Install → this step assumess you have the custom ROM already on your SD Card.
- Press the button at the bottom Select Storage
- Select Micro SD card
- In the file list, select the custom ROM
- Swipe to flash it.
- After the ROM flashed DO NOT flash Magisk if you already have it on your SD Card
- Boot into System.
This step has to be done after each ROM you flash or after each OTA update.
After flashing the ROM boot into system and then flash Magisk.
The official source for Magisk is the GitHub repo
- Download the .apk file from GitHub and make a copy/duplicate.
- Rename the file extension instead of
.apk
to.zip
← I didn't read these official instructions, but instead download a Magisk.zip file from magisk.me (I'm not sure if this website is official or not, but I was lucky that it was a genuine file.) - Copy the .zip file on your SD Card
- Boot into Recovery
- Click on Install
- Select SD Card as Storage
- Find the magisk zip file
- Flash it
- Boot into system
- Check if you have the Magisk app installed, if you don't, install the APK from GitHub
- You have root
Hi, I'm not a developer myself but the TWRP part should disclaim in bold font that the TWRP version vache made available for this phone only works for Android 10 roms and nothing above.