yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] Andrewasth:
Ok! So I will patch the sources tomorrow and upload. Then I will test

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
Upload where? I wouldnt push them to github if you mean that, I didnt because I dont see any positive result...
[Sony Xperia P, U, Sola, Go] Andrewasth:
You tested it?

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
Of course. I wrote that a few pages back. I merged all changes from git to our bluez and kept Android 4.3 support, tested it and still the same problem. You asked for the rom, and I posted it plus the patches I made.

EDIT: there are other very interesting changes in bluez git today which I will test, so please dont commit my patches yet.
[Sony Xperia P, U, Sola, Go] 95A31:
I will do same on cm11 (if no bootloop) + bluez git. Tomorow i will build it
[Sony Xperia P, U, Sola, Go] areshinakya:
Ok, very latest git does not help. I tried to run everything as user bluetooth and failed yesterday. Just as if they read my mind they implemented dropping to uid 1002 (bluetooth) from root in bluetoothd. That needs permission fixes in our rc files. Some of them are in the now included in bluez init.bluetooth.rc which I include in init.rc.st-ericcson.rc.

So... it needed changes to our device git also, so I will push both repositories to githib now

[MENTION=5092285]Andrewasth[/MENTION]

You dont have to pull them to your repo, but I will send pull request, just in case you want it, you can reject if you like.

Remeber that you need both or nothing. ;)
[Sony Xperia P, U, Sola, Go] 95A31:
I ported your mod on CM11, there are some changes that I do not understand...
[Sony Xperia P, U, Sola, Go] areshinakya:
Then ask ;)

I hope you took the bluez patch from my git, the one I posted in the forum is one day older ;)

If you take the new one from my hardware git which I pushed 30 minutes ago you also need the changes from my device git (master branch/cm10.2).
[Sony Xperia P, U, Sola, Go] 95A31:
Yes of course from your git :)
[Sony Xperia P, U, Sola, Go] areshinakya:
I guess you also have the socket bug on cm11?
[Sony Xperia P, U, Sola, Go] 95A31:
Actually I have bootloop xD

EDIT: Anyway I have edited my local_manifest.xml (here) in order to use BlueZ git and actually i have this issue:

external/bluez/android/hal-bluetooth.c: In function 'handle_pin_request':
external/bluez/android/hal-bluetooth.c:235:3: error: too few arguments to function 'bt_hal_cbacks->pin_request_cb'

I am investigating :)

EDIT: Solved here
[Sony Xperia P, U, Sola, Go] areshinakya:
I played around some more with bluetooth and I could resolve the most evil socket errors

Failed listen: rfcomm_bind: Address already in use (98)

in bluez/android/socket.c by removing support for "Email Message Access" with a one-line patch,

I still get completely different socket errors for other services for another reason (I am too tired to explain in detail), the only services that seem to initialize properly without any socket error are:

OBEX Phonebook Access Server

OBEX Object Push

SMS/MMS Message Access

I dont know how to use them though.
[Sony Xperia P, U, Sola, Go] areshinakya:
Ok, I will try to summarize yesterdays research results about socket errors just in case someone wants to help and for my own reference :laugh:

There are three types of possible outcomes in bluez when services are registered from the java side.

1) it works

This is true for:

OBEX Phonebook Access Server

OBEX Object Push

SMS/MMS Message Access

The reason why this works is: bluez has its own build-in "profiles" for it. To be honest I dont have much knowledge about how bluetooth work, so I dont really know what a "profile" is, but I see the code that registers these profiles in bluez/android/socket.c

2) It fails early

This is true for

OBEX File Transfer

The reason why this fails is that we dont have a "profile".

We can see that in the code in bluez/android/socket.c:

profile = get_profile_by_uuid(uuid);
if (!profile) {
if (chan <= 0)
return HAL_STATUS_INVALID; <----- HERE WE FAIL

sec_level = BT_IO_SEC_MEDIUM;
} else {
chan = profile->channel;
sec_level = profile->sec_level;
}

3) It fails late with "bind: Address already in use (98)"

