yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] Abhinav1997:
[MENTION=5265970]95A31[/MENTION] When we apply the recovery patch, it gives errors telling that RED_LED_FILE and GREEN_LED_FILE are undeclared which is pretty obvious seeing this function-

void update_leds(void) {
int level = get_battery_level();

int charging_usb = battery_charging_usb();
int charging_ac = battery_charging_ac();

int val = 255;
int val_thin = 122;
int val_off = 0;

int status;

if (level == 0)
level = 1;

if (charging_usb || charging_ac) {
if (level <= 90) {
status = command_update_leds(RED_LED_FILE, val);
status = command_update_leds(GREEN_LED_FILE, val_off);
} else if (level > 90 && level != 100) {
status = command_update_leds(RED_LED_FILE, val_thin);
status = command_update_leds(GREEN_LED_FILE, val_thin);
} else {
status = command_update_leds(RED_LED_FILE, val_off);
status = command_update_leds(GREEN_LED_FILE, val);
}
} else {
status = command_update_leds(RED_LED_FILE, val_off);
status = command_update_leds(GREEN_LED_FILE, val_off);
}

return;
}

So those were not declared there. But they were declared in adefines.h so any ideas why the error is coming? I can solve it by deleting the function but I don't really want to do that. Also I added these declarations(inside the update_leds function) which seem to fix it but not sure if this is correct-

char const*const RED_LED_FILE = "/sys/devices/platform/nmk-i2c.2/i2c-2/2-0036/leds/red/brightness";
char const*const GREEN_LED_FILE = "/sys/devices/platform/nmk-i2c.2/i2c-2/2-0036/leds/green/brightness";

Can you please correct me? :)

Thanks,

AJ
[Sony Xperia P, U, Sola, Go] alwaysadeel:
i think these lines are the culprits

#if (defined XPERIA_GO || defined XPERIA_SOLA)

#ifdef XPERIA_P

#ifdef XPERIA_U

either device names are defined some other way , or they dont reach here
[Sony Xperia P, U, Sola, Go] Andrewasth:
Are you sure? Normally green and red led files should be in 0040 and not 0036 for xperia sola (Leds are f***ed up a long time ago but I hadn't mentioned anything because I always forgot about it...when bug fixing is complete we should do a clean up)

Check this https://github.com/munjeni/android_hardware_semc/blob/master/patches/bootable_recovery.patch#L1047 and the previous line and either seperate them for sola like in xperia u and p or change it on 0036 (but notive that if you try building on xperia go with this changed xperia go's led won't work

---------- Post added at 08:21 PM ---------- Previous post was at 08:11 PM ----------

It's most probably from a modification you have implemented for FM? libsystemserver needs to be build as well for fm radio libs. I don't know how libsystemserver is built but most probably we nedd to add an include of something in a makefile. If I find something more useful on this I will update you ;)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
[MENTION=4766488]Abhinav2[/MENTION]

+ifeq ($(TARGET_PRODUCT),cm_lotus)
+ LOCAL_CFLAGS += -DXPERIA_GO
+endif
+ifeq ($(TARGET_PRODUCT),cm_pepper)
+ LOCAL_CFLAGS += -DXPERIA_SOLA
+endif
+ifeq ($(TARGET_PRODUCT),cm_kumquat)
+ LOCAL_CFLAGS += -DXPERIA_U
+endif
+ifeq ($(TARGET_PRODUCT),cm_nypon)
+ LOCAL_CFLAGS += -DXPERIA_P
+endif

this means devices names don't get registered until we declare cm_pepper, cm_kumquat etc in device files ??
[Sony Xperia P, U, Sola, Go] Abhinav1997:
Actually I was asking for XP. But Xperia MT27 guessed it right maybe. It helped me compile without error. So I guess it doesn't traces the if statements properly and thus can't reach the defines so gives errors. Charging LEDs work in Xperia P though.

AJ
[Sony Xperia P, U, Sola, Go] 95A31:
Hi [MENTION=3575078]mikereidis[/MENTION], now I am seriously working on FM Radio. Before touch CM source I want see if kernel/drivers side is fine. I found that our FM chip use HCI UART interface. I read some stuff around XDA mostly on your posts. I see a tool named fm_hcitool but it is no more avaible. I see also that is allowed send commands by hcitool but I can not found what meaning the numbers passed to hcitool. There is some list or explaination about this numbers?
[Sony Xperia P, U, Sola, Go] Abhinav1997:
Is this correct? -> http://d-h.st/2uk

