build_deploy.sh 743 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash -e
  2. # To see logs after deploy run: $ HWCLOG=1 TESTDEV=<DEV> ./build_deploy.sh
  3. [ -z "$TESTDEV" ] && echo "Run $ TESTDEV=<Your lunch target> ./build_deploy.sh" && false
  4. cd ../..
  5. . build/envsetup.sh
  6. lunch $TESTDEV
  7. cd -
  8. mm
  9. adb root && adb remount && adb sync vendor
  10. adb shell stop
  11. adb shell stop vendor.hwcomposer-2-1 && adb shell start vendor.hwcomposer-2-1 || true
  12. adb shell stop vendor.hwcomposer-2-2 && adb shell start vendor.hwcomposer-2-2 || true
  13. adb shell stop vendor.hwcomposer-2-3 && adb shell start vendor.hwcomposer-2-3 || true
  14. adb shell stop vendor.hwcomposer-2-4 && adb shell start vendor.hwcomposer-2-4 || true
  15. [ $HWCLOG -eq "1" ] && adb logcat -c
  16. adb shell start
  17. [ $HWCLOG -eq "1" ] && adb logcat | grep -i hwc