GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Trantect/MagiskOnEmulator: Install Magisk on Official Android Emulator

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

95 Commits
95 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
busybox
busybox
 
 
busybox_arm
busybox_arm
 
 
initrd.patch
initrd.patch
 
 
install.sh
install.sh
 
 
install_vbox.bat
install_vbox.bat
 
 
install_vbox.sh
install_vbox.sh
 
 
patch.bat
patch.bat
 
 
patch.sh
patch.sh
 
 
patch_vbox.bat
patch_vbox.bat
 
 
patch_vbox.sh
patch_vbox.sh
 
 
prepare_image.bat
prepare_image.bat
 
 
prepare_image.sh
prepare_image.sh
 
 
process.sh
process.sh
 
 

Repository files navigation

Install Magisk On Official Android Emulator

Works on Android API 22 - 30,S (except 28)

  1. Grab Magisk.zip (or Magisk.apk) and put in this directory. If you're using ARM system image, replace busybox with busybox_arm.
  2. For patching the ramdisk with magisk, your AVD must be already created
  3. Make sure you backup the untouched ramdisk.img from <sdk_home>/system-images/<platform>/*/ramdisk.img. You will need it everytime you want to patch ramdisk with magisk (for the first time and also for subsequent magisk updates).
  4. Clone this repository and copy the original ramdisk.img into the clone's folder.
  5. Start the newly created AVD.
  6. There are three ways to patch ramdisk:
  • Execute patch.sh or patch.bat to install Magisk (pre-downloaded) on the ramdisk.img
  • 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. 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
  • 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, execute patch.sh pull or patch.bat pull to get the patched ramdisk.img. This method is mainly for Released version of Magisk.
  1. When finished, copy the patched ramdisk.img back to AVD directory.
  2. Power off and restart (cold start) the emulator
  3. Recommended: update magisk manager
  4. Enjoy Magisk :)

Install Magisk On Android x86 Project on VirtualBox

Only test on Android 8.1

  1. Grab Magisk.zip (or Magisk.apk) and put in this directory.
  2. Bring up Android system and establish adb connection.
  3. Execute prepare_image.sh or prepare_image.bat to grab initrd.img and ramdisk.img on hard drive.
  4. Execute patch_vbox.sh or patch_vbox.bat to patch initrd.img and ramdisk.img
  5. Execute install_vbox.sh or install_vbox.bat to install patched images on hard drive.
  6. Restart machine and enjoy Magisk :)

Reference: topjohnwu/Magisk#2551 (comment)

Sources

busybox binary : https://github.com/Magisk-Modules-Repo/busybox-ndk

Notes

Emulator Version command-line patch manager patch
Android S Canary (22001) Canary (22001, w/ built-in su)
Android 22 - 30 Canary (22001) 21.4 (w/ manager 8.0.7)

MagiskManager 8.0.7: https://github.com/topjohnwu/Magisk/releases/download/manager-v8.0.7/MagiskManager-v8.0.7.apk

Magisk 21.4 channel url: https://bit.ly/304BAei (https://github.com/topjohnwu/magisk_files/blob/b0694fad863d3a15c6a2276b1061a280ece80ed7/stable.json)

Magisk 22001 Canary: https://github.com/topjohnwu/magisk_files/raw/c34d91edab45e140753e1256f2b694eed90d2dcc/app-debug.apk

About

Install Magisk on Official Android Emulator

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.