yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] hawkerpaul:
To clear up some of the confusion that seems to have cropped up here.

These scripts flash the original modem+ril files of a particular firmware. Unless Samsung themselves have made a mistake, then these are therefore the correct RIL files for the modem.

It is a known fact that the modem that came with any particular version of firmware may not be the best for you.

This caused people to write modem flashable files.

However, these only came with the modem itself (modem.bin) and not the modem's associated RIL files.

Hence, as people began to flash modem after modem to judge for themselves which one was the best, the modem-ril combination obviously then gets out of step.

This is where these scripts come in.

They do nothing fancy or complicated.

They merely install the modem's RIL files as provided by Samsung in addition to the modem itself.

As you would now be using Samsung's intended RIL files for your modem, if GetRIL then reports a mis-match after flashing one of the ModemRIL scripts, then barring a mistake by Samsung themselves or the script's author by building RIL files from other modems, then it is a problem with GetRIL's database and/or logic on how it decides if there is a mis-match.

If you are installing a modem from a different Android version, then this may cause problems, and if so, flashing the modem only would be the best course of action if you think that modem works best for you.
[Galaxy S II General] ApriliaM3:
ModemRIL_DXLPA_Thailand created and uploaded to Dev-Host mirror

HERE

You will find it under the Android 4.0.3 directory.
[Galaxy S II General] rogers11:
Thanks, this makes it clear for me.

It seems that GetRIL checks the matches by name.
[Galaxy S II General] citytrader:
People, how complex could be to read a thread!?

Take a bit of your time to read and you will find the answer.

The same goes for people using Getril, using the scripts you don't need to check with Getril, its worse because Getril has issues and this is explained in this topic, so take the time to read.
[Galaxy S II General] marco.fuce:
Where I can find the last h3g itialian modem end ril? Which is? Tnx
[Galaxy S II General] ApriliaM3:
Check on samfirmware.com

SGSII GT-i9100 via Tapatalk
[Galaxy S II General] avinashadvani:
Thank you very much, i went through your instructions in first post it was too hard for me to handle:cowboy:

thanks for your help in this,

it should 4.0.4 i installed this rom on my phone and checked the version, it may be a typo by sammobile.

once again thanks a lot appreciate your time in this:cowboy:

EDIT: I cant find the file on the dev host, checked all the folders there. am i missing something?
[Galaxy S II General] ApriliaM3:
Grab from this link

HERE
[Galaxy S II General] avinashadvani:
got it now with this link, thanks again!!:good:
[Galaxy S II General] erwinpiero:
Helo,

I just came and right away try this steps since my CM9 always undergoing strange signal lost.

I had local .md5 official DXLP7 ROM and succeed till this step:

4. Drop factoryfs.ext4.img onto your DiskInternals Linux Reader shortcut you created on your Desktop. This will open the app.

5. Double click Linux Ext Volume 1 (or similar)

I was unable to find "Linux Ext Volume 1", it's only display local drive and nothing more.

Is there anything wrong i've done?

Need suggestion thank you
[Galaxy S II General] hawkerpaul:
Are you definitely dropping factoryfs.ext4.img and not factoryfs.img?

When linux reader opens after dropping you should see the Linux volume in red.
[Galaxy S II General] erwinpiero:
Sorry Sir, it's my terible fault, i dropped it in master file. While i should drop it in installed one...

Thank You.

After all i succeed build it, put modem and libaries, also edit update_script 4th line with "DXLP7", then flashed it.

And when i'm running GetRIL it said Unknown RIL found. Modem was right it said I9100DXLP7 and below it, recommended Unknown. But everything going well i think, data, call & sms all Ok.
[Galaxy S II General] tlf55:
Can i use XXLPS(4.0.3) on my firmware LPX (4.0.4) ??

But " 4. /system/lib/libsecril-client-sap.so (4.0.4+) " won't be changed because XXLPS don't have this so .. Do i have to care about this ?
[Galaxy S II General] adotkdotjh:
Somebody earlier said it may or may not cause problems. I suggest you make a backup, try it out, and see if its better.
[Galaxy S II General] Lownita:
Does anyone know where the XXLQ6 (4.0.4) RIL in getril comes from?