This is true for:

Email Message Access

Wow. This means we have a profile, I dont know where it comes from but passing the above code means we have it. My guess is somehow that it is possible to register profiles at runtime. I haved tracked who registered it but I could debug that also.

But later on in the code the bt_io_listen() calls create_io() in bluez/btio/btio.h which fails with "Address already in use".

My question now is: How much is SUPPOSED to work in bluez fro android. I am not talking about earlier attememts to plug the linux bluez in there, I am talking about the bluez for android as a bluedroid drop-in-replacement approach they are implementing in bluez/android/

It would be no surprise for me if OBEX File Transfer is not even supposed to work. Well, I dont know.
[Sony Xperia P, U, Sola, Go] areshinakya:
SUCCESS!

I was able to pair my Xperia U with my Galaxy Tab, and I was able to send a file via bluetooth from the Gallary in BOTH DIRECTIONS.

I dont know if this was luck, or if it will ever work again.

Yesterday it did not work with a friends iPhone. I guess by removing that crashy Email service, I got some degree of stability.

Headsets are still a problem, mine does not work.

I will build a new release which will be ready this evening, for you to do more tests with more devices.
[Sony Xperia P, U, Sola, Go] Andrewasth:
A2dp needs some more work to get headset compatibility. Congrats by the way

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
New build up, patches pushed to my github repos

cm-10.2-20140119-UNOFFICIAL-kumquat.zip

Changes:

- sync latest cm-10.2 (yes there were actually changes, whatever they did)

- Bluetooth works to some extend

- included Japanese IM (sorry for that guys, I need it)

About bluetooth:

- I was able to pair with another android device, also I was able to send files from the gallery by sharing them via bluetooth in both directions.

- I was not able to use my headset. It was not recognized as an audio device.

- Sometimes bluetooth crashes and wont turn on. I had this one when pairing with my headset and then pushing on it in the list of paired devices right after it. If that happens go to Settings->Apps->All and force kill Bluetooth. Now bluetooth will turn on again.

Please let me know if you could also pair and send files. And tell me what happens.
[Sony Xperia P, U, Sola, Go] Gava97:
First post updated

Thank you
[Sony Xperia P, U, Sola, Go] percy_g2:
what about tethering ?? Did you fix it . I see commit related to it ?
[Sony Xperia P, U, Sola, Go] Andrewasth:
Wifi tethering?
[Sony Xperia P, U, Sola, Go] Diego910:
It is

Enviado desde mi bq Aquaris 5 HD mediante Tapatalk
[Sony Xperia P, U, Sola, Go] Andrewasth:
It's working as it should ;)
[Sony Xperia P, U, Sola, Go] miaad:
WOW !!

Bluetooth file transfer is working properly

Thank you so much [MENTION=4125487]areshinakya[/MENTION] :good:

yes, wifi tether is working fine !
[Sony Xperia P, U, Sola, Go] ale467:
Some troubles with autorotation (latest build).. And I've ~100 MB free of ram

Inviato dal mio Xperia U con Tapatalk 4
[Sony Xperia P, U, Sola, Go] Gava97:
Since nightly1 there are Some graphic glitches
[Sony Xperia P, U, Sola, Go] mukul1233:
What about Wifi Deep Sleep issue? Still Present? Just Concerned because fixing it temporarily is an extra load on ram and battery (REGPON Wifi Lock)
[Sony Xperia P, U, Sola, Go] brunodems:
please upload the last kernel :)

