yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] 95A31:
Fix main camera upside-down (Fixed here by [MENTION=5020297]Na'onak[/MENTION] ):

This fix consist in use right camera file as FreeXperia use the Xperia GO version. The right file can be downloaded from here.

After have substituted the file in relative CyanogenMod's build folder, recompile and flash.

Fix ambient sensor light (Fixed here + this post by [MENTION=4120742]munjeni[/MENTION] + [MENTION=5265970]95A31[/MENTION]):

This fix consist in adjust ambient sensor light driver. In detail Android Jelly Bean require als_lx parameter that is not in standatd driver source code. This parameter and relative functions were added by [MENTION=4120742]munjeni[/MENTION] in the safest possible way: return a fixed value. The fix consist in implement this new functions exploiting the already present functions. The original version can be dowloaded here and the newest is attacched at bottom of this post. After have substituted the file in relative CyanogenMod's build folder, recompile and flash.
[Sony Xperia P, U, Sola, Go] loren82:
good thread, try this, to run the front camera

https://app.box.com/s/xswdumrr4uqgbj5dczo9

Original thread : http://xdaforums.com/showthread.php?t=2448962
[Sony Xperia P, U, Sola, Go] percy_g2:
remove FM radio ,its impossible without sources and sources = not possible because ST-Ericsson is no more
[Sony Xperia P, U, Sola, Go] 95A31:
Thank you but I have already a fix for front camera. He has published the patch before me so the credits go to him. I want give you a little spoiler: in order to fix from camera is necessary modify only 2 files ;).

Anyway i currently working on Wi-Fi direct, more suggests about this are well accepted :).

I want investigate on these commits:

https://github.com/CyanogenMod/android_device_sony_montblanc-common/commit/52cedeea40957113358f92780d7f927414fcc73a

https://github.com/CyanogenMod/android_device_sony_montblanc-common/commit/0f86f877f07c7e9d9de7939012d0a19aa9ae2175

https://github.com/CyanogenMod/android_device_sony_montblanc-common/commit/61c4290fd4e7cadde9ff42c6fdf0161f6723f2e1

https://github.com/CyanogenMod/android_device_sony_montblanc-common/commit/8541f5b88cd05789b05ee1bf3034e17cb1c45b70

https://github.com/CyanogenMod/android_device_sony_montblanc-common/commit/59a6f62c4b4c65ba90a6bbac43c04010b1262d14

and maybe continue to develop this:

https://github.com/freexperia/android_packages_apps_FMRadio

hopefully reusing some code from MIUI FM Radio.
[Sony Xperia P, U, Sola, Go] Neurom707:
While everyone is waiting for camera fix this one above works perfectly and fixes orientation or back camera, also led turns of after this flash when you have used the LED bar fix
[Sony Xperia P, U, Sola, Go] elia222:
[MENTION=5265970]95A31[/MENTION] I guess you forgot to add the link to my guide in the op ;)
[Sony Xperia P, U, Sola, Go] 95A31:
Front camera fix is coming in couple of days ;).

Wops, fixed :good:.
[Sony Xperia P, U, Sola, Go] mikereidis:
If you can get FM audio enabled, there should be enough open source code out there for an open source FM app. The closed source libfmradio.cg2900.so would be needed, but should still work.

An ambitious person might even be able to get FM transmit working on some Euro phones. I was able to enable it with my app, but couldn't figure out how to enable FM transmit audio with some quick attempts.
[Sony Xperia P, U, Sola, Go] 95A31:
When I will start to work on the FM radio, I would be happy to collaborate with you :D.

Fix front camera (Fixed here by [MENTION=5394746]xx214718247[/MENTION]):

Also this fix consist in use right camera files as FreeXperia use the Xperia GO version. The right files can be downloaded from here and here. The first one is necessary in order to make able the system to recognize front camera, the second allow to use it. After have substituted the files in relative CyanogenMod's build folders, recompile and flash.
[Sony Xperia P, U, Sola, Go] Wind07:
Good to see ambitious devs like you creating xperia u's future!

SIGNATURE OUTDATED. I now use honami moonwalker 4.2
[Sony Xperia P, U, Sola, Go] 95A31:
In this period I am looking Team Canjica's camcorder fix:

In this post [MENTION=4318865]DevSwift1[/MENTION] suggest to use android_vendor_sony by Team Canjica for fix camcorder.

It work, but it broke bluethoot. This small issue can be fixed reverting this commit.

The two main differences between Team Canjica's version and TheMuppets' version are:

Different organization of common and device specific libs.

Team Canjica version require that some media and camera libs shoud be compiled from source.