Thanks!
[Galaxy S II General] sibbor:
Thanks a lot for this thread and collection. I'll make sure to update GetRIL with this information. It might take some time though... pretty hectic life atm.
[Galaxy S II General] hawkerpaul:
That's great news sibbor!

:D

Out of interest, can you tell me which RIL files GetRIL was actually updating please?
[Galaxy S II General] ApriliaM3:
Probably from I9100XWLPX or I9100XWLPU ROM (both use XXLQ6 Modem)
[Galaxy S II General] hawkerpaul:
Not sure about GetRIL, but for the ModemRIL_XXLQ6 script, I extracted the files from XWLPU firmware.
[Galaxy S II General] rogers11:
I've extracted the XXLQ6 RIL-files from XWLPX and libsec-ril.so is different.

So we do not only have to watch for matching RILs and Modems, but also for matching RILs/Modems for different firmwares? Complicated :p
[Galaxy S II General] marco.fuce:
Tnx for the UHLPH! !! In Italy with h3g it s perfect. Better battery lofe ever. Tnx
[Galaxy S II General] mcmanuf:
Yeah I did the same thing, and it is not the same as the one uploaded to OP's server.

The "new" XWLPX RIL seems to be unknown to GetRIL, but do not know if it is "better" than the one uploaded here with the XXLQ6 files!

Yeah its getting more and more complicated :(

Too many variables to take care of.
[Galaxy S II General] fr3quency:
XXLPW anyone? =)
[Galaxy S II General] drahmed86:
+1 it's perfect in egypt as well.
[Galaxy S II General] fr3quency:
Guys, would anyone know which modem best fits Greece & carrier: Cosmote? D:

*Well, I do hope a Greek sees it xD*
[Galaxy S II General] ApriliaM3:
BOLP5

I've created a Modem / RIL combo for you which can be downloaded from my Dev-Host site

HERE

@hawkerpaul: please add this new one to the OP :)
[Galaxy S II General] Jibreil:
As I'm not at all technically sound on extracting the respective RIL files - may I request anyone to share the DDLP8 modem (modem released for India) along with it's RIL files.
[Galaxy S II General] siggey:
only a small idea, but we could try to make a table that connects modem, country & operators..

just for helping people choose

phone: sgs2 GT-I9100

kernel : dorimanx 5.80

main rom: rr 2.7

second rom: cm 9.1

baseband: I9100XXLQ6
[Galaxy S II General] ApriliaM3:
What firmware build / ROM is this modem from?

The latest firmware release for India that I can see on samfirmware uses DDLPA modem.

Also, the step-by-step guide on page 1 of the OP is quite simple and easy to follow... you just need to devote about 15 minutes of your time plus download the original firmware.
[Galaxy S II General] hawkerpaul:
I've put in post#1 which country/carrier the modem/ril files originated for the ones I know.

If any of you know the origins of the others, let me know and I will update post#1

As for which works best for a particular country/region, I would recommend sticking to a modem associated to your current Android version, and then within that, trial and error is probably the best bet. :)
[Galaxy S II General] hawkerpaul:
The latest ModemRIL_XXLQ6 script is now available for download (many thanks to ApriliaM3 :) )

Previous version was taken from XWLPT/U. Current version taken from XWLPX which seems to have a different libsec-ril.so file.

As XWLPX is newer, I shall assume this is the better of the two.
[Galaxy S II General] belerephont:
This is from 4.0.3 version if I am not wrong. You think makes sense to use it with JB rom? Or just stay with BVLPE? I am also in Greece with Cosmote..

Thanks
[Galaxy S II General] ApriliaM3:
Yes it's from the latest Greek / Cosmote firmware which is still 4.0.3

I doubt you've got much to lose really... it only takes a minute to flash it and see how it performs.

