yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] s0niqu3:
Hey everyone,

I posted this last night in the Vibrant forums (and confirmed that it works on the vibrant 2.2 roms) so I figured I'd cross-post here for anyone that wants to try it out on the captivate too.

Anyway I just figured out how to display the "H" icon in the status bar properly. And by that I mean, no renaming or duplicating drawable files in framework-res.apk, and the icon will show all data states now:

GSM, GPRS, Edge, 3G, HSDPA

I've only tested it for myself on the Vibrant running 2.2 roms.

Anyway, decompile services.jar, and open /com/android/server/status/StatusBarPolicy.smali

Then search for ".method private final updateDataNetType(I)V" in and replace the entire method with this:

.method private final updateDataNetType(I)V
.registers 3
.parameter "net"

.prologue
.line 1381
packed-switch p1, :pswitch_data_30

.line 1409
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_g:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

.line 1412
:goto_7
return-void

.line 1383
:pswitch_8
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_e:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1386
:pswitch_d
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1391
:pswitch_12
iget-boolean v0, p0, Lcom/android/server/status/StatusBarPolicy;->mHspaDataDistinguishable:Z

if-eqz v0, :cond_1b

.line 1392
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_h:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1394
:cond_1b
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1399
:pswitch_20
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1402
:pswitch_25
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1406
:pswitch_2a
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I

iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I

goto :goto_7

.line 1381
nop

:pswitch_data_30
.packed-switch 0x2
:pswitch_8
:pswitch_d
:pswitch_20
:pswitch_2a
:pswitch_2a
:pswitch_25
:pswitch_12
:pswitch_12
:pswitch_12
.end packed-switch
.end method

And if you haven't noticed by now, I HATE this samsung bs and would kill for an AOSP or CM rom, lol.

Cheers, =)
[Captivate Android Development] Loggik:
Interesting, though I've never had this issue. Is this for like the stock ROM? Because I was under the impression that the stock ROM never showed "H" because the modem didn't support it... But my current ROM (Serendipity 5.7) shows the "H" icon when necessary and switches over to 3G when it's on 3G. My area is so AT&T oriented, so I can't say the same for E, G, or any of the others, because my area is so densely populated with AT&T towers. I'm getting (legitimately, not false) HSDPA 99.999% of the time where I live.
[Captivate Android Development] olo567:
Stock ROM supports HSDPA but not HSUPA, so it would show the "H" icon with this mod when getting that signal I assume.
[Captivate Android Development] Whipon:
Thank you very much!

Thank you very much, s0niqu3, I was looking for this to mod a JI6 rom.

Much appreciated ^^!!!.
[Captivate Android Development] jsmith8858:
I'm confused... if your phone is on the Edge network, wouldn't you want to know it? Why would you want your task bar to show an "H" in that scenario?
[Captivate Android Development] Loggik:
Oh, that's interesting... I didn't know that! I thought I was getting just 3G for the first few days I had my phone.

It won't. With this mod, the icon will be shown properly (if you're on Edge, it'll show "E").
[Captivate Android Development] Whipon:
You didn't understand it.

Stock JI6 on the Captivate, for example, doesn't show the H icon when you have HSPA (by flashing a custom kernel and a HSPA capable modem). With this mod the H icon will be displayed.
[Captivate Android Development] olo567:
AT&T calls both UMTS and HSDPA "3G." My old phone had a "3G+" icon for HSDPA.
[Captivate Android Development] Whipon:
Confirmed!

Confirmed working on Captivate JI6.

You rock!.

Thank you very much ;).
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
^ what's draining my battery?
[EVO 4G Q&A, Help & Troubleshooting] nosympathy:
Lot of things can be. Having wifi on when your not using it is a battery killer, having GPS on when not using it is a battery killer. Bad kernal/rom combos can kill your battery faster.

Need a lot more information that what you gave.

