Lollipop Leak Available for the Sprint Galaxy S5

Since the Android 5.0Lollipop’s official release not too long ago, we’ve seen … more

CPU Spy Gets an Android Lollipop Makeover

At some point in the distant past, you probably heard of CPU Spy for Android by XDARetired … more

Amazon Fire TV Stick vs Chromecast – XDA TV

There is no doubt that Amazon is a huge player in many markets, and they want to be a huge … more

Fight the Heat and Conserve Battery with EaseUS Coolphone

Memory hungry Android applications are often responsible for making our device … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP rr46000

18th March 2014, 07:48 AM   |  #1  
OP Senior Member
Thanks Meter: 620
 
581 posts
Join Date:Joined: Aug 2012
More
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
Last edited by rr46000; 27th March 2014 at 04:07 PM.
The Following 12 Users Say Thank You to rr46000 For This Useful Post: [ View ]
18th March 2014, 12:51 PM   |  #2  
Senior Member
Flag Coimbatore
Thanks Meter: 190
 
445 posts
Join Date:Joined: Aug 2013
More
atb !!
The Following User Says Thank You to ssn12 For This Useful Post: [ View ]
19th March 2014, 04:39 AM   |  #3  
OP Senior Member
Thanks Meter: 620
 
581 posts
Join Date:Joined: Aug 2012
More
@dhacker @Doublepranks
Sent from my MotoG using Tapatalk
The Following User Says Thank You to rr46000 For This Useful Post: [ View ]
19th March 2014, 05:13 AM   |  #4  
Doublepranks's Avatar
Senior Member
Flag Belem
Thanks Meter: 315
 
317 posts
Join Date:Joined: Nov 2013
Donate to Me
More
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.
19th March 2014, 05:21 AM   |  #5  
OP Senior Member
Thanks Meter: 620
 
581 posts
Join Date:Joined: Aug 2012
More
not that
Quote:
Originally Posted by Doublepranks

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
19th March 2014, 05:24 AM   |  #6  
Doublepranks's Avatar
Senior Member
Flag Belem
Thanks Meter: 315
 
317 posts
Join Date:Joined: Nov 2013
Donate to Me
More
Quote:
Originally Posted by rr46000

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.
19th March 2014, 09:31 AM   |  #7  
OP Senior Member
Thanks Meter: 620
 
581 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by Doublepranks

Take a look at sources on my thread, you'll get exactly what you need.

check ur pm
20th March 2014, 11:35 AM   |  #8  
yash.sharma99@yahoo.com's Avatar
Senior Member
Flag Secunderabad
Thanks Meter: 36
 
199 posts
Join Date:Joined: Jul 2012
More
Question Awesome!
Quote:
Originally Posted by rr46000

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

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!
20th March 2014, 11:48 AM   |  #9  
OP Senior Member
Thanks Meter: 620
 
581 posts
Join Date:Joined: Aug 2012
More
Whoa!
Quote:
Originally Posted by yash.sharma99@yahoo.com

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
20th March 2014, 12:00 PM   |  #10  
yash.sharma99@yahoo.com's Avatar
Senior Member
Flag Secunderabad
Thanks Meter: 36
 
199 posts
Join Date:Joined: Jul 2012
More
Cool Doesn't work
Quote:
Originally Posted by rr46000

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

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.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes