yashsingh1/xdaforums huggingface dataset:
[Droid Incredible Themes and Apps] RMarkwald:
How to hide Location icon in status bar - 2.3 ROMs

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!
[Droid Incredible Themes and Apps] jermaine151:
Hey RMark! Good find and good timing. :D 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...
[Droid Incredible Themes and Apps] RMarkwald:
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!
[Droid Incredible Themes and Apps] pain-xda:
Jermaine,

I am new at this portion of the game. I am on a rooted Dinc updated to 2.3.4 and I want to update your version of the SystemUI.apk on my phone. I don't like the location icon always showing in the status bar and only want it on if my GPS is on. I tried just loading it as a normal app/apk file but it would not work. I am assuming it needs to be compiled into a zip file but this is where I am having troubles getting APK Manager to work on my system. Could you possibly provide a flashable .zip file. I am using the current version of ROM Manager and CWM 5.0.2.0. Any help would be appreciated. The only other thing I want to find for my stock ginger is the way to make the battery show the % amount of charge remaining. I updated that previously for Froyo but haven't figured it out for Gingerbread. Thanks for anything in advance.
[Droid Incredible Themes and Apps] crackers8199:
edit: found it here...

http://xdaforums.com/showpost.php?p=16996609&postcount=151

i used that one and it seems to have worked perfectly.
[Droid Incredible Themes and Apps] chuckd840:
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?
[Droid Incredible Themes and Apps] RMarkwald:
I'll take a look, just gotta download and test...
[Droid Incredible Themes and Apps] RMarkwald:
Okay, I'll attach this so you can adb push it to test, but here's what I changed. It worked on the Desire HD ROM Jermaine had out, since the original method didn't work on that ROM.

In the same file from my prior post, search:

.line 279

iget-object v0, p0, Lcom/android/systemui/statusbar/policy/HtcCdmaStatusBar;->mService:Landroid/app/StatusBarManager;

const-string v1, "gpsone"

const/4 v2, 0x1