Rom, Kernal, do you use anything like setCPU etc?
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
This, and the only app that I know that is draining is kik messenger (use autoatarts to ensure it doesn't start without my permission). Also maybe Yahoo Mail?
[EVO 4G Q&A, Help & Troubleshooting] SantinoInc:
Haven't a lot of apps that are constantly syncing can also kill battery life. Gmail, Facebook, Twitter and widgets. If you can minimize things like that you should see a significant increase in battery life
[EVO 4G Q&A, Help & Troubleshooting] xlGmanlx:
try loading spare parts to see if you can dig into more data, otherwise its kind of tough to figure that out
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
Those are what I discovered. What do they mean? Thanks for reminding me about Spare Parts, got my window animation back..
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Your KiK messenger has the most wake, meaning its partially keeping your phone from sleeping while the screen is off. You can try force closing it from applications.
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
So the best thing to do it's when I'm done using it to use system panel and end it? And I notice wifi never turns off. This kills the battery?
[EVO 4G Q&A, Help & Troubleshooting] InfectedMushroom:
The problem is your PRI/Radio while using RLS4 which was made for the previous PRI and Radio. Try upgrading to RLS5.
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
Ok so upgrade the radio and leave the pri? And myn's 5 of course, is this correct?
[EVO 4G Q&A, Help & Troubleshooting] joemaldo:
Myns Rls 5 +latest radio +latest pri+ netarchys toast 4.3.1=battery bliss
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
There's 4.3.1? And flashing the radios didn't let me boot up at all. I had to nandroid restore to my backup. I need help.
[EVO 4G Q&A, Help & Troubleshooting] crstfr:
i'd say on my setup.. .4g is the worst...i roll with Btooth, and GPS always on.. and still get superior battery life!
[EVO 4G Q&A, Help & Troubleshooting] caguirr4:
First thing you should do is wipe dalvik and cahce. Do you use clockwork or amon-ra recovery

Sent from my WiMax infested cm7 Super...Mario...Saiyen...Street Fighter...oh yeah SuperSonic.gginggerbread!!!
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
I usually wipe cache partition, then dalvik, does that make a difference? Also I was able to use clockwork but I switched to amon because it was recommended in the myn's warm two point two thread.
[EVO 4G Q&A, Help & Troubleshooting] caguirr4:
Yeah it don't matter what order you wipe in just as long as you wipe. I use amon-ra also and I wipe dalvik and cache 3times each before rebooting. And from you pics above it looks like you have the updated radio and prl.so I would also just try flashing rls5. But make sure you wipe.

Sent from my WiMax infested cm7 Super...Mario...Saiyen...Street Fighter...oh yeah SuperSonic.gginggerbread!!!
[EVO 4G Q&A, Help & Troubleshooting] mikeschevelle:
You could switch to MIUI :D I get a few days on a charge
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
Hmmm, never tried wiping more than once. I'll try it when I get home. I went back to 4 because of the browser slowness even after the flashed 4 host file.
[EVO 4G Q&A, Help & Troubleshooting] gpz1100:
Or maybe downgrade the pri to 1.77
[EVO 4G Q&A, Help & Troubleshooting] Khilbron:
You already have the top Radio/PRI, what he was saying was, Flash Myn's RLS5 because your using the Radio/PRI designed for the 3.70 OTA release, on the 3.30 Version. Basically your running the latest firmware, on an older OS, which can cause issues, notably battery loss.
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
I see what you mean. The 1.7 would cause screen tearing. Also I only wanna get 5 if I can replace the 4g toggle in the status bar with a 3g one.
[EVO 4G Q&A, Help & Troubleshooting] InfectedMushroom:
Yes you can. It's very simple to do, and instructions are very easy to follow.
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
Ok can I get the directions or the link? Cause I don't use 4g enough to hane it in the notification bar. Thanks in advance.
[EVO 4G Q&A, Help & Troubleshooting] mikeschevelle:
Just as a lure to tempt you to the MIUI side
[Droid Eris Q&A, Help & Troubleshooting] httjs:
Hey.. I just flashed a rom to my droid eris and the Rom worked fine and everything was great until i realized that i CANT receive text messages! So i tried resetting everything and flashing some other roms until it worked and it still doesnt work.

HOw can I get it to receive texts again? :confused:
[Droid Eris Q&A, Help & Troubleshooting] CondemnedSoul:
Which rom are you using and what have you flashed? First thing I'd suggest trying is to flash a 2.1 rom such as xtrsense. Open market and install the app APN backup/restore. Backup your APN with the app. Flash the rom you want to use, install APN backup/restore and then restore APN. That would be my first suggestion, it's worked for several others that I'm aware of.
[Droid Eris Q&A, Help & Troubleshooting] roirraW "edor" ehT:
+1 what CondemnedSoul said.
[Droid Eris Q&A, Help & Troubleshooting] chadw80:
I had that problem. I unrooted, then could receive text after that. so rerooted and flashed the rom back and was still able to receive, so that was my fix.
[Droid Eris Q&A, Help & Troubleshooting] CondemnedSoul:
Yes... you can' also do it this way but I would only suggest this as a last resort. :D
[Droid Eris Q&A, Help & Troubleshooting] lygris:
i'm actually having the same problem after flashing to GSB 1.2. When i was on 1.2 i couldn't send or receive and now that i'm on 1.4 i can send but not receive. i would have asked in the GSB thread but apparently you don't know anything about anything if you don't have more than 10 posts...
[Droid Eris Q&A, Help & Troubleshooting] CondemnedSoul:
See post 2 above. I still say try that first before unroot and root again.
[Droid Eris Q&A, Help & Troubleshooting] zachpl:
I just realized same thing happened to me...
[Droid Eris Q&A, Help & Troubleshooting] omik47:
I have the same problem ever since flashing from GSB v1.2 to v1.4. Tried nand restore back to FroShedYo and KaosFroyo...no dice. Gonna try CondemnedSoul's suggestion. Hope it works!

btw My gmail stopped syncing also at the same time, but worked when I went back to Froyo.

[edit] Thanks to CondemnedSoul my eris is rockin GSB v1.6 and EVERYTHING works!!
[Droid Eris Q&A, Help & Troubleshooting] CondemnedSoul:
Go with what I suggested for the text problem. As far as gmail... Check your accounts and sync and make sure gmail is enabled to sync.
[Droid Eris Q&A, Help & Troubleshooting] dc9884:
This has happened to me many times before. Notably, it also happens if I leave WiFi on when I reboot my phone. Here's what I do (in order, usually step one or two works, I've only ever had to unroot once):

