[Patch] Fix Network Error Network Selection

dnle71

Senior Member
Nov 9, 2011
914
194
0
Hi there!!!

I noticed that there lot's of user's complaining about error in selecting network. So, here i present you the ril files pulled from old an nightly which had a working netwok selection.:)

This is probably not for FUNNY SIM'S!!!


Patch
http://db.tt/ZOoEGNB5

Undo-Patch
http://db.tt/hWJmfHTY


BEFORE FLASHING, ADD THIS LINE TO YOUR BUILD.PROP..


rild.libpath=/system/lib/libril-qc-1.so
rild.libargs=-d /dev/smd0
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
ril.subscription.types=NV,RUIM <-----
ro.telephony.ril_class=lgeqcom <-----

Sent from my LG-P500 using xda premium
 
Last edited:

dnle71

Senior Member
Nov 9, 2011
914
194
0
Please don't complain about the same files having the same md5. My brain won't let me remove it..:D

Sent from my LG-P500 using xda premium
 
Last edited:

neko95

Senior Member
Jan 1, 2012
2,694
4,765
0
www.facebook.com
> This work.. but not all people knows how to set/reconfigure build.prop to add those lines.. I suggest you make an updater script which includes the build.prop lines.. but not to over wright the existing build.prop, it should only add those few lines..
 

dnle71

Senior Member
Nov 9, 2011
914
194
0
> This work.. but not all people knows how to set/reconfigure build.prop to add those lines.. I suggest you make an updater script which includes the build.prop lines.. but not to over wright the existing build.prop, it should only add those few lines..
Or upload thier build.prop here???? Maybe:D

Sent from my LG-P500 using xda premium
 

neko95

Senior Member
Jan 1, 2012
2,694
4,765
0
www.facebook.com
Or upload thier build.prop here???? Maybe:D

Sent from my LG-P500 using xda premium
> no :) .. I mean people who had build.prop tweaks like from zeppelinrox 3g boost or v6.. this will break those. if it would be over write with a whole build.prop.. So what needed is a script that only updates build.prop :) let me try to make you one.. :D
 

dnle71

Senior Member
Nov 9, 2011
914
194
0
> no :) .. I mean people who had build.prop tweaks like from zeppelinrox 3g boost or v6.. this will break those. if it would be over write with a whole build.prop.. So what needed is a script that only updates build.prop :) let me try to make you one.. :D
you mean this?

#!system/bin/sh

setprop ril.subscription.types=NV,RUIM;
setprop ro.telephony.ril_class=lgeqcom;

Sent from my LG-P500 using xda premium
 
Last edited:

-Arturo-

Senior Member
Oct 7, 2007
697
19
0
I really want to try it baddly but I have an old baseband with "old baseband" fix and it appears that both fixes/patches overwrite at least one file. I will have to reflash the rom and flash new baseband to try it when I'll find some free time.
Thanks for the fix
 

dnle71

Senior Member
Nov 9, 2011
914
194
0
I really want to try it baddly but I have an old baseband with "old baseband" fix and it appears that both fixes/patches overwrite at least one file. I will have to reflash the rom and flash new baseband to try it when I'll find some free time.
Thanks for the fix
Time to upgrade!!..

Sent from my LG-P500 using xda premium
 

-Arturo-

Senior Member
Oct 7, 2007
697
19
0
Time to upgrade!!..

Sent from my LG-P500 using xda premium
Ok I tried the network selection fix..

After trying to search for networks my phone rebooted.

I'm on Polish "Play" network.
I don't know whether I have a funny sim or not.


My phone bootloops....
 

DavisNT

Inactive Recognized Developer
Aug 27, 2011
522
726
0
Riga
projects.dm.id.lv
Actually I have made similar patch (but without undo patch!).
My contains less files and was meant for mentioning in CM issue 5182 Manual network operator selection fails (those who suffer from this problem, please vote for it!). Warning: My patch doesn't have undo patch and it overwrites build.prop, it is made for CM 7.2 RC3 and is purely experimental.
It was created after asking mik_os why manual network selection works in his unofficial CM port, but doesn't work in official CM 7.2 RCs. Here is mik_os answer:
mik_os said:
DavisNT said:
mik_os said:
DavisNT said:
Hi!

How did you manage to get manual network operator selection working on your Cyanogenmod ports for LG P500?
Can you give me a link to source code and/or a comment for Cyanogenmod official port developers?
Issue on CyanogenMod bugtracker is here: https://code.google.com/p/cyanogenmod/issues/detail?id=5182

