Roman Stratiienko | 903a372 | 2022-01-13 11:10:00 +0200 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | |
| 3 | # To see logs after deploy run: $ HWCLOG=1 TESTDEV=<DEV> ./build_deploy.sh |
| 4 | |
| 5 | [ -z "$TESTDEV" ] && echo "Run $ TESTDEV=<Your lunch target> ./build_deploy.sh" && false |
| 6 | |
| 7 | cd ../.. |
| 8 | . build/envsetup.sh |
| 9 | lunch $TESTDEV |
| 10 | cd - |
| 11 | |
| 12 | mm |
| 13 | |
| 14 | adb root && adb remount && adb sync vendor |
| 15 | |
| 16 | adb shell stop |
Roman Stratiienko | dfac456 | 2022-01-20 17:12:40 +0200 | [diff] [blame] | 17 | adb shell stop vendor.hwcomposer-2-1 && adb shell start vendor.hwcomposer-2-1 || true |
| 18 | adb shell stop vendor.hwcomposer-2-2 && adb shell start vendor.hwcomposer-2-2 || true |
| 19 | adb shell stop vendor.hwcomposer-2-3 && adb shell start vendor.hwcomposer-2-3 || true |
| 20 | adb shell stop vendor.hwcomposer-2-4 && adb shell start vendor.hwcomposer-2-4 || true |
Roman Stratiienko | 903a372 | 2022-01-13 11:10:00 +0200 | [diff] [blame] | 21 | |
| 22 | [ $HWCLOG -eq "1" ] && adb logcat -c |
| 23 | |
| 24 | adb shell start |
| 25 | |
| 26 | [ $HWCLOG -eq "1" ] && adb logcat | grep -i hwc |