1. Turn airplane mode on, reboot the phone, turn airplane mode off

2. If your previous ROM was running the same version of android, restore a Titanium backup of your dialer storage and reboot

3. APN backup/restore, as mentioned before

4. Unroot, reroot, reflash, as mentioned before

To test, remember you can always send your own number text messages
[Droid Eris Q&A, Help & Troubleshooting] roirraW "edor" ehT:
Gotta love Calvin and Hobbes!
[Droid Eris Q&A, Help & Troubleshooting] omik47:
Did the fix and everything works and my gmail not being enabled was the problem. Never thought to check that:rolleyes:
[Vibrant Q&A, Help & Troubleshooting] draikz:
So I have a few questions:

1. When someone calls you do you lose minutes?

2. Does it work if I'm in another country [somewhere in Asia where T-Mo doesn't roam]?

3. Do I use my mobile number or is it like VOIP and you get your own number?

Thanks
[Vibrant Q&A, Help & Troubleshooting] jzun223:
1. Yes wifi calling uses your current plan. So min and txts will be used.

2. I havent tried it out of the country, but i would imagine yes.

3. You use your current mobile number.
[Vibrant General] Keslynn:
I have attempted searching a couple of times but I haven't had any luck with this one.

My problem is that my phone slows down drastically and when I open System Panel, I see that my CPU usage is maxed out and android.process.media seems to be the culprit. I cannot figure out what is causing this. Several times I thought I'd solved the problem, only to have it pop up again after a reboot. Fix Permissions does nothing.

This problem has happened with both Loki and Bionix so it does not seem to be ROM specific. Is anyone else having this problem? Any solutions?
[Vibrant General] oka1:
I would try a couple of things to check out. Try flashing the Axura or the Trigger 2.1. The reason for this is they have a different source for some of the media apps. That way you can eliminate that it truly is not a rom issue. Also, make sure you reflash back to stock and check the repartition before flashing the JFD2.1 rom. That way, there are no ghosts or other digital crud left. The other thing (which is a long shot) try someone else's sim card and check that it is not a network quirk or sim quirk... this should not be an issue but worth the check.......... stranger things have happened. It sounds like media is constantly playing or looping in the background.......almost like a virus........weird. Anyway, see if any of these things help you...........
[Captivate Q&A, Help & Troubleshooting] likiud:
I have a Rogers i896 build 10.10 running froyo. I just tried to restore back to stock rogers froyo JL1 using Odin 1.81 and using a 512 pit file. I entered into download mode and the odin process complete then the phone reboots.

Now it entered into android system recovery <3e> . with this menu:

