FORUMS
Remove All Ads from XDA

NS4G modem patch on CM7/9/10 based roms, nightlies and previews- 2/12/13

7,269 posts
Thanks Meter: 7,488
 
By xboxfanj, Recognized Developer on 19th August 2012, 05:05 PM
Post Reply Email Thread
Hi, I made this thread because people have been asking me what to do to make a ROM compatible with the Nexus S 4G modem and RIL, so I made a flashable zip so you can use the modem and RIL on any CM7 based ROM (like MIUI or JoyOS or whatever you fancy).

Note: If using a ROM not on this list, use the closest cm patch corresponding to the os and then download the phone and settings apks from the nexus s 4g Roms and either put them in the zip or push them. That way, roaming and update prl and profile will work.

I included the KL2 modem in each AIO zip. If you do not like it, or would like to try other modem files, try the flashable zips here: http://forum.xda-developers.com/show....php?t=1077168

CM7
Quote:

just flash the zip below (made by nashdogg and I)
http://d-h.st/dGR
I added the nexus audio drivers in kernel and lib, and I also added voodoo color, voodoo sound, and Battery Life Extender.

CM9 (Roaming Fixed) Instructions:
Just flash this in CWM. Custom kernels are available in the 2nd post. http://d-h.st/U1L

AOKP ICS (by Nashdogg)
http://d-h.st/vVP

Jellybean patches thanks to dropple, nashdogg, andy_nu, and didhiy ( newest patch as of 12/5/12 with nitest didhiy 1124 kernel voodoo color)

PA 2.54 AIO ns4g modem patch- http://d-h.st/CQm

CM10 AIO ns4g modem patch- http://d-h.st/96W

AOKP-JB Build-4 AIO ns4g modem patch- http://d-h.st/t4n


CM10.1 http://d-h.st/i9s

Universal

Quote:
Originally Posted by Effsi

http://goo.im/devs/effsi/misc
these should allow you to switch back and forth between the epic modem and nexus modem.

what it does :
installs blobs related to the modem
edits build.prop lines to match the modem
-should- work with all current versions (2.3 through 4.2.2)
-should- work with all roms that support switching modems (aokp, cm, pa, pac, baked, hellybean, etc...)

what it doesn't do :
it does not install or change the actual modem itself.
it does not install or change the kernel.
it does not backup anything.
it does not replace any apks.
it does not perform any tweaks or extras of that sort.
it does not fix issues in the system ie if 4g isn't working in the kernel this installer won't magically fix it or inversely break it if it works.

so that means you will need to install the modem itself (through zip or the MORE RECOMMENDED METHOD OF ODIN)
and that you will need to make sure you are on a proper kernel that supports your modem of choice.

Ex... on stock aokp4.2.2 (which is epic modem by default) to switch to the nexus modem you would flash kernel of choice for nexus modem (didhiy/mine), then modem with recovery or odin, then flash swap2nexusmdm.zip
Ex2... on ck10.1 (which is nexus modem by default) to switch to the epic modem you would flash modem of choice with Odin or recovery, then any kernel that supports epic modem and then flash swap2epicmdm.zip


Note: These instructions are a bit different than effsi's as the order of flashing does matter when on an epic modem ROM and kernel as the modem flash is dependent on kernel drivers that are not present in epic modem kernels.

Any Nexus S 4G modem can be used but the one included is supposedly best. Try any other one and let me know if it works better

My kernel sources are at https://github.com/xboxfanj/android_...amsung_victory in the gingerbread branch so if you want to make a kernel based on that or cherrypick the patches in my kernel into another kernel, you are welcome to.
Use my commits and bbelos' commits at https://github.com/nexussense4g/andr...amsung_epicmtd in the crespo-modem branch to get GPS and modem working on any ROM.

Thank you to didhiy for adapting the patches that bbelos and I made. For support for Update PRL and Profile, you need to copy some of the overlays from the Nexus S 4G device sources.

Thank you to bbelos, coolya, the CM SGS team, CM Nexus S team, AOSP, Samsung, Google, and me for making this patch.
The Following 71 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
 
 
19th August 2012, 11:01 PM |#2  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Custom CM9 Kernels (note these are not all in one zips, so if you choose to flash these, you must also flash the AIO if you haven't already, and each time you upgrade builds, you'll need to flash the aio and the custom kernel if you still want it):

Nyan:
http://marcusant.com/android/epic/nyan_CM9-CrpMdm.zip

Shadow: http://marcusant.com/android/epic/Shadow_CM9-CrpMdm.zip

Anyone is welcome to include this patch in their rom, just as long as you give all the contributors credit.