:)

Cheers,

AJ
[Sony Xperia P, U, Sola, Go] 95A31:
It not work because:

CANNOT LINK EXECUTABLE: could not load library "libbluedroid.so" needed by "fm_hcitool"; caused by library "libbluedroid.so" not found
[Sony Xperia P, U, Sola, Go] Andrewasth:
I think that fm_hcitool is included in spirit fm in data/data/mikereidis.spirit fm/fm_hcitool (or something like that...but it should be in the data of the app). But this requires spirit fm to be installed. Judging by the fact that the paricular tool requires bluedroid libraries (don't know if it affects other versions) it might make it incompatiblewith our phones because of Bluez
[Sony Xperia P, U, Sola, Go] 95A31:
Exactly. I want use Qualcomm app because too much difference between [MENTION=359497]FXP[/MENTION] code (Jellybean) with CM11.
[Sony Xperia P, U, Sola, Go] Andrewasth:
Yes but qualcomm is for qualcomm for now. I think that FXP used ste's fmradio app (present on sources and with normal licence...it's not prohibited to use) which should be the closest we can get for now. You said that you have ported all the neccessary framework modifications right? I can upload the app sources only (or you can grab them from fxp's github) to integrate it
[Sony Xperia P, U, Sola, Go] 95A31:
I can apply all the patches but I can not compile because too much stuff in Android is changed. For me is impossible update all stuff to CM11 because I do not know all the frameworks structure.
[Sony Xperia P, U, Sola, Go] 95A31:
This are the patches
[Sony Xperia P, U, Sola, Go] Andrewasth:
OK. I'll let you know asap. (You are building the fm radio app only right? I mean you changed Boardconfig and you applied the patches or it's more than that?)
[Sony Xperia P, U, Sola, Go] Abhinav1997:
Hm. As the error shows, the system_server lib sources is not present. After searching a bit I found that it is present in frameworks/base/cmds. It was present in CM 10.2 but not in CM 11. So just place this folder-https://github.com/CyanogenMod/android_frameworks_base/tree/cm-10.2/cmds/system_server in frameworks/base/cmds with the name system_server. I think I got past the error that way. If u want I can also upload just the folder. Hope this helps :) Now compilation is going fine :fingers-crossed:

Cheers,

AJ
[Sony Xperia P, U, Sola, Go] Andrewasth:
This is for cm10.2.
[Sony Xperia P, U, Sola, Go] Abhinav1997:
Yes but I think, could try that. Cause it did worked for me

AJ
[Sony Xperia P, U, Sola, Go] Andrewasth:
Yes. I just saw it's not there on cm11 (but it builds without any addition if it is just added)
[Sony Xperia P, U, Sola, Go] Abhinav1997:
make: *** [/home/abhinav2/cm11/out/target/product/nypon/obj/SHARED_LIBRARIES/libsystem_server_intermediates/system_init.o] Error 1
make: *** Waiting for unfinished jobs....

Couldn't solve this error. This is the system_init file- https://github.com/CyanogenMod/andr....1/cmds/system_server/library/system_init.cpp and instantiate is defined in SurfaceFlinger.h by default in cm-11 also.

Cheers,

AJ
[Sony Xperia P, U, Sola, Go] mikereidis:
Ignore the HCI stuff and leave it "under the covers" if it's there.

On top of that lies the V4L FM radio driver at /dev/radio0 . V4L is a well documented API and there's lots of sample code out there. I've made some simple command line utilities for testing, but that's not too hard to do from the specs, for basic functions at least.

You can use the Qualcomm app and modify it slightly. The Qualcomm app uses the Qualcomm V4L driver, but it also uses proprietary V4L extensions, so it's a bit of work to get it going on other chips. That makes perfect sense that Qualcomm wants you to use their chips with their app.
[Sony Xperia P, U, Sola, Go] mikereidis:
I was going to say I thought FXP used the Qualcomm app, but maybe you're right.

Among the problems with the STE app are that the source code for the FM driver plugins was never released.

