rootAVD/README.md

5.2 KiB

rootAVD

newbit @ xda-developers

A Script to root your Android Studio Virtual Device (AVD), with Magisk and Magisk Manager within seconds

How To Use it with Magisk v21.4

  • rootAVD needs a path with file to an AVD ramdisk
  • rootAVD will backup your ramdisk.img and replace it when done patching

How To Use it under Android S with Magisk v22

  • rootAVD needs to run twice
  • 1st - to patch the ramdisk.img
  • 2nd - after rebooting the AVD
    • The "Additional Setup Required" will not be triggered in Android S by Magisk App in AVD,
    • this must be done manually on the 2nd run
    • Grant Shell Su Permissions will pop up a few times
    • rootAVD will reboot the AVD automatically
    • check Magisk App !!

Linux

./rootAVD.sh ~/Android/Sdk/system-images/android-30/google_apis_playstore/x86_64/ramdisk.img

MacOS

./rootAVD.sh ~/Library/Android/sdk/system-images/android-S/google_apis_playstore/x86_64/ramdisk.img

Windows

rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-30\google_apis_playstore\x86_64\ramdisk.img

Notes

  • adb must be in your $PATH

Options

  • Install all APKs placed in the Apps folder
  • If you set PATCHFSTAB=true
    • fstab.ranchu will get patched to automount Block Devices like /dev/block/sda1
    • !! a custom build Kernel is needed !!

Magisk v22 Successfully tested with Stock Kernel on

Magisk v21.4 Successfully tested with Stock Kernel on

Change Logs

[Mar. 2021]

  • [General] - Updated to Magisk App v22.0
  • [General] - Fixed some bugs and typos
  • [rootAVD.sh] - Added Compression Detection for LZ4 and GZ
  • [rootAVD.sh] - Updated shakalaca's Ramdisk Repack Routine
  • [rootAVD.sh] - Added "Additional Setup Required" manually for Android S

Credits