yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Themes and Apps] MrGreg:
Check my first post. I attached a version for DC 2.09.01. I haven't tested it yet, let me know if it works.
[Hero CDMA Themes and Apps] xXsWyTcHXx:
Works great!! Good job!! My only problem is when I set it to Rome Only, my signal is even weaker lol!! Is there a way to pick different towers? My friend has TMobile and he gets full signal in my house.
[Hero CDMA Themes and Apps] KueDAWG:
Thanks for the links. looks like I got some reading to do.
[Hero CDMA Themes and Apps] c00ller:
CDMA phones can only roam an other CDMA networks. For us, that means Verizon for the most part, although there are a few regional CDMA carriers like Cellular South, etc. Maybe US Cellular is included too. But T-Mobile and AT&T are GSM, so can't roam on those networks.
[Hero CDMA Themes and Apps] chibucks:
MrGreg, thanks for posting this and with the diff between the original & modded files. Looks as if there needs to be additional changes for this to work on the moment, in that we don't have this code:

108 const/4 v3, 0x2
110 if-eq v2, v3, :cond_0
112 const/4 v3, 0x3
114 if-eq v2, v3, :cond_0
116 const/4 v3, 0x4

or this:

196 .line 79
197 .restart local v2 #statusCdmaRoamingMode:I
198 goto :goto_0
201 .end local v2 #statusCdmaRoamingMode:I
202 :pswitch_1
203 const/4 v2, 0x3
205 .line 83
206 .restart local v2 #statusCdmaRoamingMode:I
207 goto :goto_0
209 .line 85
210 .end local v2 #statusCdmaRoamingMode:I
211 :pswitch_2
212 const/4 v2, 0x4

even though we have the automatic and home options... any thoughts or advice? i know there's a lot of people that are excited about this...

one thing of note: in our arrays.xml, we also don't have the _sprint ones that you changed, but only have the default choices

any help would be appreciated and great work!
[Hero CDMA Themes and Apps] itsachirpthing:
MrGreg, is there a different process to recompile the Phone.apk? I have no issues with decompile or editing the xml, smali, etc. But I continually receive errors with the recompile. Using apk manager 4.8. Any thoughts?
[Hero CDMA Themes and Apps] chibucks:
what are you using to decompile / recompile? are you getting an error?
[Hero CDMA Themes and Apps] itsachirpthing:
I'm using APk Manager 4.8 from http://xdaforums.com/showthread.php?t=695701 which uses the latest version of APKtool. I have manually pulled the HTC framework files and they are listed in the framework directory with the proper name (2.apk). I can decompile other apk's and recompile with no issues. The phone.apk that I am working on is from the Fresh Rom for the EVO (3.1.01). I posted my Phone.apk a couple post up. Can you verify if you can decompile and recompile it? There may be some isues with the APKTool, I'm stumped.
[Hero CDMA Themes and Apps] MrGreg:
Unfortunately no...I'm pretty new to this stuff as well, just learning as I go along.

I do have one thought off the top of my head...put everything in a directory structure that does not contain spaces. Probably not the answer since you can do other apks, but I think I had a problem before with spaces.

I might be able to take a few minutes tonight and try it.
[Hero CDMA Themes and Apps] MrGreg:
Can you attach the phone.apk from the moment? Is it from 2.1? Perhaps I can find a few minutes and poke around.
[Hero CDMA Themes and Apps] MrGreg:
I tried it for Fresh 3.1.01 and it seemed to compile fine. I attached it to my first post, check it out and let me know if it works.
[Hero CDMA Themes and Apps] chibucks:
here's the Phone.apk I've been using that works on the moment... modded to remove haptic feedback during dialing (twelvekeydialer smali or something like that) and themed a bit... but other than that, it's the same as stock for the moment...

thanks again for your help!
[Hero CDMA Themes and Apps] infernosoft:
Hey MrGreg, so after pushing the apk (to my DC 2.09.01), I opened Phone-->menu-->settings, then I get FC:

