enable GSM or force GSM instead of cdma on android - Touch Pro2, Tilt 2 Android General

I'm trying to enable use of GSM/sim card on my cdma unlocked TP2(RHOD400) but am pretty much lost at how to go about it, I can do it easily in windows 6.5, android not so much

T_D_H said:
I'm trying to enable use of GSM/sim card on my cdma unlocked TP2(RHOD400) but am pretty much lost at how to go about it, I can do it easily in windows 6.5, android not so much
Click to expand...
Click to collapse
Currently you have to choose CDMA or GSM on the stock RIL.
There are a lot of changes happening currently that will allow you to flip between CDMA and GSM within the OS. You can push the changes yourself, or wait until they're implemented in a build...
However, if you're always on one or the other, just set the build up as such - I wouldn't think a lot of people would need to flip between the two, but that functionality is feature-complete AFAIK. Just working on implementation (to mainline) .

Related

Force 1X Only

I'm thinking of getting a Verizon Touch Pro when it's available.
Right now, my battery life on my Motorola Q is terrible. I live in an area where the signal is pretty poor and I think that's the main reason for the bad battery life.
If I go into the "secret" settings on the Q, I can change it to CDMA Only and that disables EvDO and probably gives me at least a 50% increase in battery life.
Unfortunately, it's pretty much of a PITA to go back and forth.
So, if I get a Touch Pro, I guess I have to hope that it's better at picking up a signal (probably not, right?) or that there's some way to put it into CDMA Only mode.
Does anyone know, for sure, that'll be possible?
Now, if that's possible, does a program already exists or could someone easily just write a program that would give me a program icon that if I click it, it toggles the phone between CDMA Only and Automatic? I'm thinking something like the nodata program that I've used before, but even better would be just click on the icon to toggle and no submenus to go through.
I know on the Q when I change back and forth, the change is immediate (Ev icon turns to 1x and vice versa as soon as I make the change), so if I had an icon to just make the change for me without digging through 4 menus to make a change, I might be able to live with just activating EvDO when I'm going to use it.
Any help is appreciated.
Thoughts?
lexluthor said:
I'm thinking of getting a Verizon Touch Pro when it's available.
Right now, my battery life on my Motorola Q is terrible. I live in an area where the signal is pretty poor and I think that's the main reason for the bad battery life.
If I go into the "secret" settings on the Q, I can change it to CDMA Only and that disables EvDO and probably gives me at least a 50% increase in battery life.
Unfortunately, it's pretty much of a PITA to go back and forth.
So, if I get a Touch Pro, I guess I have to hope that it's better at picking up a signal (probably not, right?) or that there's some way to put it into CDMA Only mode.
Does anyone know, for sure, that'll be possible?
Now, if that's possible, does a program already exists or could someone easily just write a program that would give me a program icon that if I click it, it toggles the phone between CDMA Only and Automatic? I'm thinking something like the nodata program that I've used before, but even better would be just click on the icon to toggle and no submenus to go through.
I know on the Q when I change back and forth, the change is immediate (Ev icon turns to 1x and vice versa as soon as I make the change), so if I had an icon to just make the change for me without digging through 4 menus to make a change, I might be able to live with just activating EvDO when I'm going to use it.
Any help is appreciated.
Thoughts?
Click to expand...
Click to collapse
I just upgraded from a q, i havent recieved my htc yet so ill try and help with your q problem.
First and foremost never ever let the battery run down. My q worked fine for a year and a half until tuesday the battery ran down and i got this
Anyway, make sure its not going out and checking your email every 1,5,10,15 minutes etc. That really kills the battery fast. Bluetooth too. When I disabled those i saw my battery life skyrocket, but it still went down pretty fast when i used the internet and camera. maybe those two things will help you in the interim though.
you think your moto q battery is bad wait til you get to the your touch pro. i forced my touch pro (data speeds sucked big ones) to 1x by going to settings phone and roaming i set it to roaming only? but that is a sprint version i dont know if verzion allows you to pick roaming only
benitojuarez, I appreciate it, but it's none of that. The reason for the bad battery life on the Q is that the signal is low and it's fluctuating between 1x and EvDO. When I set it to 1x only, the battery life is fine.
cjmedina, yes, I'm worried about that.
That's why I'm here. I'm still hoping someone could come up (either it exists already or someone could make it) with a little utility that when clicked would toggle between 1x (CDMA Only) and Automatic modes. I think I could live with that.
I can't imagine that'd be too difficult. You can force 1x on your Sprint, I can force 1x on my Q. The change takes effect immediately. There's got to be an easy way to program it to happen.
It sounds like you might benefit from this type of program as well. I know on my Q, I rarely switch back from 1x only, just because it's about a multi step process that's a slight PITA to make the change. If I had a one step process, I could leave it as 1x while it's just sitting around and quickly change it to EvDO when I want to use the net. At least that's how I envision it.
Lastly, I'm not certain that my Q hasn't just been defective for 2 years now. I even have the 2100mah Seidio battery and if i leave it as Automatic, I pretty much can't get a full day out of it. If I set it to 1x, I can make it though the day unless I use it real heavily.
I'm worried that unless the TP has a better radio, I might not even make it though the day on 1x only mode. I guess we'll see what happens.
Is there anyone who can assist here?
I can't imagine this is something too difficult. Everyone phone I've had so far allows it to be put into a 1x only mode.
With the work all of you guys do customizing, someone must have a good handle on what needs to be changed to put the phone into 1x mode.
Am I in the right place or should I have posted this in a different forum?
Well, hopefully, someone can come up with something...or point me to something that already exists.
Thanks!
lexluthor said:
Is there anyone who can assist here?
I can't imagine this is something too difficult. Everyone phone I've had so far allows it to be put into a 1x only mode.
With the work all of you guys do customizing, someone must have a good handle on what needs to be changed to put the phone into 1x mode.
Am I in the right place or should I have posted this in a different forum?
Well, hopefully, someone can come up with something...or point me to something that already exists.
Thanks!
Click to expand...
Click to collapse
I didn't come up with it but I have tested and it works like a charm.
To do this, you will need your MSL number, which only Sprint (or your provider) can provide you.
1) Open up the phone app and dial ##778# (PST).
2) You will be asked to enter your MSL. Enter it, and you will be brought into the provisioning of your phone.
3) From the top left, select Modem Settings
4) Preferred Mode: The Default is Automatic, which is the best available mode (EV that will roll back to 1X when EV is unavailable). There are times when you might be in a fringe area and your mode may cycle frequently and this can seriously drain your battery. Setting this to HDR will force EV-DO only if you demand an EV-DO connection. Changing this setting to CDMA Only will force the phone to ignore an EV-DO tower and maintain only a 1xRTT connection.
*Change your "Slot Cycle" while you are on this page to one so your phone polls towers every 2 sec instead of 5 sec. I did know about this trick but did not know the force 1xRTT was one of the setting on the same page.
here is the cab for roaming only un zip and install
mrrogers1, I appreciate the response, but, first of all I'm on Verizon.
On my Q, I can do ##*, go into the "secret" menu, to to the option to change it to CDMA only, save it and back out.
It's just too long a process to really do it frequently, so I just wind up leaving my phone in 1x mode and that stinks.
So, what I was looking for is just a program to install that would activate/deactivate that option by just clicking the program icon.
cjmedina, before I install that, can you tell me exactly what that is? Is it for Verizon? What do you mean by roaming only? I want 1x/CDMA only. Will it just disable roaming or is it a toggle thing? I don't want to risk installing something that's not easily reversible.
Roam only wouldn't really address this because if you (at least for me) roam in EVDO coverage the phone stays in that mode. Forcing 1x is something different all together.
Changing in the modem settings is it for now and works well.
I went from a 9c to a Diamond. Maybe the TP is much different but my Diamond signal strength is a little lower than my 9c.
Combine that with the Diamond/TP already bad heat issues, battery life I don't think you'll be happy with it.
Just go to reg and mimic these keys.. It will enable the ability to switch it on and off in the settings panel.
[HKEY_LOCAL_MACHINE\Software\OEM\PhoneSetting]
"HiddenModeOperationPage"=dword:0
"HiddenAlertPage"=dword:0
"HiddenNAMSelectPage"=dword:0
"HiddenAlertPage"=dword:0
"HiddenVoicePrivacyPage"=dword:0
I actually found this elsewhere and it works.
---
Here is the Registry edit for enabling Hidden Phone Settings "Mode of Operation" option to pick 1X mode only.
HKLM\SOFTWARE\OEM\PhoneSetting
Change the option HiddenModeOperationPage from 1 to 0
Then go to Phone/menu/option/service/and check in the list, "Mode of Operation" should be at the bottom. You have 3 choices, Hybrid, EVDO, and 1X.
---
With your way, it is supposed to appear somewhere else? You mention settings, but I don't see anything new there.
What does changing HiddenAlertPage, HiddenNAMSelectPage and HiddenVoicePrivacyPage to 0 do?
I'd still like an easier way to do it, like a toggle I can put in my start menu.
lexluthor said:
I actually found this elsewhere and it works.
---
Here is the Registry edit for enabling Hidden Phone Settings "Mode of Operation" option to pick 1X mode only.
HKLM\SOFTWARE\OEM\PhoneSetting
Change the option HiddenModeOperationPage from 1 to 0
Then go to Phone/menu/option/service/and check in the list, "Mode of Operation" should be at the bottom. You have 3 choices, Hybrid, EVDO, and 1X.
---
With your way, it is supposed to appear somewhere else? You mention settings, but I don't see anything new there.
What does changing HiddenAlertPage, HiddenNAMSelectPage and HiddenVoicePrivacyPage to 0 do?
The others were already defaulted to 1.
I'd still like an easier way to do it, like a toggle I can put in my start menu.
Click to expand...
Click to collapse
Start> settings> phone
What would be really neat is an app that would force 1x unless you were in certain applications (like opera or you tube) and than switch to hybrid for the duration of the session.
-Space
For what it's worth, someone posted a mortscript over here
http://forum.ppcgeeks.com/showthread.php?t=47045
that toggles 1x/hybrid.
Works pretty quickly too. I'm happy.
lexluthor said:
For what it's worth, someone posted a mortscript over here
http://forum.ppcgeeks.com/showthread.php?t=47045
that toggles 1x/hybrid.
Works pretty quickly too. I'm happy.
Click to expand...
Click to collapse
that post works great, one of the guys on the post made a program that lets you run a script that does it all for you whenever you wanna switch back and forth between 1x and hybrid.
mnasr87 said:
that post works great, one of the guys on the post made a program that lets you run a script that does it all for you whenever you wanna switch back and forth between 1x and hybrid.
Click to expand...
Click to collapse
That script is probably the best option. Otherwise there's a registry key that enables the menu option, though I can't remember where it is. Verizon usually has the option disabled so the key needs to be added to the registry.
So I found through the Advanced Config a way to add a 3G on off button in the comm manager, but as we are CDMA it does not work for us. Can anyone confirm what this button is trying to do? Perhaps a redirect to the reg setting for hybrid/1x?
-Space
http://www.fuzemobility.com/?p=555
mrrogers1 said:
....
1) Open up the phone app and dial ##778# (PST).
2) You will be asked to enter your MSL. Enter it, and you will be brought into the provisioning of your phone.
3) From the top left, select Modem Settings
4) Preferred Mode: The Default is Automatic, which is the best available mode (EV that will roll back to 1X when EV is unavailable). There are times when you might be in a fringe area and your mode may cycle frequently and this can seriously drain your battery. Setting this to HDR will force EV-DO only if you demand an EV-DO connection. Changing this setting to CDMA Only will force the phone to ignore an EV-DO tower and maintain only a 1xRTT connection.
*Change your "Slot Cycle" while you are on this page to one so your phone polls towers every 2 sec instead of 5 sec. I did know about this trick but did not know the force 1xRTT was one of the setting on the same page.
Click to expand...
Click to collapse
I know you noted that it wasn't your idea, but maan, did it work. Thank you so much. that was the last step I needed for my HTC Touch PRO to work on MetroPCS web... this is the easiest method (rather them editing registry)!! Thank you much.
Has anyone made this work on a Verizon HTC Touch Pro2?
My extended battery lasts about 12 hours (EVDO 0-1 bars in buildings) and I think this could help me.
The *-something and #-something numbers place a call that says invalid number. The registry edits don't make anything for Mode of Operation appear under "CDMA Services" on Phone Settings.
Help?

