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

Unverified Commit 1022c6bc authored by Rashed Abdel-Tawab's avatar Rashed Abdel-Tawab
Browse files

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

Change-Id: I90d5a86bb943f137a44e70be508ee6efb0c77ed8
parent 09e6fcab
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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