RE env for inspecting APKs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.5 KiB

  1. ## Steps to root Android (Google Pixel4a-sunfish <Android 13>)
  2. 1. Enable dev options by tapping build number 7 times
  3. 2. Enable usb debugging and OEM unlocking in developer options panel from in Syste
  4. 3. Make note of build number at About phone -> Build number = TPIA.221105.002
  5. 4. Download full image for build from: https://developersd.google.com/android/ota#sunfish
  6. 5. Install fastboot: apt install fastboot and adb
  7. 6. Reboot to bootloader: adb reboot bootloader
  8. 7. Make sure fastboot is connected: fastboot devices
  9. 8. fastboot flashing unlock
  10. 9. Sideload Magisk apk: adb -s $(adb devices) install ~/Downloads/Magisk.apk/, URL: https://github.com/topjohnwu/Magisk/releases/tag/v26.1
  11. 10. Patch the downloaded factory image file in Magisk: Magisk -> Install -> Select and patch a file -> Select the unzipped boot.img file (Note: Within original zip for factory image there is another zip that boot.img is within)
  12. 11. Hit lets go to let Magisk patch image -> Wait for path of new image file on device to be printed if it worked
  13. 12. Pull patched image to desktop: Adb pull /storage/emulated/0/Download/magisk_patched-26100_zEIYy.img ./
  14. 13. Adb devices -> fastboot devices
  15. 14. Fastboot boot ~/Desktop/magisk_patched-26100.img
  16. 15. Root permanently via Direct Install from Magisk: Open Magisk app -> Install Direct (Recommended) -> wait and reboot
  17. 16. Verify root after reboot from desktop: “adb shell” -> “su” -> “whoami”
  18. 17. Install this ZIP as Magisk module to trust user certs and system certs: https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases