Quantcast
Channel: xda-developers - Verizon Galaxy S III Android Development
Viewing all articles
Browse latest Browse all 352

[MOD] [GUIDE] Remove the GPS Icon from the Status Bar (the right way)

$
0
0
THIS ZIP IS FOR A STOCK DEODEXED ROM. IF YOU FLASH THIS OVER A CUSTOM ROM YOU WILL MOST LIKELY LOSE SOME MODS/THEMES.


Here is a guide to remove the GPS (location) Icon from the status bar. This is not the current method of going into the drawables XML and removing or making the PNGs transparent. This is a smali edit to prevent the ICON from displaying thus removing the space the icon utilizes from the status bar. If you like this MOD hit the thanks button.

DEVs feel free to use this MOD just shoot me a thanks and some credit.

We will be working within SystemUI.apk

Decompile SystemUI.apk

Navigate to smali/com/android/systemui/statusbar/policy/LocationController.smali

Find the following code:
 
Code:

const-string v8, "Gps icon state"

  invoke-virtual {v6, v7, v3, v5, v8}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V

    .line 136
    iget-object v3, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mService:Landroid/app/StatusBarManager;

    const-string v5, "lbs"

    invoke-virtual {v3, v5, v4}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V

    .line 138
    return-void



Remove the line above in red.

Thats it!

Recompile
Chmod 644
Push to System/app or make a flashable ZIP.


Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>