If it fails to impress, just flash BVLPE back over the top.
[Galaxy S II General] drahmed86:
wannamlite 12.6 with its MODEM (UHLPH) is really astonishing and unbelievable........
[Galaxy S II General] mattisfaction:
Been using lpr on t mobile UK and in my opinion it's the best set up for this network even though my cfw is cm10 and this is an old modem file. The network speed and connection is great.
[Galaxy S II General] tariq2kn:
Try NELP2.
[Galaxy S II General] bobdoblo:
Quick question, my phone was originally on t-mobile but i noticed it was unlocked so i put my 3 sim in because it has more mins, texts and data.

Now should i be looking for t-mobile or 3 modems?
[Galaxy S II General] ApriliaM3:
I doubt it matters significantly... have you noticed any difference?

SGSII GT-i9100 via Tapatalk
[Galaxy S II General] bobdoblo:
Only really tried 3 network modems, whats a good uk tmobile modem?
[Galaxy S II General] Noed:
UHLPH going well here in Brazil too, with Revolution Remix v.3.0.7 Jelly Bean AOKP ROM and Siyah v.4.1.5 Kernel.

SGS2
[Galaxy S II General] citytrader:
That is a fantastic idea, the table should have, original modem operator, target operator and country, for example BVLPE original modem operator is Orange and in my case target operator iUsacell, so in the future you will follow the same original operator.
[Galaxy S II General] xtol101:
dropping connection

Hi,

I have this problem with my connection. I usually have a good amount of connection bars but then and again the connection status bar just goes blank. I have to restart the phone in order for the phone to reconnect to a network.

I tried flashing one of these modem+ril packages to no avail.

This really bothers me since I use the phone in my work and I can't have ppl not getting through... Heeeelp?
[Galaxy S II General] citytrader:
Backup your application with Titanium.

Install the firmware again following this:

Erase data/cache and format system, Install Neatrom Lite (the not moded version) and try first Kernel Phenomenal Extreme 6.1 before Siyah.

After that install modem/RIL.
[Galaxy S II General] ballmead:
Is your phone an I9100T?

Sent from my GT-I9100
[Galaxy S II General] E:V:A:
You may consider adding the "drexe" (Data Router) binary to that list, as it is closely compiled together with the RIL's above... In some devices, there is no drexe, as it is called something else. Check dmesg. But those are

usually

non-european, and thus completely different...

PS. Sorry, but thread search is not working for me today, so I'm not sure if this have already been discussed.
[Galaxy S II General] hawkerpaul:
The last time I included anything in system/bin (rild) it caused a boot loop when installed on different firmware.

I'll have to look into it.

Thanks for the heads-up mate.

:)

Edit:

Seems ok as long as you are installing a modem relating to your current Android version

In my testing, if I run a 4.0.4 modem on 4.0.3, it boots, but internet access is dreaful, but this may be due to the poor signal in my area.

If fellow script contributors could also do a quick test then I'd be grateful. :good:

I'll have to wait for feedback on this one before deciding whether or not to include this file...
[Galaxy S II General] belerephont:
Flashed the new XXLQ6 file and now getril says "Unknown RIL found"

Any ideas on this?

Edit: Should I match the RIL from getril or leave as is to see?
[Galaxy S II General] siggey:
get ril database is old so don't worry

phone: sgs2 GT-I9100

kernel : dorimanx 5.79beta

main rom: rr 2.7

second rom: cm 9.1

baseband: NEKI2
[Galaxy S II General] Jibreil:
Just noticed the BVLPE modem was removed and re-uploaded. Can you share the changelog pls?
[Galaxy S II General] ApriliaM3:
Hawkerpaul just updated the scripts slightly to make it more universal afaik.

Btw, did you work out what firmware contains DDLP8 modem?

SGSII GT-i9100 via Tapatalk
[Galaxy S II General] hawkerpaul:
Correct mate.

No updates to the modem files themselves, just tidying up of the scripts.
[Galaxy S II General] Juzman:
I've created one from official Telstra (4.0.3) firmware for Australia.

RIL: I9100BGLP2; I9100BULP6

Modem: DVLP3

