Skip to content

Commit

Permalink
[Normal] Update Some Codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Apr 19, 2024
1 parent 7bf1a91 commit d7b4c43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ def main(self):
ywarn(" Input error!")
input("任意按钮继续")
self.main()

@staticmethod
def dis_avb(fstab):
print(f"正在处理: {fstab}")
Expand All @@ -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)
Expand Down

0 comments on commit d7b4c43

Please sign in to comment.