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

Commit 0b5f8d40 authored by Romain Hunault's avatar Romain Hunault Committed by Nishith Khanna
Browse files

vendor: Use android version for backuptools



Change-Id: Ib7681c1ca5be29e6472590290c9168ee8648a5b4
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
Signed-off-by: default avataralthafvly <althafvly@gmail.com>
parent 869dd12e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ export C=/tmp/backupdir
export SYSDEV="$(readlink -nf "$2")"
export SYSFS="$3"
export TMPDIR=/tmp
export V=23
export V=16

export ADDOND_VERSION=3

@@ -48,7 +48,7 @@ if [ ! -r $S/build.prop ]; then
  echo "Backup/restore is not possible. Partition is probably empty"
  return 1
fi
if ! grep -q "^ro.lineage.version=$V.*" $S/build.prop; then
if ! grep -q "^ro.build.version.release=$V.*" $S/build.prop; then
  echo "Backup/restore is not possible. Incompatible ROM version: $V"
  return 2
fi
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

export S=/system
export C=/postinstall/tmp/backupdir
export V=23
export V=16

export ADDOND_VERSION=3

@@ -56,7 +56,7 @@ if [ ! -r /system/build.prop ]; then
  echo "Backup/restore is not possible. Partition is probably empty"
  return 1
fi
if ! grep -q "^ro.lineage.version=$V.*" /system/build.prop; then
if ! grep -q "^ro.build.version.release=$V.*" /system/build.prop; then
  echo "Backup/restore is not possible. Incompatible ROM version: $V"
  return 2
fi