someone could upload the link of the last kernel that works? which brings me the last zip cause bootloop: (
[Sony Xperia P, U, Sola, Go] Nathanael_Mtd:
CM10.2 - 19/01/2014 kernel > http://i4g.me/TGlac
[Sony Xperia P, U, Sola, Go] myawan:
I salute dedication & perseverance of all developers here (@Gava97, [MENTION=4125487]areshinakya[/MENTION], [MENTION=5265970]95A31[/MENTION], [MENTION=5092285]Andrewasth[/MENTION], [MENTION=4120742]munjeni[/MENTION], [MENTION=4913184]percy_g2[/MENTION], [MENTION=5264432]DroidModderXtreme[/MENTION])
[Sony Xperia P, U, Sola, Go] areshinakya:
As others already said it is fixed.

The reason why it does not show up in the changelog is that I only posted the latest changelog, but this was my 4th release on the thread

Here are the older three changelogs before the bluetooth fix release which is frontpaged as v8

cm-10.2-20131215-UNOFFICIAL-kumquat
- latest cm 10.2 (including new bootanimation, whisperpush)
- kernel 3.0.101

cm-10.2-20140111-UNOFFICIAL-kumquat
- latest cm 10.2
- wifi tethering

cm-10.2-20140111-UNOFFICIAL-kumquat-r2 (frontpaged as v7)
- latest cm11 kernel
- wifi power saving though rfkill when turned off
[Sony Xperia P, U, Sola, Go] Chotu90:
FM radio and usb otg works?
[Sony Xperia P, U, Sola, Go] Gava97:
FM radio no
[Sony Xperia P, U, Sola, Go] monioo:
Munjeni tried to fix it while we were on the CM9, AFAIK he couldn't because of completely missing fm sources. Nevertheless fixing of FM-radio has the lowest priority.
[Sony Xperia P, U, Sola, Go] Chotu90:
any chances the spirit radio might work?
[Sony Xperia P, U, Sola, Go] dasti555:
Can i have transparent status bar on this rom? Or it is only for 4.4+?
[Sony Xperia P, U, Sola, Go] Gava97:
You can have transparent status bar only if u mod systemui.apk yourself or look in themes and apps section probably there is some mods
[Sony Xperia P, U, Sola, Go] DroidModderXtreme:
Vogliamo gava RD !!! Ora !!!

Anyway,i'll try soon to sync and build slimbean 4.3.1 for who's interested to get a slim rom;)
[Sony Xperia P, U, Sola, Go] dasti555:
In CM11 is edited systemui.apk?

Anyway thanks.
[Sony Xperia P, U, Sola, Go] Gava97:
No, transparent status bar is a feature of android 4.4
[Sony Xperia P, U, Sola, Go] Gava97:
then it's not needed to edit it
[Sony Xperia P, U, Sola, Go] dasti555:
Yes i know it is feature of 4.4 but in first release (of 4.4) was not transparent. This is why i ask it. And i saw in 4.4 theard that something edit .. from true to false or from false to true. I dont know ..
[Sony Xperia P, U, Sola, Go] Nathanael_Mtd:
With last build I no longer have the problem of WiFi goes off when phone sleeping !

Anyone confirm ?

EDIT: Sorry, i don't confirm that finaly...
[Sony Xperia P, U, Sola, Go] Gava97:
In build.prop there's a line for low ram devices: ro.config.low_RAM

If u write true you will lose transparent status bar and some effects but you will "earn" some RAM, if u write false you will get effects and transparent status bar but you will lose some RAM

Anyone can confirm bluetooth is working?
[Sony Xperia P, U, Sola, Go] dasti555:
But ro.config.low_RAM is working only with 4.4? Because i cant find this line :/

Wait few minutes i will go test bluetooth.

I can't accept files and too i can't send files. Or it is too long what i dont use bluetooth and i'm idiot who dont know how do this.

But turn on/off is working. I was have too some FC.

But in this rom i can play BF4 as commander. (with little trick but is working) in 4.4 Carbon it was dont work

And (maybe) last thing. This rom have best translate to my language. Every thing what is in settings is translated. (In others rom are many features in english)
[Sony Xperia P, U, Sola, Go] areshinakya:
Bluetooth works for me (pairing, sending, receiving) with another android device on kitkat. Just tested again.

I use the same rom as the one I uploaded.

One guy confirmed it working and posted screenshots.

You need a video proof? ;)
[Sony Xperia P, U, Sola, Go] aca89:
Sound is distorted during a call, a lot of stuttering is present. Can anyone check if this is happening on their phone too?