If kumquat-vendor-blobs.mk is modified in order to require that the media and camera libs must be compiled frome source we obtain a lenght 0:00 video and logcat report an error of OMX node allocation about h264enc.

TODO: Search which other differents files are involved in recording/encoding process in order to make TheMuppets' version work.

Currently I am also investigate on Wi-Fi tethering/direct:

For fix these issues I follow this guide by Texas Instruments. The firts issue that I have found is broken Wi-Fi. This can be simply fixed setting the right permissions to files and directories involved in Wi-Fi as described here. The second problem is of corse tethering. The first issue is in hostapd.conf: when Hostapd try to change the owner of the control interface as described in line 8 give a operation not permitted error. The (naive) solution is eliminate line 8 so Hostapd can run without problem. The second and critical issue concern how softAP is used by the system. Below the interesting logcat's part:

...
E/hostapd ( 2731): Configuration file: /data/misc/wifi/hostapd.conf
...
E/hostapd ( 2731): Using interface wlan0 with hwaddr 01:23:45:67:89:AB and ssid 'AndroidAP'
D/hostapd ( 2731): Deriving WPA PSK based on passphrase
D/SoftapControllerTI( 1484): hostapd started OK
D/SoftapControllerTI( 1484): hostapd set - Ok
E/NetdConnector( 1967): NDC Command {14 softap set wlan0 wl0.1 AndroidAP wpa2-psk trolololol} took too long (1823ms)
D/hostapd ( 2731): random: Got 20/20 bytes from /dev/random
D/hostapd ( 2731): WPA: Delay group state machine start until Beacon frames have been configured
E/hostapd ( 2731): Failed to setup control interface
E/hostapd ( 2731): wlan0: Unable to setup interface.
...

TODO: Search documentation about SoftAP in order to make tethering work.

About Wi-Fi direct the issues start to be hard to fix. From ICS to JB is changed more about Wi-Fi direct managing, in detail JB require a network device called p2p0 in order to get working Wi-Fi direct. AFAIK this device is created and managed only in recents verions of wpa_supplicant and not all drivers can handle this kind of device.

TODO: Porting CM10.2 version of wpa_supplicant in order to make Wi-Fi direct work.
[Sony Xperia P, U, Sola, Go] kosmos-2011:
mmm

++++
[Sony Xperia P, U, Sola, Go] 95A31:
Hi guys,

here I created a git repository with all fixes that I analized. In order to exploit it just simply download it as zip archive and extract the content over the CyanogenMod's build folder.
[Sony Xperia P, U, Sola, Go] marce78:
I hope in a tethering fix.

Thx for the repo.

Inviato dal mio Xperia U con Tapatalk
[Sony Xperia P, U, Sola, Go] ajain3982:
For led bar u can use dis..:)

http://xdaforums.com/showthread.php?t=2429318
[Sony Xperia P, U, Sola, Go] 95A31:
I'm working on ;)

Thank you :good:

Hi guys, tethering fix is not so easy as I image. I think that [MENTION=4120742]munjeni[/MENTION] in this porting have the same problem. Probably is enought a good configuration but without documentation is very hard. I ask you provide to me this files:

init.st-ericsson.rc form Stock Jelly Bean Xperia GO

A logcat from Stock Jelly Bean Xperia GO when Wi-Fi tethering is turn on
[Sony Xperia P, U, Sola, Go] 95A31:
Daily report:

Camcorder: For fix this, I decide to use TeamCanjica's android_vendor_sony because it is updated and I prefer his "old" organization of common and device specific files. It already contain the back camera fix, so is useless keep it as different fix. A side effect is broken bluetooth, that as I previous say can be fixed reverting this commit. I fond also iw broken so I used the ICS version.

Wi-Fi thetering: I keep working on this but I dont see the end (for now :p). In detail the jellybean Android Network Deamon not has full support for SoftAP used by FreeXperia. The support was reintroduced in this commit. The TeamCanjica has ported this fix in the own Android Network Deamon so I use this last one. I try several configuration of hostapd.conf but none seams work.
[Sony Xperia P, U, Sola, Go] aca89:
[MENTION=5265970]95A31[/MENTION], appreciate doing this and sorry for intruding but it seems that you're the only one looking at real problems right now. Anyway, to the point.

There seems to be everlasting problem of extreme call dialer lag in jb roms, at least in ones that I've tried. During the answering of call phone just freezes and hangs for a period of time during which call gets established but you can't hear or be heard. Lots of people are not using jb especially because of this. However, I haven't tried cm10 in a while 'cause fxp stopped updating it and I don't have enough knowledge to build it, so I can't say if it's present there. So if you think you might be able to fix the dialer please try it. And also if you're already building cm10 with fixes feel free to upload it somewhere, I'm sure people would flash it. That way you could get some more logcats. Of course, I'm just suggesting stuff, there's no pressure and it all depends on if you have free time.

