yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] moss20:
I'm on Vanir stable release 4.3 and it seems that the rilmod doesn't work :(

NOTE : I used X3RIL_new.smali.
[LG Optimus 4X HD] Flying_Bear:
i'll take a look at vanir stable and see where the issue seems to be, thanks for reporting

edit:

just checking, it's 4.3 stable, not 4.3.1, right? also, what kind of error do you get?
[LG Optimus 4X HD] moss20:
This version (4.3)

http://www.emccann.net/nuclearmistake/VanirAOSPRelease/p880/vanir_p880_4.3.zip

I didn't get an error but I lost 2g signal again,even if I modded the RIL using your guide.

I repeated every insctruction and I replaced telefony-common.jar again 2 hours ago.

AndroidMultitool didn't get me any kind of error so everything shold be correct.

If i'll loose again the signal,I'll try with X3RIL_ol.smali.
[LG Optimus 4X HD] Flying_Bear:
hmmm, interesting. are you sure you flashed the right zip of the rom? :D i know, stupid question, but it happened to me once.

try to stress-test it; go into and out of airplane mode very fast, or switch from 2g to 3g only, see how long it takes to get network, and when you do get network, jsut dial any number so you can check if network is working. i have repacked vanir 4.3 with x3ril_new (x3ril_new was taken from eprj cm10.2, while x3ril_old was taken from cm10.1), ready for flashing, and in case the problem you have persists, i'll flash it tonight and check.
[LG Optimus 4X HD] moss20:
I downloaded that zip and I flashed the rom.

I'll try to stress the phone and I'll see what happens.

Btw,on miui rom you can notice the difference so I think it was workin correctly but performance in miui really sucks.

EDIT : I tested airplane mode and 2g/3g switch : it seems a bit faster and everything seems working correctly.

No network lost so far,fingers crossed ! ;)
[LG Optimus 4X HD] omidz:
Thank you sir, i thought we would never have this problem solved
[LG Optimus 4X HD] moss20:
unfortunately some minutes ago my phone lost the signal again.

now I'm movin to cm 10.1.3 and I'll mod its ril hoping that the problem will be solved.

MEDIACOM SmartPad 810c

ROM : First 4.3 (4.0.3)
[LG Optimus 4X HD] Flying_Bear:
Im sad to hear it, it may be that eprj ril doeant fix the issue completely, but reduces it considerably. Good luck
[LG Optimus 4X HD] moss20:
I'm testing the rilmod on cm 10.1.3 : it seems to be working : switching to airplane mode or 2g/3g network is faster than on vanir.It's really fast,like in miui 3.12.6 with rilmod that I tested some days ago.

Hope that this rom will be my ultimate configuration.

I'm tired of changing rom so often like I did in this month.

LG Optimus 4x HD (p880)

ROM : Vanir stable 4.3 release (4.3)

Kernel : Optimus Prime 2.7 (3.1.10)
[LG Optimus 4X HD] ssefrgr:
Hello, do you think it is possible to do this mod at cm11 official?

The connection has IMO get much better lately, but not to satisfaction.
[LG Optimus 4X HD] Flying_Bear:
yes, running modded cm11, works without issues :good:
[LG Optimus 4X HD] black@pirate:
I tried official CM11 and PA one which uses kholk's RIL and I can't say they have many differences. RIL is stable in CM11 compared to 4.3 roms. :D
[LG Optimus 4X HD] Flying_Bear:
i may try one of the nightlies with default ril when i feel like updating, to test default ril and the behaviour, but for now it's good to know that modified ril works even with 4.4 ^^
[LG Optimus 4X HD] ssefrgr:
Sure is :) please test the cm ril with next nightly. My "pageloading-bar" often jam in the middle of the bar and the page stops loading and I have to use "airplanemode-button" to get the page to reload. ... :cowboy:
[LG Optimus 4X HD] ssefrgr:
Hello Mr Flying Bear, sorry to disturp you during ROM- flashing ;) but I'm courious if you tested the ril's in official cm11 yet? What is your opinion?
[LG Optimus 4X HD] Flying_Bear:
hey there ^^

