• Stars
    star
    662
  • Rank 68,103 (Top 2 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Install Magisk on Official Android Emulator

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

More Repositories

1

learning_gradle_android

Learning how to build gradle enabled android project
Java
113
star
2

UniversalAndroot

One click and your Android device is rooted !
Java
65
star
3

fastboot-adb-android

Fastboot and adb binaries for Android device
Makefile
45
star
4

ZenFoneSystemImageCreator

Create system.img for ZenFone
Shell
24
star
5

BeautyClockLiveWallpaper

Shows beauty tokei on your Android device !
Java
22
star
6

RecyclerViewSample

Play with RecyclerView / CardView / Palette in Android L Preview
Java
21
star
7

android_device_asus_Z017

C++
14
star
8

USB-OTG-Manager

Thumb disk reader for Sony Ericsson Xperia Arc S
Java
13
star
9

setprops

Android properties management tool
C++
11
star
10

MagiskOfflineInstaller

Install any version of Magisk offline
Shell
10
star
11

android_device_asus_ze552kl

Makefile
10
star
12

LogcatLiveWallpaper

Android LiveWallpaper displays output of logcat
Java
8
star
13

Findbooks

Android client scans ISBN of books and searches online book store in Taiwan
Java
8
star
14

android_device_asus_a500cg

Makefile
8
star
15

GenymotionVMMigrationTool

Migrate data from old VM to new one
Shell
7
star
16

android_device_asus_Z016

Makefile
5
star
17

android_project_mirror_tools

Tools for maintaining AOSP & QAEP mirror server
Shell
5
star
18

android_device_asus_X00Q

Shell
5
star
19

zenfone_5_twrp

TWRP for ZenFone 5
Shell
4
star
20

ASUS_ZenFone_A500CG_A600CG

Kernel source of ASUS ZenFone 5 and ZenFone 6 (A500CG, A600CG, T00F, T00G)
C
4
star
21

adb-win64

Cross compile Android Debug Bridge (adb) for 64-bit Windows
C
4
star
22

GenymotionSDCardEnabler

Tools for enabling SD card in genymotion
Shell
4
star
23

zenfone_5_cwm

CWM Recovery for ZenFone 5
Shell
3
star
24

ScreenNotifier

Missed event (call/sms) notifier for Samsung Galaxy S (i9000)
Java
3
star
25

android_hardware_qcom_audio-caf_msm8996_asus

Audio hal with NXP TFA support
C
3
star
26

magisk-module-NFC-SWP-Sim-OnePlus6T

Shell
3
star
27

android_kernel_asus_zs570kl

C
3
star
28

ASUS_ZenFone_ZX551ML

Kernel source of ZenFone Zoom (ZX551ML, Z00XS)
C
3
star
29

android_device_asus_Z01H

Makefile
2
star
30

android_device_asus_Z01M

Makefile
2
star
31

android_device_asus_Z01Q

Shell
2
star
32

android_vendor_google

config tree for google mobile service
2
star
33

android_device_asus_Z01G

Shell
2
star
34

android_kernel_asus_ze553kl

C
2
star
35

android_kernel_asus_ze520kl

C
2
star
36

android_hardware_qcom_audio-caf_msm8937_asus

Audio hal with NXP TFA support
C
2
star
37

android_kernel_asus_zd552kl

C
2
star
38

ZenFone2-boot-tools

Pack and unpack boot.img or recovery.img of ZenFone2
C
2
star
39

android_vendor_cypress

2
star
40

android_device_asus_X00T

Shell
2
star
41

PhonePlus

Java
2
star
42

android_kernel_asus_zu680kl

C
1
star
43

ASUS_ZenFone_A400CG

Kernel source of ASUS ZenFone 4 (A400CG, T00I)
C
1
star
44

ASUS_ZenFone_ZE500KL

Kernel source of ASUS ZenFone 2 Laser (ZE500KL, Z00E)
C
1
star
45

android_kernel_asus_zc553kl

C
1
star
46

ASUS_ZenFone_ZD551KL

Kernel source of ZenFone Selfie (ZD551KL, Z00T)
C
1
star
47

android_device_asus_X00D

Makefile
1
star
48

android_device_asus_X00I

twrp device tree for ZenFone 4 Max (ZC554KL)
Makefile
1
star
49

shakalaca.github.com

1
star
50

ZenFone-vold

Patch and binary of vold for ZenFone 2
Shell
1
star
51

ASUS_ZenFone_A500KL

Kernel source for ASUS ZenFone 5 LTE (A500KL, T00P)
C
1
star
52

android_kernel_asus_ze552kl

C
1
star
53

android_device_samsung_crespo

AOSP ICS device configurations for Nexus S
C
1
star
54

ASUS_ZenFone_ZE550ML_ZE551ML

Kernel source for ASUS ZenFone 2 (ZE551ML, ZE550ML, Z00A, Z008)
C
1
star
55

Samsung-Mobile-AP-Wrapper

Launch Samsung i9000 Mobile AP settings directly
Java
1
star
56

MagiskOnIntelDevices

Patch Android boot.img with OSIP header
Shell
1
star