push-update: Don't leave adb in root mode

Change-Id: I90d5a86bb943f137a44e70be508ee6efb0c77ed8
This commit is contained in:
Rashed Abdel-Tawab
2018-07-26 16:47:12 -04:00
parent 09e6fcab06
commit 1022c6bcd1
+3
View File
@@ -51,3 +51,6 @@ adb shell "killall org.lineageos.updater 2>/dev/null"
adb shell "sqlite3 /data/data/org.lineageos.updater/databases/updates.db" \
"\"INSERT INTO updates (status, path, download_id, timestamp, type, version, size)" \
" VALUES ($status, '$zip_path_device', '$id', $timestamp, '$type', '$version', $size)\""
# Exit root mode
adb unroot