The process android.process.acore has stopped unexpectedly. Please try again.

Darn :( any idea on what to do to make it work?
[Hero CDMA Themes and Apps] MrGreg:
Hmm, I think it worked for xXsWyTcHXx. It's a bit difficult since there are many versions of the apk around. My best advice would be to try making the change yourself. Pull the apk off your phone, decompile and make the changes from the first post, the recompile and sign the apk. Once you figure out the process, it only takes a couple of minutes. Perhaps someone smarter than me can think of a more universal mod.
[Hero CDMA Themes and Apps] infernosoft:
I have absolutely no idea how to do all that stuff, though I guess I should start learning if I want this app lol.
[Hero CDMA Themes and Apps] MrGreg:
It's actually pretty easy with apk manager, perhaps I should just make a step by step guide. If would be nice if devs could start building this in their roms.
[Hero CDMA Themes and Apps] misfit0313:
Forced roaming is working great, however getting an occasional freeze or bootloop upon starting the phone. Thank you, this is awesome.
[Hero CDMA Themes and Apps] misfit0313:
After several reboots the freezing problem went away
[Hero CDMA Themes and Apps] infernosoft:
I would really appreciate that :)
[Hero CDMA Themes and Apps] skndeep102:
I would appreciate a How-To. I've been wanting to try this out but I'm running ZenHeroFX.
[Hero CDMA Themes and Apps] infernosoft:
You're running DC 2.09.01, right? If so, can you tell me how you went about installing this on your phone? I've tried, but it keeps FCing on me...
[Hero CDMA Themes and Apps] Hpjunior:
would this work with the stock 2.2 by modifying my own phone.apk? And would i be required to be rooted? Sorry if this been answered before.
[Hero CDMA Themes and Apps] n3x1s:
I'm definitely trying this when I get home! I hope it works! I've been going outside and sitting on the trampoline for years just to talk on the phone. Hopefully Verizon will have better coverage there than Sprint . . .
[Hero CDMA Themes and Apps] tseidel:
ok so ive decompiled my phone.apk and changed the array.xml in out/res/values

but i cant seem to find the cdma roaming list cant someone point me in the right direction ?
[Hero CDMA Themes and Apps] MrGreg:
What rom are you running?
[Hero CDMA Themes and Apps] MrGreg:
Sorry, I haven't had much time to play around with this lately.

Is the Evo version FCing for everyone? If yes, I will delete it from the first post.

I'm going to try some different tools for modifying the apks, hopefully tonight...
[Hero CDMA Themes and Apps] dailypush:
Thank you

Thank you for releasing this and showing the changes and how you modified (very educational)

Wanted to get your thoughts on adding

* force evdo? Used to be on the old 1.5?