I managed to get these binary drivers working with Spirit2, but there were problems with later Android versions.

And the STE app was just a very simple demo app, and the code's probably 3+ years old by now, LOL.

So yeah, Qualcomm app is probably the best. It has lots of features, but it would take a lot of work to port them all to this phone. EG recording and RDS stuff.

BTW, some of these Sony Novathor devices are VERY rare in that they can TRANSMIT FM. (Tx capability in chips isn't rare, but the proper chip antenna connection IS.) Spirit1 can be set to a test mode that demonstrates it, but I never figured out how to get audio over the signal. My Xperia P from Hong Kong can't transmit, but some Euro devices can.

Further investigations on FM transmit are left as an exercise for interested hackers with more time than I. ;)
[Sony Xperia P, U, Sola, Go] Andrewasth:
I guess now he does but back then, in jellybean he didn't. We have source code now for fm drivers!
[Sony Xperia P, U, Sola, Go] 95A31:
I see that also TI have FM app. I must check the easyer to adapt :)
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
[MENTION=5265970]95A31[/MENTION]

CM again updated the sources and after compiling we got FC of "com.android.phone"

Any ideas?
[Sony Xperia P, U, Sola, Go] alwaysadeel:
yes its happening to me too. CM made some ril updates etc.

Need help

Sent from my Nexus 7
[Sony Xperia P, U, Sola, Go] Andrewasth:
Can you get a logcat?
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
Fixed and adapted framework_av.patch for latest CM's changes.

Thx to Freack
[Sony Xperia P, U, Sola, Go] 95A31:
I not compile and test CM since 3-4 day ago.

I not see differences with mine =P
[Sony Xperia P, U, Sola, Go] Andrewasth:
Also missing this at the end

diff --git a/frameworks/av/services/camera/libcameraservice/device1/CameraHardwareInterface.h b/frameworks/av/services/camera/libcameraservice/device1/CameraHardwareInterface.h
index 9bc9985..679ae4c 100644
--- a/frameworks/av/services/camera/libcameraservice/device1/CameraHardwareInterface.h
+++ b/frameworks/av/services/camera/libcameraservice/device1/CameraHardwareInterface.h
@@ -660,8 +660,11 @@ private:
}

static int __set_usage(struct preview_stream_ops* w, int usage)
- {
- ANativeWindow *a = anw(w);
+ {
+ #ifdef STE_HARDWARE
+ usage |= GRALLOC_USAGE_PRIVATE_0;
+ #endif
+ ANativeWindow *a = anw(w);
return native_window_set_usage(a, usage);
}
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
Hehe but not all have it fixed) And i've decided to share it)
[Sony Xperia P, U, Sola, Go] Andrewasth:
Why? What has changed? :P Compared to my current framework_av patch only the index and the lines are changed
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
this is the correction:o
[Sony Xperia P, U, Sola, Go] Andrewasth:
I thought it was for com.phone fc fix
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
without changing the indexes when we try to patch we get errors, right?

with changing the indexes we get patching without errors and i hope it will fix com.phone fc:fingers-crossed:
[Sony Xperia P, U, Sola, Go] Andrewasth:
It's not caused by that
[Sony Xperia P, U, Sola, Go] alwaysadeel:
+1

Sent from my Xperia Sola
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
Sorry, dont know that will not help( I'm nood in compiling and developing (i'm only learning):silly:

Any ideas how to fix?

