[Q] "GSM only" setting - Android Software/Hacking General [Developers Only]

I need some help modifying a Froyo rom to include a "GSM only" setting.
The background is that under certain conditions (i.e. intermittently), the cell radio shows full connection, but will not allow calls, incoming or outgoing. I finally narrowed a workable solution down to forcing "GSM only" (vs. auto selection of CDMA and GSM networks). But I can only get there at the moment by adding the "Phone info" custom shortcut to my home screen (ADW Launcher) and going in and setting it manually. And unfortunately that doesn't always survive a reboot either.
I would like to simply pre-set that in the rom and not have to re-set it again. I had assumed it was something that could be done in one of the init or prop file, but I have thus far not been successful in finding information about where and how to do that.
Any help would be appreciated.

Solved. For anyone else who stumbles upon this question, the setting in build.prop is:
ro.telephony.default_network=#
Where the # is a number code for which setting you want. In my experimentation for my device, "ro.telephony.default_network=0" is WCDMA preferred and ro.telephony.default_network=1 is GSM only.
I "think" the other codes are as follows (but I can not confirm this):
0 WCDMA preferred
1 GSM only
2 WCDMA only
3 GSM auto (PRL)
4 CDMA auto (PRL)
5 CDMA only
6 EvDo only
7 GSM/CDMA auto (PRL)
8 Unknown
Additionally, if you want to set it temporarily while the phone is running, you can launch the phone info settings by entering this on your phone's keypad:
*#*#4636#*#*
But I believe it will revert to whatever you have in build.prop at the next reboot. No matter what you set in build.prop, you can still go into your Wireless & network settings, Mobile networks, and click on or off the "Use only 2G networks" setting.

Related