And also, if someone wants to make this for cm9, that'd be awesome. Use bbelos's crespo-modem branch in his device repo and use his crespo-modem branch in his vendor repo.

Then use my kernel patches at my github and make a full cm9 build and if it works, release that build and release a patch like mine with kernel, and ril bins, libs, and etc files, and build.prop and everything outside system like the mtd scripts and modify updaterscript so it works, or just use my metain folder

Sent from my SPH-D700 using Tapatalk 2
The Following 15 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
19th August 2012, 11:40 PM |#3  
itek's Avatar
Member
Flag SRQ, FL
Thanks Meter: 14
 
More
First! Sweet, I always wanted to do that. :- )

And thank you so much xboxfanj for continuing to make this the phone that might never die! You and all the other great devs are definitely making it easy to
wait to upgrade to a new phone. Keep up the good work, and thanks again.
19th August 2012, 11:51 PM |#4  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Quote:
Originally Posted by itek

First! Sweet, I always wanted to do that. :- )

And thank you so much xboxfanj for continuing to make this the phone that might never die! You and all the other great devs are definitely making it easy to
wait to upgrade to a new phone. Keep up the good work, and thanks again.

No problem. Glad you enjoy it. If there's ever anything you would like for me to port or do, PM me and I will do whatever I can to make it happen.

Sent from my SPH-D700 using Tapatalk 2
The Following 10 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
20th August 2012, 12:02 AM |#5  
didhiy's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 1,262
 
More
I try to install this patch over cm7 stable & didn't work.. I think the format /system command on updater-script will erase all the previous rom
I'll try to fix it tomorrow on my free time, maybe with try find some commands to erase previous blob which unreplaceable with the patch like lib sec ril 40.so (or similar) and build.prop must be edited from the previous rom with changes on several lines.
The Following User Says Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
20th August 2012, 12:37 AM |#6  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Quote:
Originally Posted by didhiy

I try to install this patch over cm7 stable & didn't work.. I think the format /system command on updater-script will erase all the previous rom
I'll try to fix it tomorrow on my free time, maybe with try find some commands to erase previous blob which unreplaceable with the patch like lib sec ril 40.so (or similar) and build.prop must be edited from the previous rom with changes on several lines.

No need to delete libsecril-40. Thanks for letting me know that. Forgot to delete the format command. Got it now and the zip is updated, but at the same link.

Edit: and any CM7 ROM should be fine with CM7 build.prop AFAIK. It may not identify 100% correctly in settings>about phone, but good enough. TBH, I don't care if it says CM7 in settings while I run MIUI.
The Following 7 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
20th August 2012, 12:53 AM |#7  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Quote:
Originally Posted by xboxfanj

No need to delete libsecril-40. Thanks for letting me know that. Forgot to delete the format command. Got it now and the zip is updated, but at the same link.

Edit: and any CM7 ROM should be fine with CM7 build.prop AFAIK. It may not identify 100% correctly in settings>about phone, but good enough. TBH, I don't care if it says CM7 in settings while I run MIUI.

Fixed GPS as well, sorry about the first couple batches being wrong. This one should be good. If you downloaded before, DL again.
The Following 5 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
20th August 2012, 03:13 AM |#8  
Flint420's Avatar
Senior Member
Thanks Meter: 70
 
More
Modem works great but this breaks root for me.

Sent from my SPH-D700 using Tapatalk 2
20th August 2012, 04:05 AM |#9  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Quote:
Originally Posted by Flint420

Modem works great but this breaks root for me.

Sent from my SPH-D700 using Tapatalk 2

Weird not sure what I could've done that would've broken root. Does anyone else have this problem?

Sent from my SPH-D700 using Tapatalk 2
The Following 2 Users Say Thank You to xboxfanj For This Useful Post: [ View ]
20th August 2012, 04:18 AM |#10  
Flint420's Avatar
Senior Member
Thanks Meter: 70
 
More
Not sure if it makes a difference but I flashed the modem through odin first then the patch. I'm on the newest cm7 nightly.

Sent from my SPH-D700 using Tapatalk 2
20th August 2012, 05:26 AM |#11  
xboxfanj's Avatar
OP Recognized Developer
Flag I'm from the Lou and I'm proud
Thanks Meter: 7,488
 
Donate to Me
More
Quote:
Originally Posted by Flint420

Not sure if it makes a difference but I flashed the modem through odin first then the patch. I'm on the newest cm7 nightly.

Sent from my SPH-D700 using Tapatalk 2

That shouldn't matter.

Sent from my SPH-D700 using Tapatalk 2
The Following User Says Thank You to xboxfanj For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes