Commit 1472dbb2 authored by topjohnwu's avatar topjohnwu

Add cache magisk image merging support

parent d58a8dc8
...@@ -394,6 +394,10 @@ static void simple_mount(const char *path) { ...@@ -394,6 +394,10 @@ static void simple_mount(const char *path) {
static int prepare_img() { static int prepare_img() {
// First merge images // 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)) { if (merge_img("/data/magisk_merge.img", MAINIMG)) {
LOGE("Image merge /data/magisk_merge.img -> " MAINIMG " failed!\n"); LOGE("Image merge /data/magisk_merge.img -> " MAINIMG " failed!\n");
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment