I've tried...I know it's early in the GingerSense ROM game, but has anyone figured out how to hide these icons? The layout in classes.dex is different, but I found that the SystemUI.apk may be what needs to be edited to hide these...? I know it's jumping the gun before things are stable and bugs worked out, and if I can figure it out somehow, I'll say something.
Yeah, FC's for me too. I tried a few different places in those .smali files, but no dice here either. I know it'll get sorted out, it's one of those things that'd be nice to have, but isn't a need.I've tried...
Statusbar FC's
You're looking in the right place though. SystemUI.apk is where all of the status bar .smali code is.
StatusBarPolicy.smali for battery, location, etc.
Clock.smali for clock.
If you can figure out how to hide them, that would be awesome.
Thanks a ton, man.Found the spot in SystemUI.apk to hide the clock from the status bar with no FC's! I am in NO means a developer, just a persistent Googler to find How To's and any information from other people. I found this at the MIUI-US forums for the EVO 4G, located here. All credit for this goes to BixBix78 and Andy Thompson.
I have tried it, and confirmed that there is no clock in NilsP's GingerSense 1.4.
It is in the SystemUI.apk, decompile classes.dex, com/android/systemui/statusbar/Clock.smali file. I used Notepad++, and used the above site as a guide to edit this. I found it at .line 97, but I searched for invoke-virtual {p0}, Lcom/android/systemui/statusbar/Clock;->updateClock()V.
Here is the edit, and what it looks like when I added the lines per the above mentioned link:
.line 97
const v1, 0x8
invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/Clock;->setVisibility(I)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/Clock;->updateClock()V
The lines in red are the added lines to hide the clock from the status bar.
Testing it now, just to make sure no ill side effects come of it, but so far no FC's and as you can see, no clock!
At this time, I am not going to create a flashable zip or anything for NilsP's ROM, as I know he wants to get things stable. I think for now, until Sense 2.1/3.0 ROMs become more stable, these edits probably should be considered "experimental" until then. I don't want to create issues from a bad/corrupt flash, and have things get crazy. I just wanted to share that it works, and for those who are adventurous, hope this helps!
Now to try to find out how to hide the annoying GPS icon with the slash!
![]()
No problem, now to try and find the hide Location icon mod...a bit tougher! I can confirm that the clock mod is safe for NilsP's 2.0 and Newtoroot's 1.4.1 GingerSense ROMs. I can't code, and appreciate everything everyone who can does for this community. Googling this is my very small part.Thanks a ton, man.
Probably, but all of that needs to be figured out yet.Is there a way to hide the cell signal icon?
Thanks in advance!![]()
Hey RMark! Good find and good timing.Hey all,
In being completely annoying with the annoying Location icon in the status bar, I've Googled 'til my eyes hurt, and couldn't find anything that stated how to do it. I looked at the code, and looked, and after many attempts I was able to hide the icon.
I messaged Jermaine151 and NilsP just to run this by them, and they both confirmed it for me. I know that some of the developers out there know about this, but I don't develop ROMs at all, so I wanted to share the method I used after lots of trial/error.
Thanks to Jermaine151 and NilsP for confirming that my change was the correct one, since they've both incorporated it into their ROMs.
I've tested this on Jermaine151's In-Sensitive Minimalist v1.1, and I know that v1.2 will have it (not based on what I've done, as he was aware of it, and updated his post twenty minutes before I messaged him about my experiment, talk about timing!).
Here's one method of how it can be accomplished:
Use baksmali to decompile classes.dex that is in SystemUI.apk. In the output, browse to com/android/systemui/statusbar/policy to the HtcCdmaStatusBar.smali file. Open in Notepad++.
Search for “.method private updateMtGpsIcon()V”, you should get one hit shown below. It is at line 1002 (the is the line numbering in Notepad++ on left side):
.method private updateMtGpsIcon()V
.registers 8
.prologue
const/4 v5, 0x3
const/4 v4, 0x1
const/4 v3, 0x0
const-string v6, "gpsone"
Should read:
.method private updateMtGpsIcon()V
.registers 8
.prologue
const/4 v5, 0x3
const/4 v4, 0x0
const/4 v3, 0x0
const-string v6, "gpsone"
Recompile with smali to create a new classes.dex, and replace the classes.dex file in SystemUI.apk with the new one, ADB push to /system/app, reboot!
Sweet, the timing was pretty good,I must say! I created another thread for the 2.3 edit, so it wouldn't get lost in this one. I will give this a look! Thanks Jermaine!Hey RMark! Good find and good timing.I'm attaching a patched SystemUI.apk (stock from the OTA leak) so that you can see how I accomplished the same outcome. Others may use at will...
I'll take a look, just gotta download and test...I used RMarks method with the new OTA 4.08.605.2 but the GPS reticule is still there. I had success with the last OTA 4.06.605.3
Any ideas?