Bluetooth not working on Nexus Player (fugu) with AOSP build

1,366 views
Skip to first unread message

Jesus Sanchez-Palencia

unread,
Dec 12, 2014, 12:01:19 PM12/12/14
to android-...@googlegroups.com
Hi all,

I have built and flashed the AOSP for fugu and I'm not able to enable Bluetooth. Is this a known issue?

I'm using a fugu LRX21V, I chose full_fugu-userdebug from lunch, I have added all the proprietary drivers to vendor/ and the build seemed to complete successfully. I then performed a fastboot flashall -w and the device boots fine. However, from the logcat I can see there are issues when the Bluetooth service is being started.

I/SystemServer(  451): Bluetooth Manager Service
D/BluetoothManagerService(  451): Loading stored name and address
D/BluetoothManagerService(  451): Stored bluetooth Name=null,Address=null
(...)
D/BluetoothManagerService(  451): Auto-enabling Bluetooth.
D/BluetoothManagerService(  451): Retrieving Bluetooth Adapter name and address...
D/BluetoothManagerService(  451): getNameAndAddress(): mBluetooth = null mBinding = false
D/BluetoothManagerService(  451): Message: 1
D/BluetoothManagerService(  451): MESSAGE_ENABLE: mBluetooth = null
E/BluetoothManagerService(  451): Fail to bind to: Intent { act=android.bluetooth.IBluetooth }
D/BluetoothManagerService(  451): Message: 200
D/BluetoothManagerService(  451): MESSAGE_GET_NAME_AND_ADDRESS
D/BluetoothManagerService(  451): Binding to service to get name and address
E/BluetoothManagerService(  451): Fail to bind to: Intent { act=android.bluetooth.IBluetooth }


I have also installed the TvSettings package and tried to use to use the DevicePairing activity (adb shell am start -n com.android.tv.settings/com.android.tv.settings.accessories.AddAccessoryActivity) and I can see on logcat:

D/aah.InputPairer( 2215): Bluetooth not enabled, delaying startup.
D/aah.InputPairer( 2215): Bluetooth not enabled, delaying startup.


Before all that I verified that with the factory image on the same Nexus Player BT was able to discover BT devices ok. WiFi is working fine.


Does anyone know what I can be possibly missing here?


Best regards,
jesus



Jesus Sanchez-Palencia

unread,
Dec 15, 2014, 8:07:43 AM12/15/14
to android-...@googlegroups.com
Hi,


On Friday, 12 December 2014 15:01:19 UTC-2, Jesus Sanchez-Palencia wrote:
Hi all,

I have built and flashed the AOSP for fugu and I'm not able to enable Bluetooth. Is this a known issue?
 

I have re-tried with an updated android-5.0.0_r7.0.1 build and the problem persists. I have checked hardware/broadcom/libbt/include/vnd_fugu.txt and it says "BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyMFD0"", which seems fine. Also, I checked device/asus/fugu/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml and I can see that <bool name="def_wifi_on">true</bool>, so it should be enabled by default on this build.

I'm running out of ideas here... I had another look at the logcat and I see something related to the Bluetooth.apk that caught my attention:

I/PackageManager(  450): /system/app/Bluetooth changed; collecting certs
I/PackageManager(  450): Failed to recover certificates for com.android.bluetooth: null
W/PackageManager(  450): Failed to parse /system/app/Bluetooth: Signature mismatch for shared user : SharedUserSetting{156f7f31 android.uid.bluetooth/1002}

Since I don't see this on the official product image, I believe that might be the problem. However, I'm failing to see how the certificates can be different since I'm building the entire AOSP image from scratch.

Any ideas here will be highly appreciated!

Regards,
jesus


Message has been deleted

ruzz mo

unread,
Jan 21, 2015, 2:39:08 PM1/21/15
to android-...@googlegroups.com
Instead of finding the signature issue, I've temporarily bypassed this with:

diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index 3e1647e..eef6475 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -2825,6 +2825,11 @@ public class PackageManagerService extends IPackageManager.Stub {
      */
     private int compareSignaturesCompat(PackageSignatures existingSigs,
             PackageParser.Package scannedPkg) {
+
+       if (true) {
+            return PackageManager.SIGNATURE_MATCH;
+       }
+
         if (!isCompatSignatureUpdateNeeded(scannedPkg)) {
             return PackageManager.SIGNATURE_NO_MATCH;
         }


mm from frameworks/base/services and push services.jar to /system/framework/ reboot.

Gabriel Gomez

unread,
Jul 29, 2017, 7:35:48 PM7/29/17
to Android Building
I know this is truly old but i have the same problem in marshmallow and Nougat. Only Bluetooth fails with signature mismatch. 
It works with this dirty hack but we shouldn't use it....anyone solve this problem?
Reply all
Reply to author
Forward
0 new messages