Magisk icon indicating copy to clipboard operation
Magisk copied to clipboard

Can't root Pixel 6a beta android

Open charlye30 opened this issue 2 years ago • 65 comments

After switching to the beta version can't patch boot img and succesfully get root, with the stable version works.

Device: Pixel 6a Android version: Android 13 QPR2 Beta 1 (T2B1.221118.006) Magisk version name: 25.2 Magisk version code: 25205

charlye30 avatar Dec 13 '22 11:12 charlye30

Confirmed on Pixel 6 After updating to version T2B1.221118.006 (QPR2 Beta 1), patching and installing the boot.img results in a normal boot but no root.

Magisk version: 25205

SammCheese avatar Dec 13 '22 11:12 SammCheese

Yep, Pixel 6 (oriole) also affected. Tried patching vendor_boot.img also, but still don't works.

Magisk Canary a468fd94 (25205)

m-pastuszek avatar Dec 13 '22 12:12 m-pastuszek

Please upload a log saved from Magisk App and a bugreport file https://developer.android.com/studio/debug/bug-report

canyie avatar Dec 13 '22 13:12 canyie

Hmm, nothing about Magisk can be found in your log, it behaves like boot is not patched.

And I found something interesting, someone successfully rooted a Pixel 6 by patching and flashing the boot image from Pixel 7 instead. That one said that Google published a broken boot image which cannot even boot (so device always refuses the new image and rollback to the old one? Just a crazy guess...)

canyie avatar Dec 13 '22 14:12 canyie

Hmm, nothing about Magisk can be found in your log, it behaves like boot is not patched. And I found something interesting, someone successfully rooted a Pixel 6 by patching and flashing the boot image from Pixel 7 instead. That one said that Google published a broken boot image which cannot even boot (so device always refuse the new image and rollback to the old one?)

I can confirm. Just patched a boot from p7pro and patched it. It successfully boota on p6ro and root works. Many thanks, seems like google really broke something

pKrysenko avatar Dec 13 '22 14:12 pKrysenko

@canyie, it's actually big LOL. Patching boot image from Pixel 7 and flashing it on Pixel 6 works!

Tested with latest Canary.

m-pastuszek avatar Dec 13 '22 14:12 m-pastuszek

@canyie, it's actually big LOL. Patching boot image from Pixel 7 and flashing it on Pixel 6 works!

Tested with latest Canary.

Can you please share the patched boot img you used?

I need one for pixel 6 not the PRO.

H3llblazer avatar Dec 13 '22 14:12 H3llblazer

@canyie, it's actually big LOL. Patching boot image from Pixel 7 and flashing it on Pixel 6 works! Tested with latest Canary.

Can you please share the patched boot img you used?

I need one for pixel 6 not the PRO.

Sure, this is the one that I flashed on my Pixel 6. But if You want to check it first, just use fastboot boot <pathed_boot.img>.

For Pixel 6 ONLY

magisk_patched-25205_Pixel7.zip

m-pastuszek avatar Dec 13 '22 17:12 m-pastuszek

@canyie, it's actually big LOL. Patching boot image from Pixel 7 and flashing it on Pixel 6 works! Tested with latest Canary.

Can you please share the patched boot img you used?

I need one for pixel 6 not the PRO.

Sure, this is the one that I flashed on my Pixel 6. But if You want to check it first, just use fastboot boot <pathed_boot.img>.

For Pixel 6 ONLY

magisk_patched-25205_Pixel7.zip

I tried that and it seems like it didn't work. I see others who have had success with this method so i know it's possible. Maybe it's the bad cable I'm using or something. Also tried to repatch the image on my second try , no buano.

I'll download the factory zip and give this another try later today. Thanks

Edit: seems like the flash did work but magisk app still shows super user tab in grey. I tried to uninstall and reinstall the app. A good old reboot even. No Bueno.

Can we report this to Google via the feedback app, would they attend to such matters??

H3llblazer avatar Dec 13 '22 19:12 H3llblazer

@canyie, it's actually big LOL. Patching boot image from Pixel 7 and flashing it on Pixel 6 works! Tested with latest Canary.

Can you please share the patched boot img you used? I need one for pixel 6 not the PRO.

