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

Commit 5ce398b7 authored by Romain Hunault's avatar Romain Hunault Committed by Abhishek Aggarwal
Browse files

vendor: Use android version for backuptools



Change-Id: Ib7681c1ca5be29e6472590290c9168ee8648a5b4
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent 8ad27869
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
export C=/tmp/backupdir
export SYSDEV="$(readlink -nf "$2")"
export SYSFS="$3"
export V=19.1
export V=12

export ADDOND_VERSION=3

@@ -47,7 +47,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=19.1
export V=12

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