WIP: Stopping CDMA Radio on boot (using init.d)

Alright everyone, I'm getting annoyed and I'm hoping someone more talented than me can come here to save the day. I'm attempting to use a conditional init.d script that runs if it finds the file of my choosing (in this case, radio.sh in /system/bin) and then if it finds it, it will disable radio. What I'm having problems with is that it keeps giving me connection refused on boot when disabling radio. So, any idea?
Have you mounted your system as read/write at the beginning of the script?
Sent from my PG86100 using Tapatalk
I'm using radio options I shouldn't have to but I guess I'll try that
Sent aboard the Evo Express
What command do you use to disable radio?
I tried a setprop command, that didnt work and I also tried "radiooptions 1"
edit: This was using both adb and init.d
Code:
stop ril-daemon
globatron said:
Code:
stop ril-daemon
Click to expand...
Click to collapse
Hey globatron,
If you remove phone.apk and telephoneyproviders.apk you no longer get cell stand by in battery usage but it breaks GPS. If I leave the files and issue the stop ril-daemon command. It turns off the radio and GPS still works but cell standby appears in battery usage. Is there a way to disable the radios completely, still have GPS work and not have cell standby in battery usage?
Sent from my Samsung Galaxy S II
You have to have cell standby for GPS to work, I think they are in the same chip.
Sent by breaking the sound barrier
I don't get what you're trying to accomplish, if youre trying to disable the CDMA radio and use wifi only like me, but want GPS, just turn on airplane mode, turn on wifi and GPS and you're set. If I'm mistaken about what you're trying to do then never mind.
Side note, leaving the CDMA radio on didn't bother me because I don't have service with my view, but it still takes from the battery of course.
Sent from my Rooted HTC EVO View 4G (Honeycomb)
Gordon, this is for a ROM. I'm looking into several options to kill it on boot simply. That's it.
I see, I I think I came across some lads in the Flyer forums either here or AC that had it working.
Sent from my Rooted HTC EVO View 4G (Honeycomb)
Here is something odd.. gps does work if you remove the stuff for cell standby. I thought it was broken (everytime I tried in my house it never locked on a signal) but it's not. I fired up navigation just now and while it did take longer to lock a signal then with the radio stuff in, it did lock and start giving me directions.. I guess the cell radios assist the gps(considerably) but are not fully responsible for it.
This is an important functionality to disable the cell radio!
I've been trying for days now - can't understand why Android doesn't simply provide a checkbox in the settings for this (like for Bluetooth or Wifi).
When people suggest airplane mode, they don't realize that this blocks the stock dialer from placing any calls.
This is really poor design on the part of the Android team: they include a sip stack (thank you!) , then force users to resort to airplane mode to disable the cell, and then block the dialer (when all a user wants is simply to use sip over wifi)...
wutzin said:
This is an important functionality to disable the cell radio!
I've been trying for days now - can't understand why Android doesn't simply provide a checkbox in the settings for this (like for Bluetooth or Wifi).
When people suggest airplane mode, they don't realize that this blocks the stock dialer from placing any calls.
This is really poor design on the part of the Android team: they include a sip stack (thank you!) , then force users to resort to airplane mode to disable the cell, and then block the dialer (when all a user wants is simply to use sip over wifi)...
Click to expand...
Click to collapse
Why would you care about the stock dialer for placing call if you turned off your radio? You ain't making any calls without the radio anyway.... I'm confused
immjg said:
Why would you care about the stock dialer for placing call if you turned off your radio? You ain't making any calls without the radio anyway.... I'm confused
Click to expand...
Click to collapse
He is using sip over WiFi, but he needs a dialer. That doesn't use the mobile radio.
Indirect said:
What I'm having problems with is that it keeps giving me connection refused on boot when disabling radio. So, any idea?
Click to expand...
Click to collapse
sounds like it sends the command before ril is ready.
The only way I got it to work was by having "sleep 60" before the radiooptions command.
Maybe there is some trigger for ril, so the command can run once its ready. I had done a loop to check if ril-daemon is running first, but that doesn't seem to be enough (probably takes more time to load the vender RIL next)
It seems radiooptions just disables the radio, but it still uses power.
Did anybody have success in disabling the radio? I'm also looking for the way how to use View 4G abroad without Sprint.
May be it's possible to modify the firmware to make it "wifi only" - exactly as it made for the HTC Flyer?
mar1boro said:
Did anybody have success in disabling the radio? I'm also looking for the way how to use View 4G abroad without Sprint.
May be it's possible to modify the firmware to make it "wifi only" - exactly as it made for the HTC Flyer?
Click to expand...
Click to collapse
Download a WiFi only Rom
Sent from my HTC EVO View using xda premium on CypherROM
wyldkard said:
Download a WiFi only Rom
Sent from my HTC EVO View using xda premium on CypherROM
Click to expand...
Click to collapse
Is there any for HTC Evo View 4G? The one for the HTC Flyer is not compatible with the View 4G, is it?
I would like a GB, not the HC version.