Thanks
[Sony Xperia P, U, Sola, Go] percy_g2:
Good .... Happy to see more users involved in development in open source way and fixing the things :)
[Sony Xperia P, U, Sola, Go] claudd:
When wifi is on, the lockscreen require from 1 to 3 seconds to be displayed after press on/off button. When wifi is off and i use the mobile data there isn't lag in lockscreen.

Then i think that wifi goes off when screen goes off, but I'm not sure.
[Sony Xperia P, U, Sola, Go] Andrewasth:
When we have wifi direct and p2p this can be solvef

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] Marekino:
How to fix LEDBAR on CM roms?
[Sony Xperia P, U, Sola, Go] zeetwo-raj:
Bluetooth is not working for me

first time I turned on it does also visible to other devices but can't revive any file
[Sony Xperia P, U, Sola, Go] dasti555:
Today i try it again and i can send files.
[Sony Xperia P, U, Sola, Go] punkore:
is there any way to fix graphic glitches ???:confused:
[Sony Xperia P, U, Sola, Go] kantry123:
Disable H/w overlays in developer menu

also pls.s. don't spam here its dev thread..if u have any q go to q/a sec

regards

kantry123
[Sony Xperia P, U, Sola, Go] areshinakya:
bluez 5.14 is out.

The git version we are using is only a few commits behind 5.14, and I dont think it would fix anything for us. So it is not worth to release another build just because of that.

I will merge my git later, and also review the differences to upstream, because I cant be sure it the merges were done properly before I stepped in to help :p

(I know that pulling in the commits directly from upstream would be more clean, but with 10-20 commits per day it would pollute our history, so I will keep the batch merges)
[Sony Xperia P, U, Sola, Go] punkore:
Thank you SIR !!! and sorry about the spam :angel:
[Sony Xperia P, U, Sola, Go] areshinakya:
Ok merge complete. Also cleaned up some stuff to match upstream for further patches. pushed to my git.

I also reviewed all differences to upstream 5.14

- Android.mk files, seem ok.

- hciattach patched for our hardware, seems ok.

- ppoll() implementation inppoll.h which uses poll(), I am not sure if this is correct. Saw newer bionic from googles git has ppoll() support, not ours. I could patch that in *cough*
[Sony Xperia P, U, Sola, Go] 95A31:
Why you not use Bluez git?
[Sony Xperia P, U, Sola, Go] areshinakya:
Yes we should use bluetooth git, checkout the 5.14 tag and just patch it with our patch.

The reason is, that I just contribute to an existing project and I adapted to the way things are done, even though I do not agree ;)
[Sony Xperia P, U, Sola, Go] percy_g2:
we need to add cg2900 things everytime if we use there git and we need additional things for ST bt to fix A2DP
[Sony Xperia P, U, Sola, Go] 95A31:
This is sad... I will fix it in CM11

What about patches?
[Sony Xperia P, U, Sola, Go] percy_g2:
yeah we can , thats fine too .
[Sony Xperia P, U, Sola, Go] 95A31:
Sorry but I not update about bluetooth. What is the current situation? Something is working? There are errors ?
[Sony Xperia P, U, Sola, Go] areshinakya:
Bluetooth is partly working in my 20140119 build (called v8 in the OP)

At least with other android devices, pairing, receiving and sending files works.

Headsets do not work.

Sometimes bluetooth force closes, when trying to pair devices.

Some guys confirm it working, some say it does not work. For me it works, I would not have uploaded the build if it didnt.

All my changes are in my github.
[Sony Xperia P, U, Sola, Go] Andrewasth:
I don't know if bluez org is aware of our progress but they tried something for sockets and added some actions over bluedroid's. Have you tried reverting your patch or building again. There is a slight chance for getting closer to better bt functionality and a2dp support
[Sony Xperia P, U, Sola, Go] areshinakya:
They dont need to be aware of our progress, they are ahead of us. They use Android 4.4 AOSP and even build their bionic themselves because they need syscalls only present in the latest bionic git. Except ppoll() we dont really need them because IIRC the other new syscalls are only used in some debugging tools (which I disabled).

