1#!/bin/bash
2# Disable VHAL mode on userdebug and eng build.
3echo "Turning off Fake VHAL mode" \
4  && echo "restarting adb shell as root" \
5  && adb root \
6  && adb wait-for-device \
7  && adb shell rm /data/system/car/fake_vhal_config/ENABLE \
8  && echo "restarting adb shell" \
9  && adb shell stop \
10  && adb shell start \
11  && echo "waiting 10s for car service to start" \
12  && adb wait-for-device \
13  && sleep 10s \
14  && adb shell cmd car_service check-fake-vhal