[GUIDE]Add Text to Status Bar

MR.Volkf

Senior Member
Aug 25, 2012
883
532
0
C:\Apktool & C:\TickleMyAndroid
[GUIDE] Add Text to Status Bar


Requirement:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/tickle my android
I use tickle my android cause it very easy :D

Step:
1.Decompile SystemUI.apk
2.go to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy This line,paste in LINE 9
Code:
<TextView android:textSize="15.0sp" android:textColor="#ffa6a6a6" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
How to change text color
Code:
android:textColor="[B]#ffa6a6a6[/B]"
change: #ffa6a6a6 to whatever hex color you want
example :
#ffffffff = White
#ff000000 =Black(?)

How to change text size
Code:
android:textSize="[B]15sp[/B]"
change: 15sp to whatever you want
example
: 16sp same as with Clock
: 14.5sp
: 13sp
: 12sp same as with battery percent
5.Go to res/values/strings.xml
6.copy this line,paste in above
Code:
<string name="hello">Hafiz</string>
Change Hafiz to whatever would you like,like Axis,Android,Google etc!
7.Recompile!
8.done :D

Thanks for
1. @Ticklefish for tool :cool:
2. GOOGLE :D

find more about string: Here


 
Last edited:

Truepeace

Senior Member
Jan 25, 2013
151
10
0
yeahh you can follow that tutorial :D
That's what I did but I am having an error while recompiling

Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        at brut.androlib.Androlib.buildResources(Androlib.java:362)
        at brut.androlib.Androlib.build(Androlib.java:285)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
 C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
        ... 6 more
 

MR.Volkf

Senior Member
Aug 25, 2012
883
532
0
C:\Apktool & C:\TickleMyAndroid
That's what I did but I am having an error while recompiling

Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        at brut.androlib.Androlib.buildResources(Androlib.java:362)
        at brut.androlib.Androlib.build(Androlib.java:285)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
 C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
        ... 6 more
recheck you string.xml :p there's left in string.xml
 
  • Like
Reactions: CrazyDuckBam