README.txt
1Bluedroid Test Application
2==========================
3The test application provides a small console shell interface that allows
4access to the Bluetooth HAL API library though ASCII commands. This is similar
5to how the real JNI service would operate. The primary objective of this
6application is to allow Bluetooth to be put in DUT Mode for RF/BB BQB test purposes.
7
8This application is mutually exclusive with the Java based Bluetooth.apk. Hence
9before launching the application, it should be ensured that the Settings->Bluetooth is OFF.
10
11This application is built as 'bdt' and shall be available in '/system/bin/bdt'
12
13Limitations
14===========
151.) Settings->Bluetooth must be OFF for this application to work
162.) Currently, only the SIG 'HCI Test Mode' commands are supported. The vendor
17specific HCI test mode commands to be added.
18
19Usage instructions
20==================
21The following section describes the various commands and their usage
22
23Launching the test application
24==============================
25$ adb shell
26root@android:/ # /system/bin/bdt
27set_aid_and_cap : pid 1183, uid 0 gid 0
28:::::::::::::::::::::::::::::::::::::::::::::::::::
29:: Bluedroid test app starting
30Loading HAL lib + extensions
31HAL library loaded (Success)
32INIT BT
33HAL REQUEST SUCCESS
34
35Enabling Bluetooth
36==================
37>enable
38ENABLE BT
39HAL REQUEST SUCCESS
40>ADAPTER STATE UPDATED : ON
41
42Enabling Test Mode (Bluetooth must be enabled for this command to work)
43======================================================================
44>enable_test_mode
45ENABLE BT TEST MODE
46HAL REQUEST SUCCESS
47>
48
49Disabling Test Mode
50===================
51>disable_test_mode
52DISABLE BT TEST MODE
53HAL REQUEST SUCCESS
54
55Exit the test application
56=========================
57>quit
58shutdown bdroid test app
59Unloading HAL lib
60HAL library unloaded (Success)
61:: Bluedroid test app terminating
62
63Help (Lists the available commands)
64===================================
65>help
66help lists all available console commands
67
68quit
69enable :: enables bluetooth
70disable :: disables bluetooth
71enable_test_mode :: enters bluedroid test mode
72disable_test_mode :: exits bluedroid test mode
73
74