I am curious about the ppoll() wrapper (munjenis code?). I dont think it is correct. But I also dont know if this causes any trouble. Fact is we dont have ppoll() in Android 4.3's libc(bionic).

I have no patches in bluez, just the ones already in (by munjeni?) and the Android 4.3 support removal revert.

Today I reviewed all differences, and these are not much.

Reverting patches would just make it unusable. They are all needed to make it even compile.

I look at the bluez commits on a daily basis, they do a lot, do you know if they have a2dp working?
[Sony Xperia P, U, Sola, Go] brigio345:
For me Bluetooth doesn't work: it managed to pair with my PC running Linux mint, with a symbian phone and with another old phone (samsung s5230) but I couldn't share any file...

Edit: I tried another time and I managed to both send and receive files :good:
[Sony Xperia P, U, Sola, Go] Andrewasth:
For cm11, patches for now exist in hatdware repo. I have now idea if they have it working and I don't know

ps3 controllers use it to get paired and connected (I also don't understand why they are focusing on it). I don't know if we will have better luck on 4.4 (I haven't tried at all since the sources were causing unusable wifi but we need to fix OMX there for sure to make it more fuctional) but I surely want to try that on kitkat
[Sony Xperia P, U, Sola, Go] areshinakya:
I dont think it is was wise to move patches to hardware, because hardware should be shared among 4.3 and 4.4 (it should be compatible in its current state).

Patches for android are different in 10.2/11, and vendor has branches for 10.2/11that. Perfect.
[Sony Xperia P, U, Sola, Go] Andrewasth:
No. Patches shouldn't be the same for the two cm. The proprietary vendor only have 1 branch (on my github)
[Sony Xperia P, U, Sola, Go] areshinakya:
That is what I wrote. Read again. :)

And that's why I said it was not wise to move patches from device to hardware git.

hardware should be shared

Device has branches anyway and patches are different.

That's why they should have stayed in device.
[Sony Xperia P, U, Sola, Go] Andrewasth:
My fault. Well, we can move them back again I guess ;) it was moved to hardware because munjeni would only work on kitkat. Have you tested the new bt changes?

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] macabrocabral:
So anyone confirmed that wifi turns off when screen is off? I tried to search that problem but didnt find any answer. I changed some options but it doesnt work, everytime i activate the lockscreen, the wifi turns off and if i stay longer with screen off, I lose 2g signal. Dont know how to take a logcat with that, it doesnt show on catlog app.
[Sony Xperia P, U, Sola, Go] Nathanael_Mtd:
I think you have a problem with the XDA "Search this thread" bar...

http://i4g.me/H72Cw
[Sony Xperia P, U, Sola, Go] brigio345:
To all CM10.2 devs: Could you please use the lights.montblanc.so from CM10.1 in the next build? Doing this led bar will work for notifications. This trick also works on CM11... I know it's easy to replace it manually, but some users probably don't know that they can have a working bar for notifications... Thanks :good:
[Sony Xperia P, U, Sola, Go] Andrewasth:
Leds aren't our main concern. First comes bluetooth and wifi direct
[Sony Xperia P, U, Sola, Go] brigio345:
I know, but it's only a file to replace so I thought it could be helpful to you, but I was mistaking... Sorry it won't happen anymore
[Sony Xperia P, U, Sola, Go] Andrewasth:
I will add it as a temporary solution but some might not want it
[Sony Xperia P, U, Sola, Go] brigio345:
Sorry for ot but come on! If people have bought a phone with led bar why they should want it always off?
[Sony Xperia P, U, Sola, Go] Andrewasth:
I didn't say that they don't want a led bar. I said that they might not want a half working led bar with many missing functions compared to stock sony roms
[Sony Xperia P, U, Sola, Go] brigio345:
Yeah but on cm ROMs it has always worked only for notifications so far so I think that people could appreciate it. Now I end here the ot.
[Sony Xperia P, U, Sola, Go] areshinakya:
Yes, not todays changes, but yesterdays. No improvement.

