Friday, March 29, 2013

[Q] Show H+/4G for HSPAP:15 - xda-developers

[Q] Show H+/4G for HSPAP:15 - xda-developers


Tip us?
 
BraydenJames
Old
#1 
Senior Member - OP
Thanks Meter 22
Posts: 150
Join Date: Mar 2011
Location: Utah
Question [Q] Show H+/4G for HSPAP:15

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!

Java/Android Developer/Enthusiast
Stock Nexus 4
My Play Store apps: BraydenJames
 
advertisement
xda-developers
Meet Filipino Girls KSA
Filipino Girls in KSA online Chat & dating. Contact free now! filipinagreatsite.com/lp/filipinas
 
martonikaj
Old
#2 
martonikaj's Avatar
Senior Member
Thanks Meter 1706
Posts: 7,851
Join Date: Nov 2010
Location: Puyallup, WA
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.

Sprint HTC Evo 4G
Motorola Xoom WiFi
T-Mobile HTC G2
Quit signing contracts, stop overpaying for service, GO PREPAID!
Follow me on Twitter / Google+
Don't have Dropbox yet? Sign up from this link, and we both get more storage!
 
BraydenJames
Old
#3 
Senior Member - OP
Thanks Meter 22
Posts: 150
Join Date: Mar 2011
Location: Utah
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

Java/Android Developer/Enthusiast
Stock Nexus 4
My Play Store apps: BraydenJames
 
martonikaj
Old
#4 
martonikaj's Avatar
Senior Member
Thanks Meter 1706
Posts: 7,851
Join Date: Nov 2010
Location: Puyallup, WA
Quote:
Originally Posted by BraydenJames View Post
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 .
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.

Sprint HTC Evo 4G
Motorola Xoom WiFi
T-Mobile HTC G2
Quit signing contracts, stop overpaying for service, GO PREPAID!
Follow me on Twitter / Google+
Don't have Dropbox yet? Sign up from this link, and we both get more storage!
The Following User Says Thank You to martonikaj For This Useful Post: [ Click to Expand ]
 
BraydenJames
Old
#5 
Senior Member - OP
Thanks Meter 22
Posts: 150
Join Date: Mar 2011
Location: Utah
Quote:
Originally Posted by martonikaj View Post
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.
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

Java/Android Developer/Enthusiast
Stock Nexus 4
My Play Store apps: BraydenJames
 
BraydenJames
Old
#6 
Senior Member - OP
Thanks Meter 22
Posts: 150
Join Date: Mar 2011
Location: Utah
*bump* would it be wrong for me to post this in development?

Sent from my Galaxy Nexus using XDA

Java/Android Developer/Enthusiast
Stock Nexus 4
My Play Store apps: BraydenJames
 
andQlimax
Old
#7 
andQlimax's Avatar
Senior Member
Thanks Meter 524
Posts: 2,014
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Quote:
Originally Posted by BraydenJames View Post
*bump* would it be wrong for me to post this in development?

Sent from my Galaxy Nexus using XDA
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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
 
VictorML
Old
#8 
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Oct 2010
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?
 
Mach3.2
Old
#9 
Senior Member
Thanks Meter 324
Posts: 1,557
Join Date: May 2012
Location: Singapore
You could look at this thread.
http://forum.xda-developers.com/show....php?t=1633268
Titanium Silver GSM Galaxy Nexus 16GB
Recovery: CWM 6.0.2.3
ROM: CyanogenMod 10.1 M2 31/1/2013
Kernel: Franco Kernel Nightly
Radio: XXLH1
Bootloader: PRIMELC03

Jubakuba's Guide
Stock Nexus Images
Unlock gnex bootloader without root

Making a Dropbox account?
Click this referral link to signup and download the Dropbox application so both of us get extra 500MB of space

 
advertisement
xda-developers
Filipino Girls in KSA
Filipino Girls KSA for Friends & marriage. Photos & chat. Join now! www.best101-site.com/lp/filipr1a
 
POST REPLY+
TAGS
hspa+

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

No comments:

Post a Comment