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 7cd ../.. 8. build/envsetup.sh 9lunch $TESTDEV 10cd - 11 12mm 13 14adb root && adb remount && adb sync vendor 15 16adb shell stop 17adb shell stop vendor.hwcomposer-2-1 && adb shell start vendor.hwcomposer-2-1 || true 18adb shell stop vendor.hwcomposer-2-2 && adb shell start vendor.hwcomposer-2-2 || true 19adb shell stop vendor.hwcomposer-2-3 && adb shell start vendor.hwcomposer-2-3 || true 20adb shell stop vendor.hwcomposer-2-4 && adb shell start vendor.hwcomposer-2-4 || true 21 22[ $HWCLOG -eq "1" ] && adb logcat -c 23 24adb shell start 25 26[ $HWCLOG -eq "1" ] && adb logcat | grep -i hwc 27