Reboot system now

reinstall packages

delete all user data

delete cache data

format internal sd-card

it also says the following...

I'm a complete noob at this.. I read a lot and thought i'll give it a shot to flash a new rom.

Update. Tried to reflash, didn't work.

Tried to reflash with Stock Rogers Eclair, didn't work just went to the Recovery <2e> same error message with can't mount ....

I think this is bricked...

Any way around this?
[Captivate Q&A, Help & Troubleshooting] Pirateghost:
did you just use the pit file and thats it? did you use the tar file in the pda slot as well?
[Captivate Q&A, Help & Troubleshooting] likiud:
I used the stock rogers froyo tar file from this link

http://xdaforums.com/showthread.php?t=905042
[Captivate Q&A, Help & Troubleshooting] likiud:
My phone can't even be turned off. I tried all the options in the menu and it gives me the same error message.

I think the only way to turn it off is if I remove the battery
[Captivate Q&A, Help & Troubleshooting] jhernand1102:
Sounds like a bad flash, can you get into download mode and try a reflash?
[Captivate Q&A, Help & Troubleshooting] likiud:
I just pulled out the battery to turn it off, and managed to get to download mode again. This time I tried odin 1.7. Odin says passed... but still the same error message
[Captivate Q&A, Help & Troubleshooting] likiud:
One thing I noticed that the re-partition check box on odin is checked when i put the pit file in there. I didn't realized it was checked so I clicked start with that on. It wasn't checked when I first opened the program. I just tried to reflash with it off, and same result
[Captivate Q&A, Help & Troubleshooting] likiud:
Is there no one here that can fix it?

I did some more searching around and found this post from the i9000 forums...

http://xdaforums.com/showpost.php?p=8683455&postcount=7

I guess I was suppose to uncheck re-partition and the stock rogers roms does not include cache.rfs and dbdata.rfs file inside.

Anyone know if there's a way to get a ROM that includes those files in them so I can reflash it?
[Captivate Q&A, Help & Troubleshooting] TRusselo:
here i used this stock 2.1 with odin 1.7 and it worked.

http://dl.dropbox.com/u/19201431/SGH-I896_UXJI2StockRogers2.1.zip

your phone isnt bricked. bricked is a specific thing and has a special screen.

flash 2.1 when doing stock. 2.2 stock includes 3e recovery and it requires all update.zip files to be digitally signed. there is a way around it but its extra steps. instructions here

http://xdaforums.com/showthread.php?t=909213
[Captivate Q&A, Help & Troubleshooting] likiud:
I tried to flash to stock 2.1 with odin but same thing happened.

It boots into recovery and i can't do anything... except its 2e instead of 3e that i saw before.
[Captivate Q&A, Help & Troubleshooting] TRusselo:
whats the exact filesize of the tar you used?

also if you dont re-partition, you dont need a pit file. (the p stands for partition)
[Captivate Q&A, Help & Troubleshooting] likiud:
The exact file size for the TAR is 238 MB (250,420,736 bytes)

I didn't know PIT is re-partition until after the fact.
[Captivate Q&A, Help & Troubleshooting] opcow:
Ok, I'm going to see if I can get my phone in the same condition as yours and then fix it. BRB...

Broke it and fixed it. Details in a sec.

Ok my steps to break it:

Flashed UXJL1 with Odin 1.81 using 512.pit and repartition checked.

Boot lands in recovery with can't mount error.

Steps to fix.

Used Odin 1.81 to flash the JH2 firmware from this post: http://xdaforums.com/showpost.php?p=10056254&postcount=36.

Did not check partition, did not load a pit file.

I've seen that error before but I couldn't remember how I fixed it. I think the key is simply to Odin flash 2.1 firmware using no pit and no repartition. I chose the package above because it doesn't change your boot loader and is compatible with newer phones.
[Captivate Q&A, Help & Troubleshooting] vvaffles:
flash into the AT&T 2.1 with the one click, what you probably did was Odin into the rogers 2.2 without turnning off lagfix. for some reason the rogers version doesnt actually repartition your phone.
[Captivate Q&A, Help & Troubleshooting] likiud:
Thank you so much! This worked! Except it now shows ATT for a brief moment but that's not a big issue. I went ahead and installed Serendipity smoothly!
[Captivate Q&A, Help & Troubleshooting] TRusselo:
there is a new fix for reference! no ATT boot logo/ fix ATT boot logo and NO dbdata error!!!

