mirror of
https://gitlab.com/newbit/rootAVD.git
synced 2026-07-03 13:15:10 +02:00
b0258a271db35a8f0e5b8b0c69f9c649d9367c17
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
- 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 Shut-Down & Reboot the AVD:
- Option 1 - re-run same script command
- Option 2 - run script with EnvFixTask Argument
- 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-S/google_apis_playstore/x86_64/ramdisk.img
./rootAVD.sh EnvFixTask
MacOS
./rootAVD.sh ~/Library/Android/sdk/system-images/android-S/google_apis_playstore/x86_64/ramdisk.img
./rootAVD.sh EnvFixTask
Windows
rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-S\google_apis_playstore\x86_64\ramdisk.img
Notes
- adb must be in your
$PATH - Android 12 (S) rev.2 needs Magisk Canary
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 !!
Links
- XDA [GUIDE] Build / Mod [Kernel 5.4][GKI][Android 11 (R)][kernel-ranchu][goldfish][AVD][Google Play Store API]
- XDA [GUIDE] Build / Mod AVD Kernel Android 10 / 11 rootAVD [Magisk] [USB passthrough Linux] [Google Play Store API]
- Inject Android Hardware USB HOST Permissions
- XDA [SCRIPT] rootAVD - root your Android Studio Virtual Device emulator with Magisk [Android 11][Linux][Darwin/MacOS][WIN][Google Play Store APIs]
Magisk v22 Successfully tested with Stock Kernel on
- [Mar. 2021] - Android 12 (S) API 30 Google Apis Play Store x86_64 r02 Darwin/MacOS Production Build
- [Mar. 2021] - Android 12 (S) API 30 Google Apis Play Store x86_64 r01 Darwin/MacOS Production Build
- [Mar. 2021] - Android 12 (S) API 30 Google Apis Play Store x86_64 r01 Windows Production Build
- [Mar. 2021] - Android 12 (S) API 30 Google Apis Play Store x86_64 r01 Darwin/MacOS User Debug Build
- [Mar. 2021] - Android 11 (R) API 30 Google Apis Play Store x86_64 r10 Darwin/MacOS Production Build
- [Mar. 2021] - Android 11 (R) API 30 Google Apis Play Store x86_64 r10 Windows Production Build
- [Mar. 2021] - Android 10 (Q) API 29 Google Apis Play Store x86_64 r08 Darwin/MacOS Production Build
- [Mar. 2021] - Android 10 (Q) API 29 Google Apis Play Store x86_64 r08 Windows Production Build
Magisk v21.4 Successfully tested with Stock Kernel on
- [Jan. 2021] - Android 11 (R) API 30 Google Apis Play Store x86_64 r10 Darwin/MacOS Production Build
- [Jan. 2021] - Android 11 (R) API 30 Google Apis Play Store x86_64 r10 Windows Production Build
- [Jan. 2021] - Android 11 (R) API 30 Google Apis Play Store x86_64 r10 Linux Production Build
- [Jan. 2021] - Android 11 (R) API 30 Google Apis Play Store x86 r09 Linux Production Build
- [Dec. 2019] - Android 10 (Q) API 29 Google Apis Play Store x86_64 r09 Linux Production Build
- [Dec. 2019] - Android 10 (Q) API 29 Google Apis x86_64 r11 User Debug Build
- [Jan. 2021] - Android 7 (Nougat) API 24 Google Apis Play Store x86 r19 Production Build
Change Logs
[Mar. 2021]
- [General] - Add a Menu to choose the Magisk Version to install
- [rootAVD.sh] - Added EnvFixTask Argument to fix Requires Additional Setup in Android S
- [General] - Changed to BusyBox (D)ASH Standalone
- [General] - Re-Structured Script
- [rootAVD.sh] - Added "Additional Setup Required" manually for Android S
- [rootAVD.sh] - Updated shakalaca's Ramdisk Repack Routine
- [rootAVD.bat] - Adjustments to run with the updated rootAVD.sh
- [rootAVD.sh] - Added Compression Detection for LZ4 and GZ
- [General] - Fixed some bugs and typos
- [General] - Updated to Magisk App v22.0
Credits
Languages
Shell
81.4%
Batchfile
18.6%