Thanks
[Sony Xperia P, U, Sola, Go] Wind07:
Dialer lag affects me only after 3 months of jb. Thereafter, i change roms and wipe data amd to its not there :P
[Sony Xperia P, U, Sola, Go] 95A31:
Copied /build/core/Makefile in /Makefile but I keep to have "bacon" issue:

Makefile:546: warning: overriding commands for target `/NOTICE.html'
Makefile:539: warning: ignoring old commands for target `/NOTICE.html'
find: `/res': No such file or directory
No private recovery resources for TARGET_DEVICE
No recovery.fstab for TARGET_DEVICE
Makefile:939: warning: overriding commands for target `/system.img'
Makefile:907: warning: ignoring old commands for target `/system.img'
make: *** No rule to make target `bacon'. Stop.
[Sony Xperia P, U, Sola, Go] percy_g2:
Check on gerrit ,someone might have ****ed build repo and get a fresh build repo from git again
[Sony Xperia P, U, Sola, Go] 95A31:
Delete /build and /out, reddownload /build and now it work. Thank you very much :D
[Sony Xperia P, U, Sola, Go] 95A31:
New day, new problem. I have a bootloop, but I can not not explain me why this happen. Someone whit more experience than me can find out something ?

http://pastebin.com/VBu8rNKX
[Sony Xperia P, U, Sola, Go] percy_g2:
Its because rcc and kondick ****ed with av native repos lately
[Sony Xperia P, U, Sola, Go] 95A31:
Ok I am a little busy now, let me know when CM11 will be again bootable :rolleyes:
[Sony Xperia P, U, Sola, Go] percy_g2:
I will fix it tonight or in morning .

Will let you know
[Sony Xperia P, U, Sola, Go] percy_g2:
[MENTION=5265970]95A31[/MENTION] You can use this manifest https://github.com/Legacy-Xperia/manifest

I have tested the build some hours ago , bootloop issue is fixed .

You can debug wifi issue if you like
[Sony Xperia P, U, Sola, Go] 95A31:
Due this I ask to all people that have a computer science skills to not be shy and join to us, try and retry, share errors/resoult/suggests and ask, ask also stupid/naive question (like me), this thread will be open for sure for reply to "knowledge hungry".
[Sony Xperia P, U, Sola, Go] 95A31:
I checked your CM11 and it is a downgrade to 31/12/2013 snapshot right? I do not believed that CM11 was so bad.... I want work on a working git ROM, you think that this is a temorary situation and in the near future it will be fixed? If no, you know if Omni or AOSP have this issues ?
[Sony Xperia P, U, Sola, Go] percy_g2:
yes i hard reset the changes , will test commits one by one .I'am having less time these days and in coming months i will have exams .I don't know the cause of bootloop , first they broke wifi then BT now bootloop . Qualcomm is taking over :/

omni and aosp have baseband issue if someone can share some knowledge to fix that then i can fix other issues and you are right aosp and omni don't have such issues.
[Sony Xperia P, U, Sola, Go] 95A31:
Ok, thanks :good:, when I fixed Wi-Fi I will evaluate if is more convenient fix CM11 or migrate to Omni/AOSP :)
[Sony Xperia P, U, Sola, Go] babu.rajiv2007:
Is it possible to port the 3.0.101 kernel to CM10?

It's available for stock 4.1.2
[Sony Xperia P, U, Sola, Go] Gava97:
Yes
[Sony Xperia P, U, Sola, Go] 95A31:
Sometimes happen that after flesh ad wipe you have a bootloop. In this sistuation you are not able to use logcat because reset. To solve this annoing issue is possible enale adb by recovery:

Enter in recovery

Mount /system

adb remount

adb shell:

echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop

Original/Reference Thread: http://xdaforums.com/showthread.php?t=2335799
[Sony Xperia P, U, Sola, Go] synthgab:
Hi,