Sure, this is the one that I flashed on my Pixel 6. But if You want to check it first, just use fastboot boot <pathed_boot.img>. For Pixel 6 ONLY magisk_patched-25205_Pixel7.zip

I tried that and it seems like it didn't work. I see others who have had success with this method so i know it's possible. Maybe it's the bad cable I'm using or something. Also tried to repatch the image on my second try , no buano.

I'll download the factory zip and give this another try later today. Thanks

Edit: seems like the flash did work but magisk app still shows super user tab in grey. I tried to uninstall and reinstall the app. A good old reboot even. No Bueno.

Can we report this to Google via the feedback app, would they attend to such matters??

You could potentially try to flash the patched boot.img from the December QPR1. It should patch and allow you to boot.

AllenChangMusic avatar Dec 13 '22 21:12 AllenChangMusic

After switching to the beta version can't patch boot img and succesfully get root, with the stable version works.

Device: Pixel 6a Android version: Android 13 QPR2 Beta 1 (T2B1.221118.006) Magisk version name: 25.2 Magisk version code: 25205

ghost avatar Dec 13 '22 21:12 ghost

I tried that and it seems like it didn't work. I see others who have had success with this method so i know it's possible. Maybe it's the bad cable I'm using or something. Also tried to repatch the image on my second try , no buano.

I'll download the factory zip and give this another try later today. Thanks

Edit: seems like the flash did work but magisk app still shows super user tab in grey. I tried to uninstall and reinstall the app. A good old reboot even. No Bueno.

Can we report this to Google via the feedback app, would they attend to such matters??

@H3llblazer Can You try flash stock boot image, reboot, and then patched one again? I had someone on pm, for him this worked.

m-pastuszek avatar Dec 13 '22 21:12 m-pastuszek

I tried that and it seems like it didn't work. I see others who have had success with this method so i know it's possible. Maybe it's the bad cable I'm using or something. Also tried to repatch the image on my second try , no buano.

I'll download the factory zip and give this another try later today. Thanks

Edit: seems like the flash did work but magisk app still shows super user tab in grey. I tried to uninstall and reinstall the app. A good old reboot even. No Bueno.

Can we report this to Google via the feedback app, would they attend to such matters??

@H3llblazer Can You try flash stock boot image, reboot, and then patched one again? I had someone on pm, for him this worked.

Stock boot image from QPR2? I'll try this and report back if it was a success

Steps to test: 1.flash stock boot from QPR2 2.reboot 3.flash pixel 7 patched boot.

Edit: tried the above and it still fails to enable module/su tab. Screenshot:.Screenshot_20221214-131447.png

I'm going to full flash the latest beta and retry from the start

Edit 2: A clean flash fixed this. Those who updated from Stable to beta and got 160mb update to do so, if you're on the same boat then please clean flash and it'll fix what I've described above.

H3llblazer avatar Dec 14 '22 06:12 H3llblazer

Can confirm the patched Pixel 7 boot.img from @m-pastuszek successfully roots my Pixel 6

SammCheese avatar Dec 14 '22 06:12 SammCheese

Could anyone send the stock init_boot.img?

yujincheng08 avatar Dec 14 '22 16:12 yujincheng08

Could anyone send the stock init_boot.img?

Here is the stock init_boot.img from the Pixel 7 Pro running QPR2 Beta 1. I don't believe the Pixel 6 series has an init_boot.img. Had to zip it up to attach it.

I'm guessing you were talking about the Pixel 6 though, but anyway, just in case...

init_boot.zip

Hondo77 avatar Dec 14 '22 17:12 Hondo77

Then please also provice the stock boot image from pixel 6

yujincheng08 avatar Dec 15 '22 08:12 yujincheng08

Could anyone send the stock init_boot.img?

Here is the stock init_boot.img from the Pixel 7 Pro running QPR2 Beta 1. I don't believe the Pixel 6 series has an init_boot.img. Had to zip it up to attach it.

I'm guessing you were talking about the Pixel 6 though, but anyway, just in case...

init_boot.zip

Correct; P6 has 2 GKI boot images but boot.img retains generic ramdisk (vendor ramdisks are removed)... P7 has 4 and generic ramdisk is now moved to init_boot.img...

I believe P7 boot.img (kernel only and lacking ramdisk) works with P6 after patching because 1) kernel is compatible by some fluke (sources are very similar), and 2) Magisk manually adds basic ramdisk when missing for magiskinit injection (so P7 boot image has ramdisk restored after patching)...