[Q] Do I need a ROM's source code to properly support it?

I did a search and found related threads, but none that answer my question directly. Apologies for the flood of question threads by myself, I'm really putting a lot of effort into learning how to develop for Android though.
So as the thread title states, do I need the source code for a ROM to support it properly and fix any bugs that may arise? Right now, I'm simply using the android kitchen to decompile ROM.zip's and than editing the files that are extracted. I know if your building straight from source, there's a hell of a lot more work that needs to be done to make a custom ROM, but unfortunately I'm stuck with a laptop that only has 10GB left on the HDD so I can't install ubuntu and compile from source as I simply do not have enough storage. (Everything on my HDD is vital, I've cleaned as much as I can and can't really remove anything else)
So can I fix any and all bugs and add feature implementations to a ROM by simply decompiling them and than editing the files inside? Seems to have worked for me so far, but I'm having a hard time with the camera, which has made me wonder if it's even possible to fix the camera without the source code seeing as I probably need to add/update libs and files. Is that possible without the source code? Or am I pretty much screwed here?
Thanks in advance to anyone that can answer my questions! :good:
Edit: Also I would highly appreciate if someone can tell me if it's possible to force the phone to connect to only HSPA+ networks or WCDMA only as I've found it to be called in the phone settings. If I dial *#*#4636#*#* and change the network to WCDMA only, it'll work for a while but eventually my phone goes back to trying to connect to 3G networks as well. The reason I ask is because the place I just moved into has horrible reception and my phone has only 1-3 bars at most. It'll constantly switch between 3G and HSPA+ which causes my data to drop while it's switching, and for some reason 3G doesn't work if I tether to my laptop but HSPA+ does.
Can it be done with a build.prop tweak or some other system file that controls the radio settings?

