mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-14 22:28:37 +01:00
Add cache magisk image merging support
This commit is contained in:
parent
d58a8dc868
commit
1472dbb291
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user