I observed that when in forced roaming I am only seeing 1x on roaming. Whereas normally my phone roams in evdo and 1x. (wondering if there is another line of code or a switch that lets it move between evdo and 1x in roaming.
[Hero CDMA Themes and Apps] Dono74:
Install from phone??

Can this be done on the phone sans computer???

I'm dying to try this but havent found a free file manager that will do it. I have the red dawn rom which is eccentially fresh rom, renamed it but unable to move it to system/app.

Am I replacing the current phone apk or adding another next to it??

Dont flame me for my lack of Knowledge! LOL!!:D
[Hero CDMA Themes and Apps] rockypr:
I have Fresh 2.1.2, what version works for me?
[Hero CDMA Themes and Apps] cflynt:
Would love to see this for Damage Control 3.5 for the EVO, I don't know if I would understand the APK Manager enough to be able to try myself, but will take a look at it to see if I can do it myself. Tried the one for Fresh 3.1.0.1 and it just did the whole Force Close but expected it. Look very forward to a widget in the future that would totally rock. Have no issues with signal anywhere except in my building at work. Just mainly because it is half underground. But Verizon comes through much better.

Edit: Well it isn't as hard as I thought to follow APK Manager, but did the changes from the diff, and just get the force closes that others are reporting. So must be more changes. I did pull the framework as well, so must be more to it I am missing. So still would love an Evo 4g DC 3.5 apk for this and widget heh!
[Hero CDMA Themes and Apps] bbv203:
Anyone on DC had luck using the DC version? I'm still getting FC's on Phone.apk, had to push the stock one back.
[Hero CDMA Themes and Apps] Temragon:
Looking forward to being able to do this. My family with heroes are constantly griping about bad signal. (And it is, on sprint towers)

But, I'm going to be moving them to CM when it releases, will it be possible to use with it?
[Hero CDMA Themes and Apps] MrGreg:
The Fresh 2.3.3 version works great for me. It sounds like one person had the DC version working.

I tried the mod for nfinitefx45's stock ROM but haven't got it working yet. I tried APK Manager and apktool, no luck. I'm not quite sure what's going on, why some work and some don't. Perhaps it's the way the apk is being signed. I'll have to get a logcat.

CM has it built in, so you should be good :)
[Hero CDMA Themes and Apps] bbv203:
Would it possibly matter if it was a odex'ed or de-odex'ed ROM? I'm still trying to get APK_Manger working on my laptop(Windows7 x64) And unfortunately I couldn't ever get the latest Fresh ROM on my phone without lagging like crazy...
[Hero CDMA Themes and Apps] farlz:
Would this method also apply to a GSM Android phone? I have a G1 and it does not allow me to manually roam to another provider while in a T-Mobile coverage area (even when I can't get the Tmo signal indoors in said "coverage area"). I can see and select AT&T, but it won't let me register on it.
[Hero CDMA Themes and Apps] Temragon:
Hah, sweet! Nice work, thanks.
[Hero CDMA Themes and Apps] SteveMoore:
gsm force rom

I've been looking for a way to force my 3 mobile HTC hero to roam for months now. This is the closest I've come to a solution. I believe my handset is gsm, could anyone confirm if this mod would work on a gsm handset? I apologise for the newbie question, any response would be greatly appreciated

Cheers,

Steve
[Hero CDMA Themes and Apps] chibucks:
i wouldn't think so as the mods are to the cdma xmls... but i could be wrong.
[Hero CDMA Themes and Apps] bbv203:
I don't get what i'm doing wrong trying to modify and compile this thing....I've made all the changes, got the java and adb issues sorted out with apk manager but it still won't compile the apk.

|Wed 08/11/2010 -- 18:59:56.36|

--------------------------------------------------------------------------

java version "1.6.0_21"

Java(TM) SE Runtime Environment (build 1.6.0_21-b07)

Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(Unknown Source)

... 5 more

The system cannot find the path specified.

Press any key to continue . . .
[Hero CDMA Themes and Apps] MrGreg:
Instructions

Here are the steps that I used:

- Download Apk Manager 4.8 @ http://xdaforums.com/showthread.php?t=695701

- Unzip it to a path without spaces (I chose C:\hero\Apk_Manager_4.8)

- Run Script.bat and go to the main menu (clearing out your projects is optional, I usually choose yes so I don't get apks mixed up)

- Copy your Phone.apk to the "place-apk-here-for-modding" directory

- Choose Option 9 to decompile the apk

- Browse the "out" directory and make the changes as shown in the first post, or however you see fit

- Choose Option 11 to recompile the apk

- Choose Option 12 to sign the apk

- The new apk is located in "place-apk-here-for-modding"

- Rename the apk to Phone.apk and push it to your phone.

It worked great for Fresh 2.3.3, mixed results for other ROMs. I don't have much free time to play around with this unfortunately, so hopefully you guys are able to make some progress.
[Hero CDMA Themes and Apps] bbv203:
Thank you for this, however Step 11 is where I get the error I posted above.
[Hero CDMA Themes and Apps] MrGreg:
This log is from apktool, correct? Can you try with APK manager and post that log?
[Hero CDMA Themes and Apps] markus_del_marko:
what the point of forcing roam? anybody care to enlighten me on this? :confused:
[Hero CDMA Themes and Apps] rockypr:
Guys need a little Help. I'm running Fresh 2.1.2, what version works with this?
[Hero CDMA Themes and Apps] MrGreg:
You could try the version from 2.3.3, not sure what the differences are though. Otherwise I would recommend modding the apk from your rom.
[Hero CDMA Themes and Apps] nfinitefx45:
well MrGreg I am going to try this mod on a .5 version of the phone.apk and see what this does as I have tried about 30 times with no success, it just crashes the dialer + dialer storage on both my roms. One thing I have see is that 7zip is compressing them this was causing the fc on phone apk originally doing it store mode took care of this issue, now i just need to figure out why it crashes dialer

Any thoughts on your end?
[Hero CDMA Themes and Apps] bbv203:
I've only ever tried with manager, so as far as I know, it should be from APK manager
[Hero CDMA Themes and Apps] MrGreg:
Not really, unfortunately.

I did find this, perhaps it's worth a shot...

http://xdaforums.com/showpost.php?p=6783187&postcount=378
[Hero CDMA Themes and Apps] farlz:
One reason: Sometimes you're in a T-Mobile coverage area but don't get signal indoors, yet you still can't manually switch over to AT&T.
[Hero CDMA Themes and Apps] tseidel:
the stock rom
[Hero CDMA Themes and Apps] MrGreg:
Perhaps these are the instructions that we need:

http://xdaforums.com/showthread.php?p=7633685

If this is the case, it's a decent amount of work for everyone to do for their ROM...perhaps the best idea is to bother the dev/s of your favorite ROM (like nfinitefx45 :) ) to build this feature in the next release.
[Hero CDMA Themes and Apps] MrGreg:
I think you need a deodex rom to do this mod. If you like stock, once this feature is working (or even if it isn't), I suggest nfinitefx45's stock rom.
[Hero CDMA Themes and Apps] SteveMoore:
uk (gsm) hero

Hi,

If anyone using a gsm hero needs to force roam try the below, it worked for me but word of warning I accidentally messed with the smsc setting when doing this (broke my sms, fixed by googling for the smsc number for my provider).

Dial: *#*#4636#*#*

Click: phone info

Scrowl down to "set preferred network type"

Select: gsm only

Hit back till you are at the home screen

In a couple of seconds the sweet little R appears :-)

Hope someone finds that useful

Cheers,

Steve
[Hero CDMA Themes and Apps] my2cents:
MrGreg,

Have you had a chance to poke around with the moment phone.apk? chibucks has been trying to make this work for all of us and I think he is only one step away. Any help you can give would be very appreciated.
[Hero CDMA Themes and Apps] MrGreg:
I'm looking at the code now. With the moment, what roaming options do you normally have in the settings menu? Do you have both Automatic and Sprint only?

What progress has chibucks made so far?
[Hero CDMA Themes and Apps] rockypr:
Nice Work... Quick suggestion to developers. Create an APP to quickly change from Roaming to Sprint and Sprint to Roaming
[Hero CDMA Themes and Apps] CherryWine:
Could someone please provide step by step instructions. There's so many posts in this thread that I have no clue where to start and what to download.
[Hero CDMA Themes and Apps] my2cents:
That is correct. We can chose between "Home only" and "Automatic" in the system select menu under network settings.

Here is a link to the information that chibucks has provided over at sdx: http://forum.sdx-developers.com/and...aming-i-know-it's-possible/msg76266/#msg76266

I think it is similar to what he posted here at xda.

Thanks again!!!
[Hero CDMA Themes and Apps] MrGreg:
Thanks, that's helpful to know the exact strings that you see in the settings menu. I can probably take a look tonight once I get the kids to bed and everything.
[Hero CDMA Themes and Apps] churro7:
cannot be used on stock unrooted 2.1 hero?
[Hero CDMA Themes and Apps] MrGreg:
Correct

10chars
[Hero CDMA Themes and Apps] MrGreg:
Oookay, I finally got a few minutes to look through the Moment code, and I see what is going on here. I've got a few ideas...the easy way that might not work, the other easy way, and the right way (which actually isn't that much more work, it just introduces some new code). The suggested changes are shown below...I copied some tag/line number for reference,

and added comments to the lines I added/modified

.

The easy (and interesting) way that might not work:

Replace "Home only" with "Roam only". Try changing how the roaming options are defined, nice and easy. You lose the ability to force to Sprint, but does anyone do that?

filename=arrays.xml

<string-array name="cdma_system_select_choices">
<item>Roam only</item> #was "Home only"
<item>Automatic</item>
</string-array>
<string-array name="cdma_system_select_values">
<item>0</item>
<item>2</item>
</string-array>

filename=Settings.smali

.field private static final CDMA_ROAMING_MODE_AFFILIATED:I = 0x0 #was 0x1

.field private static final CDMA_ROAMING_MODE_ANY:I = 0x2

.field private static final CDMA_ROAMING_MODE_HOME:I = 0x1 #was 0x0

The easy way that should work

Replace "Home only" with "Roam only". Swap 0x0 with 0x1 in the code. You lose the ability to force to Sprint, but does anyone do that? More code changes with this one...

filename=arrays.xml

<string-array name="cdma_system_select_choices">
<item>Roam only</item> #was "Home only"
<item>Automatic</item>
</string-array>
<string-array name="cdma_system_select_values">
<item>0</item>
<item>2</item>
</string-array>

filename=CdmaRoamingListPreference$MyHandler.smali

.line 120
.local v1, settingsRoamingMode:I

const/4 v3, 0x1 #new

if-eq v2, v3, :cond_0 #modified

const/4 v3, 0x2

if-ne v2, v3, :cond_3

filename=CdmaRoamingListPreference.xml

.line 81
const/4 v2, 0x1 #was 0x0

The right way

Add a Roam only option. This way requires more code updates and will require some trial and error on your part.

filename=arrays.xml

<string-array name="cdma_system_select_choices">
<item>Home only</item>
<item>Roam only</item> #new
<item>Automatic</item>
</string-array>
<string-array name="cdma_system_select_values">
<item>0</item>
<item>1</item> #maybe supposed to be 3, i'm not sure, trial and error
<item>2</item>
</string-array>

filename=CdmaRoamingListPreference.smali

.line 75
packed-switch v0, :pswitch_data_0

const/4 v2, 0x1 #new
if-eq v0, v2, :goto_0 #new

.line 81
const/4 v2, 0x0

filename=CdmaRoamingListPreference$MyHandler.smali

.line 120
.local v1, settingsRoamingMode:I
if-eqz v2, :cond_0

const/4 v3, 0x1 #new

if-eq v2, v3, :cond_0 #new

const/4 v3, 0x2

if-ne v2, v3, :cond_3
[Hero CDMA Themes and Apps] MrGreg:
If you have problems with recompiling the apk, perhaps you can ask the person who did the haptic feedback mod.
[Hero CDMA Themes and Apps] chibucks:
LOL... that was me (haptic feedback mod - based off of J here on xda). :)

