Fix config backup for legacy SAR

This commit is contained in:
canyie 2022-06-13 20:35:15 +08:00 committed by John Wu
parent 6f74ed6ceb
commit 754e690274

View File

@ -64,7 +64,7 @@ void LegacySARInit::first_stage_prep() {
xmkdir("/data/.backup", 0);
xmkdir("/data/overlay.d", 0);
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);
close(cfg);
}