Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1022cc7c authored by Bruno Martins's avatar Bruno Martins Committed by Rashed Abdel-Tawab
Browse files

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
parent b6fb3e15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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