Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,359 Members 40,652 Now Online
XDA Developers Android and Mobile Development Forum

[XT1033][Trying]One Sim Working On All Roms [Implementing EPRJ RIL]

Tip us?
 
rr46000
Old
(Last edited by rr46000; 27th March 2014 at 03:07 PM.)
#1  
Senior Member - OP
Thanks Meter 569
Posts: 565
Join Date: Aug 2012
Angry [XT1033][Trying]One Sim Working On All Roms [Implementing EPRJ RIL]

Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/show....php?t=2496075

Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.

Happened with me on every rom except with Paranoid android and Cm11 for xt1033

So what to do?
In the thread mentioned above are the simple steps for doing it
(Now please read the full thread before reading down)
 
C. How to change RIL?

Steps:



1. First step is to open the .zip of your custom ROM you want to edit, and search for system/framework/telephony-common.jar

2. Extract it to AndroidMultitool/Files, and after extract is done, delete it from .zip

3. Open Android Multitool, under Decompiling select .jar, then select telephony-common.jar in AndroidMultitool/Files, click "decompile"

4. After you're done, check if there were any errors in the Log, in AndroidMultitool main window



5. Head over to AndroidMultitool/Decompiled_jar/telephony-common/com/android/internal/telephony and look for X3RIL.smali. This is CM's RIL implemented in custom roms, which we dont need anymore, so delete it

6. Now, you need to decide wether to use X3RIL_old.smali, which is RIL from EPRJ CM10.2 built on 20130813, or X3RIL_new.smali which is RIL from EPRJ CM10.2 built on 20131007. I'm using 20131007 atm, and it's working without issues

7. When you've decided, move it back into AndroidMultitool/Decompiled_jar/telephony-common/com/android/internal/telephony and rename it to X3RIL.smali

8. Back in AndroidMultitool, under Compilin, select jar, and for folder select AndroidMultitool/Decompiled_jar/telephony-common, press "compile", and check for errors in Log

9. Output should be classes.dex file under AndroidMultitool/Compiled_jar



10. Open telephony-common.jar in AndroidMultitool/Files with WinRar - you should see META-INF folder, with classes.dex file

11. Delete classes.dex file in WinRAR

12. Move classes.dex file from AndroidMultitool/Compiled_jar to telephony-common.jar opened in WinRAR

13. Paste telephony-common.jar into system/framework inside the custom rom .zip file

14. You now have modified ROM ready to flash on our device!

I wanted pacrom to work and there was no
X3RIL.smali so i used RIL.smali from the cm11 made doubleprank's telephony-common.jar
On decompiling there was also an org folder so i pasted that as well
Done all the steps and i got a phone fc
Now what should i do ahead
Anyway i have attached all the telephony.jars of all roms i have for testing
Hit thanks if i helped
Devices
Moto G -Constantly Changing Roms--Main
 
Lg Optimus L9 -[Jelly Cream+Customized on my own]
Samsung galaxy ace plus-Speedmod Kitkat
Micromax canvas hd(a116)-SLD Ultimate

My Work
The Following 12 Users Say Thank You to rr46000 For This Useful Post: [ Click to Expand ]
 
ssn12
Old
#2  
Senior Member
Thanks Meter 191
Posts: 440
Join Date: Aug 2013
Location: Coimbatore
atb !!
The Following User Says Thank You to ssn12 For This Useful Post: [ Click to Expand ]
 
rr46000
Old
#3  
Senior Member - OP
Thanks Meter 569
Posts: 565
Join Date: Aug 2012
@dhacker @Doublepranks
Sent from my MotoG using Tapatalk
Hit thanks if i helped
Devices
Moto G -Constantly Changing Roms--Main
 
Lg Optimus L9 -[Jelly Cream+Customized on my own]
Samsung galaxy ace plus-Speedmod Kitkat
Micromax canvas hd(a116)-SLD Ultimate

My Work
The Following User Says Thank You to rr46000 For This Useful Post: [ Click to Expand ]
 
