Merge "envsetup.sh: partly fix syswrite"
This commit is contained in:
@@ -1069,7 +1069,7 @@ function qpid() {
|
|||||||
# Easy way to make system.img/etc writable
|
# Easy way to make system.img/etc writable
|
||||||
function syswrite() {
|
function syswrite() {
|
||||||
adb wait-for-device && adb root || return 1
|
adb wait-for-device && adb root || return 1
|
||||||
if [[ $(adb disable-verity | grep "reboot") ]]; then
|
if [[ $(adb disable-verity | grep -i "reboot") ]]; then
|
||||||
echo "rebooting"
|
echo "rebooting"
|
||||||
adb reboot && adb wait-for-device && adb root || return 1
|
adb reboot && adb wait-for-device && adb root || return 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user