how to install magisk on Android 7.1.1 (Nougat)
Intel x86 Atom_64 System Image
android studio guest, linux host
- start emulator
- install file manager that can be used as file picker like total commander in guest
- install magisk apk in guest
- create boot.img:
sh /path/to/brimg r2b < /path/to/ramdisk.img > /tmp/not-patched-boot.img
- note:
ramdisk.img
is located in~/Android/Sdk/system-images/android-25/default/x86_64
(~
is home directory) for me
- note:
- upload boot.img to guest:
adb push /tmp/not-patched-boot.img /storage/emulated/0/not-patched-boot.img
- patch
not-patched-boot.img
using magisk app in guest - download patched boot.img to host:
adb pull /storage/emulated/0/Download/magisk_patched-blah_blah.img /tmp/patched-boot.img
- note:
magisk_patched-blah_blah.img
will be different for you
- note:
- exit emulator
- replace
ramdisk.img
:sh /path/to/brimg b2r < /tmp/patched-boot.img > /path/to/ramdisk.img