invoke-virtual {v0, v1, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V​

Change const/4 v2, 0x1 so it looks like this:

const/4 v2, 0x0​

Let me know if it works. Like I said, attached the modified SystemUI.apk from the 4.08 leak, I modified both areas to hide the GPS icon, since the original "mod" doesn't affect anything when it's changed.
[Droid Incredible Themes and Apps] chuckd840:
That did it! I only made the change to line 1175 and the icon is gone and everything seems to be working. Thanks for your help RMark!
[Droid Incredible Themes and Apps] RMarkwald:
Awesome! Thank you for the donation, much appreciated!

I'm glad I could help you and share that information!
[Droid Incredible Themes and Apps] kzoodroid:
I did the edit of SystemUI.apk to remove the clock in the gingerbread OTA and it worked just fine. But I can't remember exactly how I did it. Now with the latest OTA I can't seem to get this to work. Not sure if I am doing it right. I am using apkManager to decompile the file, I then put in the edits with Notepad++, I recompile the file and sign it. No problems there, everything seems to go as planned. I then copy over the file to my sdcard and use rootexplorer to paste the edited file into system/app but as soon as I paste it I get a force close and when I reboot I have no notification bar at all. Changing the permissions and rebooting, with a battery pull, doesn't fix it. Even if I copy back my old SytemUI.apk file I still have no notification bar. Only way to get it back is to restore a nandroid backup. I seem to be doing something wrong but not sure what it is. I tried to use apkTool but it doesn't work right, can't create the file after decompling so it aborts and apkManager is so much easier to use.
[Droid Incredible Themes and Apps] RMarkwald:
Okay, I know how to get this, I'll be home in about 30 minutes and have a look. That's something I always do.

In the meantime, try putting the Meta-INF and Android Manifest from the original apk into your recompiled one.

I'll post when I get home.

Edit: I always make a backup of the original apk by renaming it with a. bak extention using adb, then I adb push the new file, so you can always revert with restoring a backup.
[Droid Incredible Themes and Apps] kzoodroid:
I first tried moving the classes.dex file from the new into the old but got the same results, no notification bar. I then tried copying the Meta-INF and Android Manifest over to the new one. Now when I reboot I get stuck on the red eye boot screen. I think how I did this last time was I actually baked the SystemUI.apk into a ROM and didn't copy it over to my phone. Might give that a try later this weekend.
[Droid Incredible Themes and Apps] RMarkwald:
I modded the Clock.smali file by decompiling only the classes.dex file from the SystemUI.apk. Search for the line:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/Clock;->updateClock()V​

Paste the following two lines (shown below in RED) above the line we searched for, so the finished product looks like:

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 SystemUI.apk attached has the clock hidden from the status bar, as well as the location icon. Feel free to use as needed, no permission needed to use it. This is the SystemUI.apk from 4.08, so it may not work with the prior OTA of 4.06 since it was modified.

Let me know if it works.

EDIT: Attached SystemUI.apk removed as it appears to not have worked. Will test to confirm. I'll post it once I figure it out.
[Droid Incredible Themes and Apps] RMarkwald:
For those that want to know how I safely backup the original apk so you don't have to do a full restore of a backup:

Hook up phone via USB.

Boot into recovery.

Mount /system.

Open command prompt, CD to SDK\platform-tools folder (where ever you keep it).

Type in: adb shell

Type in: cd /system/app

NOTE: Or CD to which ever directory you need to get to based on where the file is located.

Type in: cp SystemUI.apk SystemUI.bak

NOTE: This copies the original file and creates a file with the extention .bak.

Type in: rm SystemUI.apk

NOTE: This removes the file from the system.

Type in: exit

NOTE: Exits adb shell.

Now you can adb push the file to the system.

Type in: adb push SystemUI.apk /system/app/

Done, reboot phone.
[Droid Incredible Themes and Apps] kzoodroid:
As a last resort I tried the SystemUI.apk file you attached and it does the same thing. As soon as I paste it in I get a force close then when I reboot there is no notification bar. I'm on 4.08 by the way so it should work though I am using Stangs ROM verison. I think the only way I will get this to work is to bake it in myself. Unfortunately I left my laptop at work and will have to wait till Monday to try. Thanks for all your help.
[Droid Incredible Themes and Apps] RMarkwald:
Confirmed working baked in, FYI.
[Droid Incredible Themes and Apps] kzoodroid:
Cool I'll bake one on Monday. At least I know that my apkManager version should be good to go as it behaved the same as yours.
[Droid Incredible Themes and Apps] kzoodroid:
Still can't get this to work. Tried pushing the file over with adb, made an update.zip ot of it and even baked it into a ROM and still when I reboot I have no status bar. I was going to check the copy you had posted to see what the differeneces where but I see you took it down saying it wasn't working?
[Droid Incredible Themes and Apps] RMarkwald:
I took it down in case it truly was an issue. I can post it back up for you.

Here you go!

EDIT: Make sure that the permissions are correct too. After you adb push the file, then adb shell back into your phone. Type in: cd /system/app

Then type in: chmod 0644 SystemUI.apk

Then type in: exit

This will set the correct permissions on this apk file.
[Droid Incredible Themes and Apps] kzoodroid:
Okay that finally got it. Your SystemUi.apk file was 20 kb larger than mine so not sure what the difference was but it worked. The one I edited was about 20 kb larger than the original I started with too. I think the problem is that I had the notification bar quick launch mod in mine and thats whats causing the issues.

edit: I checked the quick settings mod file and it uses the old SystemUI.apk so that definetly was the problem. So I can have one or the other but not both till someone updates the quick setting mod to 4.08 and I prefer to not have the clock.
[Droid Incredible Themes and Apps] RMarkwald:
Cool, glad to hear it worked! I took a look at the Quick Settings thing, and just too complicated for my level of knowledge. I know someone will get it at some point, and I did hear that the 4.06 SystemUI.apk will work in 4.08, but I haven't tried it. I didn't use the Quick Settings too much, for the main things like Wifi / Brightness / GPS toggles, I just use Elixir 2. Puts them in the pull down, and it's free.
[Droid Incredible Themes and Apps] kzoodroid:
Yeah the Quick Settings Mod based off the 4.06 SystemUI.apk worked on my phone just fine but as soon as I go to edit it to hide the clock the whole notification bar disappears. Not sure what is going on there. I may try and take the SystemUI.apk out of one of the custom ROMs based off 4.08 that has the quick settings mod in it already and see if I can edit the clock settings from it. Of course they may just be using the 4.06 SystemUI.apk and I'd be in the same boat.
[Droid Incredible Themes and Apps] kzoodroid:
Was back revisiting this issue as I reformated my phone and wanted to start from scratch. I found my problem was that apkManager does not do a good job of recompiling the SystemUI.apk. The best way to do this is:

1. open SystemUI.apk with 7zip and remove the classes.dex file

2. decompile classes.dex with baksmali

3. do the edits to the clock.smali with Notepad++

4. compile classes.dex with smali

5. insert the new classes.dex back into SystemUI.apk with 7zip

6. push the new SystemUI.apk back to the phone and set permissions

You have to download baksmali.jre and smali.jre from google and place them in the platform-tools folder and you also need the java jre installed which you get from Java. Fire up a cmd window and change your prompt to the platform-tools directory, in my instance I changed the prompt to C:\sdk\android-sdk-windows\platform-tools. From this prompt run the following commands.

Baksmali command:

java -jar baksmali.jar -o classout/ classes.dex

Smali command:

java -Xmx512M -jar smali.jar classout/ -o new-classes.dex

With baksmali the classes.dex file to edit is in a folder called classout in the platform-tools directory. The completed complied file using smali will be called new-classes.dex in the same folder.
[Droid Incredible Themes and Apps] kschwarz88:
Desire HD based rom loc hiding (for 2.3.5)

Posting here cause I Google'd around but could only get this through diff'ing another Desire HD ported rom.

Smali found in the same place as other loc hide hacks (com\android\systemui\statusbar\policy\HtcCdmaStatusBar.smali)

From

.line 279
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/HtcCdmaStatusBar;->mService:Landroid/app/StatusBarManager;

const-string v1, "gpsone"

const/4 v2, 0x[COLOR="Red"]1[/COLOR]

To

.line 279
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/HtcCdmaStatusBar;->mService:Landroid/app/StatusBarManager;

const-string v1, "gpsone"

const/4 v2, 0x[COLOR="Red"]0[/COLOR]

and

From

.method private updateMtGpsIcon()V
.locals 7

.prologue
const/4 v5, 0x3

const/4 v4, 0x[COLOR="Red"]1[/COLOR]

To

.method private updateMtGpsIcon()V
.locals 7

.prologue
const/4 v5, 0x3

const/4 v4, 0x[COLOR="Red"]0[/COLOR]
[EVO 4G Q&A, Help & Troubleshooting] purvish10:
I have rooted my Sprint Evo 4G using this guide

forum.xda-developers dot com/showthread.php?t=765496

It was rooted successfully and worked fine, But there is one problem i am having ... 1st after i rooted and installed rooted rom, after 2 days i stopped receiving txt messages from anyone so i had to go to ##786# and Menu and reset setting ...so it removed all apps and everything and rested my phone, but root was still there with rooted rom, so i thought it must have been sum glitch or something but after 2 days it happened again and i had to do the same process over again of resting. People can receive my txt messages but i stop receiving messages after very 2days. so if this happens again i am going to stock ROM. If anyone know how to fix this. Please help!!

Thanks.... :)
[EVO 4G Q&A, Help & Troubleshooting] antwandavis1:
Need Help