Doublepranks
Old
#4  
Doublepranks's Avatar
Senior Member
Thanks Meter 310
Posts: 317
Join Date: Nov 2013
Location: Belem

 
DONATE TO ME
What exactly do you want? I mean if PACROM is all you want i will be more than glad to build it for you with the minimal hassle of installing over the en.GB firmware.
 
rr46000
Old
#5  
Senior Member - OP
Thanks Meter 569
Posts: 565
Join Date: Aug 2012
Default not that

Quote:
Originally Posted by Doublepranks View Post
What exactly do you want? I mean if PACROM is all you want i will be more than glad to build it for you with the minimal hassle of installing over the en.GB firmware.
pacrom was just an example
I was just looking what else could be done instead of building?(because there are so may roms) but i sort of gave up and will build now if i figure it out
Hit thanks if i helped
Devices
Moto G -Constantly Changing Roms--Main
 
Lg Optimus L9 -[Jelly Cream+Customized on my own]
Samsung galaxy ace plus-Speedmod Kitkat
Micromax canvas hd(a116)-SLD Ultimate

My Work
 
Doublepranks
Old
#6  
Doublepranks's Avatar
Senior Member
Thanks Meter 310
Posts: 317
Join Date: Nov 2013
Location: Belem

 
DONATE TO ME
Quote:
Originally Posted by rr46000 View Post
pacrom was just an example
I was just looking what else could be done instead of building?(because there are so may roms) but i sort of gave up and will build now if i figure it out
Take a look at sources on my thread, you'll get exactly what you need.

Quote:
Commit MessagePermalink
p880: Solve IMEI and mobile data problems. Implement baseband recovery.

I don't like the old RILJ, at all. It is unstable and contains just the
necessary code to make RIL to work.
In the old one, there wasn't any baseband recovery management and no quirks
at all.
EternityProject's version instead, contains baseband recovery, that solves
the ugly and bad problem that happens when the radio goes to UNAVAILABLE
state by restarting it completely, avoiding to lose calls and SMS'es.
Also, it contains rawip insmod/rmmod that, on some modern kernels, like
3.4.37 by EternityProject, isn't working like expected.
It also has a better and proper implementation of
RIL_UNSOL_LGE_SELECTED_SPEECH_CODEC management. The reply has to be
an integer value, so that lge-ril.so will handle that correctly.
Moreover, RIL_UNSOL_LGE_PBREADY was not implemented at all and it was
needed to tell the radio to go into AT READY state.
The reason why we need this is because this will actually allow us to
use modern kernels and to (in future) probably get rid of some proprietary
libraries to switch, instead, to opensource code.
That's probably a very good reason to marge this into CM, i wonder why it never happened.
 
rr46000
Old
#7  
Senior Member - OP
Thanks Meter 569
Posts: 565
Join Date: Aug 2012
Quote:
Originally Posted by Doublepranks View Post
Take a look at sources on my thread, you'll get exactly what you need.
check ur pm
Hit thanks if i helped
Devices
Moto G -Constantly Changing Roms--Main
 
Lg Optimus L9 -[Jelly Cream+Customized on my own]
Samsung galaxy ace plus-Speedmod Kitkat
Micromax canvas hd(a116)-SLD Ultimate

My Work
 
yash.sharma99@yahoo.com
Old
#8  
yash.sharma99@yahoo.com's Avatar
Senior Member
Thanks Meter 32
Posts: 195
Join Date: Jul 2012
Location: Secunderabad
Question Awesome!

Quote:
Originally Posted by rr46000 View Post
Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/show....php?t=2496075

Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.

Happened with me on every rom except with Paranoid android and Cm11 for xt1033
Awesome! LOVE U BRO! YOU RESPONDED VERY QUICKLY!!! I'M REAL HAPPY!:laug h:

---------- Post added at 10:35 AM ---------- Previous post was at 10:29 AM ----------

Quote:
Originally Posted by rr46000 View Post
Now what should i do ahead
Anyway i have attached all the telephony.jars of all roms i have for testing
Bro, I ques, the telephony.jar of pac rom that you attached, is fully gone through all the processes that u mentioned here????
Answer me cause I don't have patience and I know you're online now!
Moto G -