Enable 3G over Edge? (using Phone info ... *#*#4636#*#*)?? Won't Take...

On captivate, tried using the "phone information" to enable 3g only...
used the above dialer code to access the menu,
-selected WCDMA only
-clicked 'Back'
-Still on Edge, but i know my 3g works where i am, since it's been toggling back and forth.
How do i enforce this? Since, when i exit, it reverts back to "GSM/CDMA auto (PRL)"
Thx

[Q] WanHu ROM 2G/3G switching?

So I finally jumped in and got the WanHu ROM installed with M's v5 patch. This thing is really nice now, hopefully it will stay that way even after I reinstall some of my apps.
One thing that I've noticed is that the ability to use only 2G networks is gone. It used to be an option under Settings » Wireless controls » Mobile networks. Any chance that may be coming back?
I know some people would probably think I'm crazy to be asking that, but in my experience the batter life was pretty much double that of what I was getting on 3G, so I'd use that mode sometimes.
Thanks for all the good work on the WanHu ROM.
You can turn off the 3g at Settings >> Wireless networks >> Data Network settings & there is also a 3g widget.
Hi,
At this point you only turn data on or off. You cannot switch from 3g to 2g.
I would like to have this feature to, because the radio at my work is very poor and the battery last much longer in 2g.
Sent from my XT720 using XDA App
switch 2g , 3g, and 2g/3g
if i have to change the default network setting (3, which mean 3g/2g auto), i can from here:
1. from the dialpad dial *#*#4636#*#*
2. from the popued menu, choose Phone Information
3. from "Set preffered network type" You can choose several options including:
"GSM auto (PRL)" (this is usually default and means 3g and failback to 2g, depending on signal
"WCDMA prefered" (this mean 3g and if there is no 3g, then 2g), this settings seems to wotk, but if you exit and return to the same menu it is changed
"WCDMA only" 3g only
"GMS only" 2g only
hope that helps.
p.s. I use Battery monitor application, which has shortcut to the Phone Information menu.
peshovec said:
if i have to change the default network setting (3, which mean 3g/2g auto), i can from here:
1. from the dialpad dial *#*#4636#*#*
2. from the popued menu, choose Phone Information
3. from "Set preffered network type" You can choose several options including:
"GSM auto (PRL)" (this is usually default and means 3g and failback to 2g, depending on signal
"WCDMA prefered" (this mean 3g and if there is no 3g, then 2g), this settings seems to wotk, but if you exit and return to the same menu it is changed
"WCDMA only" 3g only
"GMS only" 2g only
hope that helps.
p.s. I use Battery monitor application, which has shortcut to the Phone Information menu.
Click to expand...
Click to collapse
Thanks for the reply. I was messing around in those menus and could not find a "GSM only" mode on my phone. I will look again, but all I remember were an "auto" mode, a "3g only" mode, and a bunch of CDMA stuff (which doesn't apply to our phones).
But I will look again and try out the battery monitor application program as that would be nicer than typing the key sequence everytime.
And just to expand my (rather small) knowledge of the android OS. The option to select only 2G under Settings » Wireless controls » Mobile networks, is that a framework thing that has to be added?
-J

[Q] Preferred network type CM10.1

In CM 10.1, going into *#*#4646#*#*, by default the network type is always WCDMA preferred. I want to make it permanently stay on WCDMA only or GSM Auto (PRL), but this setting never seens to persist across reboots.
I know it used to stick in CM7, but ever since CM9 I haven't found a way to make it stick.
Anyone know how?
djsubtronic said:
In CM 10.1, going into *#*#4646#*#*, by default the network type is always WCDMA preferred. I want to make it permanently stay on WCDMA only or GSM Auto (PRL), but this setting never seens to persist across reboots.
I know it used to stick in CM7, but ever since CM9 I haven't found a way to make it stick.
Anyone know how?
Click to expand...
Click to collapse
I think "WCDMA preferred" is the best one/most stable one.
because if you select "wcdma only", you will have no data connection when you have lower signal.
with "wcdma preferred" it change to the 2g network to keep your data connection connected (lol), so you wont get any data interruptions
Back to your question:
I have no idea
NQNH said:
I think "WCDMA preferred" is the best one/most stable one.
because if you select "wcdma only", you will have no data connection when you have lower signal.
with "wcdma preferred" it change to the 2g network to keep your data connection connected (lol), so you wont get any data interruptions
Back to your question:
I have no idea
Click to expand...
Click to collapse
What you described is exactly what GSM Auto (PRL) does, except GSM Auto (PRL) uses a pre defined list to choose which setting, rather than WCDMA preferred which constantly pings around to find the best connection at the expense of battery.
Where I live there is full HSPAP coverage, that's why I don't really care about 2G, and by keeping it on WCDMA only I will save battery compared to WCDMA preferred.
But I have still not been able to find a way for the setting to stick. I even tried editing the default connection property in build.prop but that didn't seem to work either.
djsubtronic said:
What you described is exactly what GSM Auto (PRL) does, except GSM Auto (PRL) uses a pre defined list to choose which setting, rather than WCDMA preferred which constantly pings around to find the best connection at the expense of battery.
Where I live there is full HSPAP coverage, that's why I don't really care about 2G, and by keeping it on WCDMA only I will save battery compared to WCDMA preferred.
But I have still not been able to find a way for the setting to stick. I even tried editing the default connection property in build.prop but that didn't seem to work either.
Click to expand...
Click to collapse
aaah okay, didnt know that with the battery

[Q] Phone settings - LTE/GSM auto (PRL) vs others?

In the Phone info settings (accessible by downloading the "Hidden Menu" app from the Play Store [I tried phone dial codes, but they didn't seem to work on my custom ROM, Mahdi ROM]), you can change the preferred network type from the default:
LTE/GSM auto (PRL)
To a variety of other things, including LTE/GSM/CDMA auto (PRL).
I'm on AT&T. Presumably, the G2 is a world phone, and thus could pick up CDMA signals. Would enabling the LTE/GSM/CDMA preferred network type bring any advantages, like improved network coverage, or any disadvantages, like worse battery life?

How to enable automatic GSM fallback?

Hi,
On my old Sony, I had something like "LTE/WCDMA/GSM" mode, so phone could successfully fall back to GSM when 3g/4g connection is weak.
Is there such an option for Pixel 3?
I've tried various settings from 4636 menu, but it looks like there is no such option. Even in "GSM auto (PRL)" or "Global auto" is still uses UMTS with -100...-110 dbm signal strength, while in "GSM only" there is -89dbm available.
Is there a settings or some adjustable through adb option, which allows GSM fallback?
I also could write an android app, in order to switch into GSM in some circumstances, if possible.
I've located in the eastern europe, if that matters, and LTE/WCDMA work best on my network, except in my office location.

Categories

Resources