I own this great device, and I must say, your work guys is amazing. So I'll take a deep breath, read your tutorials, and jump in ... And probably be back with silly questions :)
[Sony Xperia P, U, Sola, Go] 95A31:
:good:
[Sony Xperia P, U, Sola, Go] wan5xp:
I am also interested to help developing. But i don't have any experience and knowledge to help. I'm willing to learn:)
[Sony Xperia P, U, Sola, Go] 95A31:
Welcome :)
[Sony Xperia P, U, Sola, Go] Andrewasth:
Have you tried repo syncing? It fails for me using cm's manifest.xml
[Sony Xperia P, U, Sola, Go] 95A31:
I tried to compile CM11 31/12/2013 git snapshot by CRDC.sh but I obtained bootlop. Then sync with current CM11 git (all repos) and not have a bootloop but wlan0 was not present :eek:, finally I modified some stuff about Wi-Fi in the current CM11 git and have a bootloop again. Maybe I forgot to wipe... I must check tomorrow. Anyway report sync for me work fine.
[Sony Xperia P, U, Sola, Go] aca89:
[MENTION=5265970]95A31[/MENTION], hey man, once again thank you for being a huge help around here. I know I already wrote about this and you have your priorities but I have to ask again. Do you have any idea what's causing call lag in cm10, I mean at all? Any ideas how to suppress it maybe? Occasional reboot makes it happen less frequently but it's there and it's frustrating when you're about to receive important call. I followed your guide for making cm10 without a problem and everything works but this thing still happens. It's such a pitty not to be able to use almost perfect rom just because of call lag.

Sorry for barging in like this.
[Sony Xperia P, U, Sola, Go] Andrewasth:
In cm11 there is a commit that will keep the incallui in memory so I gues it will solve the lag (it is caused because of low memory)
[Sony Xperia P, U, Sola, Go] aca89:
Could you please point to it? And even better explain how to implement it in cm10?
[Sony Xperia P, U, Sola, Go] 95A31:
No problem :) For debug I am sorry but I can not help you because I never see this problem when I had CM10. It may depends from numerous causes (i.e. low ram due too many apps in background, a bugged app, CM10 bugs,...). I suggest you to wait [MENTION=5092285]Andrewasth[/MENTION] comment, if it will not work, consider to compile CM10 from lastest git source code, flash and wipe data, cache, dalvin cache and user memory (make a backup first ;)). Then not install any app for some days and check if the problem persist. If yes, take and analyse a logcat when you are receiving a call (e.g. call yourself from another phone), maybe it can show you what is the problem :)
[Sony Xperia P, U, Sola, Go] claudd:
I had this problem after installing viber app. After removing this app no Call lag in My phone. Maybe this can help you
[Sony Xperia P, U, Sola, Go] aca89:
I'll just bump the question this one time and then stop spamming the thread. [MENTION=5092285]Andrewasth[/MENTION], could you please try and help? I'd do it myself but I'm useless. Again, sorry for spamming.
[Sony Xperia P, U, Sola, Go] Andrewasth:
I will find the commit on Gerrit for cm11 (I don't know if it can be adapted to cm10 but I will see what I can do) [MENTION=5265970]95A31[/MENTION]I know you are a bit busy with wifi direct but I would suggest to work a little more on cm10.2 which is almost perfect (since we can make more things work) and then complete cm11

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] 95A31:
Recently I was thinking the same... But I prefer stay on CM11 and help you on CM10.2 without have it as main ROM, so please share build lodgcat and resoults as much as you can :)
[Sony Xperia P, U, Sola, Go] 95A31:
Ok new week, new newbie question. I have disabled hostapd compilation in wpa_supplicant Android.mk and and commented out all relative entries in /device directory (check https://github.com/95A31 for details) but I have this error:

make: *** No rule to make target"/home/void/XperiaU/CM11/out/target/product/kumquat/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes", needed by "/home/void/XperiaU/CM11/out/target/product/kumquat/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/import_includes". Stop.

I checked and wpa_client is defined in wpa_supplicant Android.mk (I am working on stable/cm-11.0 not on cm-11.0 branch). What mean this error? Why I get it ?
[Sony Xperia P, U, Sola, Go] Gava97:
Probably this problem is caused because you have commented hostapd
[Sony Xperia P, U, Sola, Go] percy_g2:
Looks like its a cm issue ,try sync again or to dirty hack it .make a folder libwpa_client_intermediates in out/target/product/kumquat/obj/SHARED_LIBRARIES and copy any export file from other Intermediate's folder to fix compiling .i suggest to repo sync first :)
[Sony Xperia P, U, Sola, Go] Andrewasth:
[MENTION=5265970]95A31[/MENTION] can you check my sources for cm10.2 on github? I have updated them but when I try to compile I am getting error in wpa_supplicant

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] 95A31:
Of course, what error you have ?

EDIT: Can you link the sources? I see only cm-11.0 and master branch :)
[Sony Xperia P, U, Sola, Go] Gava97:
Master is cm10.2
[Sony Xperia P, U, Sola, Go] 95A31:
Good I wait for the error description.

