From 2ec1df43d30ee6c8ef670397486b26fa77c377bf Mon Sep 17 00:00:00 2001 From: micky387 Date: Thu, 14 Oct 2021 14:53:06 +0200 Subject: [PATCH] recovery: Don't exclude the whole data system dir for the factory reset Factory reset not clean correctly the settings of system. Change-Id: I3ff616093e4f2f480f11f97ccfb4072756400777 --- partition.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/partition.cpp b/partition.cpp index 5af68c98..f7fe0013 100755 --- a/partition.cpp +++ b/partition.cpp @@ -754,10 +754,9 @@ bool TWPartition::Decrypt_FBE_DE() { ExcludeAll(Mount_Point + "/misc/keystore"); ExcludeAll(Mount_Point + "/drm/kek.dat"); ExcludeAll(Mount_Point + "/system_de/0/spblob"); // contains data needed to decrypt synthetic password - // ExcludeAll(Mount_Point + "/system/users/0/gatekeeper.password.key"); - // ExcludeAll(Mount_Point + "/system/users/0/gatekeeper.pattern.key"); + ExcludeAll(Mount_Point + "/system/users/0/gatekeeper.password.key"); + ExcludeAll(Mount_Point + "/system/users/0/gatekeeper.pattern.key"); ExcludeAll(Mount_Point + "/cache"); - ExcludeAll(Mount_Point + "/system/users/0"); ExcludeAll(Mount_Point + "/per_boot"); // removed each boot by init ExcludeAll(Mount_Point + "/gsi"); // cow devices