Coder Social home page Coder Social logo

The AVD can't start about rootavd HOT 6 CLOSED

newbit1 avatar newbit1 commented on June 17, 2024
The AVD can't start

from rootavd.

Comments (6)

newbit1 avatar newbit1 commented on June 17, 2024

Which Magisk Version? The AVD should shot down by the script. Can you provide a full log?

from rootavd.

nevinhappy avatar nevinhappy commented on June 17, 2024

Which Magisk Version? The AVD should shot down by the script. Can you provide a full log?

TMP9

from rootavd.

newbit1 avatar newbit1 commented on June 17, 2024

Cant really see the installed Magisk Version. But log seems fine to me.
To create a more readable log, just copy & paste the terminals output. Like this one here

from rootavd.

nevinhappy avatar nevinhappy commented on June 17, 2024

here
xxx-MacBook-Pro rootAVD % ./rootAVD.sh ~/Library/Android/sdk/system-images/android-31/default/arm64-v8a/ramdisk.img
[!] 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. 342.8 MB/s (11278270 bytes in 0.031s)
[-] ramdisk.img Backup exists already
[] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] /Users/xxx/Library/Android/sdk/system-images/android-31/default/arm64-v8a/ramdisk.img: 1 file pushed, 0 skipped. 432.6 MB/s (4685032 bytes in 0.010s)
[
] Push rootAVD.sh into /data/data/com.android.shell/Magisk
[-] rootAVD.sh: 1 file pushed, 0 skipped. 355.6 MB/s (7855770 bytes in 0.021s)
[-] 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: 31
[-] First API Level: 31
[-] The AVD runs on Android 12
[-] 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 a468fd94(25205)
[4] alpha 44643ad7-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 lz4_legacy 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: [lz4_legacy]
[-] Checking ramdisk STATUS=1
[-] Magisk patched boot image detected
[
] Verifying Boot Image by its Kernel Release number:
[-] This AVD = 5.10.110-android12-9-00004-gb92ac325368e-ab8731800
[-] Ramdisk = 5.10.110-android12-9-00004-gb92ac325368e-ab8731800
[!] 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. 456.6 MB/s (4685032 bytes in 0.010s)
[] Pull Magisk.apk into
[-] /data/data/com.android.shell/Magisk/Magisk.apk: 1 file pulled, 0 skipped. 366.1 MB/s (11278270 bytes in 0.029s)
[-] 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.

newbit1 avatar newbit1 commented on June 17, 2024

Thanks! It seems the ramdisk is already patched. Try to restore it. Just add restore after your start command and try it again. The works best with a stock, unmodified ramdisk.

from rootavd.

nevinhappy avatar nevinhappy commented on June 17, 2024

Thanks! It seems the ramdisk is already patched. Try to restore it. Just add restore after your start command and try it again. The works best with a stock, unmodified ramdisk.

I did restore, and the AVD works ok.

from rootavd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.