[Q] Show H+/4G for HSPAP:15 - Samsung Galaxy Nexus

Hey there! So I have the GSM version of the Galaxy Nexus on T-Mobile and from doing research I've learned that when my phone is showing HSPAP:15 under Mobile Network Type that mean's it's connected to HSPA+. So what I'd like to do is figure out where in Android it decides which icon to use based on network type, and have it use the provided 4G icon in the SystemUI.apk when it's HSPAP:15 instead of HSDPA:9 so I can visually see when my phone is on H or H+. Now I know people have made tons of zips that just change the H to always be 4G. But I want to see when I'm on normal HSPA or HSPA+. SO! My real question is, where do I even look to find this out? Any developers out there wanna help me out? Or maybe even create a flashable .zip for AOKP b34?
Thanks!

Unzip the GSM ROM (or use 7zip and open w/o unzipping) and look in the drawables folder. Find the icons you want to change and note their names. Download an LTE ROM and do the same, but pull out the 4G icons and rename them to what you want them to replace. Copy/Paste/Replace, close the ROM and flash it.
That's the low-tech way. You could also get someone to make a flashable .zip for you.

This doesn't quite accomplish what I want. I could replace the H icon with the 4G one (already in the SystemUI.apk on AOKP) but then it always shows 4G and never H. I want to see H on normal and 4G on HSPA+. I realize this is probably going to be a little more difficult than swapping an image. That's why I'm asking .
Sent from my Galaxy Nexus using XDA

BraydenJames said:
This doesn't quite accomplish what I want. I could replace the H icon with the 4G one (already in the SystemUI.apk on AOKP) but then it always shows 4G and never H. I want to see H on normal and 4G on HSPA+. I realize this is probably going to be a little more difficult than swapping an image. That's why I'm asking .
Click to expand...
Click to collapse
Well if the device doesn't have a trigger for HSDPA:9 and HSPAP:15 to have different icons, it's going to be a serious hack to get it to recognize the difference and display the "relevant" icon.

martonikaj said:
Well if the device doesn't have a trigger for HSDPA:9 and HSPAP:15 to have different icons, it's going to be a serious hack to get it to recognize the difference and display the "relevant" icon.
Click to expand...
Click to collapse
That's what I was afraid of. I'm pretty sure there's no trigger for different icons. So yeah back to my original question. I'll continue my research and maybe someone here can point me in the direction!
Sent from my Galaxy Nexus using XDA

*bump* would it be wrong for me to post this in development?
Sent from my Galaxy Nexus using XDA

BraydenJames said:
*bump* would it be wrong for me to post this in development?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Yes..in development u can post to tell us how to modify the framework, not to request how to do it
Inviato dal mio Galaxy Nexus con Tapatalk 2

I'm also interested in this.
I'm using AOKP ROM, and I've tried to decompile the framework-res.apk and browse and search through the files, but I can't seem to find these icons, nor the code that triggers the switch between one or the other.
Would anyone be able to point us in the right direction to try and find the appropriate piece of code?
I mean, I don't think the code can be that hard to edit once found. There has to be some place where they're associating each type of network coverage with its proper icon, and we know this from another thread:
Code:
UNKNOWN = 0; "G"
GPRS = 1; "G"
EDGE = 2; "E"
UMTS = 3; "3G"
IS95A = 4; "1x"
IS95B = 5; "1x"
1xRTT = 6; "1x"
EVDO_0 = 7; "3G"
EVDO_A = 8; "3G"
HSDPA = 9; "H" or "3G"
HSUPA = 10; "H" or "3G"
HSPA = 11; "H" or "3G"
And now this:
Code:
HSPAP = 15
Which is what they use for HSPA+.
So it's probably just a matter of adding a 15 somewhere, and telling it to pick our newly created icon that I could create in one minute (adding a + besides the H, both in the white and blue versions).
Can anybody give us a hand here?

You could look at this thread.
http://forum.xda-developers.com/showthread.php?t=1633268

Related

[Metamorph Req] Change 3G to H

Has anyone get a metamorph patch for this? I'd make one myself if I had the H icon to begin with.
AdrianK said:
Has anyone get a metamorph patch for this? I'd make one myself if I had the H icon to begin with.
Click to expand...
Click to collapse
You mean these?
could you share the methmorph zip for this ? thanks.
Nvm I thought H was used in Sense and 3G in AOSP, but you can have 3G w/o HSDPA, silly me.

Q: About G2 build.prop Setting

