diff options
author | Chris Sarbora <sarbs@cyngn.com> | 2015-06-03 17:25:30 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-09 17:10:14 -0700 |
commit | fec47be9650cdb1fc6815ac5f8df8e6c4aac2478 (patch) | |
tree | 36d178fbbe8792f65eeb15cce5dca48b41377116 /envsetup.sh | |
parent | 0780f2f2b4bd515ebaca815ef6c3d2df4d5311c5 (diff) | |
download | build-fec47be9650cdb1fc6815ac5f8df8e6c4aac2478.zip build-fec47be9650cdb1fc6815ac5f8df8e6c4aac2478.tar.gz build-fec47be9650cdb1fc6815ac5f8df8e6c4aac2478.tar.bz2 |
Allow dopush to load binaries onto the "wrong" device
* Lets solitary projects be built+pushed quickly even without a full build
* Affects mmp, mmmp, mkap as well
Change-Id: I53594bcbece9f9458d28c3ea930453c14df95fe8
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index 9a49eb3..6eb9734 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -2151,7 +2151,7 @@ function dopush() echo "Device Found." fi - if (adb shell cat /system/build.prop | grep -q "ro.cm.device=$CM_BUILD"); + if (adb shell cat /system/build.prop | grep -q "ro.cm.device=$CM_BUILD") || [ "$FORCE_PUSH" == "true" ]; then # retrieve IP and PORT info if we're using a TCP connection TCPIPPORT=$(adb devices | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+[^0-9]+' \ |