haven't really tested official rom's ril, as i'm stuck with beanstalk with modified ril atm, since it's rom really rich with features :D

i *may* flash official nightly for few hours this weekend and test the connection/airplane mode/2g & 3g switching, if i manage to get some free time, as my finals are scheduled next week. the good news is, modified ril works with probably all 4.4.x roms we have available for our device, so anyone having issues with imei/ril can use the tutorial to try to fix'em ;)
[LG Optimus 4X HD] QuGhZx:
Hey sir! thanks for this useful thread

I decided to follow your steps and change the RIL cause I had faced some problem with Airplane mod (it doesn't restore network connection when re-disabled) and I rarely lost connection, I experienced this in CM11 and Vanir, but didn't with Adam's OmniROM!!

I'm currently running Vanir 4.4.2 (vanir_p880_4.4.2.011214.zip) so I followed your steps and the funny part is that I couldn't find the X3RIL.smali in side that ROM!! :confused:

rightnow I don't know what to do so I'd appreciate you advice if possible sir :D
[LG Optimus 4X HD] Flying_Bear:
Hey there, just put the x3ril.smali in the jar and repack; this seems to have worked for me on beanstalk (not sure if this work tbh, but i dont have ril issues) . Alternatively, try using whole telephony framework file from another rom, but I'm not sure if that will work either.
[LG Optimus 4X HD] QuGhZx:
actually I tried both methods last night, so when I tried to add it to ROM and flashed it, the ROM worked well but airplan mod is still bugy so I tried to include the telephony framework from Adam's OmniROM and flashed the ROM but phone process kept crashing !! don't know what to say! in Adam's ROM airplane mod was just perfect so was connection.
[LG Optimus 4X HD] Flying_Bear:
unfortunately, i don't know the solution :(

perhaps [MENTION=4719724]Adam77Root[/MENTION] can help us with this?
[LG Optimus 4X HD] Adam77Root:
Usually you can't replace the whole framework from one rom to another. You could try X3RIL from Omni.
[LG Optimus 4X HD] Coolneng:
Does anyone have the problem that all calls are automatically on speaker mode (external speaker, the one meant for media)? Because I can't switch it. I have Paranoid Android and I also tried this RIL in Omni (an old 4.3 build and I had the same problem)
[LG Optimus 4X HD] Flying_Bear:
what about roms that don't have x3ril.smali in them?

havent had this issue tbh, did you do a full reset and test?
[LG Optimus 4X HD] Adam77Root:
There could be roms that don't have the custom RIL inclusion merged. If our device didn't work with default RIL, these roms wouldn't work. These roms probably don't have supported devices that use this method.

Sent from my OmniROM-powered LG Optimus 4X HD
[LG Optimus 4X HD] Flying_Bear:
that means that roms without x3ril.smali can't have eprj ril implemented, right?

also, beanstalk build, the first build had x3ril.smali in telephony-common.jar, while the newest build doesn't. would it be possible to use whole telephony-common.jar from first build in the second build, since it's the same rom?
[LG Optimus 4X HD] QuGhZx:
Hi [MENTION=4719724]Adam77Root[/MENTION] :D

do you have any idea why Airplane mod is bugy in CM11 and all it's based ROM's

when I enable Airplane mod to cut my network connect it works well but when I re-disable it it doesn't restore mobile network connection so I have to reboot and retype my PIN again to restore network connection or do it manually by going to Settings> in WIRELESS & NETWORKS "More..."> Mobile Networks> Network Operators> wait till the search is finished (takes 3 to 5 min's) and choose my network to restore connection back!!

