Coder Social home page Coder Social logo

AVD Root question about rootavd HOT 3 CLOSED

newbit1 avatar newbit1 commented on September 26, 2024
AVD Root question

from rootavd.

Comments (3)

newbit1 avatar newbit1 commented on September 26, 2024

Yes! Check out the readme, it is all in there.

from rootavd.

Dauth avatar Dauth commented on September 26, 2024

This is the output which i have ran. Can you confirm it should work on this image

image

`C:\Users\user\Downloads\rootAVD-21.4>rootAVD.bat C:\Users\user\AppData\Local\Android\Sdk\system-images\android-29\google_apis_playstore\x86\ramdisk.img
The directory name is invalid.
"[] create Backup File"
1 file(s) copied.
"[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell"
"[-] ADB connectoin possible"
"[
] looking for Magisk installer Zip"
"[] Cleaning up the ADB working space"
"[
] Creating the ADB working space"
"[-] Copy Magisk installer Zip"
C:\Users\user\Downloads\rootAVD-21.4\Magisk.zip: 1 file pushed, 0 skipped. 388.7 MB/s (6173806 bytes in 0.015s)
"[] Copy Busybox installer"
C:\Users\user\Downloads\rootAVD-21.4\update-binary: 1 file pushed, 0 skipped. 1142.0 MB/s (3490664 bytes in 0.003s)
"[
] Copy the original AVD ramdisk.img into Magisk DIR"
C:\Users\user\AppData\Local\Android\Sdk\system-images\android-29\google_apis_playstore\x86\ramdisk.img: 1 file pushed, 0 skipped. 832.7 MB/s (882878 bytes in 0.001s)
"[-] Copy rootAVD Script into Magisk DIR"
rootAVD.sh: 1 file pushed, 0 skipped. 60.3 MB/s (12571 bytes in 0.000s)
"[-] Convert Script to Unix Ending"
"[-] run the actually Boot/Ramdisk/Kernel Image Patch Script"
"[] from Magisk by topjohnwu and modded by NewBit XDA"
[!] We are in a emulator shell
[-] Switch to the location of the script file
[
] Extracting busybox ...
[] Extracting Magisk.zip ...
[-] Device Platform: x86
[-] Device API: 29
[-] ARCH32 x86
[
] copy all files from BINDIR to BASEDIR
[-] taken from shakalaca's MagiskOnEmulator/process.sh
[] executing ramdisk splitting / extraction / repacking
[
] After decompressing ramdisk.img, magiskboot will work
Detected format: [gzip]
Decompressing to [/data/data/com.android.shell/Magisk/ramdisk.img]
[-] Test patch status and do restore
[-] Checking ramdisk status
[-] STATUS=0
[-] Stock boot image detected
[-] Patching ramdisk
[!] PATCHFSTAB=false
[!] Skipping fstab.ranchu patch with /dev/block/sda
[?] If you want fstab.ranchu patched, set PATCHFSTAB=true
[!] patching the ramdisk with Magisk Init
Loading cpio: [ramdisk.cpio]
Add entry [init] (0750)
Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[true]
Found fstab file [fstab.ranchu]
Remove pattern [,avb=vbmeta]
Loading cpio: [ramdisk.cpio.orig]
Backup mismatch entry: [fstab.ranchu] -> [.backup/fstab.ranchu]
Backup mismatch entry: [init] -> [.backup/init]
Create directory [.backup] (0000)
Add entry [.backup/.magisk] (0000)
Dump cpio: [ramdisk.cpio]
[] zipping ramdisk
Compressing to [ramdisk.cpio.gz]
"[-] After the ramdisk.img file is patched and back gz'ed,"
"[
] pull it back in the Magisk DIR"
/data/data/com.android.shell/Magisk/ramdiskpatched4AVD.img: 1 file pulled, 0 skipped. 80.6 MB/s (1229610 bytes in 0.015s)
"[-] Clean up the ADB working space"
"[] Move and rename the patched ramdisk.img to the original AVD DIR"
1 file(s) copied.
"[-] Install all APKs placed in the Apps folder"
"[
] Trying to install APPS\magisk.apk"
Performing Streamed Install
Success
"[-] reboot the AVD and see if it worked"
"[-] Root and Su with Magisk for Android Studio AVDs"
"[-] Modded by NewBit XDA - Jan. 2021"
"[*] Huge Credits and big Thanks to topjohnwu and shakalaca"

C:\Users\user\Downloads\rootAVD-21.4>adb shell
generic_x86:/ $ su
/system/bin/sh: su: inaccessible or not found`

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

Yes, it does work on Android 10, API 29 x86!
But you shouldn't use the rootAVD-21.4 release version.
I will delete this Release asap.

The directory name is invalid.
It seems like you are having an issue with your directory.

try:
rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-29\google_apis_playstore\x86\ramdisk.img

Did you reboot the AVD? (shut down and restart)
Compare the sizes of the ramdisk.img file, it must be bigger than the ramdisk.img.backup

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.