Compiled two builds and two build with FC((
[Sony Xperia P, U, Sola, Go] alwaysadeel:
here is the logcat , the main error is

D/dalvikvm( 3997): DexOpt: couldn't find static field Lcom/android/internal/telephony/IccCardConstants$State;.NETWORK_LOCKED

W/dalvikvm( 3997): VFY: unable to resolve static field 844 (NETWORK_LOCKED) in Lcom/android/internal/telephony/IccCardConstants$State;

D/dalvikvm( 3997): VFY: replacing opcode 0x62 at 0x0060

D/dalvikvm( 3997): DexOpt: couldn't find static field Lcom/android/internal/telephony/IccCardConstants$State;.NETWORK_LOCKED

W/dalvikvm( 3997): VFY: unable to resolve static field 844 (NETWORK_LOCKED) in Lcom/android/internal/telephony/IccCardConstants$State;

D/dalvikvm( 3997): VFY: replacing opcode 0x62 at 0x005c

D/dalvikvm( 3997): DexOpt: couldn't find static field Lcom/android/internal/telephony/IccCardConstants$State;.NETWORK_LOCKED

W/dalvikvm( 3997): VFY: unable to resolve static field 844 (NETWORK_LOCKED) in Lcom/android/internal/telephony/IccCardConstants$State;

D/dalvikvm( 3997): VFY: replacing opcode 0x62 at 0x0011

D/dalvikvm( 3997): DexOpt: couldn't find static field Lcom/android/internal/telephony/IccCardConstants$State;.NETWORK_LOCKED

W/dalvikvm( 3997): VFY: unable to resolve static field 844 (NETWORK_LOCKED) in Lcom/android/internal/telephony/IccCardConstants$State;

and

E/AndroidRuntime( 3997): FATAL EXCEPTION: main

E/AndroidRuntime( 3997): Process: com.android.phone, PID: 3997

E/AndroidRuntime( 3997): java.lang.NoSuchFieldError: com.android.internal.telephony.IccCardConstants$State.NETWORK_LOCKED

E/AndroidRuntime( 3997):	at com.android.internal.telephony.uicc.IccCardProxy.registerForNetworkLocked(IccCardProxy.java:490)

E/AndroidRuntime( 3997):	at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:515)

E/AndroidRuntime( 3997):	at com.android.phone.PhoneApp.onCreate(PhoneApp.java:38)

E/AndroidRuntime( 3997):	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)

E/AndroidRuntime( 3997):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4423)

E/AndroidRuntime( 3997):	at android.app.ActivityThread.access$1500(ActivityThread.java:146)

E/AndroidRuntime( 3997):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1267)

E/AndroidRuntime( 3997):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 3997):	at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime( 3997):	at android.app.ActivityThread.main(ActivityThread.java:5096)

E/AndroidRuntime( 3997):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 3997):	at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime( 3997):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)

E/AndroidRuntime( 3997):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)

E/AndroidRuntime( 3997):	at dalvik.system.NativeStart.main(Native Method)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
[MENTION=4875708]Rodger_Rulez[/MENTION]

when is the time of ur last sync, this change has been pushed 18 hours ago

http://review.cyanogenmod.org/#/c/60738/

does this change affect anything?
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
I've updated yesterday but dont remember exactly when (or mb somehow can be found through the terminal?) but i've checked UiccController.java and it is old one (that means that my sources should be updated)

Thx, will update and compile again:fingers-crossed:
[Sony Xperia P, U, Sola, Go] alwaysadeel:
u can confirm by building telephony-common module again, not the whole CM
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
If I only know how... :(

(I'm noob in all these things:silly:)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
cd to frameworks/opt/telephony and type

mm -B
[Sony Xperia P, U, Sola, Go] Abhinav1997:
[MENTION=4875708]Rodger_Rulez[/MENTION] [MENTION=5143053]XperiaMT27[/MENTION]

I didn't had much time to look into this issue. But try this and see if it fixes anything-

cd frameworks/opt/telephony
git revert 33d4650..e8d3dd9

Do a clean rebuilt and let me know how that goes.

Cheers,

AJ
[Sony Xperia P, U, Sola, Go] 95A31:
Fu*k you CyanogenMod, welocome AOSPSlimKat
[Sony Xperia P, U, Sola, Go] alwaysadeel:
same here ;)
[Sony Xperia P, U, Sola, Go] wan5xp:
I prefer omni:)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
as expected, there are dependancies

got this error

target Java: telephony-common (/home/ad/hellkat/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes)
frameworks/opt/telephony/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java:52: com.android.internal.telephony.IccSmsInterfaceManager is not abstract and does not override abstract method synthesizeMessages(java.lang.String,java.lang.String,java.util.List<java.lang.String>,long) in com.android.internal.telephony.ISms
public class IccSmsInterfaceManager extends ISms.Stub {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/ad/hellkat/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-full-debug.jar] Error 41

i think this is the commit that killed it all,

https://github.com/CyanogenMod/andr...mmit/b10552cd1e9044944c66aaef00ccb626feb10026
[Sony Xperia P, U, Sola, Go] gigitux:
Any news for kernel 3.4 ?

