backuptool: Take into account new location for system default props
* System default props defined using PRODUCT_SYSTEM_DEFAULT_PROPERTIES are stored into /system/etc/prop.default, so that's the location where ro.lineage.version prop needs to be checked now. Although, fallback to the old location to allow sucessful upgrades. Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617
This commit is contained in:
committed by
Rashed Abdel-Tawab
parent
b6fb3e159a
commit
1022cc7c50
@@ -34,7 +34,7 @@ check_prereq() {
|
||||
if [ ! -r /system/build.prop ]; then
|
||||
return 0
|
||||
fi
|
||||
if ( ! grep -q "^ro.lineage.version=$V.*" /system/build.prop ); then
|
||||
if [ ! grep -q "^ro.lineage.version=$V.*" /system/etc/prop.default /system/build.prop ]; then
|
||||
echo "Not backing up files from incompatible version: $V"
|
||||
return 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user