$ cd ../
$ cat /backups/brain/0053Root a Google Pixel 8a (and others)- Enable Developer Mode
- On Developer options, enable OEM unlocking and USB debugging.
- Connect via adb
- Run
adb reboot bootloader to get to fastboot - Run
fastboot flashing unlock - Run
fastboot reboot - Go to https://developers.google.com/android/images and download the image
that corresponds exactly to your devide and Build number. In my case
https://dl.google.com/dl/android/aosp/akita-bp4a.260105.004.e1-factory-d9bc5fb8.zip
- Extract the
.zip and you’ll see another .zip inside. In my case was
named image-*.zip, decompress that one too. - Get a file named
init_boot.img from the second zip. We just care about
that one, you can remove the rest. - Push that file to the phone via
adb - Install magisk on the phone (the normal apk). Use github, care with malware.
- On the magisk app, click “install” and then “Select and Patch a File”. Pick
your
init_boot.img - Click let’s go.
- Now you should have a new file on the device named
magisk_patched*.img - Pull it to your PC
- Run
adb reboot bootloader - Now flash the pulled image with
fastboot flash init_boot magisk_patched*.img fastboot reboot- Now on the magisk app you’ll see “Magisk. Instal”
$ cd ../