newbit1 / rootAVD

Script to root AVDs running with QEMU Emulator from Android Studio
GNU General Public License v3.0
1.45k stars 186 forks source link

Is Android 11 supported? #62

Closed mihaimacarie98 closed 1 year ago

mihaimacarie98 commented 1 year ago

I've tried to use the script on two Android 11 Automotive images, but I don't get any su binary installed. It works without issues on Android 10.

Example of an image: https://developer.gm.com/downloads/final_31XX_06272022_emulator.xml

newbit1 commented 1 year ago

According to my chart, yes it is. Did you see the automotive notes on the readme?

mihaimacarie98 commented 1 year ago

According to my chart, yes it is. Did you see the automotive notes on the readme?

Yes I did. It worked for Android 10 but not 11. Also in the case of Android 11: I could not see the menu options specified in the notes in Magisk.

newbit1 commented 1 year ago

Ok i see. Can you send me the full log from the android 11 try?

newbit1 commented 1 year ago

I think I've found your issue. They are two ramdisk files. both of them need to be patched, then magisk will work with my notes by switching to user 0. Rename ramdisk-qemu.img to ramdisk.img and patch it, and then rename it back.

mihaimacarie98 commented 1 year ago

I think I've found your issue. They are two ramdisk files. both of them need to be patched, then magisk will work with my notes by switching to user 0. Rename ramdisk-qemu.img to ramdisk.img and patch it, and then rename it back.

Hi! Thanks that was the problem. Btw: How can I reset the SuperSu permission of the shell? I failed to approve it within the time shown.

newbit1 commented 1 year ago

you can't, you have to go into the magisk app, and allow manually

mihaimacarie98 commented 1 year ago

you can't, you have to go into the magisk app, and allow manually

I can't access the SuperSu tab in Magisk disk...

newbit1 commented 1 year ago

shell is executed as user 0. the toast will not show up until you switch to user 0