3G/4G Switch App???

I just switched from a rooted One XL that was running Scott's CleanRom 4.5DE to a new One X+ that I've unlocked and rooted.
One of the features I miss the most is the ability to force the phone into 3G for most of my use with the ability to turn on 4G when I am watching video or something that requires more data.
Is there an app that works well at switching back and forth easily? I did a search in the play store and there are a couple in there but they seemed to be geared for phones that are CDMA/LTE rather than H+/LTE.
Thanks!!!
moregadget said:
I just switched from a rooted One XL that was running Scott's CleanRom 4.5DE to a new One X+ that I've unlocked and rooted.
One of the features I miss the most is the ability to force the phone into 3G for most of my use with the ability to turn on 4G when I am watching video or something that requires more data.
Is there an app that works well at switching back and forth easily? I did a search in the play store and there are a couple in there but they seemed to be geared for phones that are CDMA/LTE rather than H+/LTE.
Thanks!!!
Click to expand...
Click to collapse
I'm using Widgetsoid...add a widget to the screen and choose the "4G" plugin. That will bring you to the radio menu where you can select GSM/WCDMA only instead of GSM/WCDMA/LTE.
I use Phone Info by [email protected]
but the setting has to be changed every time you reboot
mickliq said:
I'm using Widgetsoid...add a widget to the screen and choose the "4G" plugin. That will bring you to the radio menu where you can select GSM/WCDMA only instead of GSM/WCDMA/LTE.
Click to expand...
Click to collapse
I had tried this one but the radio doesn't change when you select it.
MG
moregadget said:
I had tried this one but the radio doesn't change when you select it.
MG
Click to expand...
Click to collapse
You may need to toggle the radio off/on after you change between 3G/4G to force it after you make a change.
mickliq said:
You may need to toggle the radio off/on after you change between 3G/4G to force it after you make a change.
Click to expand...
Click to collapse
Made the change, toggled radio off then radio back on to no avail.
Turned radio off, made the change, turned radio back on and same result.
Thanks for the help!!!
MG
moregadget said:
Made the change, toggled radio off then radio back on to no avail.
Turned radio off, made the change, turned radio back on and same result.
Thanks for the help!!!
MG
Click to expand...
Click to collapse
Are you choosing "GSM/WCDMA, CDMA, and EVDO (PRL)"?
mickliq said:
Are you choosing "GSM/WCDMA, CDMA, and EVDO (PRL)"?
Click to expand...
Click to collapse
I have chose that one as well as tried WCDMA Preferred, GSM Only, WCDMA only, GSM auto. Always defaults back to gsm/wcdma/lte auto.
Thx!
MG
^ Are you rooted/unlocked bootloader?
You just have to make a apn for 4g network then you just go into apn and select the 4g apn or the lte apn
As far as 3g I donno I can just change mine from lte o hspa hspda or lte but I'm sure there's a 3 g only apn I just don't know it
Sent from my HTC One X+ using XDA Premium HD app
Phone info apk
rashad1 said:
Phone info apk
Click to expand...
Click to collapse
I used to do this using the code *#*#4636#*#*
It is easier now.. thanks rashad1
Seems no matter which I pick it just resets to the standard option.
If I turn the radio off first I can set whatever I want, but, upon turning back one I still get 'LTE' even if it isn't the selected network type.
EDIT: I see I have the same problem as 'moregadget' in that no matter what I do it just seems to go back to its default settings. It must be some BS AT&T did to prevent us from opting out of the battery sucking LTE connection.
I am on an unlocked bootloader & rooted on the Elegancia 3.1.0 AT&T rom.
DornoDiosMio said:
Seems no matter which I pick it just resets to the standard option.
If I turn the radio off first I can set whatever I want, but, upon turning back one I still get 'LTE' even if it isn't the selected network type.
EDIT: I see I have the same problem as 'moregadget' in that no matter what I do it just seems to go back to its default settings. It must be some BS AT&T did to prevent us from opting out of the battery sucking LTE connection.
I am on an unlocked bootloader & rooted on the Elegancia 3.1.0 AT&T rom.
Click to expand...
Click to collapse
Yep identical problem...
I went back to my original One X for a couple weeks and put the X+ away. I'll come back to it but right now its not fully functional for me.
I have eternal faith in the XDA community and that with more time the genius' here who are much smarter than I will figure it all out...
MG
So I was loading the Team Venom ViperXL+ 1.2.0 ROM yesterday and had a moment where I felt like an idiot. As I was selecting the items on the ROM that I wanted to load I ran across the area where I select what 3G/4G icons I want and I suddenly realized something I haven't seen on the One X+ forum but was prevalent on the original One X.
When you have the AT&T 4G icons in use you can't manually select the network however when you load a ROM that allows you to use the typical H+/3G icons that I believe are on the international version you can.
MG

