FORUMS

[MOD][25/07/14]Custom NetworkIcon for StatusBar. Wifi+Signal+Data+InOut.

236 posts
Thanks Meter: 205
 
Post Reply Email Thread
Hi guys! Im back. Sorry if i abbandoned my BatteryMod, but like i said, i have something bigger. It will remove stock signal icon, stock data icon. and stock wifi icon I'm sorry if you found any BUG just tell me

A little help from me
Quote:

If you guys confused, here's my SystemUI.apk
Download: here

That includes my BatteryMOD, my own Toggle, android.support.v4 library and SignalCluster

Changelogs:
Quote:

24/06/14: Initial build
26/06/14: Added In/Out Icon.
24/07/17: CM7 Support!
25/07/14: Added WifiCluster

*note: maybe this is the last update for this mod, im working on an API for theming usage.
Spoiler Alert!




What it it?
Quote:

It's a SignalCluster, ICS/JB/KK signal+data view+wifi. Something like this.. Top|Left icon..

InOut

Null
Out

Wifi

What to do?
Quote:

1. Removing the stock signal icon
2. Removing the stock data icon
3. Removing the stock wifi icon
4. Installing the SignalCluster

Step 1. Removing the stock signal icon
Quote:

  • Stock

    1. Decompile your SystemUI
    2. Open your com.android.systemui.statusbar.policy.StatusBarPol icy
    3. Find this. There are 2 lines i think.
    Code:
    const-string v1, "phone_signal"
    
    iget v2, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mPhoneSignalIconId:I
    
    invoke-virtual {v0, v1, v2, v5}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
    4. Add this code below
    Code:
    const v2, 0x0
    
    invoke-virtual {v0, v1, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
  • CM7

    1. Decompile your SystemUI
    2. Open your com.android.systemui.statusbar.StatusBarPolicy
    3. Find this.
    Code:
    const-string v6, "phone_signal"
    
    iget v6, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mPhoneSignalIconId:I
    
    invoke-virtual {v5, v9, v6, v7}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
    4. Add this code below
    Code:
    const v2, 0x0
    
    invoke-virtual {v5, v9, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
    5. Find this.
    Code:
    const-string v4, "phone_signal"
    
    iget v5, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mPhoneSignalIconId:I
    
    invoke-virtual {v3, v4, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
    6. Add this code below
    Code:
    const v2, 0x0
    
    invoke-virtual {v3, v4, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V

Step 2. Removing the stock data icon
Quote:

  • Stock
    1. Still on the StatusBarPolicy
    2. Delete this line. There are 3 lines
    Code:
    invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->updateDataIcon()V
    3. Find this code
    Code:
    .line 1118
    return-void
    4. Delete the this
    Code:
    .line 1118
    5. It should be like this
    Code:
    .line 1117
    :goto_0
    return-void
  • CM7
    1. Still on the StatusBarPolicy
    2. Delete this line. There are 3 lines
    Code:
    invoke-direct {p0}, Lcom/android/systemui/statusbar/StatusBarPolicy;->updateDataIcon()V
    3. Find this code
    Code:
    .line 1101
    return-void
    4. Delete the this
    Code:
    .line 1101
    5. It should be like this
    Code:
    .line 1100
    :goto_0
    return-void

Step 2. Removing the stock data icon
Quote:

1. Still on the StatusBarPolicy
2. Delete this line.

Code:
invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->updateWifi(Landroid/content/Intent;)V
3. find this line and change v9 to v7
Code:
invoke-virtual {v5, v8, v9}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V

Step 3. Installing the SignalCluster
Quote:

1. Download the file here
2. Extract to decompiled SystemUI folder.
3. If you want to use the SignalCluster just put this code wherever you like inside the status_bar.xml(LinearLayout with id: icons)

Code:
<ucup.tech.icons.SignalCluster android:layout_width="wrap_content" android:layout_height="wrap_content" />

That's it. If you have problem with compiling or something just ask here ok?

FAQs:
Quote:

Question: My SystemUI FC!
Answer: You know how to logcat right?

Question: This thread is awful!
Answer: I know...

Credits:
Quote:

- Google
- Stackoverflow
- b16h22 for the inspiration
- Dedy Prayetno < this guy is awesome. he made awesome things by only his awesome phone

Current Issues:
Quote:

1. No In/Out icon for now
2. I still find a way to detect if network data is connected not just by the data state
3. I use Handler and Runnable for WifiInOut, since this is the only possible way for API 10.
Post here if you found it

The Following 20 Users Say Thank You to AuliaYF For This Useful Post: [ View ] Gift AuliaYF Ad-Free
24th June 2014, 07:10 PM |#3  
Minions_Army's Avatar
Senior Member
Flag 【Gru Laboratories】
Thanks Meter: 295
 
More
I know this look like in evo x4 ui
but without in out icon
i try to make like that but failed ... i mean has 2 signal icon
:ngakak

and now u make this possible


thanks dude
cool
The Following 2 Users Say Thank You to Minions_Army For This Useful Post: [ View ] Gift Minions_Army Ad-Free
25th June 2014, 03:09 AM |#4  
AuliaYF's Avatar
OP Senior Member
Flag Bekasi, Indonesia
Thanks Meter: 205
 
More
Quote:
Originally Posted by Minions_Army

I know this look like in evo x4 ui
but without in out icon
i try to make like that but failed ... i mean has 2 signal icon
:ngakak

and now u make this possible


thanks dude
cool

no problem bro
The Following User Says Thank You to AuliaYF For This Useful Post: [ View ] Gift AuliaYF Ad-Free
25th June 2014, 01:59 PM |#5  
Droidbuster's Avatar
Senior Member
Thanks Meter: 339
 
More
thanks sir i did is already
thanks i did this already by inspiring with evo 4x dev sir
but those user using dual sim will got problem
The Following User Says Thank You to Droidbuster For This Useful Post: [ View ] Gift Droidbuster Ad-Free
25th June 2014, 02:17 PM |#6  
AuliaYF's Avatar
OP Senior Member
Flag Bekasi, Indonesia
Thanks Meter: 205
 
More
soon
Next update will be In/Out icons guys
The Following 3 Users Say Thank You to AuliaYF For This Useful Post: [ View ] Gift AuliaYF Ad-Free
25th June 2014, 02:25 PM |#7  
Droidbuster's Avatar
Senior Member
Thanks Meter: 339
 
More
sir can you make for dual sim?
sir can you make it for dual for dual sim user?
should i give you my system ui for to study for dual sim activitys?

---------- Post added at 01:25 PM ---------- Previous post was at 01:22 PM ----------

Quote:
Originally Posted by AuliaYF

Next update will be In/Out icons guys

sir i have code for in or out data
The Following User Says Thank You to Droidbuster For This Useful Post: [ View ] Gift Droidbuster Ad-Free
25th June 2014, 06:59 PM |#8  
AuliaYF's Avatar
OP Senior Member
Flag Bekasi, Indonesia
Thanks Meter: 205
 
More
Quote:
Originally Posted by SK(SurajKumar)

sir can you make it for dual for dual sim user?
should i give you my system ui for to study for dual sim activitys?

even though i have your systemui i cant test it. i dont have the device.

Quote:

sir i have code for in or out data

so do i thanks by the way
The Following User Says Thank You to AuliaYF For This Useful Post: [ View ] Gift AuliaYF Ad-Free
27th June 2014, 03:06 AM |#11  
Myth2014's Avatar
Senior Member
Flag Linyi
Thanks Meter: 15
 
More
work on gb?
Post Reply Subscribe to Thread

Tags
cluster, signal, signal cluster, systemui

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes