OSDN Git Service

stop bluetooth service while VTS test is running
authorKeun Soo Yim <yim@google.com>
Mon, 24 Apr 2017 21:49:30 +0000 (14:49 -0700)
committerKeun Soo Yim <yim@google.com>
Wed, 26 Apr 2017 23:32:14 +0000 (16:32 -0700)
Test: run VTS HAL BT test
Bug: 37153328
Change-Id: I615d96daff496096122cd18158c205073f4623a6
(cherry picked from commit 1965f73bacbb1cd937f97149b29583edb65c2c99)

bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc

index 0f76c39..47cc13e 100644 (file)
@@ -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