The weird thing is, the RIL doesn't match the baseband.
[Galaxy S II General] citytrader:
If you created it from official ROM, how can you arrive to write that the RIL doesnt match?
[Galaxy S II General] Juzman:
I'm not sure. I downloaded the official Telstra firmware, extracted said files. Replaced them on my S2. Used getRIL, and says it doesn't match.

As you can tell from my post above.
[Galaxy S II General] citytrader:
The good part is that you are collaborating adding a new modem-RIL, the bad part is you dont read the topic to understand what happens with getril.

The combination from the stock ROM is correct.
[Galaxy S II General] Juzman:
What do you mean that I don't understand what happens with getril? All I did was use getril to determine if the RIL/modem matched. Getril reported that it doesn't. That's all I mentioned.

I just found it strange that official firmware doesn't have a matching modem/ril.

As per OP:

After flashing you should have a compatible Modem/RIL combination.

You can use the GetRIL app after installing just to be sure the RIL files were copied, as it should report baseband/RIL as matching.

Edit:

I just saw this:

As you would now be using Samsung's intended RIL files for your modem, if GetRIL then reports a mis-match after flashing one of the ModemRIL scripts, then barring a mistake by Samsung themselves or the script's author by building RIL files from a different modem/firmware, then it is a problem with GetRIL's database and/or logic on how it decides if there is a mis-match.

So it's an issue with GetRIL. :)
[Galaxy S II General] citytrader:
On Samsung, getril should not be used till the database is rebuilded and a new getril version is released.
[Galaxy S II General] Juzman:
Fair enough. I didn't realise this. I only used it to see if modem / ril matched. Didn't use it to download anything. It's uninstalled now.
[Galaxy S II General] citytrader:
The same problem, you should not use it even to check matching, it would show you wrong information.
[Galaxy S II General] ApriliaM3:
Uploaded to Dev-Host mirror, thanks.
[Galaxy S II General] rogers11:
Attached are modems BULP6 and BULP7 from 4.0.3 Vodefone DE (LPC resp. LPD).
[Galaxy S II General] xtol101:
I have the regular international sgs2.

//

I hope I won't have to do what Citytrader is suggesting but thank you, if there is easier way I'll try that soon :)
[Galaxy S II General] Jibreil:
I found out that DDLP8 is for Galaxy Note (India model). Hence decided to stick with DDLPA which is giving me fantastic 3G speeds compared to BVLP7 and BVLPE.

DDLPA is slightly heavy on battery but seems to be faster than the above on RB JB 2.6.1
[Galaxy S II General] RovG:
Thank you E:V:A.

I am using DXLPB rom with BVLP7 modem and RIL replaced by GetRil. I get a lot of DataRouter errors in my logcat as per the screen cap.

@Hawkerpaul. I would be gratefull if you could create a test zip of BVLP7 including DREXE.
[Galaxy S II General] hawkerpaul:
Experimental ModemRIL_BVLP7 (includes drexe)

I've written this with new scripts etc. and is experimental at this stage.

@RovG: Let me know how you get on with the BVLP7 drexe. If this proves successful I will start including drexe in the scripts.

As this is experimental, I've not asked ApriliaM3 to update his hosting site just yet. I'll wait to see how things go first.

To all people who have contributed with their scripts on here. This BVLP7 link has updated scripts so that it makes things easier in future if a new file is decided to be included. (eg. drexe!) I'm currently still finalizing things at the moment and I will keep you informed.
[Galaxy S II General] RovG:
Thanks hawkerpaul. I will test & feedback.
[Galaxy S II General] superleeds27:
Figured. Nevermind
[Galaxy S II General] RovG:
@hawkerpaul

The new experimental script did not create a backup. Replacing DREXE has not resolved my problem regarding the flood of error messages in my logcat. However, I have not noticed any detrimental effects either. I will keep monitoring.
[Galaxy S II General] hawkerpaul:
Backup worked fine for me mate.

Note that it goes to external sd card. I cannot figure out how to mount the internal sd card in a script.