Just wondering what the build.prop for the G2 says under the ro.ril.hsxpa heading.
So far as I can tell, there's 3 settings thus far known for this value
ro.ril.hsxpa=0 which limits the phone to UMTS downloads and uploads
ro.ril.hsxpa=1 which enables HSDPA for downloads, uploads remain limited by UMTS
ro.ril.hsxpa=2 which enables full HSPA (HSDPA and HSUPA).
What I want to know is if the G2 has it set to anything other than 2, which might signify a special setting for HSPA+. It might be useful in case other phones have the needed chipset, but it's software disabled by the build.prop.
Thanks in advance for any response. I know the ROM has been dumped, but it will take me longer to d/l it than for you to pull it up in your file explorer. If I get no reply, I'll post my findings here anyway.
# grep ro.ril.hsxpa build.prop
ro.ril.hsxpa=2
ro.ril.hsxpa = 2
Virtuous' Desire Z Sense ROM for the G2 has ro.ril.hsxpa=3. Googling has yet to give me an answer as to what value 3 means though...any ideas?
chewy106 said:
Virtuous' Desire Z Sense ROM for the G2 has ro.ril.hsxpa=3. Googling has yet to give me an answer as to what value 3 means though...any ideas?
Click to expand...
Click to collapse
i changed it to 3 also,
changed it twice on the same build.prop. for some reason all the ro.ril's are in there twice.
so far i dont see a difference at all.
sheek360 said:
i changed it to 3 also,
changed it twice on the same build.prop. for some reason all the ro.ril's are in there twice.
so far i dont see a difference at all.
Click to expand...
Click to collapse
apparently i stick with umts when i changed both values to 3, it wouldnt switch to hspa or hspa+

[MOD] 4G/H+ Icon for HSPA+ [AOKP M5]

