aboutsummaryrefslogtreecommitdiff
path: root/build_deploy.sh
blob: ef25e5c6ea54b1878f77ec206da0b25745098031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash -e

# To see logs after deploy run: $ HWCLOG=1 TESTDEV=<DEV> ./build_deploy.sh

[ -z "$TESTDEV" ] && echo "Run $ TESTDEV=<Your lunch target> ./build_deploy.sh" && false

cd ../..
. build/envsetup.sh
lunch $TESTDEV
cd -

mm

adb root && adb remount && adb sync vendor

adb shell stop
adb shell stop vendor.hwcomposer-2-1 && adb shell start vendor.hwcomposer-2-1 || true
adb shell stop vendor.hwcomposer-2-2 && adb shell start vendor.hwcomposer-2-2 || true
adb shell stop vendor.hwcomposer-2-3 && adb shell start vendor.hwcomposer-2-3 || true
adb shell stop vendor.hwcomposer-2-4 && adb shell start vendor.hwcomposer-2-4 || true

[ $HWCLOG -eq "1" ] && adb logcat -c

adb shell start

[ $HWCLOG -eq "1" ] && adb logcat | grep -i hwc