[Xposed] [EXPERIMENTAL] National Roaming

Do you need to enable data roaming to get a connection even in your home network? If so, you probably know the hassle this causes when you travel abroad, or live near the border where your phone can sometimes log into another network. You have to disable data roaming every time, and if you forget, you'll get an unpleasant surprise on your next phone bill.
Maybe you know CyanogenMod's "National Roaming" feature that enables roaming only in your home country, so you don't have to disable roaming manually when you leave the country. I've used this in the past and got used to it, so much that having to live without it would annoy me a lot.
Since I just got a new phone for which CyanogenMod isn't available, I wrote an Xposed module which mimics this feature. My new phone happens to be an MTK6589 dual SIM device (Tronsmart TS7), so I also added support for the dual SIM modifications MediaTek made.
It's in a very early stage and mostly untested. It "works" insofar as the roaming icon is gone and I get a data connection without enabling roaming. I don't know if it properly detects when you're really roaming. It should, but I can't test it for now since I don't live near the border and don't have a working foreign SIM. If somebody could test whether it actually works, that would be greatly appreciated!
Requirements:
Xposed Framework
It *should* work on any Android version Xposed runs on, but so far I've only tested it on my TS7's stock 4.2.1.
Play Store?
I intend to publish it there as well, but only after it has been a bit more thoroughly tested and enough people reported that it works and doesn't cause any issues.
Source code:
https://github.com/leromarinvit/NationalRoaming
Version history (old versions here):
v0.2 - 2013-08-29 - fix Android 4.3 compatibility
v0.1 - 2013-08-25 - initial release
Technical details:
The module works by hooking pollStateDone() in com.android.internal.telephony.gsm.GsmServiceStateTracker. This function notifies listeners when the roaming state changes. So to fake the roaming state everything else sees, we only have to change it before this function is called. The logic is simple: We're roaming if and only if the MCC (mobile country code - first three digits of the numeric operator id) stored on the SIM and provided by the network differ.
In the past, I've manually patched framework.jar for some ROMs for my device and some others, by modifying isRoamingBetweenOperators()* to follow the same logic as this module. With Xposed available now, writing this as a module seems like a much cleaner solution that will work on many more devices than one could reasonably maintain manually, and with much less effort.
* I initially tried to hook this function with Xposed. However, this didn't work, because while the function exists in MediaTek's stock ROM, it never seems to be called.
I tried you module, but it doesn't work for me. I still have to enable "roaming" to get a data connection. The app "phono" shows "roaming" if I use a national roaming provider.
My network operator is "three austria", using only 3G (UMTS) networks but allows national roaming on the 2G network of "t-mobile austria". My phone is a Nexus 4 with stock rom (Android 4.3) , the XPosed framework works for XPrivacy, MaDaCo Toolkit and NFC LockScreenOff Enabler.
Can I help to find a solution?
Edit: Thanks for your dev version, works great for me now.
Thank you very much, oma, for this great little module --> this is really useful for me...!
Was anyone able to actually test it yet, either by roaming onto a foreign network, or popping in a foreign SIM?
Aaahw why didnt you post this 4 weeks back
Than my bills for my vacation were lower...
Verstuurd van mijn GT-I9505
coolnessQ said:
Aaahw why didnt you post this 4 weeks back
Than my bills for my vacation were lower...
Click to expand...
Click to collapse
Ouch . I'm afraid I can't offer anything but my sympathy... 4 weeks ago I was still using CM10 on my old phone, so I didn't need it...
oma said:
Ouch . I'm afraid I can't offer anything but my sympathy... 4 weeks ago I was still using CM10 on my old phone, so I didn't need it...
Click to expand...
Click to collapse
Ah not a big deal still many thanks for this app
Verstuurd van mijn GT-I9505
oma said:
Was anyone able to actually test it yet, either by roaming onto a foreign network, or popping in a foreign SIM?
Click to expand...
Click to collapse
Yes, for me its works perfect.
I have national roaming, and the "R" sign is gone -> so i can switch off the data roaming, which is much safer....
Thanks again.
I'm living in Austria using Hutchinsons Network "3". Yesterday I tested your module near the Czech Republic and it works perfect!
With data roaming disabled data transfer in the czech network did not work (as expected) but swiching between "3"'s austrian 2G-networks works fine.
Congratulation, great work. Let us know when we can find your program in google's play store.
Sent from my Mobistel Cynus T5 using xda app-developers app
That's good to hear! Before I put it on the Play Store, I want to add an activity that does some sanity checks (is Xposed installed? enabled? module enabled?) and tells the user what to do if anything isn't set up correctly so I don't get loads of "I installed this and it doesn't do anything, there's not even a launcher icon!!!1" comments.
This app might prove useful to me when I visit my home country in a few months.
Many thanks, it's suppose to working fine in my MTK6589 device, roaming R sign is gone, I will report some more results after a week when I am roaming in other state.
Sent from my Q800 using xda app-developers app
Help me ! how to mod in casio gzone 201L! im not acept call in! thanks! english my bad. Sorry.
Sent from my HTC Butterfly using Tapatalk 2
maphin1974 said:
Help me ! how to mod in casio gzone 201L! im not acept call in! thanks! english my bad. Sorry.
Click to expand...
Click to collapse
You can't receive incoming calls any more? This definitely shouldn't happen, and is a major bug. Thanks for catching this! Does the problem go away when you disable National Roaming or Xposed?
Edit: This seems to be a combined GSM/CDMA/LTE device, correct? Which of the radios are you using, i.e. what's your provider and which network type is it?
My device is GSM LU+ of Korea, I'm used in Vietnam.
Sent from my PI86100 using Tapatalk
Difference with GravityBox Implementation ?
Hi,
Thanks a lot for this module, it was on my todo-list for months.
Could you explain me quickly the differences with GravityBox's implementation ?
It seems to me that theirs lake per-SIM handling, am I right ?
Corresponding commit in GravityBox is :
https : // github.com/C3C0/GravityBox/commit/1df00a88d7c9692e5c13b0d82c9fe12c011f3eae
Thanks anyway for your work.
maphin1974 said:
My device is GSM LU+ of Korea, I'm used in Vietnam.
Click to expand...
Click to collapse
So you have a Korean SIM, but are currently in Vietnam, right? Which provider are you roaming on, do you know which technology it uses (GSM/UMTS or CDMA)? CDMA could potentially be a problem with the current implementation. But the most important question is still: Does the problem go away if you disable National Roaming?
bubblegum77 said:
Hi,
Thanks a lot for this module, it was on my todo-list for months.
Could you explain me quickly the differences with GravityBox's implementation ?
It seems to me that theirs lake per-SIM handling, am I right ?
Corresponding commit in GravityBox is :
https : // github.com/C3C0/GravityBox/commit/1df00a88d7c9692e5c13b0d82c9fe12c011f3eae
Thanks anyway for your work.
Click to expand...
Click to collapse
That's cool, I haven't seen this yet. Thanks! The biggest differences seem to be that GravityBox only supports 4.2+ (or at least it did last time I checked), but the implementation looks cleaner. It should support MTK dual SIM as well (the "Gemini" stuff).
I'm used gsm/utsm
Sent from my HTC Butterfly using Tapatalk 2
oma said:
Do you need to enable data roaming to get a connection even in your home network? If so, you probably know the hassle this causes when you travel abroad, or live near the border where your phone can sometimes log into another network. You have to disable data roaming every time, and if you forget, you'll get an unpleasant surprise on your next phone bill.
Maybe you know CyanogenMod's "National Roaming" feature that enables roaming only in your home country, so you don't have to disable roaming manually when you leave the country. I've used this in the past and got used to it, so much that having to live without it would annoy me a lot.
...
.
Click to expand...
Click to collapse
thanks a lot. works great on x68 Razr i !!
On my Sony Xperia Z LTE is not working with the module activated :crying:

Categories

Resources