thanks for the help, i'll try out some of your ideas and let you know. i know a lot of people have been wanting this for a while, so if it works, all credit to you and will definitely will point them in your direction.
[Hero CDMA Themes and Apps] MrGreg:
Nice, so you already know what's going on. Hopefully this works!
[Hero CDMA Themes and Apps] my2cents:
Thank you MrGreg!
[Hero CDMA Themes and Apps] skndeep102:
Has anyone gotten this to work on ZenHeroFX? I tried using the posted instructions but it didn't work out. Any help is welcome.
[Hero CDMA Themes and Apps] rockypr:
Anybody having issues receiving text messages?
[Hero CDMA Themes and Apps] my2cents:
MrGreg,

chibucks has been killing himself (I think) trying to make this work for us Moment users. He is running into some problems still. Can you see if it is something obvious?

http://forum.sdx-developers.com/and...aming-i-know-it's-possible/msg80409/#msg80409

Thanks again and again....
[Hero CDMA Themes and Apps] superevilllama:
Any way to get the stock 2.2 phone.apk for the EVO modded to include roaming options? I tried decompiling the apk from my phone and only got errors.

I appreciate any help!!

Thank you.

I have attached the stock EVO 2.2 Phone.apk file that needs to be modified.
[Hero CDMA Themes and Apps] chinkster:
anyone know if this works on DDv2.8? or if this will work on CM6 froyo 2.2 both by darchstar?
[Hero CDMA Themes and Apps] MrGreg:
I wasn't able to get it to work on nfinitex45's stock rom, so I think it will be the same with zenherofx.

