Skip to content

Commit eb439c0

Browse files
committed
partition: Exclude ksu modules file from userdata backup
Change-Id: I4b42f52ed9ef00e0c9c39b1de80bf47a2ade65cd Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
1 parent f73d821 commit eb439c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

partition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ void TWPartition::Setup_Data_Media() {
12951295
backup_exclusions.add_absolute_dir("/data/misc/apexdata/com.android.art"); // exclude this dir to prevent "error 255" on AOSP Android 12
12961296
backup_exclusions.add_absolute_dir("/data/extm"); //exclude this dir to prevent "error 255" on MIUI
12971297
backup_exclusions.add_absolute_dir("/data/gsi"); // Contains huge files (DSU System image + Userdata image), and won't work after restoration (requires configuration files in metadata)
1298+
backup_exclusions.add_absolute_dir("/data/adb/ksu/modules.img"); //After ksu 0.8.x the modules.img file became 1tb, which is inhibiting the execution of backups
12981299
wipe_exclusions.add_absolute_dir(Mount_Point + "/misc/vold"); // adopted storage keys
12991300
ExcludeAll(Mount_Point + "/system/storage.xml");
13001301

0 commit comments

Comments
 (0)