AndroidStudio模拟器使用rootAVD ROOT(失败)

  • 下载rootAVD
$ git clone https://github.com/newbit1/rootAVD.git
  • 下载Magist

Releases · topjohnwu/Magisk · GitHub

改名为Magist.zip,然后替换

  • 察看设备
> .\rootAVD.bat ListAllAVDs

rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img FAKEBOOTIMG
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img DEBUG PATCHFSTAB GetUSBHPmodZ
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img restore
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img InstallKernelModules
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img InstallPrebuiltKernelModules
rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img InstallPrebuiltKernelModules GetUSBHPmodZ PATCHFSTAB DEBUG

> .\rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img FAKEBOOTIMG

[*] Unpacking ramdisk ..
[*] Searching for the real End of the 1st Archive
[-] Dumping from 0 to 1490767 ..
Detected format: [lz4_legacy]
[-] Dumping from 1490767 to 3441324 ..
Detected format: [lz4_legacy]
[*] Repacking ramdisk ..
[*] Processing fake Boot.img
[*] Creating a fake Boot.img
[-] removing old /sdcard/Download/fakeboot.img
[!] Only a minimal header is required for Magisk to repack the ramdisk
[*] repacking ramdisk.img into /sdcard/Download/fakeboot.img
[*] /sdcard/Download/fakeboot.img could not be created
[-] Magisk expects a more complete boot.img header as source
[*] Adding /data/data/com.android.shell/Magisk/ramdisk.cpio to fakeboot.img header
[*] Checking filesize Padding for Pagesize 2048
[*] Padding filesize to match Pagesize of 2048 Bytes
[-] repacking ramdisk.img into /sdcard/Download/fakeboot.img with the more complete header
[!] /sdcard/Download/fakeboot.img created
[*] Searching for pre installed Magisk Apps
[!] Temporarily installing Magisk
[*] Detecting current user
[-] Current user 0
[-] Starting Magisk
[*] Install/Patch /sdcard/Download/fakeboot.img and hit Enter when done(max. 60s)

 到了这里,赶紧转到模拟器,打开FILE,选择fakeboot.img,结果没有任何反应。

AndroidStudio模拟器使用rootAVD ROOT(失败)_第1张图片

  • 提示失败
[!] Removing Temporarily installed Magisk
[!] No magisk_patched file could be found!
[!] aborting the script

你可能感兴趣的:(Android,Studio/Eclipse,android)