Enable HID Device Profile Service (1/2)
* Enable the HID device profile service. The service is implemented in
the native Bluetooth stack.
* Change the behavior of HidDevService.onUnbind(). It also unregisters
the app.
Bug: 63384609
Test: Build. Test with SL4A.
Change-Id: I185d52bcf3f74a9abfc9ed28259a0495c5f0f56e
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 26342c5..2f4e150 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -333,6 +333,14 @@
</service>
<service
android:process="@string/process"
+ android:name = ".hid.HidDeviceService"
+ android:enabled="@bool/profile_supported_hid_device">
+ <intent-filter>
+ <action android:name="android.bluetooth.IBluetoothHidDevice" />
+ </intent-filter>
+ </service>
+ <service
+ android:process="@string/process"
android:name = ".hdp.HealthService"
android:enabled="@bool/profile_supported_hdp">
<intent-filter>
@@ -386,12 +394,5 @@
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
- <service
- android:name = ".hid.HidDeviceService"
- android:enabled="@bool/profile_supported_hid_device">
- <intent-filter>
- <action android:name="android.bluetooth.IBluetoothHidDevice" />
- </intent-filter>
- </service>
</application>
</manifest>