From ce89d5816ff1a891bf3b701f471dc60c65d8ccbe Mon Sep 17 00:00:00 2001 From: Keun Soo Yim Date: Mon, 24 Apr 2017 14:49:30 -0700 Subject: [PATCH] stop bluetooth service while VTS test is running Test: run VTS HAL BT test Bug: 37153328 Change-Id: I615d96daff496096122cd18158c205073f4623a6 (cherry picked from commit 1965f73bacbb1cd937f97149b29583edb65c2c99) --- .../default/android.hardware.bluetooth@1.0-service.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc index 0f76c39f68..47cc13e3c3 100644 --- a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc +++ b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc @@ -3,3 +3,12 @@ service bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-service user bluetooth group bluetooth writepid /dev/stune/foreground/tasks + +on property:vts.native_server.on=1 && property:ro.build.type=userdebug + stop bluetooth-1-0 +on property:vts.native_server.on=1 && property:ro.build.type=eng + stop bluetooth-1-0 +on property:vts.native_server.on=0 && property:ro.build.type=userdebug + start bluetooth-1-0 +on property:vts.native_server.on=0 && property:ro.build.type=eng + start bluetooth-1-0