envsetup: Clean up for install[boot|recovery]

* Remove the files from device after installation

Change-Id: I52dc60c22abde972a066b879b3a74459261966e5
This commit is contained in:
Michael W
2018-01-14 18:46:02 +01:00
committed by Michael Bestas
parent f017e36e65
commit 2e203941cc

View File

@@ -370,6 +370,7 @@ function installboot()
adb shell chmod 644 /system/lib/modules/*
fi
adb shell dd if=/cache/boot.img of=$PARTITION
adb shell rm -rf /cache/boot.img
echo "Installation complete."
else
echo "The connected device does not appear to be $LINEAGE_BUILD, run away!"
@@ -410,6 +411,7 @@ function installrecovery()
then
adb push $OUT/recovery.img /cache/
adb shell dd if=/cache/recovery.img of=$PARTITION
adb shell rm -rf /cache/recovery.img
echo "Installation complete."
else
echo "The connected device does not appear to be $LINEAGE_BUILD, run away!"