I use Unrevoked3 and Rooted my Evo 4g and the same day i notice my network going in an out, That i can't download anything because the network go's down,also i can't when i download .apk they don't work! Help Please
[EVO 4G Q&A, Help & Troubleshooting] cor4twenty:
had this happen on a friend's phone. I just flashed a PC36IMG.zip a had here from the 2.2 root method; updated network settings and it was fixed. I already flashed another Rom on it and its still going good. Hope that helps.
[EVO 4G Q&A, Help & Troubleshooting] v_lestat:
i am sure i would have heard of it by now but is there any ap like the iphone browser that lets you actually browse the phone files/directory structure from windows instead of using the android based apps on the phone itself?
[EVO 4G Q&A, Help & Troubleshooting] superlinkx:
I'll try to be more specific when I get back to my computer, but yes, it does exist. You need an ssh server from the market and then use an ftp program on your computer (like FileZilla or winscp) I'll look up the app when I get back to my computer but then you can easily ftp to your phone and browse and manage your filesystem.
[Desire Q&A, Help & Troubleshooting] dakdroid:
Id like to connect my Desire to my desktop-screen, because we'd like to watch soccer during work. We have plenty of computers but none can play flash content, its blocked but i dunno how they blocked it.

Is it possible to display the Desire's screen with the USB cabel on the desktop screen somehow ?
[Desire Q&A, Help & Troubleshooting] nzdcoy:
search in the market 'picme'. (I don't know what pc interface it uses, if it is flash I apologise).

I dont know what the playback framerate will be though, probably barely watchable from what experience I have had.
[Desire Q&A, Help & Troubleshooting] Kashban:
How about DroidVNC?

http://www.androidzoom.com/android_applications/communication/droid-vnc-server_iwam.html

You need a rooted phone, that's the other side of the medal.

Didn't try Doid VNC yet, though.
[Desire Q&A, Help & Troubleshooting] dakdroid:
1 month later: sorry, thx guys
[myTouch 3G, Magic Accessories] premier69:
I'm wondering if the SanDisk Ultra SDXC 64GB would work in the HTC magic?

If it works, what file system is to be used? exFat doesn't work right? So Will I have to, like use partition magic to force a 64gb fat32 partition?

I have no experience with android 2.1 or any version for that matter, still awaiting delivery of my first android phone. The HTC Magic (unbranded, naturally)
[myTouch 3G, Magic Accessories] Binary100100:
My question... is who in the hell would want to put a $350+ card in a $200 cell phone. :rolleyes:
[myTouch 3G, Magic Accessories] premier69:
Me obviously.

and the reason is so i can switch from using the card in my digital camera, my HTC shift and the android phone. and not to have to keep switching multiple cards.. really a lot of reasons.
[myTouch 3G, Magic Accessories] Binary100100:
Well it sounds like someone here has money to burn. :p

In theory it should work... however I haven't heard of anyone using one before so I cannot say for certain. Give it a try and let us know either way.
[myTouch 3G, Magic Accessories] narutofma:
Do Not bother getting it. A friend of mine working for FCC center. I snagged one to try out. Man it does not work with any format. Seems like this is hardware of the phone that can not handle it. Friend got technician to look at it, they are all confused why not.

All newer phone from Nexus One, will all takes in the card and read and writes it. But just slow.

Plus $350 is a rip off. The MSRP price for a 64GB SDXC is on $210 to authorized premier resellers.
[myTouch 3G, Magic Accessories] premier69:
Thanks, of what I understand from your message.
[myTouch 3G, Magic Accessories] ekoandrew:
$210 for MSRP? I told him it cost $110. He must be day dreaming aging while I was lecturing him. Anyway it is best to wait for compatibility check from phone manufacturing for best hardware compatibility.
[myTouch 3G, Magic Accessories] INeedYourHelp:
so wait, sdxc actually works with android on newer phones like the nexus one?
[myTouch 3G, Magic Accessories] premier69:
A few of the phone specs I've seen has said up to 32gb but from my experience they're pretty unreliable at updating those figures as newer and bigger cards get released, that's why I started this thread asking for confirmation.

I'm going to sell off my HTC MAGIC vodafone branded and buy , either samsung galaxy 9000 or the new HTC Desire HD (european EVO4G). I just can't decide yet.
[myTouch 3G, Magic Accessories] ekoandrew:
Not all new phones are ready for sdxc memory cards. They are both hardware and software prerequisite.

I would do some research on what phone u want to get. But at same time galaxy s sux, sdxc. Do not work with the card.

Warning spoiler : galaxy s pro will be compatible with sdxc. The phone will only be exclusive in Korea.

sent from myTouch 3g 1.2 using XDA app
[myTouch 3G, Magic Accessories] rmcsc:
What he said. You can't just pop an SDXC card on an SDHC-compatible device. It's like saying you're wearing size 14 shoes because your size 11 foot fits inside those shoes.
[myTouch 3G, Magic Accessories] riahc3:
It wont work because (AFAIK) Android doesnt contain drivers for SDXC. If you insert a SDXC card into your Android device, it will problably just treat it as a SDHC card.
[myTouch 3G, Magic Accessories] wizzbang3:
That's a regular SD c ard, not a micro format, there are no known 64gb micro SDXC cards in existence. Also a 32gb, regular SDHC card is still 65$ US - and that's class 4, I can't begin to imagine how much a 64gb SDXC is going to cost.

Also how reliable will it be, there's limits to this stuff when managing the size of flash chips.
[myTouch 3G, Magic Accessories] PsychoTribe:
Now it exist :)

