Comments (7)
Please provide the full log incl your command.
from rootavd.
i don't save it but it show run successfully and emulator shut down, but not restart. When i restart it black screen
from rootavd.
Then please repeat the process and copy the log.
from rootavd.
Then please repeat the process and copy the log.
[!] and we are NOT in an emulator shell
[] Set Directorys
[-] Test if ADB SHELL is working
[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell
[] Cleaning up the ADB working space
[] Creating the ADB working space
[-] Magisk installer Zip exists already
[] Push Magisk.zip into /data/data/com.android.shell/Magisk
[-] ./Magisk.zip: 1 file pushed, 0 skipped. 297.8 MB/s (11278270 bytes in 0.036s)
[-] ramdisk.img Backup exists already
[] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] /Users/lph77/Library/Android/sdk/system-images/android-30/google_apis_playstore/arm64-v8a/ramdisk.img: 1 file pushed, 0 skipped. 440.4 MB/s (1757332 bytes in 0.004s)
[] Push rootAVD.sh into /data/data/com.android.shell/Magisk
[-] rootAVD.sh: 1 file pushed, 0 skipped. 171.2 MB/s (7855800 bytes in 0.044s)
[-] run the actually Boot/Ramdisk/Kernel Image Patch Script
[] from Magisk by topjohnwu and modded by NewBit XDA
[!] We are in a ranchu emulator shell
[-] Api Level Arch Detect
[-] Device Platform is arm64 only
[-] Device SDK API: 30
[-] First API Level: 30
[-] The AVD runs on Android 11
[-] Switch to the location of the script file
[] Extracting busybox and Magisk.zip ...
[-] Checking AVDs Internet connection...
[!] AVD is online
[!] Checking available Magisk Versions
[?] Choose a Magisk Version to install and make it local
[s] (s)how all available Magisk Versions
[1] local stable '25.2' (ENTER)
[2] stable 25.2
[3] canary 831a398b(25206)
[4] alpha ed37ddd5-alpha(25205)
[-] You choose Magisk local stable Version '25.2'
[] Re-Run rootAVD in Magisk Busybox STANDALONE (D)ASH
[-] We are now in Magisk Busybox STANDALONE (D)ASH
[] rootAVD with Magisk '25.2' Installer
[-] Get Flags
[] System-as-root, keep dm/avb-verity
[-] Encrypted data, keep forceencrypt
[] RECOVERYMODE=false
[-] KEEPVERITY=true
[] KEEPFORCEENCRYPT=true
[-] copy all arm64-v8a files from /data/data/com.android.shell/Magisk/lib/arm64-v8a to /data/data/com.android.shell/Magisk
[] Detecting ramdisk.img compression
[!] Ramdisk.img uses gzip compression
[-] taken from shakalaca's MagiskOnEmulator/process.sh
[] executing ramdisk splitting / extraction / repacking
[-] API level greater then 30
[] Check if we need to repack ramdisk before patching ..
[] After decompressing ramdisk.img, magiskboot will work
Detected format: [gzip]
[-] Checking ramdisk STATUS=1
[-] Magisk patched boot image detected
[] Verifying Boot Image by its Kernel Release number:
[-] This AVD = 5.4.86-android11-2-00040-g29b2beadc627-ab7157994
[-] Ramdisk = 5.4.86-android11-2-00040-g29b2beadc627-ab7157994
[!] Ramdisk is probably from this AVD
[] repacking back to ramdisk.img format
[!] Rename Magisk.zip to Magisk.apk
[] Pull ramdiskpatched4AVD.img into ramdisk.img
[-] /data/data/com.android.shell/Magisk/ramdiskpatched4AVD.img: 1 file pulled, 0 skipped. 333.7 MB/s (1757332 bytes in 0.005s)
[] Pull Magisk.apk into
[-] /data/data/com.android.shell/Magisk/Magisk.apk: 1 file pulled, 0 skipped. 447.7 MB/s (11278270 bytes in 0.024s)
[-] Clean up the ADB working space
[-] Install all APKs placed in the Apps folder
[] Trying to install Apps/Magisk.apk
[] Performing Streamed Install
[] Success
[-] Shut-Down & Reboot (Cold Boot Now) the AVD and see if it worked
[-] Root and Su with Magisk for Android Studio AVDs
[-] Trying to shut down the AVD
[!] If the AVD doesn't shut down, try it manually!
[-] Modded by NewBit XDA - Jan. 2021
[!] Huge Credits and big Thanks to topjohnwu, shakalaca, vvb2060 and HuskyDG
from rootavd.
from rootavd.
Looks good to me.
But the ramdisk.img was already patched.
[-] Checking ramdisk STATUS=1
[-] Magisk patched boot image detected
use the restore
command to put the stock ramdisk.img back into place and try again.
Make sure, once the script has shut down the AVD, that you cold boot it.
from rootavd.
Looks good to me. But the ramdisk.img was already patched.
[-] Checking ramdisk STATUS=1 [-] Magisk patched boot image detected
use the
restore
command to put the stock ramdisk.img back into place and try again. Make sure, once the script has shut down the AVD, that you cold boot it.
Worked, many thank
from rootavd.
Related Issues (20)
- Rooted by still get error HOT 1
- ListAllAVDs not working HOT 3
- su not found or inaccessible can you help ? HOT 1
- stuck always HOT 21
- Is Android 11 supported? HOT 8
- Execute binaries through adb shell HOT 8
- Stuck on windows HOT 1
- Polestar 2 AVD support? HOT 10
- Not working properly in Mac M2 HOT 2
- How to installation Masgisk 26.1
- Cannot run EnvFixTask HOT 7
- Cannot run `adb shell -t su` permission denied HOT 5
- Different errors in Windows PowerShell and CMD HOT 4
- `NOT in an emulator shell` error despite `adb shell` command working HOT 5
- Feature Request: Environmental Variables file HOT 2
- Can I use %ANDROID_HOME% instead of %LOCALAPPDATA%/Android ? HOT 2
- Script does not work as intended (Windows 10) HOT 12
- Update for Magisk 26.1 for Shamiko-v0.7.3-174-release.zip HOT 1
- Root AVD with playstore installed HOT 1
- Magisk won't install/root on AVD API 34 (Android 14) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rootavd.