No, I haven't had any issues with that. Are they delayed?

CM6 has it built in, which is pretty dang convenient. Haven't tried it on DD.

I'm going a different direction with how to force roam, I will have some more info in the next few days.
[Hero CDMA Themes and Apps] churro7:
does it work on stock 2.1 and vanilla cyanogen cm6?
[Hero CDMA Themes and Apps] churro7:
can someone post one used with cyanogen mod vanilla based on cm6?
[Hero CDMA Themes and Apps] wayne64ss:
BUMP for MrGreg. I would love this feature!!!
[Hero CDMA Themes and Apps] MrGreg:
I'm still working :D
[Hero CDMA Themes and Apps] MrGreg:
Hey chibucks, check your PM
[Hero CDMA Themes and Apps] MrGreg:
OK, I put an app on the market to enable forced roam.

http://www.appbrain.com/app/com.vuvuzela.roamcontrol

I was going back and forth on whether or not to put a price on it, but hell, I'm trying raise some extra cash for the family.

Let me know if you have any issues. It hasn't been tested out with every phone/ROM...I'm not sure if this will work on the Samsung Moment, that phone has been a little difficult to manipulate.
[Hero CDMA Themes and Apps] gregfink:
Works like a champ. Thanks for the great application. Any chance we will see a widget for it? This was really the only thing I was missing from my Pre. I'm running Virus's rom and it has no problems at all.
[Hero CDMA Themes and Apps] Vandelay007:
Does sprint no longer charge for roaming calls??

