Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]Add support for android AVD #2581

Closed
androidacy-user opened this issue Mar 23, 2020 · 7 comments
Closed

[Feature Request]Add support for android AVD #2581

androidacy-user opened this issue Mar 23, 2020 · 7 comments
Labels
enhancement New feature request

Comments

@androidacy-user
Copy link

There is of course the script in scripts/emulator.sh but that is rather tedious to have to execute on each boot, and renders testing modules kinda worthless since they aren't going to be mounted properly, nor boot scripts ran.
As of this moment, checking on a sdk29 official AVD from Android studio, there is a ramdisk.img that could be theoretically patched, if Manager actually supported the format. I tried using commands taken from boot_patch.sh, but it gets stuck at [loading ramdisk.cpio] (which does exist in the directory magiskboot is ran from).
I'd like to see either
A) Manager supports patching (of course not flashing, you'd have to copy the ramdisk back into place yourself) ramdisk.img natively
B) Some sort of documentation on how we can get a (mostly if not fully) working environment in the official AVD.

I'm only suggesting the official AVD from google because there are any combination of other emulators that may or may not have a ramdisk or weird hacks to get things working (not to mention android x86 doesn't want to launch the gui for me), but the AVD will always have a universal setup for each release, and would be very useful for me as a module developer because I wouldn't have to either buy a second device for testing or test on my daily driver. It could also be useful if you want to test out certain mods on a device that is easily disposable or your not sure if it's 100% safe.

@osm0sis osm0sis added the enhancement New feature request label Mar 23, 2020
@ytrezq
Copy link

ytrezq commented Mar 30, 2020

Aik tools supports android boot image with avd key changing.

@ghost
Copy link

ghost commented Apr 4, 2020

@linuxandria try to see this issue #2551, shakalaca has developed a script for patch AVD and android x86, for me the patch for android x86 is working, so I think also AVD is good.

@androidacy-user
Copy link
Author

@ematrix would be nice to be able to provide manager with the necessary files and automatically do the needful patches. Or emulator.sh fixed to better support it

@androidacy-user
Copy link
Author

  • @etmatrix
    GitHub app doesn't let you edit comments lol

@NULL0B
Copy link

NULL0B commented Jul 12, 2020

@linuxandria it's funny I posted similar issue here https://github.com/topjohnwu/Magisk/issues/2471
and you closed it. Patching ramdisk with that method work on android 8.1 AVD but with a very old magisk (16.6 ) other build after that. doesn't boot. I tried canary and it boots put doesn't perform additional install.

@vvb2060 vvb2060 closed this as completed Jan 18, 2022
@vvb2060
Copy link
Collaborator

vvb2060 commented Jan 18, 2022

build.py emulator

@yujincheng08
Copy link
Collaborator

20ef724

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

No branches or pull requests

6 participants