Hello everyone! This is my first ever mod . It's not much, but it was a wonderful learning experience!
WARNING: This is a mod for AOKP rom milestone 5! I'm not sure what will happen if you use this on another rom!
UPDATE: Since quite a few users requested it, I've now made a version of the SystemUI.apk that uses H+ images I made instead of 4G for HSPA+ . Instructions are the same. Both the downloads are now below!
Now this isn't just another SystemUI xml mod that swaps the H icon for the 4G icon. This is actually a mod to the source of SystemUI.apk so it can distinguish between HSPA and HSPA+ and show the H icon for HSPA and the 4G/H+ Icon for HSPA+.
Screenshots of both the 4G and H+ are attached.
DISCLAIMER: Although this is a very simple modification and should in no way cause harm to your device, it is still your own responsibility to be careful when modifying your device .
Instructions for manual install (not using flashable zip above):
1. Download SystemUI.apk to your SD card.
2. Using your root file explorer of choice, go to system/app and rename your SystemUI.apk to SystemUI.apk.backup (in case you want to go back). Don't forget to Mount R/W if using Root Explorer.
3. Copy SystemUI.apk from your SD card to system/app.
4. Fix permissions on the new SystemUI.apk to rw-r--r-- (Owner: read, write; Group: read: Others: read).
5. Reboot
6. Enjoy your 4G/H+ icon!
[M5][4G Icon] Download: http://www.2shared.com/file/qrJWxTVv/SystemUI.html
[M5][H+ Icon] Download: http://www.2shared.com/file/Mq2q7VN-/SystemUI.html
[b35][4G Icon] Download: Coming soon!
[b35][H+ Icon] Download: Coming soon!
I'd just like an H+ icon, really.
Sent from my A100 using XDA
Download link does not work
Sent from my Galaxy Nexus using xda premium
OniV2 said:
I'd just like an H+ icon, really.
Sent from my A100 using XDA
Click to expand...
Click to collapse
Yeah that's my next step. I just used the 4G icon initially because it's already in there. Hopefully I can make an H+ icon and add it tonight.
EnIXmA said:
Download link does not work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Fixed, sorry about that!
Edit: Actually, it keeps messing up the url and truncating the middle after I fix it?...
Double edit: I think it should be good now...
Also... I wasn't sure if this should be in development or themes.. So if I'm in the wrong place I apologize and hope a mod can move this thread to themes!
I guess it's a nice thing as 4G indicates a high speed data connection just like H+ , thou H+ is nicer cuz we want something that is really working on our devices ! .
M7amad90 said:
I guess it's a nice thing as 4G indicates a high speed data connection just like H+ , thou H+ is nicer cuz we want something that is really working on our devices ! .
Click to expand...
Click to collapse
Well T-Mobile calls their H+ "4G" even though it's not.. Haha. But yeah!
BraydenJames said:
Well T-Mobile calls their H+ "4G" even though it's not.. Haha. But yeah!
Click to expand...
Click to collapse
Just marketing, 4G as it is now is only reached by LTE Advanced and Wiimax 2, HSPA+ it no even near 4G speed requeriments.
Just a coment though, the carriers get to my nerve when they try to skim people.
I'll make you a flashable zip. Give me a second
edit: http://www.mediafire.com/?lsc3yddfmbu1wcb
@op: just open it up with winrar and replace the systemui.apk with the newer one
Hey, thanks for this, I'll wait for the H+ icon but good work nonetheless
Edit: Just kidding. Don't know where the post I was quoting went.. haha. But this isn't just a simple image swap. It's actually a code change that allows both H and 4G (H on HSPA and 4G on HSPA+).
BraydenJames said:
Edit: Just kidding. Don't know where the post I was quoting went.. haha. But this isn't just a simple image swap. It's actually a code change that allows both H and 4G (H on HSPA and 4G on HSPA+).
Click to expand...
Click to collapse
? what are you talking about?
zephiK said:
? what are you talking about?
Click to expand...
Click to collapse
Nothing . Someone posted saying this had already been done and linked to a mod that replaces images. But I failed at quoting it to reply and now it's gone. Haha. But thanks for the .zip, I'll add that to op in a minute.
I ll be glad to see a screenshot of the 4g icon to see how it looks like.
aguerito said:
I ll be glad to see a screenshot of the 4g icon to see how it looks like.
Click to expand...
Click to collapse
I'm not at a computer anymore so I'll have to add a screenshot later, but it's the same 4G icon used to show LTE on the CDMA Nexus. Could probably image search it .
Sent from my Galaxy Nexus using XDA
Dont know what isnwrong but i flash th zip through cwm and when i restar some weird thing show up next to the batery porcentage, it says %1$0,%2$0. Help plz, dont want to put the rom again.
Enviado desde la Galaxia Nexus
aguerito said:
Dont know what isnwrong but i flash th zip through cwm and when i restar some weird thing show up next to the batery porcentage, it says %1$0,%2$0. Help plz, dont want to put the rom again.
Enviado desde la Galaxia Nexus
Click to expand...
Click to collapse
Are you running AOKP M5? If so, that's pretty weird. Maybe the flashable zip doesn't work. Try instead to do the manual SystemUI.apk replacement. I know that works. Did you make a backup or anything?
Also, if you re-flash the rom/gapps without wiping it'll keep all your apps and settings, but put back the normal SystemUI.apk.
Can you please tell me what you changed in SystemUI so I can apply this to SlimICS 3.5 ?
Thanks
modstorm said:
Can you please tell me what you changed in SystemUI so I can apply this to SlimICS 3.5 ?
Thanks
Click to expand...
Click to collapse
Oh sure! In the com.android.systemui.statusbar.policy.NetworkController class in the SystemUI app there's a switch statement of the networks that looks like this:
Code:
521 case TelephonyManager.NETWORK_TYPE_HSDPA:
522 case TelephonyManager.NETWORK_TYPE_HSUPA:
523 case TelephonyManager.NETWORK_TYPE_HSPA:
524 case TelephonyManager.NETWORK_TYPE_HSPAP:
525 if (mHspaDataDistinguishable) {
526 mDataIconList = TelephonyIcons.DATA_H[mInetCondition];
527 mDataTypeIconId = R.drawable.stat_sys_data_connected_h;
528 mContentDescriptionDataType = mContext.getString(
529 R.string.accessibility_data_connection_3_5g);
530 } else {
531 mDataIconList = TelephonyIcons.DATA_3G[mInetCondition];
532 mDataTypeIconId = R.drawable.stat_sys_data_connected_3g;
533 mContentDescriptionDataType = mContext.getString(
534 R.string.accessibility_data_connection_3g);
535 }
536 break;
So it falls through all cases of HSPA and displays the H. I just pulled the case for HSPAP out of that and put it after that big one as its own case, and when it hits that I display the 4G icon (same code that's in the LTE case). You could also pretty easily add an H+ icon to display instead. I'll probably do that eventually.
I'm not currently home or I'd post my exact change I made. I can do that later if need be though.
Thanks but decompiling never works for me It would be great if you can do this mod for other roms too
Thanks!

4G LTE icon for AOSP roms?

ive tried looking everywhere but nothing to be found for aosp..
i need to know is there a way to get rid of the DC and H H+ signs off and have it show 4G for H+ and 4GLTE in replacement of 4G..
i appreciate the help and hope there is something out there for this,
ezsoulja said:
ive tried looking everywhere but nothing to be found for aosp..
i need to know is the to get rid of the DC and H H+ signs off and have it show 4G for H+ and 4GLTE in replacement of 4G..
i appreciate the help and hope there is something out there for this,
Click to expand...
Click to collapse
Have you tried Romtool box pro? It helped me get LTE icon for a TW rom. The theme i was using didnt have LTE so Romtoolbox did the trick. Never tried on AOSP
G7Baker said:
Have you tried Romtool box pro? It helped me get LTE icon for a TW rom. The theme i was using didnt have LTE so Romtoolbox did the trick. Never tried on AOSP
Click to expand...
Click to collapse
Was able to replace the 4g to 4g Lte but it gets annoying when I lose Lte and it shows h+ lol.. Wish it was a option for h and h+ to change and I'd be set
Sent from my SGH-T889 using xda premium
ezsoulja said:
Was able to replace the 4g to 4g Lte but it gets annoying when I lose Lte and it shows h+ lol.. Wish it was a option for h and h+ to change and I'd be set
Click to expand...
Click to collapse
Read my thead here:
http://forum.xda-developers.com/showthread.php?p=35630081#post35630081
I think you can do what you want yourself. Link above is a basic "How To" guide on changing icons in a system apk using Windows "Open Archive" functionality. What this means is you can use this method to edit/swap-out existing image files (png) without having to decompile/recompile the apk. If you need/want to start changing xml files however, you will need to decompile/recompile the apk. But for images, you can create/edit (using a Paint program or similar) existing pngs to your liking... or swap them out for other png files... the trick is to make sure the image dimensions are the same and the file name is EXACTLY the same as the one it is replacing (why? because the xmls are calling those images by file name... so png file names must remain the same as the replaced png).
I think the files you want to replace are:
"H" data icon is "stat_sys_data_connected_h.png" and
"H+" data icon is "stat_sys_data_connected_h_plus.png"
I'm not sure about AOSP roms... but on TW roms, these files are found in SystemUI.apk in the /res/drawable-xhdpi folder. Just read through the guide link above and I think you'll be able to change what you want. Just find a desired replacement png (4G, etc), copy, and rename to the ones above... then follow the guide. Remember: always do a backup first (/system /data etc) in case things go south. You can also make a copy of your current SystemUI.apk (before you change anything) and put it in a safe place (computer, external SD, etc) just in case. Hope this helps.
Hey thats Awesome. I'm at work now but when I get off. Ima go through your TUT.... I found the easy way ouy $2.99 on sale ...lol thanks for your input and TUT.

[Q] stock rom with dc-hspap support

hello all hoping someone can help me out with this. i have been looking into the whole dc thing with the s2. i love that we have the ability to connect to the network but i really like the look and feel of the stock jb rom. i have tried to copy over all lib ril files but cant seem to get it to function. so im asking the community if either a>) someone can look into making one of the stock roms have the dc support or if there is already one out there. thank you for your time and ofcourse i will be willing to test it out as i am familiar with download mode
stash9123 said:
hello all hoping someone can help me out with this. i have been looking into the whole dc thing with the s2. i love that we have the ability to connect to the network but i really like the look and feel of the stock jb rom. i have tried to copy over all lib ril files but cant seem to get it to function. so im asking the community if either a>) someone can look into making one of the stock roms have the dc support or if there is already one out there. thank you for your time and ofcourse i will be willing to test it out as i am familiar with download mode
Click to expand...
Click to collapse
What do u mean about DC support exactly? If u mean the DC symble in status bar for signal reception then u already have it, in touchwiz or "stock" roms DC or "dual connectivity" is represented by the "4g" icon, DC icon only shows up on aosp roms, but if u check connection speeds with an app like speedtest.net u will see they have the sameish up/down speeds, basically all it is is a diff icon
Sent from my SAMSUNG-SGH-T989 using xda premium
soupysoup said:
What do u mean about DC support exactly? If u mean the DC symble in status bar for signal reception then u already have it, in touchwiz or "stock" roms DC or "dual connectivity" is represented by the "4g" icon, DC icon only shows up on aosp roms, but if u check connection speeds with an app like speedtest.net u will see they have the sameish up/down speeds, basically all it is is a diff icon
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
well when dc network is being shown in the settings menu i can hit 16-19mbs d and 2-2.5mb up but on the stock rom it never goes past hspa:15 and i can only get a max of 11mb d and 2mb up. so there def has to be something more then just a symbol. in the build prop the lte setting talks about custom rils so i have been trying to bring the ril files to the stock rom to see if it can access the same dchspap:30 network that the custom roms do

Categories

Resources