mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Fix config backup for legacy SAR
This commit is contained in:
parent
6f74ed6ceb
commit
754e690274
@ -64,7 +64,7 @@ void LegacySARInit::first_stage_prep() {
|
|||||||
xmkdir("/data/.backup", 0);
|
xmkdir("/data/.backup", 0);
|
||||||
xmkdir("/data/overlay.d", 0);
|
xmkdir("/data/overlay.d", 0);
|
||||||
restore_folder("/data/overlay.d", overlays);
|
restore_folder("/data/overlay.d", overlays);
|
||||||
int cfg = xopen("/data/.backup/config", O_WRONLY | O_CREAT, 0);
|
int cfg = xopen("/data/.backup/.magisk", O_WRONLY | O_CREAT, 0);
|
||||||
xwrite(cfg, magisk_cfg.buf, magisk_cfg.sz);
|
xwrite(cfg, magisk_cfg.buf, magisk_cfg.sz);
|
||||||
close(cfg);
|
close(cfg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user