Add cache magisk image merging support

This commit is contained in:
topjohnwu 2017-12-22 16:10:38 +08:00
parent d58a8dc868
commit 1472dbb291

View File

@ -394,6 +394,10 @@ static void simple_mount(const char *path) {
static int prepare_img() {
// First merge images
if (merge_img("/cache/magisk.img", MAINIMG)) {
LOGE("Image merge /cache/magisk.img -> " MAINIMG " failed!\n");
return 1;
}
if (merge_img("/data/magisk_merge.img", MAINIMG)) {
LOGE("Image merge /data/magisk_merge.img -> " MAINIMG " failed!\n");
return 1;