that is one hell of an annoying problem :(

I didn't face it in your OmniROM (Which was absolutely awesome :D) but I switched to CM11 and it's based ROM's because of theme's feature :p currently I'm running Vanir 4.4.2 (vanir_P880_4.4.2.011814.zip) and this bug still exists. :(

if you know something about it please help :o
[LG Optimus 4X HD] Adam77Root:
Maybe yes, maybe not. Only sources can tell. It can also happen that they have the supporting commit, but sth is derped in the device tree so it doesn't get included. However, even if the inclusion commit isn't there, the custom RIL class usage is. It must be, because all main devices use some custom RIL. So putting EPRJ RIL and setting the property would suffice.

You can always try, but in general replacing any apk or jar is a bad idea. Even if it works for daily use you might encounter rare crashes. For example you don't everyday get cell broadcasts, but imagine what would happen if you get one in emergency (e.g. tornado) and the RIL crashes because of an unhandled exception that's caused by incompatibilities. Of course this is exaggeration, but depicts the issue fairly well. :)

It's hard to tell this way. You could try one thing: Repack Omni's X3RIL following this tutorial and report.
[LG Optimus 4X HD] Flying_Bear:
ok, i have found a semi-solution in case your rom, for some reason, doesn't have x3ril.smali in it's telephony-common.jar; search for previous builds of that rom which do have x3ril.smali, mod it, end replace the whole telephony-common file from old rom into new. it's not a perfect solution, but it seems to be working for me on beanstalk. i'll add this to the OP too
[LG Optimus 4X HD] donkanmcklaus:
i don't know why but in recent CM11 nightlies are facing issues with RIL more continues than early nightlies, I tried this tutorial to implement EPJRIL but the behavior of the signal is unstable for me, i don't know why, I will try to port Omni's telephony or RIL and test to see what happens, i'm really tired of CM based Rom for this reason, some are great other not so much, but the main issue for me is unstable signal, and to have to reboot the phone continously
[LG Optimus 4X HD] donkanmcklaus:
I give up, I tried everything, from implement EPRJ RIL into a variety of ROM, to implement different x3ril.smali from other ROMs, and always have the same problem, now I'm rolling back to a stock based ROM, and let the phone die peacefully, thanks for the support
[LG Optimus 4X HD] Flying_Bear:
i'm sad to hear that :( did you try p.a. by dcos by any chance?

also, i've added a fix to the op for roms which don't have x3ril.smali in them by default, all credits go to [MENTION=5137845]gerciolisz[/MENTION]
[LG Optimus 4X HD] donkanmcklaus:
Yeah, I also tried PA Rom very nice but it has the same signal problem for me
[LG Optimus 4X HD] donkanmcklaus:
[MENTION=3506654]Flying_Bear[/MENTION] please can you tell me what can I do to modify EPRJ RIL to try to solve my problem? There's something wrong that losing signal continues happening
[LG Optimus 4X HD] Flying_Bear:
Unfortunately, modding the ril itself is beyond my knowledge. My suggestion is, stick to stock-based roms, like enox, zaiben, or some other.
[LG Optimus 4X HD] donkanmcklaus:
i'm using right now Enox, but sincerely i hate stock based roms, the performance are bad, well thanks! :good:
[LG Optimus 4X HD] LGaljo:
This is telephony-common.jar for unofficial kitkat built on 26.1.2014. Set right premission rw-r--r-- or 644 and edit build.prop.

Confirmed to work.

https://www.dropbox.com/s/olsu4kqsec2ibgt/telephony-common.jar :highfive:
[LG Optimus 4X HD] donkanmcklaus:
Which changes did you do?
[LG Optimus 4X HD] gengi:
What edition we need to do in build.prop? Thanks.
[LG Optimus 4X HD] LGaljo:
Look at first post. You need to remove # before ro.telephonyril_class=X3RIL
[LG Optimus 4X HD] moss20:
Don't ask me why but my problem with RIL comes when I do a format /system : before doing this for the first time,I had no problem with network for about a year.

Then I had network problem with and without this mod.

