From bf10496fa9260fa0d96967b3ecb0fa57698e86c1 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 12 Jun 2023 02:00:06 +0800 Subject: [PATCH] Add log for restore --- native/src/boot/ramdisk.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/native/src/boot/ramdisk.rs b/native/src/boot/ramdisk.rs index a521ebc58..64109f3e4 100644 --- a/native/src/boot/ramdisk.rs +++ b/native/src/boot/ramdisk.rs @@ -99,7 +99,9 @@ impl MagiskCpio for Cpio { rm_list.push_str(data); } } else if name != ".backup/.magisk" { - backups.insert(name[8..].to_string(), entry); + let new_name = &name[8..]; + eprintln!("Restore [{}] -> [{}]", name, new_name); + backups.insert(new_name.to_string(), entry); } }); self.rm(".backup", false);