Where can we start ?
[Sony Xperia P, U, Sola, Go] 95A31:
I do not care anymore. I close with CM :P

One for all, port to 3.4 is impossible due huge amount of work.

Daily news:

I open again my repos: https://github.com/95A31
[Sony Xperia P, U, Sola, Go] gigitux:
Ok, thanks for answer :)

But do you work for a better ram managment ?
[Sony Xperia P, U, Sola, Go] 95A31:
No, optimization stage will be my last step.
[Sony Xperia P, U, Sola, Go] gigitux:
Ok, man.

Thanks, you are best :)
[Sony Xperia P, U, Sola, Go] percy_g2:
just dropping a post for FC fix ,multi sim things from cm-10.2 is ported to cm-11 by cm team and its the cause of fc

https://github.com/Legacy-Xperia/an...mmit/75d8f577aa6bf2a48455297a5c3e57dc516fb790

add msim framework jar file path in boot class to fix it , not tested but it should fix it .
[Sony Xperia P, U, Sola, Go] 95A31:
Thank you to all for support. I back to private repos untill all will be fixed :)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
yes this is the fix, i tested it

thnks [MENTION=4913184]percy_g2[/MENTION]
[Sony Xperia P, U, Sola, Go] mirco_pa:
Hey guys, what about gps? For me, it takes ages to fix. I tried it while I was driving and it was a pain in the ass. Could you have a look at it?
[Sony Xperia P, U, Sola, Go] 95A31:
Me too. Try with Wi-Fi and mobile networks help. I will check after FM.

I have a nice bootloop because hciattach is no more compiled. Ideas?

EDIT: Fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu [MENTION=4120742]munjeni[/MENTION] I hate you :p:p:p I was thinking that the only edit that you did from BlueZ git was about hciattach.c istead you also add tools/Android.mk and that is because hciattach is not compiled :silly::silly::silly:
[Sony Xperia P, U, Sola, Go] 95A31:
Help:

external/bluetooth/bluez/tools/hciattach.c:1462: error: undefined reference to 'ppoll'
collect2: error: ld returned 1 exit status
[Sony Xperia P, U, Sola, Go] Abhinav1997:
Well ld error generally occurs due to machine problem. So it could have been a failure of compiler or error due to toolchain or something like that. Try a rebuild just to be sure :) And is this occuring on slimkat?

Cheers,

AJ
[Sony Xperia P, U, Sola, Go] DevSwift1:
I added your last 2 commits but now I can't turn on wifi:/ what's wrong?
[Sony Xperia P, U, Sola, Go] 95A31:
LOL :laugh: Without a catlog is difficult to say.

Try this: use FreeXperia BoardConfigCommon.mk and Android Network Deamon by CyanogenMod.
[Sony Xperia P, U, Sola, Go] DevSwift1:
Yep I know. I will post logcat but now I don't have time

Can you upload for me netd and wpa_supplicant binary?

ok I know where is a problem. I change hostapd.conf to my old one now I can turn on wifi but now when I try turn on wifi tether it works but only for 1 sec:P and then it turning off

so with ctrl_interface=wlan0 I can't turn on wifi but without that wifi tether doesn't work:)
[Sony Xperia P, U, Sola, Go] 95A31:
I compile it from "jellybean" branch whit applied only my patch. I see that many devs have compatibly problems because different branch. I do not know if the binary substitution can working but anyway they are attached to this post. For a stable fix i suggest to compare my fixes with the original "jellybean" branch and port the necessary changes on your current version.
[Sony Xperia P, U, Sola, Go] DevSwift1:
I used jellybean branch