Sent from my HTC Hero with Froyo...
[Hero CDMA Themes and Apps] RavenTBK:
Never have, as long as you have a free&clear, or simply everything plan. Only rule is not to exceed half of your total minutes used for that month as roaming, or 800 total minutes as roaming, or 300MB of data while roaming, as that will set off red flags at Sprint.
[Hero CDMA Themes and Apps] werxen:
What do you mean by 'red flags'? I wasn't aware that force roaming is illegal.
[Hero CDMA Themes and Apps] gdagreat:
this is great for those wanting to get out of their contracts...if you roam too much sprint will cancel your contract without ETF
[Hero CDMA Themes and Apps] werxen:
Interesting. I might just do force roam and see what Sprint does. I am paying ~ $75 after ALL the taxes included with Sprint and I am pretty pissed off. Didn't realize how many surcharges are included with Sprint. Way more than Tmobile.
[Hero CDMA Themes and Apps] Vandelay007:
I would be interested in hearing how that works out for you....

Sent from my HTC Hero with Froyo...
[Hero CDMA Themes and Apps] fixxxer2008:
whats the advantages of running this?
[Hero CDMA Themes and Apps] d0cx:
this allows the phone to only look for roaming towers.
[Hero CDMA Themes and Apps] rejectedkid:
Nothing aganist this app but the prl hack is better because it gives you evdo! If you are in a verison area this is the way to

go
[Hero CDMA Themes and Apps] Vandelay007:
Where is this setting?

Sent from my HTC Hero with Froyo...
[Hero CDMA Themes and Apps] chinkster:
has anyone tried this for DarchDroidv2.8 or DarchDroidv2.7?
[Hero CDMA Themes and Apps] fixxxer2008:
i know this. :rolleyes:

in my experience though when the phone is in roam it runs like crap and the battery drains a ton faster.