http://xdaforums.com/showthread.php?t=979133

link in my sig too!
[Windows Phone 7 General] eried:
Any tip? Did someone can share his experience in their country (if it was very easy to do from outside, like contacting a bank from outside, opening an account, etc?)
[Windows Phone 7 General] emigrating:
The problem you will be facing is that you will not pass identity verification unless you provide your real contact details - if you do this from an unsupported country you will not be accepted, and if you do this from a supported country where you do not currently reside you will not be accepted.

The workaround would be to register a business in a supported country (a LLC in the US for example) and register your marketplace account using the company rather than you as a person. If you do go down this route you'll have a pretty hefty startup cost as you'll need agents and forwarding addresses setup. On the plus side there are businesses that will sort everything out for you (from registering the business, to receiving your ITIN and organizing a bankaccount with debit/credit-cards).
[Windows Phone 7 General] emesen:
So far i have wasted a lot of money to purchase a softwaree on VCC.

WP7 is a crap.
[Windows Phone 7 General] emigrating:
How is that at all relevant to this thread?
[General Questions and Answers] Capt_Hoo:
Hi

I recently bought a Samsung Galaxy S through Optus here in Australia. Like many others, the phone is running frustratingly slow. After reading many articles on this, I have decided to root the phone, then run the one click lag fix. Rooting will also allow me to use Titanium Backup which I am keen to do.

I am very new to all this phone stuff and so far, every rooting method I have tried has failed to work (2 methods involving downloading an update.zip, one automatic method through a PC). I think this may be because my Australian phone is slightly different to the galaxy's that the root guides were created for.

My phone specs are:

Build number: Froyo.DTJP5

Baseband version: I9000DTJP3

Firmware version: 2.2

I'd greatly appreciate anyone who can point me in the right direction for applying root to this phone. Or if anyone thinks there is a better option for speeding the phone up, please let me know.
[General Questions and Answers] mashad543:
you can either apply a one click lag fix (available in the market) or follow this: http://xdaforums.com/showthread.php?t=728754
[Desire Q&A, Help & Troubleshooting] not_again:
Hey there,

I noticed the option SIMLOCK in the HBOOT Menu and because I was moving to another country, I realized that by unlocking my HTC Desire, I would be able to use it in the country I was going to. However, after executing that option, my phone stopped recognizing any SIM card. It is now showing the message "Please insert a SIM card" even when there is a SIM card in it. :(

I am wondering then, if there is a way to fix it.

I'd be very, very glad if any of you could give me insight.

Thanks!
[Desire Q&A, Help & Troubleshooting] dbzfanatic:
Have you tried calling the company you got the phone from and explaining the issue to them? You obviously can't use that phone but it couldn't hurt to try calling them.
[Desire Q&A, Help & Troubleshooting] EddyOS:
Selecting SIMLOCK will LOCK the device. Unless stated the Desire comes unlocked by default
[Desire Q&A, Help & Troubleshooting] not_again:
Really? Do you know have any suggestions about what I can do to make it work again?
[Desire Q&A, Help & Troubleshooting] lphtc:
Any solution for that, please??? I just locked mine. Now my phone asks for the simcard. It cannot recognize it

I am panicking now!
[Desire Q&A, Help & Troubleshooting] *damo*:
Try this :)

http://xdaforums.com/showthread.php?t=943726
[Desire Q&A, Help & Troubleshooting] lphtc:
solved! thanks :D
[Desire Q&A, Help & Troubleshooting] *damo*:
That's ok, you could have just used.the "thanks" button ;)
[Droid X General] rld187:
Ok here goes. I hope this is the right place or close to it. I have a Droid X with Android 2.2 on Verizon. I rooted using z4Root and then I made a complete backup with Titanium Backup of all apps and data. I haven't messed with any custom ROMs yet. I have just rooted and backed up. I saw today where there is a bad spot on the screen and I will probably get a new Droid X. With what I have done so far, can I just take the SD Card from my 1st X and restore the new one to just like the old one using Titanium Backup and restoring from it? Do I root the new phone first? How do I go about this? Thank you for your time.
[Droid X General] Zudovex:
Yeah just root and install titanium backup on your new phone then restore using the batch restore option and you should be good to go.
[Droid X General] rld187:
Thank you! I appreciate it.