Thanks a lot! :)
It's easy. CM has temporary switched to old RIL:
https://github.com/CyanogenMod/andr...mmit/49e0b810423dcf94f458e7cf3c2bb90900a7be9e
The old RIL does not properly supports Network Selection in our device. And CM will not fix this because this is temporary.
Can I switch my phone back to new RIL by adding back these lines to /system/build.prop (or other changes are also required)?
Code:
ril.subscription.types=NV,RUIM
ro.telephony.ril_class=lgeqcom
You also need change this libraries:
https://github.com/koush/proprietary_vendor_lge/commit/65568a688c73962049b2f28de6d108cf05f90772#p500
Also I have a question to everybody, especially mik_os and official CM devs. In my patch all files that were updated during library revert mentioned by mik_os are replaced by versions before revert, /system/lib/libdll.so is deleted, but /system/bin/rild is left, because if I delete it, radio doesn't work at all. Also every file, except /system/bin/rild in CM 7.2 RC3 flashable zip is the same as in library revert checkin mentioned my mik_os, but rild is different. Why so - what other changes in rild have been made?

Update: mik_os gave me this link to changes which fixed Manual Network Operator selection with old RIL (Froyo RIL that is contained within mik_os and official CM 7.2 builds): https://github.com/mik9/android_frameworks_base/compare/88b5c4b8eb...2ae66fc39b
Thanks mik_os!

Warning: Patch is only for official CM 7.2 RC3!
 

Attachments

Last edited:

dnle71

Senior Member
Nov 9, 2011
914
194
0
Actually I have made similar patch (but without undo patch!).
My contains less files and was meant for mentioning in CM issue 5182 Manual network operator selection fails (those who suffer from this problem, please vote for it!). Warning: My patch doesn't have undo patch and it overwrites build.prop, it is made for CM 7.2 RC3 and is purely experimental.
It was created after asking mik_os why manual network selection works in his unofficial CM port, but doesn't work in official CM 7.2 RCs. Here is mik_os answer:


Also I have a question to everybody, especially mik_os and official CM devs. In my patch all files that were updated during library revert mentioned by mik_os are replaced by versions before revert, /system/lib/libdll.so is deleted, but /system/bin/rild is left, because if I delete it, radio doesn't work at all. Also every file, except /system/bin/rild in CM 7.2 RC3 flashable zip is the same as in library revert checkin mentioned my mik_os, but rild is different. Why so - what other changes in rild have been made?

yes that was the basis of my patch too.. but i did not review all files that is not needed to be replace but my brain don't want to..:):)..
 

-Arturo-

Senior Member
Oct 7, 2007
697
19
0
Actually I have made similar patch (but without undo patch!).
My contains less files and was meant for mentioning in CM issue 5182 Manual network operator selection fails (those who suffer from this problem, please vote for it!). Warning: My patch doesn't have undo patch and it overwrites build.prop, it is made for CM 7.2 RC3 and is purely experimental.
It was created after asking mik_os why manual network selection works in his unofficial CM port, but doesn't work in official CM 7.2 RCs. Here is mik_os answer:


Also I have a question to everybody, especially mik_os and official CM devs. In my patch all files that were updated during library revert mentioned by mik_os are replaced by versions before revert, /system/lib/libdll.so is deleted, but /system/bin/rild is left, because if I delete it, radio doesn't work at all. Also every file, except /system/bin/rild in CM 7.2 RC3 flashable zip is the same as in library revert checkin mentioned my mik_os, but rild is different. Why so - what other changes in rild have been made?
Well i'll be damned it works ...thank you:)
 
  • Like
Reactions: bhaskar.

ec2011

Member
Feb 25, 2012
27
15
0
It works also for me

@DavisNT
I have tried your patch on my LGP500 with (CM 7.2 nightly 20120617 + patch NeuDLI http://forum.xda-developers.com/showpost.php?p=27616022&postcount=3314) installed.
It seems to work well, the only drawback is to get a misidentification of my "actual" ROM labelled "CM7.2RC3 and 20120526".
Manual selection works well ... Calls and 3G data also. :fingers-crossed:
Thanks a lot for your work!
If these two patches could be integrated by Adam (adfad666) in the official CM 7.2 next nigthly, it would be a huge progress in the LG-P500 version of CM 7.2.
 

NeuDLi

Senior Member
Feb 11, 2011
200
425
0
I took the liberty to slightly improve the RIL fix:

In the improved flashable zip the build.prop is not overwritten, but instead the init script of dnle71 is added. In this manner the build.prop is not touched thus preserving any tweaks made therein and also the CM version etc.

(Until someone can tell me how to use apply_patch in the updater-script to patch the build.prop I believe this is the cleanest way)

Furthermore I also added the "old" rild executable so that all RIL files are from the same stage, although apparently this was not absolutely necessary.

Thanks very much dnle71 and DavisNT for your work that I only combined!

Just the usual word of caution: I did test this on my P500 and it worked. For everyone else, however: Use at your own risk!
 

Attachments

Last edited: