{"id":13846100,"url":"https://github.com/shakalaca/MagiskOnEmulator","last_synced_at":"2025-07-12T04:31:06.671Z","repository":{"id":39340235,"uuid":"171863566","full_name":"shakalaca/MagiskOnEmulator","owner":"shakalaca","description":"Install Magisk on Official Android Emulator","archived":false,"fork":false,"pushed_at":"2023-10-26T09:18:48.000Z","size":49957,"stargazers_count":657,"open_issues_count":29,"forks_count":112,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-08-05T17:45:40.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shakalaca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-02-21T11:58:37.000Z","updated_at":"2024-08-05T01:24:23.000Z","dependencies_parsed_at":"2024-02-21T10:58:41.124Z","dependency_job_id":null,"html_url":"https://github.com/shakalaca/MagiskOnEmulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakalaca%2FMagiskOnEmulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakalaca%2FMagiskOnEmulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakalaca%2FMagiskOnEmulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakalaca%2FMagiskOnEmulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shakalaca","download_url":"https://codeload.github.com/shakalaca/MagiskOnEmulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225791548,"owners_count":17524804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:04:20.389Z","updated_at":"2024-11-21T19:31:10.352Z","avatar_url":"https://github.com/shakalaca.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"Install Magisk On Official Android Emulator\n===========================================\n\nWorks on Android API 22 - 30,S (except 28)\n\n0. Grab Magisk.zip (or Magisk.apk) and put in this directory. If you're using ARM system image, replace `busybox` with `busybox_arm`.\n1. For patching the ramdisk with magisk, your AVD must be already created\n2. Make sure you backup the untouched `ramdisk.img` from `\u003csdk_home\u003e/system-images/\u003cplatform\u003e/*/ramdisk.img`. You will need it everytime you want to patch ramdisk with magisk (for the first time and also for subsequent magisk updates).\n3. Clone this repository and copy the original `ramdisk.img` into the clone's folder.\n4. Start the newly created AVD.\n5. There are three ways to patch ramdisk:\n  * Execute `patch.sh` or `patch.bat` to install Magisk (pre-downloaded) on the ramdisk.img \n  * Alternatively, you can execute `patch.sh canary` or `patch.bat canary` to install latest canary Magisk on the ramdisk.img. This requires AVD internet connectivity towards github.\n***Note: If choosing to use 'patch.sh', you might need to run `dos2unix patch.sh` first so that the script has propper line ending. This is needed when using for example github for desktop, which changes line ending to CRLF instead of LF***\n  * If you prefer patching by MagiskManager, execute `patch.sh manager` or `patch.bat manager`, it will create a fake `boot.img` on internal storage. We then launch MagiskManager and click `Install` and select `boot.img` to patch it. When finished,\nexecute `patch.sh pull` or `patch.bat pull` to get the patched ramdisk.img. This method is mainly for Released version of Magisk.\n\n6. When finished, copy the patched `ramdisk.img` back to AVD directory.\n7. Power off and restart (cold start) the emulator\n8. Recommended: update magisk manager\n9. Enjoy Magisk :)\n\nInstall Magisk On Android x86 Project on VirtualBox\n===================================================\n\nOnly test on Android 8.1\n\n0. Grab Magisk.zip (or Magisk.apk) and put in this directory.\n1. Bring up Android system and establish adb connection.\n2. Execute `prepare_image.sh` or `prepare_image.bat` to grab initrd.img and ramdisk.img on hard drive.\n3. Execute `patch_vbox.sh` or `patch_vbox.bat` to patch initrd.img and ramdisk.img\n4. Execute `install_vbox.sh` or `install_vbox.bat` to install patched images on hard drive.\n5. Restart machine and enjoy Magisk :)\n\nReference: https://github.com/topjohnwu/Magisk/issues/2551#issuecomment-608998420\n\nSources\n=======\nbusybox binary : https://github.com/Magisk-Modules-Repo/busybox-ndk\n\nNotes\n=====\n| Emulator Version | command-line patch | manager patch\n| ---- | ---- | ---- |\n| Android S | Canary (22001) | Canary (22001, w/ built-in `su`) |\n| Android 22 - 30 | Canary (22001) | 21.4 (w/ manager 8.0.7) |\n\nMagiskManager 8.0.7: https://github.com/topjohnwu/Magisk/releases/download/manager-v8.0.7/MagiskManager-v8.0.7.apk\n\nMagisk 21.4 channel url: https://bit.ly/304BAei (https://github.com/topjohnwu/magisk_files/blob/b0694fad863d3a15c6a2276b1061a280ece80ed7/stable.json)\n\nMagisk 22001 Canary: https://github.com/topjohnwu/magisk_files/raw/c34d91edab45e140753e1256f2b694eed90d2dcc/app-debug.apk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakalaca%2FMagiskOnEmulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshakalaca%2FMagiskOnEmulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakalaca%2FMagiskOnEmulator/lists"}