I'll wait for more feedback before deciding on including drexe or not.
[Galaxy S II General] trunks986:
guys can you post a modem+ril for NELH1 modem?? thnks
[Galaxy S II General] belerephont:
d-h page with modems from the OP must be down?
[Galaxy S II General] ApriliaM3:
Yes it's down for me also coz I was trying to upload some more Modem / RIL combo's
[Galaxy S II General] belerephont:
Seems host back up now.

___________________________________

Phone: SGSII

Rom: Paranoid Android 2.13

Kernel: Siyah 4.1.5

Modem: BVLPE

Root app: SuperSu

Sent via XDA Premium
[Galaxy S II General] hawkerpaul:
I have now updated all my ModemRIL scripts.

They have the following updates:

1. A new updater-script (backs up to internal sd card, not external)

2. A new BackupRIL.sh script

3. Include /system/bin/drexe (data router binary)

4. RIL_Restore script updated.

To the current contributors, if you wish to update your own scripts accordingly, you can use any of my installers as a template like before.

I will be going away on holidays tomorrow, so I won't be around much for the next 10 days or so. I will try and log in every so often just to make sure things are ok.

Cheers
[Galaxy S II General] ApriliaM3:
Enjoy your break Mate :)
[Galaxy S II General] citytrader:
UHLPH Argentina Personal

In the attachment the Modem-Rill UHLPH from ROM LPY of Argentina Personal, for iUSACELL Mexico is the best by long compared to others, dont know if the radio alone could work in the same way as the combo with LPY...

I would be a food idea to check if RIL depends on operator, because UHLPH RIL I uploaded the first time is different from this one, if this is the case, it should be

uploaded different RIL of the same modem.
[Galaxy S II General] ApriliaM3:
Added to Dev-Host mirror thanks CT.
[Galaxy S II General] bleuxeon:
I dont ask frequently to others to do things for me, but would appreciate if someone could create BVLPE using the new script :D
[Galaxy S II General] hawkerpaul:
The installer for BVLPE is up to date in terms of what is required to be installed.

There was however an omission on my part in the BVLPE updater-script file. Sorry.

I've updated BVLPE accordingly in my dropbox account. Will be available for download as soon as ApriliaM3 is kind enough to update his dev-host account with the updated version. :)

In the meantime, if you want to alter it yourself then after this line:

mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");

insert this line:

run_program("/sbin/mount", "/dev/block/mmcblk0p11", "/sdcard");

All that leaving the above line out meant was that current RIL would not have backed up to internal SD card.
[Galaxy S II General] sefrcoko:
For those who are interested, here is the MUGLD3 modem/ril that I built using the script. It's from stock sammy ICS 4.0.3 firmware (Bell Canada).
[Galaxy S II General] ApriliaM3:
Updated on Dev-Host mirror now.

---------- Post added at 01:05 PM ---------- Previous post was at 01:01 PM ----------

Uploaded to Dev-Host mirror, thanks.
[Galaxy S II General] bobdoblo:
When i dialled *#1234# it says modem is NELP3 and CSC is NEELP5 (yes two E's)

Should it not be NELP3 also?

Is this ok/correct?

It works great anyway.

Sent from a tiny phonebox.
[Galaxy S II General] Jibreil:
hawkerpaul While flashing XXLPS I noticed a typo - it says it flashing BVLP7.
[Galaxy S II General] ApriliaM3:
That was CT :)

Fixed now...
[Galaxy S II General] hassaan123:
Hey guys, can I flash a gb modem + ril combo on a ics rom?
[Galaxy S II General] ApriliaM3:
Why would you want to do that? Have you heard of a GB modem that gives good performance on your ICS ROM?

In any case, I guess it's possible and it should be a simple thing to flash back to a later modem if it doesn't work although I've never been inclined to try it.
[Galaxy S II General] majd862:
plz can u help me i want one for arabian network (syria) but for sensation xe
[Galaxy S II General] ApriliaM3:
You are posting in the Samsung Galaxy S2 (GT-i9100) thread...

Try starting your search