A month ago I flashed cm 10.1.3 (with rilmod),P.A. 4.3 (without rilmod 'cause it's already included) miui 4.1.10 (without rilmod : it doesn't work with this rom but I had no problem with network),then I flashed miui 3.12.21 (without rilmod and no network problem).

After flashing these rom without doing a format /system,I flashed slimbean 4.3.1 by demetris without rilmod and no network problem but something didn't work correctly with updating playstore apps and I read about this problem that can be solved only with a clean install so I decided to do format /system for the second time with this phone and some hours ago the network issue came back !

I really don't know why this happens but I hope that what I wrote could help other users that are more expert than me to find a solution.

Inviato dal mio SMARTPAD810C con Tapatalk 2
[LG Optimus 4X HD] Flying_Bear:
thats quite weird, as whenever you install any rom, a script inside it should tell it to format /system partition.
[LG Optimus 4X HD] freshquiz:
i9100T

I have a Samsung i9100T and have tried to switch to Cyanogenmod (from stock) for the last few months, but I keep getting reception issues.

The phone seems to work fine until the reception randomly dies and does not come back until I restart my phone.

I have tried Cyanogenmod 10.1.3 (stable) and the latest 11 nightlies and the problem is still occurring.

It's frustrating the hell out of me, because it's not some unimportant small feature that's not working, it's the reception. Cyanogenmod is useless to me without reception.

I stumbled upon this thread and have also come across "RIL" many times, so I am guessing this is the root cause.

I am willing to do anything to fix this issue and will start by following the instructions in the first post of this thread.

Edit: I just realised that this thread is for an LG phone (wasn't clear the first time I read through). This would probably explain why I see no X3RIL.smali file in the Cyanogenmod 11 telephony folder.
[LG Optimus 4X HD] donkanmcklaus:
did you try to change baseband or radio drivers? for i9100 there is a lot information about it, i have a friend with a i9100 and we solve that problem changing the radio drivers, but i don't remember the exact solution, but we found it here in XDA developers at samsung i9100 section
[LG Optimus 4X HD] moss20:
Some roms did it and some didn't but it seems that the problem is related to an "user format /system" (maybe is a a problem of cwm recovery ?) but I really don't understand the connection between format /system and signal problem.

The strange thing is that the signal problem is really casual (sometimes it happens lots of time in a day,some days doesn't happen any time).

It seems a singular problem since with this fix was helpul for all people that used it.

Inviato dal mio SMARTPAD810C con Tapatalk 2
[LG Optimus 4X HD] freshquiz:
When you say baseband or radio drivers, are you referring to flashing different "modem.bin" files?

If so, then yes I have tried different modems,

I did try one or two modems from the bottom of the Cyanogenmod i9100 wiki page (can't link it as a newbie), which did seem to solve the issue, but it gave me really bad reception (i.e. less than -100 dBm, whereas I get between -70 and -80 on my stock ROM). I know you will probably say that the stock ROMS lie about the reception, but I was getting -70 and -80 on Cyanogenmod (but that was when it would crash randomly).

So having constant, but bad reception is not really an option either.

I will try to find the post you are referring to, but I would appreciate it if you could link it to me, as I am brand new to XDA.

---------- Post added at 10:59 AM ---------- Previous post was at 10:16 AM ----------

I still can't find this fix you are referring to, but I have found lots of people saying they have experienced the same reception dropout problem.

Even people on other Samsung phones (e.g. Galaxy S3).

It astounds me how this issue is still existent, I would have thought it would be top priority to fix.

NOTE: I should mention that I read that the RIL should not be altered at all when flashing modems/radios with Cyanogenmod, as it will most likely corrupt things. I don't know if this applies to all phones (as it was an i9100 forum), but I did notice that changing my RIL did not help and did seem to make things worse. I.e. I read that the "modem.bin" file should be flashed by itself, which I remember doing the first time and it didn't seem to corrupt anything (although I still had reception issues).
[LG Optimus 4X HD] Aimbot91:
I have tried method for KK rom on Beanstalk rom but in build prop there is no"#" before that line which l need to edit so l can't remove it...After the process and flashing rom again l get "process phone stoped"?What is the prob?

Послато са LG-E430 користећи Тапаток 2
[LG Optimus 4X HD] Flying_Bear:
what sources is the beanstalk you're using based on? official cm11, p880dev with grouper blobs, or p880dev with old blobs?
[LG Optimus 4X HD] Aimbot91:
I have Beanstalk version from 01.03.2014...I will try it on new version with group blobs,and see if it work:thumbup:

Edit:Working with new version with group blobs,but after full wipe.

Sent from LG 4X HD using Tapatalk 2 press"Thanks"button
[LG Optimus 4X HD] rr46000:
Hey there!

I wanted this to try on pacman rom on my xt1033 but all roms were made for xt1032

I had exactly same issue like network registering later and not reiving call

But i can't find the X3RIL ,there's only RIL

And from which ril should i replace fro the working rom maybe the working rom?
[LG Optimus 4X HD] Flying_Bear:
This will work only on p880 im afraid. I'm not familiar with contents of telephony-common.jar in moto g, try asking devs on your subforum. Good luck!
[LG Optimus 4X HD] SHA_NDY:
AWESOME!! Fixed all my problems concerning connectivity and is easy to use!!!

Thanks!
[LG Optimus 4X HD] SHA_NDY:
BTW (sorry for being off topic)

[MENTION=3506654]Flying_Bear[/MENTION]: Do you think USB OTG could work with similar actions performed with parts of the EPRJ kernel??
[LG Optimus 4X HD] JoinTheRealms:
x3ril or other ril implementations aren't apart of the kernel, while usb otg is. But one could cherry-pick iodaks otg implementation quite easily and apply it to another kernel
[LG Optimus 4X HD] Flying_Bear:
Yep, we're waiting for iodak to release v10, since he's backporting usb OTG from kholks kernel ;)
[LG Optimus 4X HD] gmajnkek:
Reading about this RIL and i really dont know if this will solve my phones problem. So thats why i will tell what my problem is.

till 1 week ago my phone and rom did work just great. I could turn on and off data connection as i wished and i mean time get calls/sms with out any problem. But now this is a problem. If i am using WiFi there is no problem, i can call/sms and use internet. But when i turn on data connection i am unavailable for calls and sms, only internet works. I did switch back to stock JB but the problem remained (did a full wipe before restore).

So my question... will this RIL help me. I downloaded getRIL and here are two screens.
[LG Optimus 4X HD] gmajnkek:
Just tested if call/sms woks on 2G (edge). It works, so the problem is in 3G

Sent from O4X - SlimBean 4.3 rom
[LG Optimus 4X HD] daniel.mota:
Your problem is not similar to those discribed in this thread, so I don't think this procedure will help you.

But maybe someone more informed can explain you better.
[LG Optimus 4X HD] Flying_Bear:
yeah, it's not like the usual problem people have with our ril. but you can always give it a go and see if it fixes anything for you
[LG Optimus 4X HD] gmajnkek:
Ok thanks. I will try to get back to stock, update stock to latest version and back to custom. Maybe this will help. Dunno... I know this thread is not about stock but just one question:

I have unlocked my bootloader and got root. So is there an option to get latest EUR stock rom on my phone via LG pc suite or some other tool?

Thanks
[LG Optimus 4X HD] Flying_Bear:
Yes there is, via kdz reflash, i think even lg pc suite can redtore stock image. Look around, there are several threads on how to do that
[LG Optimus 4X HD] gmajnkek:
Yes i found one or two. Thanks.

btw. my solution for not working on 3G. My phone/network provider updated to 4g and this sucked a bit also on 3g, thats why the problem was there and thats why only 2G worked. BAAAH...

Thanks for all infos.
[LG Optimus 4X HD] donkanmcklaus:
Did you try changing your baseband? Some time ago my phone was full is ril related issues until I switched to v10h baseband, now everything goes good, even the GPS improves a lot
[LG Optimus 4X HD] josip-k:
Hey guys,i use PA,and with EPRJ RIL i have a great signal,but i cant use 2g/3g,is there any way to fix it or i'll be forced to use a different rom..?
[LG Optimus 4X HD] Flying_Bear:
could you explain what exactly do you mean by you can't use 2g/3g? you can't get 3g signal, or 2g signal or?
[LG Optimus 4X HD] josip-k:
Yes,when i turn mobile data on i dont get 2g or 3g.
[LG Optimus 4X HD] ALuedtke:
Hi Flying_Bear,

I'm using a modified ril with CM11 (nightly build one week old) according to your suggestion. In the last days I encountered a symbol that I have never seen before. You can see it yourself in the attached image.

I have to reboot the phone to remove the symbol and get a working connection again.

Is there something else I can do?

Gesendet von unterwegs
[LG Optimus 4X HD] Flying_Bear:
hmmm, i haven't seen that symbol before. could it be that your sim card is somehow faulty? not sure what the problem is exactly tbh
[LG Optimus 4X HD] EB20XY:
can you please try official CM11 from today (7.4.) and confirm that is not there any more ?
[LG Optimus 4X HD] Coolneng:
I had that symbol too while using Paranoid Android. But with the latest build I have seen it anymore

Sent from my LG-P880
[LG Optimus 4X HD] ALuedtke:
Yes, I will try that, but earliest at the weekend.

Gesendet von unterwegs
[LG Optimus 4X HD] ALuedtke:
I prepared today a CM 11 from 04/09 and I will report back after some days using it.
[LG Optimus 4X HD] Ben-B:
I lost telephony signal after trying a 4.4.2 rom, trying to follow this guide no, but the decomiled_jar folder stays empty. log says no errors, but I'm not sure it's doing anything. Any ideas?
[LG Optimus 4X HD] Flying_Bear:
could you upload telephony-common.jar here, and i'll try to mod it for you? ^^
[LG Optimus 4X HD] Ben-B:
Wow, that would be really cool if you could try, thanks! (Attached file from Vanir rom)
[LG Optimus 4X HD] Flying_Bear:
hmmm, vanir has one of the most stable rils i've seen. it's even more stable than eprj (for me), and i was gonna change OP with updated link with vanir x3ril. i'll mod it for you, but i don't think your problem is the one this thread describes. give it a try and report back ;)
[LG Optimus 4X HD] Ben-B:
Thanks so much - I take it that's all ready to put back into the zip and reflash with? Not other steps to mess with?
[LG Optimus 4X HD] Flying_Bear:
no other steps needed, build.prop is tweaked properly as-is. good luck!
[LG Optimus 4X HD] Ben-B:
OK, still no signal. Wasn't too likely I guess, considering it id work fine with Vanir for a few weeks. Once I lost signal I found it did come back for a bit one day (not sure what brought it back) . Also trying different roms it never came back. So it can't be a quirk of this rom.

I wonder how I can figure out what the fault is? (I wonder if it's hardware)
[LG Optimus 4X HD] Flying_Bear:
my recommendation is, try flashing a stock-based rom (such as zaiben). see if you have issues with it. next step is, re-flash of a kdz file. that should fix any issues you might have, but it's a bit of a long and tedious process. if even then you can't get network, it might just be a hardware failure :(
[LG Optimus 4X HD] Ben-B:
Thanks, nothing to lose, I've already wiped the phone etc, so no effort really in trying a few new zips!

---------- Post added at 12:48 PM ---------- Previous post was at 12:31 PM ----------

OK, Zaiben v20b based rom, with it's own kernel doesn't give me signal either. I guess it's a hardware fault!

Thanks so much fr your help though!
[LG Optimus 4X HD] Flying_Bear:
hmmmm, quite an interesting problem indeed. try reflashing a kdz, if that doesnt help you, i dont think anything else will. :(
[LG Optimus 4X HD] xaverko:
Had same problem, solved turning off Connection manager.