commit | abb45a5542fedd2a7c587aa91402b21f606bc259 | [log] [tgz] |
---|---|---|
author | Tao Bao <[email protected]> | Wed Oct 25 11:13:03 2017 -0700 |
committer | Tao Bao <[email protected]> | Wed Oct 25 21:09:25 2017 +0000 |
tree | 03955220412b2bb73fa38a0f2546df7ab4ab8624 | |
parent | d4c5debc65bb35ee61c2764bda059b7f307fd093 [diff] |
update_device.py: Handle the package push without 'adb root'. When using '--file' (and without '--no-push'), it tries to push the package to /data/ota_package/debug.zip. However, that's not allowed directly with 'adb push', unless by restarting adb with 'adb root'. This CL works around the issue by pushing the file to /data/local/tmp first, then moving it over to the desired place. Test: update_device.py --file <marlin-ota.zip> Change-Id: I608284cc90918fc01cf7584569d4d7d4165148ca