HERE
[Galaxy S II General] Bieniu:
For those who are interested, here is the XXLQ5 modem/ril that I built using the script. It's from stock Samsung ICS 4.0.4 firmware.

View attachment ModemRIL_I9100XXLQ5_CWM.zip
[Galaxy S II General] ApriliaM3:
The file appears to be broken... please try uploading it again and then test it by downloading.
[Galaxy S II General] CamoGeko:
Good thread.

Kinda sad to see me not mentioned in the OP, considering it was initially my idea to start using and matching RIL files with GetRIL to remedy bad mobile connection and general faults on the S2. I just didin't think people would start going so crazy and match RILs even if there was nothing wrong with their network signals.

Me and my big mouth. I'll keep it shut next time.

Also, would be nice to see a link to my sticky modem thread since thats where the original talk about RILs began (well, that and the CM9 thread). If someone wants to find any modem just on its own, they can always go there.
[Galaxy S II General] gGabi:
Delete.
[Galaxy S II General] majd862:
I Know bro but i ask him but no one can help me there ,
[Galaxy S II General] CamoGeko:
People have lives man.

RIL on HTC devices is a lot more relevant that it is on SGS2. Plus, of course it doesn't matter anyway. Posting in this thread is completely useless for you since you have a totally different device.

Btw, someone just replied to you in the other thread. Check it out.
[Galaxy S II General] Bieniu:
My mistake. Now file is OK.

View attachment 1356140
[Galaxy S II General] majd862:
thx u bro i respect this way :)
[Galaxy S II General] ApriliaM3:
Thanks mate... added to Dev-Host mirror.

---------- Post added at 11:49 PM ---------- Previous post was at 11:44 PM ----------

Generally speaking and as per the OP, you will need the complete firmware (ROM) to extract the necessary matching RIL files.
[Galaxy S II General] bobdoblo:
Link?

http://www.youtube.com/watch?v=GkDz4wMI9J8&feature=youtube_gdata_player
[Galaxy S II General] gGabi:
EDIT: Sorry, delted.
[Galaxy S II General] CamoGeko:
Link to what??
[Galaxy S II General] ApriliaM3:
I found the complete firmware that you wanted so I'll download it and post the Modem / RIL combination for you tomorrow (time permitting).
[Galaxy S II General] gGabi:
I've followed the guide and i've created a modem+RIL JHLP9, for orange, israel.

thank's for the guide btw :good:
[Galaxy S II General] ApriliaM3:
Cool :) I've cancelled the firmware download and uploaded your file to the Dev-Host mirror.
[Galaxy S II General] gGabi:
thank's anyway mate :good:
[Galaxy S II General] Jordan2012:
Is There anything about NELP3 my original Stock Firmware was sporting that?, and what does the last number mean ( NELP2, NELP3 & NELP4)
[Galaxy S II General] thebogy:
what it's the best modem for wanamlite 12.5 ?

now i'm using XXKH3, sometimes "no service" occured when dialing and browsing.
[Galaxy S II General] bobdoblo:
Depends where you live. Differentt strokes for different folks!

http://www.youtube.com/watch?v=GkDz4wMI9J8&feature=youtube_gdata_player
[Galaxy S II General] CamoGeko:
It's a version number, the bigger the number the newer the modem.

There is no best modem, you gotta try loads to find one that works best for YOU!
[Galaxy S II General] Juzman:
Hey Everyone,

I've created one for XXLPS because the one citytrader made in the OP doesn't contain /system/lib/libril.so.

I created this from a stock OPTUS rom (I9100XWLP8_I9100OPSLP4_I9100XXLPS_HOME).
[Galaxy S II General] ApriliaM3:
Thanks mate... Updated on Dev-Host mirror.
[Galaxy S II General] zee54:
Has anyone else noticed that the XXKH3 modem, from the links on the first post, actually installs the BVLPE modem!!

Causes bootloops when I have tried it with CM10.
[Galaxy S II General] ApriliaM3:
For starters, XXKH3 is a GB Modem... Also I believe CM10 changes the RIL anyway?