[MOD] 4G/H+ Icon for HSPA+ [AOKP M5] - Samsung Galaxy Nexus

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!

Related

[MOD] ALL circle NOTIFICATION bar. CONCEPT

Hi all,
The other day when I was having a drink or two & looking at the screen of my SGS, I got this brilliant idea. I am an architect & the architect in me said, DO CIRCLES.
From Top-Right, Circle Clock, Circle Battery, Circle Signal Strength, Circle 3G Strength, Circle Bluetooth.
I asked franklin01 if he could help me with Circle 3G, he has shown me an example here.
To any developer thats interested in developing this further, Give credit to franklin01 first, then to me for posting an idea that will make your SGS screen a better looking one.
Well, I am asking everyone if they have any ideas. Bring out the designer in you & suggest ways to improve this idea. I will start posting all your ideas in the first post. Thanks.
I am posting all the png's related to my post. If I have missed a few, tell me.
Unleash the designer in you, lets see some results.
- EarlZ - Nice but if there was a mode id love to see my signal strength in dBM instead of the boring bars.
franklin01 said:
All circle:
This is just a test, it is awful but it works so if someone want to try/edit/make something beautiful feel free to do.
How to:
Get system\framework\framework-res.apk from your phone (using adb or root explorer).
Open it using 7zip (or winrar but 7zip is better to repack).
Extract res\drawable-hdpi\
Edit png you need (open to see which one is)
Then put things back to the framework-res.apk (using 7zip, drag and drop modified files)
Put back framework-res.apk to your phone (using adb, root explorer or update.zip method).
Here is my moded all circle awful mod... tested on JP6/JPM and the update works with CW and 2e recovery (rename to update.zip).
WARNING:
Can damage your phone as usual (well if you have JP6/JPM it works fine, no worries) but can also damage your eyes ! (it is just a test, I am no artist and this mod is awful... should not edit with mspaint)
Click to expand...
Click to collapse
1-NOV-2010--9-00pm-IST.
Work started. I have only 66 files that need to be modified. I am going with white, light-grey, dark-grey concept for the first attempt. All ideas are welcome.
The website designer in me says, not everything looks good in a circle.....
But on a serious note, a well conceived idea.
Hopefully this catches up.....
Oh. By the way, if you have the PSD's, do send them over and I will try make them just a wee bit better if you like. Or I could design some and send them across anyway.
I have ideas
Sent from my GT-I9000
ragin said:
I have ideas
Sent from my GT-I9000
Click to expand...
Click to collapse
Yes sir. You sure do. And I love this circle thing quite a bit. Apart from the terrible joke earlier, I would like to help with your idea a bit. If you will take it that is.
Sent from my GT-I9000 using XDA App
i will try this
good job
Well this was just a test, I used circle battery mod png to do, but I think a designer can do a better work than I did... (obviously)
Work on it, and edit everything you can, I saw the "puzzle" picture in the file so there is a lot of things to play with
Also I ll try to figure if it is possible to unpack/repack the framework-res.apk from the phone using some .sh scripts so we could manage mods directly from the phone (add or remove custom icon without having to copy an entire framework-res.apk to get some space.)
Spike_M said:
i will try this
good job
Click to expand...
Click to collapse
This is only a first draft, far from complete. I am asking if any developer can take this forward & complete it.
Nice but if there was a mode id love to see my signal strength in dBM instead of the boring bars
EarlZ said:
Nice but if there was a mode id love to see my signal strength in dBM instead of the boring bars
Click to expand...
Click to collapse
EarlZ, I have posted all the files needed to be modified on the first post.
skiddhard said:
Yes sir. You sure do. And I love this circle thing quite a bit. Apart from the terrible joke earlier, I would like to help with your idea a bit. If you will take it that is.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
All the png's are on the first post unmodified.
I am starting editing the png's BUT want someone to confirm if THIS list of files is complete.
ragin said:
I am starting editing the png's BUT want someone to confirm if THIS list of files is complete.
Click to expand...
Click to collapse
Work started.
I have only 66 files that need to be modified. I am going with white, light-grey, dark-grey concept for the first attempt.
All ideas are welcome.
skiddhard said:
Yes sir. You sure do. And I love this circle thing quite a bit. Apart from the terrible joke earlier, I would like to help with your idea a bit. If you will take it that is.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Do you work in CorelDRAW? I have drafted the design outlines in AutoCAD for accuracy, imported into CorelDRAW for joining the curves, & the template is ready.
We can work together.
ragin said:
Do you work in CorelDRAW? I have drafted the design outlines in AutoCAD for accuracy, imported into CorelDRAW for joining the curves, & the template is ready.
We can work together.
Click to expand...
Click to collapse
Oops....
My bad for the late reply. Was terribly busy with a few deadlines.
To your question about Corel Draw. Sorry pal. No Corel for me. Pure Adobe stuff. But since you have the PNG's attached, I should be able to make something up over the weekend (perhaps). All still tentative for the next 5 - 6 days, but the concept is interesting and would like to chip in to it.
Cheers....
Just wondering instead of bars/circle indicators can we show the raw signal like -89dbm
EarlZ said:
Just wondering instead of bars/circle indicators can we show the raw signal like -89dbm
Click to expand...
Click to collapse
I am not quite sure how that can be done on Android. I had that after jailbreaking my iphone for quite some time.
Anyone who understands dBm, I am sure, will find that nifty. Let me see if I can get something worked out over the weekend. Was planning to take a couple of days off to design a theme for myself anyway.
Perhaps a few pointers from you could help. Will the "Status" under "About Phone" help? That shows the Signal Strength in dBm.
From my own understanding the phone bases the graphical bars on the raw dbm measurements, like example -100 to 89 = 1bar.. Signal Widget also shows the raw dbm numbers.
EDIT:
Thats what I mean the dbm showed after "About Phone" should be reflected on the notification bar.. if its possible and not bars.. well thats just me.
EarlZ said:
From my own understanding the phone bases the graphical bars on the raw dbm measurements, like example -100 to 89 = 1bar.. Signal Widget also shows the raw dbm numbers.
EDIT:
Thats what I mean the dbm showed after "About Phone" should be reflected on the notification bar.. if its possible and not bars.. well thats just me.
Click to expand...
Click to collapse
Then this, sir, will be a task for the weekend.
Will post results via PM.
Sent from my GT-I9000 using XDA App
skiddhard said:
Then this, sir, will be a task for the weekend.
Will post results via PM.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Hi thanks for coming forward to help. the signal strength can be shown within the circle as dBm if possible.
Anyway, I am posting a jpg of my draft, see if it helps.
EarlZ said:
Just wondering instead of bars/circle indicators can we show the raw signal like -89dbm
Click to expand...
Click to collapse
I dont think it is possible but you can try:
Download apktool http://code.google.com/p/android-apktool/
exe and bat: http://code.google.com/p/android-ap...ol-install-windows-2.2_r01-3.tar.bz2&can=2&q=
apktool.jar: http://code.google.com/p/android-apktool/downloads/detail?name=apktool1.3.2.tar.bz2&can=2&q=
Extract everything in a folder.
run cmd
cd *apktoolfolder*
apktool.bat d framewor-res.apk framework_extract
(to extract apk file)
(change things)
apktool.bat b framework_extract framework-res-mod.apk
(to rebuild the apk)
then use adb or rootexplorer to push your modded apk.
The thing is that there is no stat_sys_signal.xml (like stat_sys_battery.xml to manage how battery is shown) I tried to add one using settings from the battery xml but after phone reboot I am stopped by a black screen, even after wipe/reset so maybe my rebuild failed or maybe the stat_sys_signal.xml I added messed up the whole framework.
Best we can do atm is to edit signal png to show average dbm since 0 bar means -100, 1 bar means -89, 2 bars means - something etc...
Also if keeping the circle concept I doubt -89 dbm written inside a circle will be readable.
(working on aiork atm but at next kernel compiling I will try to look at this topic since compiling on a netbook takes age...)
Keep it up, it can be awesom.

[Q] Themes for Unity 1.26 on G2/DZ

Not sure if this goes here or in Q&A, sorry if I'm wrong
I just found this:
http://forum.xda-developers.com/showpost.php?p=15014591&postcount=183
and i had previously flash a theme that was for the Desire HD and it worked grate.
Will this be the case with a Incredible S theme, or do a risk messing to bad (brick and the sort) my G2
I'm still trying the doubleshot ROM, but once I put Unity 1.26 Id like to try this them, is it a high risk?
By the way, I can't seem to find themes made by G2/DZ people, do we lack theme creator? XP
We do lack themers for the DZ/G2. But if you using unity all of the themes designed for other handsets should work. Do a nandroid incase though. I have tried most of the DHD themes on my DZ and not had any problems
Sent from my HTC Desire S using XDA Premium App
Works and looks great!
I would love to have the 4G icon instead of H like the U.S. Sensation, but I haven't found it yet. Any takers?
cjward23 said:
We do lack themers for the DZ/G2. But if you using unity all of the themes designed for other handsets should work. Do a nandroid incase though. I have tried most of the DHD themes on my DZ and not had any problems
Sent from my HTC Desire S using XDA Premium App
Click to expand...
Click to collapse
Yeah I though so will try it, thanks
Sengalang said:
Works and looks great!
Click to expand...
Click to collapse
Grate thanks, I was still kind of paranoid XP
heybobitsme said:
I would love to have the 4G icon instead of H like the U.S. Sensation, but I haven't found it yet. Any takers?
Click to expand...
Click to collapse
You know, I'd like that too, I've search around and I did find some Icons and for CM7 and some that will change your 3G to 4G but not much, I want one that actually works XD
Omizuke said:
You know, I'd like that too, I've search around and I did find some Icons and for CM7 and some that will change your 3G to 4G but not much, I want one that actually works XD
Click to expand...
Click to collapse
Ya unfortunately, afaik, UOT Kitchen doesn't have 4G icons on their own and I don't know how to theme.
heybobitsme said:
Ya unfortunately, afaik, UOT Kitchen doesn't have 4G icons on their own and I don't know how to theme.
Click to expand...
Click to collapse
YGPM (10chars)
heybobitsme said:
Ya unfortunately, afaik, UOT Kitchen doesn't have 4G icons on their own and I don't know how to theme.
Click to expand...
Click to collapse
Yeah, well if you find way, would you mind letting me know.
Sent from my HTC Vision using XDA App
Omizuke said:
Yeah, well if you find way, would you mind letting me know.
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
It would be fairly easy to create a flashable zip to change the H icon to a 4G icon. If I get the chance I will have a look into it for you.
Or modifying it your self wouldn't be to hard. You just need to extract the 4G icons from a Rom that you know has them. I can't remember exactly if they are in framework-res.apk or SystemUI.apk. then using adb pull the appropriate files from the phone, rename the .png's and swap them using 7zip and push them back to your phone
Sent from my HTC Desire S using XDA Premium App
can someone let me know if this systemui.apk removes the H and replaces it with 4G? or if you get errors? I run cm7 and I'm not about to install unity just to test.
cjward23 said:
It would be fairly easy to create a flashable zip to change the H icon to a 4G icon. If I get the chance I will have a look into it for you.
Or modifying it your self wouldn't be to hard. You just need to extract the 4G icons from a Rom that you know has them. I can't remember exactly if they are in framework-res.apk or SystemUI.apk. then using adb pull the appropriate files from the phone, rename the .png's and swap them using 7zip and push them back to your phone
Sent from my HTC Desire S using XDA Premium App
Click to expand...
Click to collapse
FYI, 4G icons are already in unity's systemui.apk... it should just be a matter of renaming them so that they are picked up in place of "H". this is what I did in the above post's systemui.apk
pmcqueen said:
FYI, 4G icons are already in unity's systemui.apk... it should just be a matter of renaming them so that they are picked up in place of "H". this is what I did in the above post's systemui.apk
Click to expand...
Click to collapse
Cheers, would test but lack of DZ makes it difficult
pmcqueen said:
can someone let me know if this systemui.apk removes the H and replaces it with 4G? or if you get errors? I run cm7 and I'm not about to install unity just to test.
Click to expand...
Click to collapse
Confirmed here that it works, although it also seems to mess up my notification pulldown background. See attached screenshots. First screenshot shows the 4G icon. Second screenshot shows how my notification background was changed. Third screenshot shows how it should look (after I reverted back to my SystemUI.apk). It looks like the UI is using some other graphic in your APK that is intended for another, much smaller element, and scaling it up to fit somehow.
pmcqueen said:
nothing else in the apk was modified aside from deleting the H pngs and duplicating the 4G pngs, then naming them as the H's, effectively replacing H with 4G, so I'm not sure why status bar images would have been modified.
Click to expand...
Click to collapse
Hrm, interesting. I diff'd all the graphics between the two SystemUI.apk files, and aside from the 4G changes, all the other differences were with the so-called "9-patch" PNGs (http://developer.android.com/guide/developing/tools/draw9patch.html):
Code:
Files SystemUI/res/drawable-hdpi/btn_default_small_normal.9.png and SystemUI-4g/res/drawable-hdpi/btn_default_small_normal.9.png dif
fer
Files SystemUI/res/drawable-hdpi/btn_default_small_normal_disable.9.png and SystemUI-4g/res/drawable-hdpi/btn_default_small_normal_d
isable.9.png differ
Files SystemUI/res/drawable-hdpi/btn_default_small_normal_disable_focused.9.png and SystemUI-4g/res/drawable-hdpi/btn_default_small_normal_disable_focused.9.png differ
Files SystemUI/res/drawable-hdpi/btn_default_small_pressed.9.png and SystemUI-4g/res/drawable-hdpi/btn_default_small_pressed.9.png differ
Files SystemUI/res/drawable-hdpi/btn_default_small_selected.9.png and SystemUI-4g/res/drawable-hdpi/btn_default_small_selected.9.png differ
Files SystemUI/res/drawable-hdpi/common_music_progress_fill.9.png and SystemUI-4g/res/drawable-hdpi/common_music_progress_fill.9.png differ
Files SystemUI/res/drawable-hdpi/common_music_progress_secondary_track_thick.9.png and SystemUI-4g/res/drawable-hdpi/common_music_progress_secondary_track_thick.9.png differ
Files SystemUI/res/drawable-hdpi/divider_horizontal_dark_opaque.9.png and SystemUI-4g/res/drawable-hdpi/divider_horizontal_dark_opaque.9.png differ
Files SystemUI/res/drawable-hdpi/divider_horizontal_light_opaque.9.png and SystemUI-4g/res/drawable-hdpi/divider_horizontal_light_opaque.9.png differ
Files SystemUI/res/drawable-hdpi/ic_notification_overlay.9.png and SystemUI-4g/res/drawable-hdpi/ic_notification_overlay.9.png differ
Files SystemUI/res/drawable-hdpi/page_indicator.9.png and SystemUI-4g/res/drawable-hdpi/page_indicator.9.png differ
Files SystemUI/res/drawable-hdpi/shade_handlebar.9.png and SystemUI-4g/res/drawable-hdpi/shade_handlebar.9.png differ
(etc., etc., etc.)
I compared this against the SystemUI.apk from Virtuous Unity 1.26.0, and the PNGs match what I have, not what is in your APK. So I suspect your source of the other PNGs (not related to the 4G changes) has somehow been tainted. Your 9-patch PNGs all have an extra 1-pixel border around the outside, with visible black bars indicating the stretchable areas (see the URL above for an illustration). Those are not present in the VU ROM. Those black pixels then get stretched and smoothed out, which results in the screenshot I posted earlier.
Here's the VU 1.26.0 SystemUI.apk, if you want to peek inside at the "*.9.png" files to see the difference: http://dl.dropbox.com/u/2639253/SystemUI.apk
yeah, let me try from scratch again. give me an hour or so, about to eat lunch.
Good luck pmcqueen i hope it works! i will check back later! (have a nice lunch?)
pmcqueen said:
yeah, let me try from scratch again. give me an hour or so, about to eat lunch.
Click to expand...
Click to collapse
Oh, good idea... I'm gonna go have lunch too.
hey, I already posted this in the Unity development thread, tell me if this works for u guys too. I used the zip from xboarders 4g icons zip and changed the systemUI.apk to the one that I modified (and works for me) with the 4g icons for unity. I just changed the names of the H and 4g png files and so far no problems at all.
DaygosTommyT said:
I just changed the names of the H and 4g png files and so far no problems at all.
Click to expand...
Click to collapse
Right, that should work, and is the same approach pmcqueen took. As long as your 9-patch PNGs are fine, this mod should work. Keep in mind though, this replaces the entire SystemUI.apk, which includes a ton of other icons and graphic elements. Anyone who has a custom theme in there will lose what they have.
The best approach would be to patch just the PNG files inside the APK, but I'm not familiar enough with Android themeing to suggest how to do that (aside from manually doing it).
Wait DaygosTommyT's zip file works correctly? no graphical issues with the drop down? im not going to have any other themes on my phone so would this zip work for me? all i want to change is the h icon to 4g... thanks? haha

