Skip to content

Commit 6da62bb

Browse files
committed
backuptool: Restore /system/build.prop checks
Required for 23.0/23.1 -> 23.2 transition. Change-Id: I608743f11eb29917f109dd490624b0126c9fbb88
1 parent bc10373 commit 6da62bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prebuilt/common/bin/backuptool_ab.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ restore_addon_d() {
4949
fi
5050
}
5151

52-
# Proceed only if /product is the expected major and minor version
52+
# Proceed only if /product or /system is the expected major and minor version
5353
check_prereq() {
5454
# If there is no build.prop file the partition is probably empty.
55-
if [ ! -r /product/etc/build.prop ]; then
55+
if [ ! -r /product/etc/build.prop ] && [ ! -r /system/build.prop ]; then
5656
echo "Backup/restore is not possible. Partition is probably empty"
5757
return 1
5858
fi
59-
if ! grep -q "^ro.lineage.version=$V.*" /product/etc/build.prop; then
59+
if ! grep -q "^ro.lineage.version=$V.*" /product/etc/build.prop /system/build.prop; then
6060
echo "Backup/restore is not possible. Incompatible ROM version: $V"
6161
return 2
6262
fi

0 commit comments

Comments
 (0)