From d7b4c43bb71a52035be65f628d97069f83e21596 Mon Sep 17 00:00:00 2001 From: ColdWindScholar <3590361911@qq.com> Date: Sat, 20 Apr 2024 01:42:33 +0800 Subject: [PATCH] [Normal] Update Some Codes --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 95eb45c..d8716e5 100644 --- a/run.py +++ b/run.py @@ -544,6 +544,7 @@ def main(self): ywarn(" Input error!") input("任意按钮继续") self.main() + @staticmethod def dis_avb(fstab): print(f"正在处理: {fstab}") @@ -564,7 +565,8 @@ def dis_data_encryption(fstab): if not os.path.exists(fstab): return with open(fstab, "r") as sf: - details = re.sub(",fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized+wrappedkey_v0", "", sf.read()) + details = re.sub(",fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized+wrappedkey_v0", "", + sf.read()) details = re.sub(",fileencryption=aes-256-xts:aes-256-cts:v2+emmc_optimized+wrappedkey_v0", ",", details) details = re.sub(",fileencryption=aes-256-xts:aes-256-cts:v2", "", details) details = re.sub(",metadata_encryption=aes-256-xts:wrappedkey_v0", "", details)