I really wonder if headsets should work, or if they are not yet supposed to work ...

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

I agree. BUT:

- Were is the source for the 10.1 lights.montblanc.so?

- If there is no source, which license does this have?

I would like to incldue a patch to the 10.2 lights.montblanc.so source code, if possible.

If there is no source code, then If I am allowed to push the binary to git, I will do it, but right now I dont know where this 10.1 lights.montblanc.so comes from.
[Sony Xperia P, U, Sola, Go] 95A31:
Update us about that ;). Have you ask on BlueZ IRC? (usually none respose but maybe you are lucky). In haltest headset in not available, maybe is driver fault? I remember that I did very good work with driver but maybe something is missing).
[Sony Xperia P, U, Sola, Go] faoliveira:
Sources for 10.1 are here and here

In 10.2/11.0 they were moved to here, but there's something missing, because file is created in right place (\system\lib\hw\), but led bar doesn't work like on CM 10.1
[Sony Xperia P, U, Sola, Go] areshinakya:
Oh ok, so you say they use the same code, but for some reason it still fails on 10.2. I will have a look.

My pc will build for 15 hours from now on, so I cant do anything now

EDIT: bought a cheap new pc with a ~15 times faster cpu. This was unbearable.
[Sony Xperia P, U, Sola, Go] areshinakya:
Hehe building was fast! :D

And I fixed led notification. It was only a missing define in BoardConfig.xml. Pushed that to git

I also have a new build ready, will upload it

EDIT: uploading failed, I have to sleep, will upload tomorrow

Changes are:

- update cm-10.2 (did not even check if there were actually changes)

- led bar fixed for notifications

- bluez 5.14 final (does not help, but anyway)

- alsa 1.0.20 (my builds were with 1.0.19 before)

- wifi off when screen is off fixed? [MENTION=5092285]Andrewasth[/MENTION] did you fix it? Does not work. I swear it worked once.

EDIT:

about bluez: They added a new depencency, only had a brief look, I guess it is a library for bluetooth audio encoding. I wont add that to the hardware git, but add instructions to the readme.

In the future I would like to move away from that hardware repo alltogether, just checkout bluez, alsa etc, and then patch, like we do with other projects.
[Sony Xperia P, U, Sola, Go] 95A31:
Yes they add a library about audio, last night i spoke in BlueZ IRC (miracle!!! :victory:) about that. I will update my repo with git stuff in order to have at every build an updaeted version of BlueZ. I will cheate also the patch for CG2900 ;)
[Sony Xperia P, U, Sola, Go] areshinakya:
Thats about what I plan, I already have that patch.

I just would pin down the git revision, then when doing a new build try master, if successful update that git revision (I mean in the readme or in the script/manifest whatever what checks out the git).

That way we avoid moving targets, and all devs get the same result when building from our git.

That also one reason why I tinker with cm-10.2 and not cm-11. cm-10.2 is stable, gets rarly updates, our patches are nearly safe.

OT: Oh now that I mention it, they added 5 day forecast in cLock when you click on the whether which is quite cool and works since the 20140111 build.

Anyway, most likely I will try the new bluez stuff today.
[Sony Xperia P, U, Sola, Go] 95A31:
Oh man... Come to cm-11.0 come to dark side :D
[Sony Xperia P, U, Sola, Go] areshinakya:
cm-10.2-20140123-UNOFFICIAL-kumquat.zip

Changes:

- update cm-10.2 (did not even check if there were actually changes)

- led bar fixed for notifications, built from source.

- bluez 5.14 final (does not help, but anyway)

- alsa 1.0.20 (my builds were with 1.0.19 before)

---------- Post added at 10:09 AM ---------- Previous post was at 10:04 AM ----------

Not yet ;)
[Sony Xperia P, U, Sola, Go] areshinakya:
I pushed that patch to git (for 5.14)

I also managed to build the current bluez git with sbc, that did not help.

what I am curious about is this haltest error:

audio_hw_device_open returned -98

This error is -EADDRINUSE