problem is why wifi can turn on only when ctrl_interface is set to wlan1
[Sony Xperia P, U, Sola, Go] 95A31:
Ok, if you are on jellybean branch the binary substitution should be work. Use my wpa and hostapd binary and this netd.
[Sony Xperia P, U, Sola, Go] DevSwift1:
Yeah man!! It works:)
[Sony Xperia P, U, Sola, Go] 95A31:
Of course that work, I make it ;)
[Sony Xperia P, U, Sola, Go] DevSwift1:
Yep. This patch also should work for 4.2 and 4.3
[Sony Xperia P, U, Sola, Go] 95A31:
Yes I think too, but is necessary adapt it to the proper android version.
[Sony Xperia P, U, Sola, Go] 95A31:
For facilitate the porting here is a diff of the modifications :good:
[Sony Xperia P, U, Sola, Go] Andrewasth:
Will implement tomorrow for cm10.2 [MENTION=5265970]95A31[/MENTION] I will pm you if I need your help ;)
[Sony Xperia P, U, Sola, Go] aca89:
[MENTION=5265970]95A31[/MENTION], could you possibly build just one version of cm10 with fixes included and upload it on some file host? Just for us mere mortals who don't know/don't have time to do it.
[Sony Xperia P, U, Sola, Go] alematt:
Use cm10 limited edition, it includes all those fix

Inviato dal mio Xperia U utilizzando Tapatalk
[Sony Xperia P, U, Sola, Go] 95A31:
Sure :)

No my actual build is bugged/experimental and not ready for daily usage.
[Sony Xperia P, U, Sola, Go] Andrewasth:
On external wpa supplicant 8...make file and ctrl.iface files are slightly differrent!
[Sony Xperia P, U, Sola, Go] 95A31:
It depends on wich version of CM are you working. I am on "jellybean" branch.
[Sony Xperia P, U, Sola, Go] Andrewasth:
On cm10.2! NEvermind! Figured out something! WIll build in a while
[Sony Xperia P, U, Sola, Go] kantry123:
Buddy can u also help in fixing Bluetooth bug in cm10.1 & cm10.2??
[Sony Xperia P, U, Sola, Go] Andrewasth:
I need help for tethering on cm10.2
[Sony Xperia P, U, Sola, Go] Andrewasth:
Are you sure you have added every needed line in hcitool? I think you have forgotten some files

---------- Post added at 11:29 PM ---------- Previous post was at 10:32 PM ----------

I think you should add some files (just checked the patches you uploaded) you are missing files in external bluez folder
[Sony Xperia P, U, Sola, Go] wan5xp:
I think add this line in hciattach.c

#include "ppoll.h"

Then add a file name ppoll.h in bluez/tools. I didnt remember the content, but it is in munjeni bluetooth files.

EDIT: here is the content of ppoll.h

#ifdef ppoll
#undef ppoll
#endif

#define ppoll compat_ppoll

static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds,
const struct timespec *timeout, const sigset_t *sigmask)
{
if (timeout == NULL)
return poll(fds, nfds, -1);
else if (timeout->tv_sec == 0)
return poll(fds, nfds, 500);
else
return poll(fds, nfds, timeout->tv_sec * 1000);
}
[Sony Xperia P, U, Sola, Go] 95A31:
This is right. Anyway I have this error because CyanogenMod is missing ppoll syscall that is present only in Android/Bionic master git repo. I must import like epoll. :good:
[Sony Xperia P, U, Sola, Go] erorcun:
Who made that hardware patches? It seems impossible to make them without sources but that frameworks_native patch was there before sources too, am I wrong?
[Sony Xperia P, U, Sola, Go] Andrewasth:
Munjeni
[Sony Xperia P, U, Sola, Go] alwaysadeel:
The Great :)
[Sony Xperia P, U, Sola, Go] 95A31:
I do not get it. Anyway the ppoll patch is from BlueZ 4.X -> https://android.googlesource.com/platform/external/bluetooth/bluez/+/android-4.1.2_r2.1/src/ppoll.h

Ok, fu*k you syscall in Bionic I use BlueX workaround :p
[Sony Xperia P, U, Sola, Go] 95A31:
Daily news:

New build: http://d-h.st/0mx

Need to test:

- WiFi

- WiFi direct

- Bluetooth

- A2DP

- Keyboard

- SMS

- GPS

- Reboot on recovery

- Games
[Sony Xperia P, U, Sola, Go] 95A31:
Usefull lreference for FM: https://github.com/arco/android_vendor_qcom_opensource_fm
[Sony Xperia P, U, Sola, Go] pirej:
BIG thanks.

Works: wifi, wifi hotspot, bluetooth, keyboard, gps, reboot to recovery.

Not tested: Games, SMS, A2DP

I have never used this option, so. HOW to enable WifiDirect ?