Current ROM - Stock Asia Retail 4.4.4 (Bootloader locked)

Used ROMS - CM11(N)(MS)(4.4.2/4.4.3), Stock Asia Retail (4.3/4.4.2), Gummy ROM(4.4.2), C-ROM(4.4.2), PAC ROM(4.4.2/4.4.3), SlimROM(4.4.3)

S4(i9500) -

Current ROM - Stock 4.4.2 Unrooted

Used ROMS - CM10.2(N)(4.3), CM11(N)(4.4.2)

Galaxy Y- (Rusted)
CM7.2(RC)(2.3.7), CM9.1(N)(4.0.3/4.0.4)

Other Devices - Blackberry Playbook (was modded with playstore), iPhone 5S - iOS 7.1
 
rr46000
Old
#9  
Senior Member - OP
Thanks Meter 569
Posts: 565
Join Date: Aug 2012
Default Whoa!

Quote:
Originally Posted by yash.sharma99@yahoo.com View Post
Awesome! LOVE U BRO! YOU RESPONDED VERY QUICKLY!!! I'M REAL HAPPY!:laug h:

---------- Post added at 10:35 AM ---------- Previous post was at 10:29 AM ----------



Bro, I ques, the telephony.jar of pac rom that you attached, is fully gone through all the processes that u mentioned here????
Answer me cause I don't have patience and I know you're online now!
Bro chill out!
See the heading it is saying trying
The attached jars are the original ones(not edited)
Currently the procedure is not working
I thought of sharing it so the people with knowledge in thus could discuss then we could finally make sim available
But that didn't work out as no one know what to do ahead in this procedure
The only solution now is to build the rom with xt1033 which i am trying ans as i earlier told you if i figure it out ,i will share it
Hit thanks if i helped
Devices
Moto G -Constantly Changing Roms--Main
 
Lg Optimus L9 -[Jelly Cream+Customized on my own]
Samsung galaxy ace plus-Speedmod Kitkat
Micromax canvas hd(a116)-SLD Ultimate

My Work
 
yash.sharma99@yahoo.com
Old
#10  
yash.sharma99@yahoo.com's Avatar
Senior Member
Thanks Meter 32
Posts: 195
Join Date: Jul 2012
Location: Secunderabad
Cool Doesn't work

Quote:
Originally Posted by rr46000 View Post
Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/show....php?t=2496075

Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.
Doesn't work on PACman ROM. Neither on others. CM AND PA Both already have it working.
I'm really disappointed today as my excitement is totally shattered.

---------- Post added at 11:00 AM ---------- Previous post was at 10:57 AM ----------

Quote:
Originally Posted by rr46000 View Post
Bro chill out!
See the heading it is saying trying
The attached jars are the original ones(not edited)
Currently the procedure is not working
I thought of sharing it so the people with knowledge in thus could discuss then we could finally make sim available
But that didn't work out as no one know what to do ahead in this procedure
The only solution now is to build the rom with xt1033 which i am trying ans as i earlier told you if i figure it out ,i will share it
Alright brother!
ALL THE BEST! EVEN I'M WORKING OVER PACman rom. I'm new to develop aosp based roms. Iused todevelop samsung galaxy y stock roms as it only had cm7.2 which was damn old. I'll have to learn a lot.
Moto G -

Current ROM - Stock Asia Retail 4.4.4 (Bootloader locked)

Used ROMS - CM11(N)(MS)(4.4.2/4.4.3), Stock Asia Retail (4.3/4.4.2), Gummy ROM(4.4.2), C-ROM(4.4.2), PAC ROM(4.4.2/4.4.3), SlimROM(4.4.3)

S4(i9500) -

Current ROM - Stock 4.4.2 Unrooted

Used ROMS - CM10.2(N)(4.3), CM11(N)(4.4.2)

Galaxy Y- (Rusted)
CM7.2(RC)(2.3.7), CM9.1(N)(4.0.3/4.0.4)

Other Devices - Blackberry Playbook (was modded with playstore), iPhone 5S - iOS 7.1

Tags
one sim, xt1033
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes