[BRAINSTORMING] What could be wrong w/ bluetooth & audio on JB...

Search This thread

pm2gonzales

Senior Member
Oct 16, 2011
210
21
Here comes the Skype fix! This also solves using microphone and speaker parallelly. The fix is actually using the stock libaudio from Galaxy Tab 10.1 and adding the necessary modifications to libmedia and libaudioflinger. Voice calls work fine.
Note: These libs have the Samsung audio bug! Sometimes volume settings are a bit weird, even though I have enabled the patch. Be aware of this.

Link: http://www.mediafire.com/?49u6ua55kbr1j6b

Thanks Adam, gonna try this out!
 

soadzoor

Senior Member
Sep 8, 2012
229
86
Here comes the Skype fix! This also solves using microphone and speaker parallelly. The fix is actually using the stock libaudio from Galaxy Tab 10.1 and adding the necessary modifications to libmedia and libaudioflinger. Voice calls work fine.
Note: These libs have the Samsung audio bug! Sometimes volume settings are a bit weird, even though I have enabled the patch. Be aware of this.

Link: http://www.mediafire.com/?49u6ua55kbr1j6b

you are awesome! skype now works with videochat option! The only issue so far is that I cannot change the speaker to the earpiece to use instead. neither in viber. anyone has a solution for this?
 

tonyp

Inactive Recognized Developer
Feb 3, 2011
5,019
34,902
bubor contacted me via PM asking about the bluedroid -> bluez port which I recently did for my CM10.1 LG Optimus 2x ROM (Tegra2 as well).

I will answer it here publically to help as many devs on your phone as possible :)

I had been in contact with Andrei Emeltchenko who managed to properly port bluez for his company.
After my mail he kindly asked for permission to release the sources and published it completely at: http://gitorious.org/android-bluez
You can fork most repos from my Github profile - there's everything except frameworks/base and packages/apps/Settings, which aren't published.

With bluez bluetooth should work exactly the same as on Android 4.1!
Hope this information will help you to get bluetooth rocking on your device as well :good: :highfive:


Edit: of course you need to adapt your device tree to bluez as well.
Here's the commit where I did it for my device:
https://github.com/tonypp/android_d...mmit/b767cdbef5e262daf01d3bb38b13ab01d2cbc18a
You just need to restore the CM10 bluetooth stuff and add the bluetooth packages to the makefile.
 
Last edited:

spyke555

Senior Member
Oct 25, 2007
149
242
Montreal
Here comes the Skype fix! This also solves using microphone and speaker parallelly. The fix is actually using the stock libaudio from Galaxy Tab 10.1 and adding the necessary modifications to libmedia and libaudioflinger. Voice calls work fine.
Note: These libs have the Samsung audio bug! Sometimes volume settings are a bit weird, even though I have enabled the patch. Be aware of this.

Link: http://www.mediafire.com/?49u6ua55kbr1j6b

Thanks Adam77Root!

Can you tell me which sources you used for this? Finding 3 different versions of the GT-10.1 (not counting the 10.1v) and Samsung has a ton of ICS sources for each. Or is this a github repo?

Thanks!
 

Adam77Root

Inactive Recognized Developer
Jul 3, 2012
2,521
11,117
@tonyp: Do you have any idea about fixing Bluetooth A2DP? Coz BT works fine with the new 4.2 method too, only A2DP is broken. AFAIK it was broken on CM10 too (I don't have any BT headsets to test.). Should I just try the proprietary libs?
@spyke555: I just downloaded a stock rom of GT10.1 and extracted the necessary libraries from it.

Sent from my CM10.1-powered GT-I9103
 

yohan4ws

Senior Member
Oct 23, 2012
532
183
Calgary
@tonyp: Do you have any idea about fixing Bluetooth A2DP? Coz BT works fine with the new 4.2 method too, only A2DP is broken. AFAIK it was broken on CM10 too (I don't have any BT headsets to test.). Should I just try the proprietary libs?
@spyke555: I just downloaded a stock rom of GT10.1 and extracted the necessary libraries from it.

Sent from my CM10.1-powered GT-I9103

I can confirm that bluetooth was ONLY working in GB and ICS (4.0.1). We never had a fully working Bluetooth with HSP (AFAIK A2DP was working...) When using HSP I can hear people OK, but people can't hear me.
 

tonyp

Inactive Recognized Developer
Feb 3, 2011
5,019
34,902
@tonyp: Do you have any idea about fixing Bluetooth A2DP? Coz BT works fine with the new 4.2 method too, only A2DP is broken. AFAIK it was broken on CM10 too (I don't have any BT headsets to test.). Should I just try the proprietary libs?
@spyke555: I just downloaded a stock rom of GT10.1 and extracted the necessary libraries from it.

Oh I see, then the situation is different on your device.
We got a fully working BT on 4.1 - it did work with 4.2 as well but when using A2DP the sound was "accellerating" (3 times as fast as it should be).
I tried loads of different bluedroid configs but didn't find a fix, so I decided to research about replacing bluedroid with bluez, where everything did (and now does) work.

We're using proprietary blobs, but the situation will be totally different for you I guess.

If you wanna compare, here's our device tree:
https://github.com/CyanogenMod/android_device_lge_star-common
https://github.com/CyanogenMod/android_device_lge_p990
 

bubor

Senior Member
Feb 7, 2013
697
1,433
Oh I see, then the situation is different on your device.
We got a fully working BT on 4.1 - it did work with 4.2 as well but when using A2DP the sound was "accellerating" (3 times as fast as it should be).
I tried loads of different bluedroid configs but didn't find a fix, so I decided to research about replacing bluedroid with bluez, where everything did (and now does) work.

We're using proprietary blobs, but the situation will be totally different for you I guess.

If you wanna compare, here's our device tree:
https://github.com/CyanogenMod/android_device_lge_star-common
https://github.com/CyanogenMod/android_device_lge_p990

My bad, I'm not a experts, I only try everything, and maybe I've found something, or just learn. This is my first android phone. I read all tegra 2 device forums.
I asked you PM, because I think there some change in bluez package's source code, what I downloaded from samsung.
Anyway I'm more exciting with porting bluez to cm10.1, I dont care waste time, while I'm pretty sure I couldnt fix it.
I'm sorry, if I made fake hope, or more work to anyone.
 

tonyp

Inactive Recognized Developer
Feb 3, 2011
5,019
34,902
My bad, I'm not a experts, I only try everything, and maybe I've found something, or just learn. This is my first android phone. I read all tegra 2 device forums.
I asked you PM, because I think there some change in bluez package's source code, what I downloaded from samsung.
Anyway I'm more exciting with porting bluez to cm10.1, I dont care waste time, while I'm pretty sure I couldnt fix it.
I'm sorry, if I made fake hope, or more work to anyone.

You have nothing to apologize for. xda is about development and sharing.
For one development-related PM like yours I get a dozen noob questions. :D

So don't worry, what you're doing here is what xda is about unlike the "how to make my phone cool" kids which are flooding the forums :good:
 

amppcguru

Senior Member
Sep 11, 2012
316
42
Stowe, VT
Amazon Fire TV
Moto G4 Plus
Since installing the Skype patch whenever i try to make a call the dialer crashes saying "unfortunately contacts has stopped" ok
I've tried it on cm10.1, Carbon Rom & Pacrom, all with same results.


Sent from my Rooted Samsung SGH-i927 Captivate Glide
Running @ndroid JB 4.2.2 PACrom & TWRP 2.4.4.0 using xda-dev app.
 
Last edited:

yohan4ws

Senior Member
Oct 23, 2012
532
183
Calgary
Since installing the Skype patch whenever i try to make a call the dialer crashes saying "unfortunately contacts has stopped" ok
I've tried it on cm10.1, Carbon Rom & Pacrom, all with same results.

I'm assuming you've completed a full system wipe each time ?

Are you using Titanium backup at all ? Have you fresh DL Skype from Play Store ?

I had issues w/ dialer & contacts when I first installed CM10.1 M3 when I recovered my call log from Titanium, what I did was wiped the call log and data from settings/apps ... I may have had to delete the data under Titanium as well. When you do this, for troubleshooting purposes, disable sync from your gmail account so the contacts don't download.

Just some ideas for you to try, I haven't attempted the skype patch yet.
 
  • Like
Reactions: amppcguru

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    !!!! :))

    Well, here it is. The module needs to be enabled in Xposed Framework.

    I can't say how thankful I am! :highfive: :good: :victory: I don't know if you're aware of it, but it solved all of our audio issues (I mean there's no need for the manual workaround either! I thought it has to be implemented in phone.apk..)

    So guyz! remember to thank Adam, and update the OP, we have a solution at last! :)

    EDIT: so I write down the steps below to fix the audio issue (of course do a backup and stuff, and I'm not responsible for any damage, blabla..)
    1. Download the attached stocklibaudio.zip to your phone (it's the same as you can find in Adam's fix, but I removed the framework-res.apk from it, cause it messes up the UI)
    2. Download the attached XposedInstaller_2.1.4.apk and install it to your phone.
    3. Download the attached StockAudio-release.apk and install it as well.
    4. Open the xposed installer from the appdrawer, press "install/update", grant superuser for it forever. Then check the "StockAudio[1.0]" from the modules window. Change back to framework window, and press reboot.
    5. Hold volume down when rebooting the phone to enter recovery. Flash the stocklibaudio.zip
    6. Reboot again, and enjoy :)
    10
    Well, here it is. The module needs to be enabled in Xposed Framework.
    10
    So I have repacked audio libs from stock ICS and it seems to be working quite well. It needs to be adapted to your frameworks, so I have also posted the method and all the patches that have been used. spyke555 or anyone having the build environment set up can come up with a package that includes the fixes.
    Link: http://xdaforums.com/showpost.php?p=40762738&postcount=317
    10
    Skype fix

    Here comes the Skype fix! This also solves using microphone and speaker parallelly. The fix is actually using the stock libaudio from Galaxy Tab 10.1 and adding the necessary modifications to libmedia and libaudioflinger. Voice calls work fine.
    Note: These libs have the Samsung audio bug! Sometimes volume settings are a bit weird, even though I have enabled the patch. Be aware of this.

    Link: http://www.mediafire.com/?49u6ua55kbr1j6b
    8
    bubor contacted me via PM asking about the bluedroid -> bluez port which I recently did for my CM10.1 LG Optimus 2x ROM (Tegra2 as well).

    I will answer it here publically to help as many devs on your phone as possible :)

    I had been in contact with Andrei Emeltchenko who managed to properly port bluez for his company.
    After my mail he kindly asked for permission to release the sources and published it completely at: http://gitorious.org/android-bluez
    You can fork most repos from my Github profile - there's everything except frameworks/base and packages/apps/Settings, which aren't published.

    With bluez bluetooth should work exactly the same as on Android 4.1!
    Hope this information will help you to get bluetooth rocking on your device as well :good: :highfive:


    Edit: of course you need to adapt your device tree to bluez as well.
    Here's the commit where I did it for my device:
    https://github.com/tonypp/android_d...mmit/b767cdbef5e262daf01d3bb38b13ab01d2cbc18a
    You just need to restore the CM10 bluetooth stuff and add the bluetooth packages to the makefile.