data restore: Fix issues with package restrictions being restored.
package-restrictions causes issues when data is restored. This was causing issues with the system booting after the restore.
Change-Id: I9057e4acf2c54121e312dfafa36b6f4e65835cae
diff --git a/partition.cpp b/partition.cpp
index 6814a4b..2361dc3 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -1260,6 +1260,8 @@
wipe_exclusions.add_absolute_dir(Mount_Point + "/misc/vold"); // adopted storage keys
ExcludeAll(Mount_Point + "/system/storage.xml");
+ backup_exclusions.add_absolute_dir("/data/system/users/0/package-restrictions.xml");
+
// board-customisable exclusions
#ifdef TW_BACKUP_EXCLUSIONS
std::vector<std::string> user_extra_exclusions = TWFunc::Split_String(TW_BACKUP_EXCLUSIONS, ",");