To be clear, by patching and using P7 boot.img, P6 is loading a Magisk-added ramdisk containing Magisk different from P7 ... P7 uses a patched ramdisk in init_boot.img which P6 doesn't have AFAIK...

FWIW I posted info here: https://forum.xda-developers.com/t/magisk-general-support-discussion.3432382/post-87853419

pndwal avatar Dec 15 '22 08:12 pndwal

Then please also provice the stock boot image from pixel 6

latest boot.img from my Pixel 6 boot.zip

SammCheese avatar Dec 15 '22 09:12 SammCheese

Could anyone send the stock init_boot.img?

Here is the stock init_boot.img from the Pixel 7 Pro running QPR2 Beta 1. I don't believe the Pixel 6 series has an init_boot.img. Had to zip it up to attach it. I'm guessing you were talking about the Pixel 6 though, but anyway, just in case... init_boot.zip

Correct; P6 has 2 GKI boot images but boot.img retains generic ramdisk (vendor ramdisks are removed)... P7 has 4 and generic ramdisk is now moved to init_boot.img...

I believe P7 boot.img (kernel only and lacking ramdisk) works with P6 after patching because 1) kernel is compatible by some fluke (sources are very similar), and 2) Magisk manually adds basic ramdisk when missing for magiskinit injection (so P7 boot image has ramdisk restored after patching)...

To be clear, by patching and using P7 boot.img, P6 is loading a Magisk-added ramdisk containing Magisk different from P7 ... P7 uses a patched ramdisk in init_boot.img which P6 doesn't have AFAIK...

FWIW I posted info here: https://forum.xda-developers.com/t/magisk-general-support-discussion.3432382/post-87853419

Yes, I have both device and am aware of the changes with devices launching with Android 13 whereby these devices have a new init_boot image containing the generic ramdisk The Pixel 6 does not have an init_boot.img since it did not ship with Android 13. Also familiar with this commit (https://github.com/topjohnwu/Magisk/commit/985249c3d0bccff479f8c1efd5967922ab8d855e) that you are likely referring to.

Due to GKI, both devices have the same GKI kernel in the boot image, which is why you can boot the Pixel 7 boot image on the Pixel 6. But if you add the drivers, it likely won't boot.

Hondo77 avatar Dec 15 '22 14:12 Hondo77

Can some one provide patched boot image for Pixel 6 Pro from 7P?

amritpal2489 avatar Dec 15 '22 18:12 amritpal2489

Can some one provide patched boot image for Pixel 6 Pro from 7P?

magisk_patched_boot.img

Kastilo avatar Dec 15 '22 20:12 Kastilo

Can some one provide patched boot image for Pixel 6 Pro from 7P?

magisk_patched_boot.img

Thanks but this did not work. I think this is 6pro patched boot img only and not 7 pro

amritpal2489 avatar Dec 16 '22 03:12 amritpal2489

Can some one provide patched boot image for Pixel 6 Pro from P7P which gives root access through Magisk?

amritpal2489 avatar Dec 16 '22 19:12 amritpal2489

Can some one provide patched boot image for Pixel 6 Pro from P7P which gives root access through Magisk?

It will take far less time for you to patch it yourself. Cheers

AllenChangMusic avatar Dec 16 '22 19:12 AllenChangMusic

Can some one provide patched boot image for Pixel 6 Pro from P7P which gives root access through Magisk?

It will take far less time for you to patch it yourself. Cheers

I tried but my 6p failed to boot with that

amritpal2489 avatar Dec 16 '22 19:12 amritpal2489

Can somebody provide me Pixel 7 Pro's magisk patched boot img from the latest QPR2 Beta 1 update? The one which succesfully roots the Pixel 6 Pro

amritpal2489 avatar Dec 17 '22 11:12 amritpal2489

Does any of this help rooting the pixel 6a beta?

rly907 avatar Dec 17 '22 17:12 rly907

Does any of this help rooting the pixel 6a beta?

Guessing Edit 2 here: https://github.com/topjohnwu/Magisk/issues/6441#issuecomment-1350458251 might be good for all models... 😀

pndwal avatar Dec 18 '22 12:12 pndwal