Calkulins Custom Rom 1x indacator

I'm currently using Calkulins v2.0.1a Rom good stuff....the best except for 1x indicator addition.
Anyone know how I can get rid of it so it only shows 3G like stock?
What? You don't want to know when Sprint is messing with you and providing you a 1x connection?
I think it is in SystemUI.apk
sfhub said:
What? You don't want to know when Sprint is messing with you and providing you a 1x connection?
Click to expand...
Click to collapse
Well its not really that.
My coverage is pretty good 3G heavy but when I pass through weak sig area icon doesn't flip back to 3G.
I know I'm getting 3G speeds 700kbps up / 627kbps down showing 1x
sling said:
Well its not really that.
My coverage is pretty good 3G heavy but when I pass through weak sig area icon doesn't flip back to 3G.
I know I'm getting 3G speeds 700kbps up / 627kbps down showing 1x
Click to expand...
Click to collapse
Ahh, that makes sense. Didn't know it gets stuck at 1x even after you return to 3G.
I very much dislike you right now!
I'm on this ROM too, I'm showing 3G, I'm getting pings of 1000+ and 7~38kbps down and 50~100kbps.
I'm ON Sprints towers with almost full bars. I'm only missing one at the most.
Hmm, from what you folks are describing, it seems 3g and 1x are reversed.
sfhub said:
Hmm, from what you folks are describing, it seems 3g and 1x are reversed.
Click to expand...
Click to collapse
No I don't think so. I'm running 2.0.1 and my indicator is showing correctly, and it also flips back to 3G from 1x just fine. Unless something broke it in 2.0.1a which i highly doubt, since the update to (a) just fixed a few App FCs.
sfhub said:
I think it is in SystemUI.jar.
Click to expand...
Click to collapse
Yeah Ive been searching hard on making mod but getting tripped up on #4,
4. Browse to your "working" folder and see that there is now an SystemUI folder inside, with other subfolders. Browse to SystemUI\smali\com\android\systemui\statusbar\poli cy.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1307635
I get into SystemUI folder and boom steps following just aren't happening -Browse to SystemUI\smali\com\android.
Im not seeing SystemUI\smali\com\android\systemui\statusbar\policy.
Subfolder has,
:META-INF
:res
:AndroidManifest
:resource
Ive searched in META & res finding no SystemUI to pic apart.
I do find drawable-hdpi folder within res that has 1x icons etc.
hehe I could replace them with 3Gs NOT lol
kdoggy said:
I very much dislike you right now!
I'm on this ROM too, I'm showing 3G, I'm getting pings of 1000+ and 7~38kbps down and 50~100kbps.
I'm ON Sprints towers with almost full bars. I'm only missing one at the most.
Click to expand...
Click to collapse
I'm curious, when you are seeing these speeds, what does ##DEBUG# -> Data Status say, 1x or EVDO? I've never seen 3G ping times at 1000+ms. I often see 1x ping times > 800ms.
sling said:
Yeah Ive been searching hard on making mod but getting tripped up on #4,
http://forum.xda-developers.com/showthread.php?t=1307635
I get into SystemUI folder and boom steps following just aren't happening -Browse to SystemUI\smali\com\android.
Im not seeing SystemUI\smali\com\android\systemui\statusbar\policy.
Subfolder has,
:META-INF
:res
:AndroidManifest
:resource
Ive searched in META & res finding no SystemUI to pic apart.
I do find drawable-hdpi folder within res that has 1x icons etc.
hehe I could replace them with 3Gs NOT lol
Click to expand...
Click to collapse
If you want to send me your apk, I can mod it for you in the morning. If you want to find out what may be going wrong in the process, can you paste all the output from step 3 of my instructions if any?
Sent from my SPH-D710 using Tapatalk
nivron said:
If you want to send me your apk, I can mod it for you in the morning. If you want to find out what may be going wrong in the process, can you paste all the output from step 3 of my instructions if any?
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
That would be great nivron.
Ive been working on this for hours getting nowhere.
2. Open SystemUI.apk in 7zip/WinRAR/WinZip (it's really a ZIP file) and extract classes.dex to your "working" folder.
3. Go to a command prompt in your "working" folder and run the following command: java -jar baksmali-1.2.8.jar -o SystemUI/ classes.dex
4. Browse to your "working" folder and see that there is now an SystemUI folder inside, with other subfolders. Browse to SystemUI\smali\com\android\systemui\statusbar\poli cy.
5. Edit the file called StatusBarPolicy.smali with your favorite UNIX-format compatible text editor and look for the following text. The key is to search for
.line 1567. Edit the line below that is in BOLD.
.line 1567
: pswitch_5e
sget-object v0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->sDataNetType_3g:[[I <---- DataNetType should show 1x needs to be changed to 3G
iget v1, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mInetCondition:I
aget-object v0, v0, v1
iput-object v0, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mDataIconList:[I
goto :goto_23
Click to expand...
Click to collapse
Thanks much
sling said:
That would be great nivron.
Ive been working on this for hours getting nowhere.
2. Open SystemUI.apk in 7zip/WinRAR/WinZip (it's really a ZIP file) and extract classes.dex to your "working" folder.
3. Go to a command prompt in your "working" folder and run the following command: java -jar baksmali-1.2.8.jar -o SystemUI/ classes.dex
4. Browse to your "working" folder and see that there is now an SystemUI folder inside, with other subfolders. Browse to SystemUI\smali\com\android\systemui\statusbar\poli cy.
5. Edit the file called StatusBarPolicy.smali with your favorite UNIX-format compatible text editor and look for the following text. The key is to search for
Thanks much
Click to expand...
Click to collapse
Here you go. I do want to state for the record that my observation and others will show that the 1x/3G seem to toggle properly. It's strange that yours doesn't. Enjoy being back to 3G! Make sure to rename it back to SystemUI.apk on your phone.
Let me know if there is anything else I can assist you with.
nivron said:
Here you go. I do want to state for the record that my observation and others will show that the 1x/3G seem to toggle properly. It's strange that yours doesn't. Enjoy being back to 3G! Make sure to rename it back to SystemUI.apk on your phone.
Let me know if there is anything else I can assist you with.
Click to expand...
Click to collapse
Thanks for the help.
10char
kdoggy said:
I very much dislike you right now!
I'm on this ROM too, I'm showing 3G, I'm getting pings of 1000+ and 7~38kbps down and 50~100kbps.
I'm ON Sprints towers with almost full bars. I'm only missing one at the most.
Click to expand...
Click to collapse
I feel you on that i get those same speeds in my house every where else awesome 4g but one thing I wanted to comment is aren't the bars for voice signal strength not 3g?

[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!
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

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.

Categories

Resources