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
diff --git a/partition.cpp b/partition.cpp
index 5af68c9..f7fe001 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -754,10 +754,9 @@
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