Magisk/native/jni/magiskboot
topjohnwu e72c6685ed Support A only System-as-root Devices
Most Chinese devices (and supposedly Galaxy S10) running Android Pie
is using system-as-root without A/B partition.

https://source.android.com/devices/bootloader/system-as-root#about-system-as-root

According to the docs above, these devices will have a ramdisk block
with size 0 in their boot images. Since magiskinit can run independently
on system-as-root devices, we simply just create an empty ramdisk with
magiskinit added as init.

Huge thanks to @vvb2060 for the heads up and original PR.
Close #980, close #1102
2019-02-28 05:46:36 -05:00
..
bootimg.cpp Some code adjustments 2019-02-24 23:09:34 -05:00
bootimg.h Move image parsing out of header searching 2019-02-21 05:08:38 -05:00
compress.cpp Fix compression without outname 2019-02-24 17:45:08 -05:00
compress.h Introduce Java-like OutputStream 2019-02-23 04:51:13 -05:00
dtb.cpp Some code adjustments 2019-02-24 23:09:34 -05:00
format.cpp Modernize compress and decompress 2019-02-20 20:49:26 -05:00
format.h Modernize compress and decompress 2019-02-20 20:49:26 -05:00
hexpatch.cpp Some code adjustments 2019-02-24 23:09:34 -05:00
magiskboot.h Some code adjustments 2019-02-24 23:09:34 -05:00
main.cpp Some code adjustments 2019-02-24 23:09:34 -05:00
pattern.cpp Some code adjustments 2019-02-24 23:09:34 -05:00
ramdisk.cpp Support A only System-as-root Devices 2019-02-28 05:46:36 -05:00