http://www.engadget.com/2011/05/26/kingmax-flaunts-worlds-first-64gb-microsd-card/
[myTouch 3G, Magic Accessories] NZtechfreak:
I'm pretty sure it will work - mine works in my SGSI, SGSII, Sensation, and Transformer.

http://www.androidnz.net/2011/09/sandisk-64gb-micro-sdxc-cards-confirmed.html

[YOUTUBE]yYUg14u_co8[/YOUTUBE]
[myTouch 3G, Magic Accessories] Rred:
Now that the cards are proven to exist

And ignoring the question of cost, which is not a technical concern

There are a few objective questions that might merit answers, such as:

1-Are the micro-SDHC and micro-SDXC physical formats, the card sizes and contacts, the same or not? Web posts say that they are and are not, apparently half of those posts are in error and it seems that if the sdxc cards are working in sdhc phones--they are?

2-Is a specific file system driver, in the phone's OS distribution, needed? If so, what?

3-Is a specific file system format of the sdxc card itself required? If so, what? (Presumably requiring a format on a computer that provides for that option if the phone doesn't.)

And then of course, a list of phones actually known and confirmed to work with the precious beasts.

Personally, yes, I think 64GB on the removeable card is ridiculous. But then again, it will cost less than an iPod Classic and it will let me take an extensive music collection "everywhere". Which my own 32GB card won't right now.

There's a reason the iPhone4S has a 64GB memory option now. For some of us, the extra memory will be gladly put to good and economical use. If our phones support it.
[myTouch 3G, Magic Accessories] kms108:
At present no phone fully supports microsdxc, even if it reads the card, you wont get the full size or speed from a phone, even the fastest phone on the market cannot take full advantage of the speed of present card, and most phones accepts microsdhc at class 2-10, but you only get low transfer rate, I have the new 16GB uhs1 microsdhc from both toshiba (class 10) and sandisk (class 6), both have verys low speed just like that of class 2-4 when used in mobile phones, so uhs 1 microsdhc is out of the question in mobile phone.

I also seen available the sandisk 64GB microsdxc available in hong kong, not really expensive when compared to the USA, it's approximate USD150, will get one next month to try out.
[myTouch 3G, Magic Accessories] Rred:
That's way better than the US prices. Please DO let us know how it works out.

Personally, I don't care about not having full xc speed, etc., I'd be happy just to double the storage capacity. Sandisk US has no interest in the matter, all they know is that Moto "only supports" 32GB. Which they really don't understand means only that no one has tested 64GB sdxc in the phone, so no one has anything to say about it.
[myTouch 3G, Magic Accessories] kms108:
the guy in post 15 has tried it on the samsung.
[myTouch 3G, Magic Accessories] wazzle638:
hi kms108, I see you own an Xperia Ray. Did you try the 64gb sd in the Ray? Can you share with us if it works or not? While Googling I only find people speculating that since it works on the Play, it should work on the Ray too, but I hope you can confirm this for real..
[myTouch 3G, Magic Accessories] kms108:
Hi the last one i got, I gave the card away to a friend so i didn't try it.

will try the card at the end of the month, the 64GB card recenly had a bid drop in price in hong kong from HKD 1000 to hkd 540 (USD 129 to USD 69.50) will get another soon.