Guys, you know some free build server? I start to feel that my Intel Core i3, 4GB ROM is overkilled by CM11 compilation.
[Sony Xperia P, U, Sola, Go] Gava97:
Friend [MENTION=4766488]Abhinav2[/MENTION] have got a server but i don't know if he want to make an account for you
[Sony Xperia P, U, Sola, Go] Garcia98:
Your PC is a beast compared with my Intel Atom and 1GB RAM LOL :p
[Sony Xperia P, U, Sola, Go] Andrewasth:
Check in master branch if there is something I have forgotten and I will provide you with the error tomorrow

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] 95A31:
Respect :highfive:

Ok let me know
[Sony Xperia P, U, Sola, Go] DevSwift1:
[MENTION=5265970]95A31[/MENTION]

You must sync wpa_supplicant_8_ti
[Sony Xperia P, U, Sola, Go] 95A31:
Ok, I do not know but i continue to have a bootloop... If this situation persist I flash to XNovathor ROM and bye bye... Is not possible that Cyanogen community not offer a minimum support...
[Sony Xperia P, U, Sola, Go] Andrewasth:
[MENTION=5265970]95A31[/MENTION]

Have you compiled using sources from cyanogenmod a few weeks before christmas?

target thumb C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/utils/uuid.c
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c: In function 'wpa_supplicant_wps_event_er_ap_add':
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c:676:2: warning: implicit declaration of function 'uuid_bin2str' [-Wimplicit-function-declaration]
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c: In function 'wpas_wps_set_uuid':
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c:1253:2: warning: implicit declaration of function 'is_nil_uuid' [-Wimplicit-function-declaration]
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c: In function 'wpas_wps_scan_pbc_overlap':
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c:1547:18: error: 'UUID_LEN' undeclared (first use in this function)
external/wpa_supplicant_8/wpa_supplicant/wps_supplicant.c:1547:18: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/home/andrew/cm-10.2/out/target/product/kumquat/obj/EXECUTABLES/wpa_supplicant_intermediates/wps_supplicant.o] Error 1
make: *** Waiting for unfinished jobs....

I only had the chance to pull this from my pc (before it stopped booting)
[Sony Xperia P, U, Sola, Go] 95A31:
This look like missing header. Anyway this is a compile error, I compile fine, flash and then my phone reboot continuosly (bootloop)
[Sony Xperia P, U, Sola, Go] Andrewasth:
I'm getting this on cm10.2

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
Stange, I get this now too.

I compiled cm-10.2 the first time on 14 december - no problems.

Then I did a repo sync on 11 january and did a clean rebuild - no problems.

Just now I did a repo sync again and tried a clean build and I get this also.

EDIT: I just typed make -j2 otapackage again and now make decided to compile something else now. Could take hours until it is wpa_supplicants turn again. **** this netbook. ;)

EDIT2: The missing declarations are here: wpa_supplicant_8/src/utils/uuid.h

Cant test yet, it still builds something else.
[Sony Xperia P, U, Sola, Go] Andrewasth:
And the most strange is that nothing has changed in cm external wpa_supplicant sources for almost two months

---------- Post added at 09:57 PM ---------- Previous post was at 09:40 PM ----------

Uuid.h hasn't been updated for 2 years! Some voodoo magic is going on I think! [MENTION=5265970]95A31[/MENTION] can you check this?

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
What I would do is just replace #include "uuid.h" with the contents of uuid.h :P

I will try but a clean rebuild will take till tomorrow.

EDIT: It worked! Most stupid patch in history attached.
[Sony Xperia P, U, Sola, Go] Andrewasth:
I will pm you tomorrow and tell you a secret so that you don't have to wait that much for next builds! :P

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] areshinakya:
I merged the patch above with the existing wpa_supplicant patch in my git and send you a pull requst. It compiles now, but this is sick.

My guess is that there is somewhere another uuid.h flying around in some include dir which was picked instead of the projects uuid.h..

(Oh and we should not spam this thread anymore)
[Sony Xperia P, U, Sola, Go] Andrewasth:
Ok will look into that! The xperia u thread is development intended so we can discuss this over there. That's a little unlikely but possible.

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] monioo:
I want to compile cm-10.2, almost all patches aren't applied to android source code, what I'm doing wrong?

I'm using https://github.com/areshinakya/android_device_sony_kumquat dev three
[Sony Xperia P, U, Sola, Go] Garcia98:
Only bionic patch was not applied correctly, you can check linker.cpp.rej file and compare it with linker.cpp, also you can apply patch manually :)
[Sony Xperia P, U, Sola, Go] Andrewasth:
Use my repository

Στάλθηκε από το ST25i μου χρησιμοποιώντας Tapatalk