[Q] How to hook into Bluetooth calls - Xposed Framework Development

Hi Everyone,
i have an app which is calling BluetoothAdapter.getDefaultAdapter().getAddress() but the application crashes.
Looking with logcat i see a NullPointerException after that call. I guess because the device does not have a bluetooth adapter and thus returning null.
Now, the question is: is it possible to intercept both calls which means getDefaultAdapter() and getAddress() in order so getAddress can return just a random mac string?
System info: android 6.0.1
Many thanks

Related

Faria and Bluetooth with AUDI Handsfree carkit

I have installed the Faria ROM on my Hermes and I can tell I am quite happy with it. Only thing I can't get to work is to use my Hermes with my AUDI built in handsfree carkit. I am able to get connected with it and I am also able to do phone calls, only thing is that there is no access to my phonebook, I also have tried to set the bluetooth to allow remot sim access, but still doesn't work. Does anybody know if there is a nweer bluetooth driver out there? Will be happy for any suggestion.
Thanks
Duke
I have Chryslers U-Connect and it accesses my phonebook I put into U-Connect. when connected , I have never been able to access my phonebook from my phone.
@pumpiron, sorry for the silly question, but what is U-connect and where would I get that from?
It comes with Chrysler Products. Check it out...http://www.jeep.com/crossbrand/uconnect/jeep/interface.html
Sorry to bring up this oldie, but I am now having this issue when trying to connect my bluetooth to my Kenwood radio. Downloading is extremely slow. These are the things I used to be able to do before I flash my Hermes with a new WinMo 6.5 ROM:
1. Dial a number through the radio. I now have to dial from the phone.
2. Calls log is not being downloaded. The only thing that shows up is the contacts list.
3. Simultaneous actions. Before the flash I used to be able to dial a number while information was being taken from the phone to the radio. This is no longer the case. I have to wait until info is downloaded before being able to make a call. This also prevents me from answering incoming calls.
Is there anyway to check what version of bluetooth (if any) is on the phone or if there's some type of upgrade?
Appreciate any help.

[Q] Sync call lists via bluetooth

Hello everyone
I am running the Virtuous ROM and I'm having a small problem. Whenever I try to connect to my Kenwood car stereo (Parrot bluetooth hands-free system, I think) I can make and receive calls just fine, only the call lists don't get synced.
I might be wrong, but doesn't one usually have to give the hands-free permission to do that first? Interestingly enough, the two devices are pairing without any kind of password whatsoever. I find this rather strange and an FTP server aside, I haven't found many options to adjust in the bluetooth settings.
Am I missing something obvious here?
Regards and thank you.
Anybody? Anything?

[Q] Android Bluetooth Phone Book

Hello all,
I'm trying to get my G2 paired up properly with my new bluetooth kit for my VW. My car had bluetooth before and everything worked fine. I upgraded to a new version that has the ability for rSAP (although I'm not currently using it) or HFP. Now, I'm having a ton of issues with PBAP.
When I pair my phone to the car, a notification appears on the phone asking me if I want to give permission for PBAP. If I ignore it, all of my contacts transfer without issue. If I give PBAP permission, no contacts with email addresses transfer (over half of my phone book).
My questions are:
If PBAP does NOT have permission, what protocol is the phone using to send the contacts to my car's radio?!
Is there a way on the phone to check what has PBAP permission?
Thanks in advance!
Oh, and I'm currently (this minute) running Cyanogen 7.0.3 fresh so I can ignore the PBAP since I can't find a way to remove previously accepted PBAP pairs.
Bump! I'm thinking I need the smarts of a ROM developer to help out with this!

[Q] Car bluetooth and Desire - Fatal exception

Dear all,
My HTC Desire is now 15 months old, and still works as new. No, better than new since it's rooted and faster.
Coming to the problems:
My car has a bluetooth feature to stream music from the phone, and to take and make calls. Bluetooth music streaming works perfectly, and I can skip songs using the car controls.
I am facing the following issues with the "Phone Connect" feature when I pair the Desire:
After any and every incoming or outgoing call is completed, I get a pop up on the screen which says "Fatal Exception..." and I can only force close from here. When I force close, the signal strength icon shows a cross and all connectivity is lost for sometime, including BT: car says "phone disconnected". After a while the signal strength comes back and BT can be reconnected.
So basically I have to repeat this process everytime I make or answer a call via the car BT feature. Needless to say, it's a PITA.
I am guessing this is a problem to do with the radio or kernel of the phone. Not sure which. Please confirm this, and guide me to a radio or kernel file which may solve this issue.
My second problem has to do with the phonebook feature of the car. It can pull the contacts, the recently dialled numbers, recently received numbers, and missed calls. Only in the Desire it doesn't.
The phonebook feature can only see the contacts in the SIM card.
The recently dialled, received, and missed calls don't work. Numbers only show up on the car list if I have made/answered/missed a call while connected to the car BT.
The only feature that works as it should is redial.
As I am told, all Nokia models work perfectly on the same car model, and since we own a 'smart'phone, not to mention an Android, we should be able to get it to work however we want it to.
Any fixes for this one?
Thanks in advance.
PS. If you want the exact error message thrown by the phone after taking/making a call, I can write it down and get back to you afterwards.
BUMP!
Please help, guys!

[Q] Yet another PA 3.1 BT issue

Hi,
I can't write at the developers forum, because I'm still under 10 posts.
So I ask my question here.
I am running ParanoidAndroid 3.15. I came from clean 3.1 with BT fix on my Samsung Galaxy Nexus.
I can connect my phone to my car via BT and all the numbers are copied to the car, so I can scroll them on the display and when there is an incoming call, I can see the wright name.
But I am not able to answer the call with the cars interface, so I need to accept it manually on the phone. Anyway it is transfered to the cars sound system correctly.
Although I can scroll the numbers on the cars display, I am also not able to make a call from there. The phone does not react, so I need to call by using the phones address book.
Does anyone have similar problems? Or does anyone have an idea how to fix it?

Categories

Resources