10

[Guide] Root Pixel 5 with Magisk Android 13

 2 years ago
source link: https://forum.xda-developers.com/t/guide-root-pixel-5-with-magisk-android-13.4187609/page-34#post-87390545
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

[Guide] Root Pixel 5 with Magisk Android 13

gecowa6967

Member
Nov 11, 2020
Maybe I am too stupid but I only get to the "Fastboot Mode". Nothing happens when I hold the Vol Down button.
Edit:
After Google logo phone restart into Fastboot Mode. I flash Android 13 again and wait for a fix/solution. Pressing Vol. Down button is not working for me.
Edit II:
It works now. I uninstalled Magisk Canary and installed Magisk Debug=> patched boot.img again and now it is rooted

I still bootloop even with the `debug`version. Also pressing vol. down while booting with the patched image does not boot into safe mode

badabing2003

Senior Member
Sep 17, 2012
I still bootloop even with the `debug`version. Also pressing vol. down while booting with the patched image does not boot into safe mode

Sounds like bad Magisk modules, and if you're not booting to safe mode then the modules are not being disabled.

You need to disable Magisk modules.
When you're bootlooping, you can give this command a try.

Code:
adb wait-for-device shell magisk --remove-modules
Or you can use PixelFlasher and click on the SOS button.

Good luck.

Reactions: Homeboy76

contaoxxx

Member
Jan 10, 2018
I still bootloop even with the `debug`version. Also pressing vol. down while booting with the patched image does not boot into safe mode

My first mistake was:
flash original boot.img with following command:

Code:
fastboot flash boot --slot all boot.img
and after reboot device flash patched boot.img with:
Code:
fastboot flash boot --slot all magistkxxxxxxxxxxx.img
Now it should works
Last edited: Yesterday at 4:18 PM

gecowa6967

Member
Nov 11, 2020
Sounds like bad Magisk modules, and if you're not booting to safe mode then the modules are not being disabled.

You need to disable Magisk modules.
When you're bootlooping, you can give this command a try.
Code:
adb wait-for-device shell magisk --remove-modules
Or you can use PixelFlasher and click on the SOS button.

Good luck.

Thanks for your help.

Even after running "magisk --remove-modules" magisk still tries to load all modules during the next boot. I have attached a logcat showing that all modules like busybox, AddonFeaturesForPixel, etc are loaded.

I also tried to remove them manually but I do not have permissions to edit "/data/adb/modules/" even while booting with the magisk image.

```
redfin:/ $ su
Permission denied
```

badabing2003

Senior Member
Sep 17, 2012
I also tried to remove them manually but I do not have permissions to edit "/data/adb/modules/" even while booting with the magisk image.

I'm confused, I thought you're bootlooping with magisk patched boot.img
If that is the case, how are you booting with magisk patched and able to issue adb commands? you get adb? briefly? and then it reboots? And you have enough time to do that manually?

What is the output of this command?

Code:
adb wait-for-device shell magisk --remove-modules
You get perfectly working phone (though not rooted) if you boot with stock boot.img?
however you bootloop if you use a patched boot.img, while getting adb but not su?

If that is the case, you should look at boot patching process.
What magisk version are you using?
How are you extracting the boot.img? from which firmware?
How are you transferring it to phone and back to your PC?
How are you flashing the patched boot.img?

Reactions: Homeboy76

Homeboy76

Senior Member
Aug 24, 2012 3,350 1,881 Google Pixel XL
...What is the output of this command?
Code:
adb wait-for-device shell magisk --remove-modules
...

Added this to the OP, and removed Force Safe Mode....
Thanks!

Reactions: badabing2003

gecowa6967

Member
Nov 11, 2020
Thank you for your help.
You get perfectly working phone (though not rooted) if you boot with stock boot.img?
however you bootloop if you use a patched boot.img, while getting adb but not su?

Exactly, with the patched boot image I bootloop but over adb I can access the device (and send the `magisk --remove-modules` command which instantly triggers a reboot).

What is the output of this command?
Code:
adb wait-for-device shell magisk --remove-modules

I do not get any output.

What magisk version are you using?

Right now I am using version 25203 (debug channel)

How are you extracting the boot.img? from which firmware?

I am on macOS and I extracted the boot.img from `redfin-tp1a.220624.014.zip` and `image-redfin-tp1a.220624.014`. I also tried PixelFlasher (3.6.0.0) with the same results.

How are you transferring it to phone and back to your PC?

with adb

How are you flashing the patched boot.img?

`fastboot flash boot --slot all magisk_patched-25203_tkvnE.img`

I think my problem is that I cannot disable the modules and not any patching of the boot image.

badabing2003

Senior Member
Sep 17, 2012
Thank you for your help.


Exactly, with the patched boot image I bootloop but over adb I can access the device (and send the `magisk --remove-modules` command which instantly triggers a reboot).


I do not get any output.


Right now I am using version 25203 (debug channel)


I am on macOS and I extracted the boot.img from `redfin-tp1a.220624.014.zip` and `image-redfin-tp1a.220624.014`. I also tried PixelFlasher (3.6.0.0) with the same results.


with adb


`fastboot flash boot --slot all magisk_patched-25203_tkvnE.img`

I think my problem is that I cannot disable the modules and not any patching of the boot image.

The thing is if patched boot loads,then you should have root access in adb, but you don't.
Weird.
Just for curiosity, what is the hash (boot id) of the patched boot.img you see in PixelFlasher?

contaoxxx

Member
Jan 10, 2018
@gecowa6967
Did you try:
1)
fastboot flash boot --slot all boot.img (<-- original boot.img from image-redfin-tp1a.220624.014.zip)
2)
flash pachted boot.img

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK