Tech /

Moto G 5





edit SideBar

Moto G 5
Make
Motorola/Google
Model
Moto G5
Model Code
XT1676?
Model Codename
Cedric
Purchased
2017-05-30
Storage
16GB
RAM
3GB
Latest
NPP25?.137-93

Rooting

  1. Unlock Bootloader
adb reboot-bootloader
sudo fastboot oem get_unlock_data
# paste together code and post into moto form ...
# wait for unlock key from motorola ...
sudo fastboot oem unlock KEY
sudo fastboot oem unlock KEY  # have to run it twice
sudo fastboot reboot
  1. Flash TWRP
adb reboot-bootloader
sudo fastboot flash recovery twrp-3.3.1-0-cedric.img
# "Image not signed or corrupt" is harmless.
# Immediately select recovery using bootloader screen
#  otherwise boot will overwrite twrp
  1. Wipe
    1. In the Decrypt /data screen, press cancel, then "Swipe to Allow Modifications"
    2. Go to WIPE, then "Swipe to Factory Reset"
    3. Come back to TWRP main menu, go to REBOOT, then RECOVERY, then DO NOT INSTALL
    4. "Swipe to Allow Modifications"
  2. Disable forced encryption
    1. Push and flash "no-verity-opt-encrypt-5.1.zip"
  3. Flash SuperSU?
  4. Flash Magisk
    1. Push and flash "Magisk-v11.6.zip" # NOT VERSION 12!
    2. After the setup, come back to TWRP main menu, go to REBOOT, then SYSTEM, then DO NOT INSTALL
    3. Run and update Magisk App

Updates for Oreo

It seems like twrp-3.3.1 can unlock encrypted partitions so no-verity-opt-encrypt may not be needed.

Troubleshooting

Slow Google search widget

Clear Launcher3 Data

Settings > Apps > top right tri-colon > Show System > Launcher3 > storage > delete

This will reset the home screen.

Backup and Restore

UIDs? and GIDs?

adb shell
su
cat /data/system/packages.xml

List userIds or sharedUserIds:

xmlstarlet sel -t -m '//package'  -v @sharedUserId -v @userId -o '     ' -v @name -n
Recent Changes (All) | Edit SideBar Page last modified on 01 February 2020, at 04:55 PM UTC Edit Page | Page History
Powered by PmWiki