FORUMS
Remove All Ads from XDA
Honor 9 Lite

[guide][how to get kitkat/jb/ics title bar on gb devices]

164 posts
Thanks Meter: 381
 
By Akshay Kumar Raheja, Senior Member on 5th July 2014, 02:38 PM
Post Reply Email Thread
HOW TO GET KITKAT/JB/ICS TITLE BAR ON GINGERBREAD DEVICES


THIS GUIDE IS TOTALLY MADE BY ME.


I KNOW THERE'S ALREADY A GUIDE FOR THIS BY SIR SPACECAKER. BUT THIS ONE IS TOTALLY DIFFERENT FROM THAT ONE. AND IN THIS GUIDE, THE TITLE BAR DOESN'T SCROLL WITH SCROLLING WINDOWS CONTENT


REQUIREMENTS:
1. APKTOOL
2. PC WITH JDK Installed.
3. framework-res.apk,twframework-res.apk, Services.jar,Settings.apk or any other apk you want to apply Kitkat/JB/ICS title bar to.
4. KNOWLEDGE ABOUT DECOMPILING, RECOMPILING, EDITING ETC(Don’t ask me how to do that. Use xda search options instead)
5. PATIENCE
IF YOU’VE ACCESS TO ALL THE REQUIRED STUFF, YOU CAN PROCEED WITH PROCEDURE.


HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN SETTINGS


1. First decide which type of title bar you want in your Rom. Then download its zip from below(ICS, JB, OR KITKAT TITLE BAR).
2. Now decompile framework-res.apk.
3. Now extract the content of downloaded zip in decompiled framework-res.apk.
4. Now open /decompiled_framework-res.apk/res/values/styles.xml and add this above this line "</resources>"
Code:
<style name="Theme.sett" parent="@style/Theme">
        <item name="windowTitleSize">@dimen/akrtb</item>
        <item name="windowTitleStyle">@style/WindowTitlesettt</item>
        <item name="windowTitleBackgroundStyle">@style/settt</item>
     </style>
    <style name="settt">
        <item name="background">@drawable/djbtitle</item>
    </style>
    <style name="WindowTitlesettt">
        <item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
        <item name="singleLine">true</item>
        <item name="drawableLeft">@drawable/set_akr_m</item>
    </style>
    <style name="TextAppearance.WindowTitle.sett" parent="@style/TextAppearance">
        <item name="textSize">19.0sp</item>
        <item name="textStyle">normal</item>
        <item name="textColor">#ffffffff</item>
    </style>
    <style name="Theme.sett_i" parent="@style/Theme">
        <item name="windowTitleSize">@dimen/akrtb</item>
        <item name="windowTitleStyle">@style/WindowTitlesettt_i</item>
        <item name="windowTitleBackgroundStyle">@style/settt</item>
     </style>
    <style name="WindowTitlesettt_i">
        <item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
        <item name="singleLine">true</item>
        <item name="drawableLeft">@drawable/set_akr_i</item>
    </style>
Now open /decompiled_framework-res.apk/res/values/dimens.xml and add this above this line "</resources>"
Code:
<dimen name="akrtb">50.0dip</dimen>
5. Now recompile framework-res.apk and install the new framework-res.apk again using "apktool if framework-res.apk" command in command prompt. and do same with "twframework-res.apk" using this "apktool if twframework-res.apk" command.
6. Now decompile Settings.apk and open /decompiled_Settings.apk/AndroidManifest.xml. after uses-permission codes, it looks like this (see pic below).

You have to add these highlightes codes in your AndroidManifest.xml in same place
Code:
android:theme="@android:style/Theme.sett_i"
android:theme="@android:style/Theme.sett"
7. Now recompile your Settings.apk and don’t forget to sign it because we have changed AndroidManifest.xml. Now you need to disable Signature verifications in your Services.jar otherwise Settings.apk will not work.
HOW TO DISABLE SIGNATURE VERIFICATIONS IN SERVICES.JAR
a. Decompile Services.jar and open /decompiled_Services.jar/smali/com/android/server/packagemanagerservice.smali and look for this code :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"

.prologue
.line 1922
and modify it like this :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"

.prologue
.line 1922
const/4 v6, 0x0
8. Now push all the three files(Settings.apk, framework-res.apk and Services.jar) in your Phone using adb, or by making flashable zip or by any means.


HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN USER APPS


1. First Decompile the apk you want to have this title bar. Lets say “xyz.apk”
2. Now extract the downloaded folder in your decompiled apk.
3. Now open /decompiled_xyz.apk/res/values/Styles.xml and add this above this line
"</resources>"
Code:
<style name="Theme.akr.xyz" parent="@android:style/Theme">
    <item name="android:windowTitleSize">50.0dip</item>
    <item name="android:windowTitleStyle">@style/WindowTitleakr_xyz</item>
    <item name="android:windowTitleBackgroundStyle">@style/akr_xyz</item>
</style>
<style name="akr_xyz">
    <item name="android:background">@drawable/djbtitle</item>
</style>
<style name="WindowTitleakr_xyz">
    <item name="android:textAppearance">@style/TextAppearance.WindowTitle.akr</item>
    <item name="android:singleLine">true</item>
    <item name="android:drawableLeft">@drawable/set_akr_m</item>
</style>
<style name="TextAppearance.WindowTitle.akr" parent="@android:style/TextAppearance">
    <item name="android:textSize">19.0sp</item>
    <item name="android:textStyle">normal</item>
    <item name="android:textColor">#ffffffff</item>
</style>
4. Now open directory /decompiled_xyz.apk/res/drawable-ldpi/ and change "set_akr_m.png" with the png you want to be shown on title bar and make sure that your png size doesn’t exceed 40x36 pixels.
5. Now open /decompiled_xyz.apk/AndroidManifest.xml and add this code after <application as you did in case of Settings.apk.
Code:
android:theme="@style/Theme.akr.xyz"
6. Recompile and sign it now. And install it
Attached Files
File Type: zip ICS_AKR.zip - [Click for QR Code] (5.3 KB, 286 views)
File Type: zip JB_AKR.zip - [Click for QR Code] (6.3 KB, 288 views)
File Type: zip KITKAT_AKR.zip - [Click for QR Code] (4.6 KB, 666 views)
The Following 12 Users Say Thank You to Akshay Kumar Raheja For This Useful Post: [ View ] Gift Akshay Kumar Raheja Ad-Free
 
 
5th July 2014, 03:25 PM |#2  
Minions_Army's Avatar
Senior Member
Flag 【Gru Laboratories】
Thanks Meter: 270
 
More
waw look like actionbar sherlock

nice +1
EDIT Need Help

after recompile framework-res.apk

i have a little problem

framework.apk\res\values\styles.xml:1075: error: Error: No resource found that matches the given name (at 'windowTitleSize' with value '@dimens/arktb

i have add dimens in values but cannot recompile

and settings.apk too
i has instaling framework-res.apk and twframework also

and in service jar has different smali..
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .registers 10
    .parameter "s1"
    .parameter "s2"

    .prologue
    .line 1946
this is in my service jar


attachement added if u want to help me


thanks a lot
5th July 2014, 03:40 PM |#3  
qromwel's Avatar
Senior Member
Flag Winneba
Thanks Meter: 14
 
Donate to Me
More
Angry
great going (y)
5th July 2014, 04:19 PM |#4  
Account currently disabled
Flag Hamirpur H.P
Thanks Meter: 151
 
More
plsss tell... how to change the title bar color..
5th July 2014, 04:26 PM |#5  
Akshay Kumar Raheja's Avatar
OP Senior Member
Thanks Meter: 381
 
More
Quote:
Originally Posted by Minions_Army

waw look like actionbar sherlock

nice +1

hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.




Quote:
Originally Posted by qromwel

great going (y)

Thanks bro




Quote:
Originally Posted by kartik verma

plsss tell... how to change the title bar color..

Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)
The Following 3 Users Say Thank You to Akshay Kumar Raheja For This Useful Post: [ View ] Gift Akshay Kumar Raheja Ad-Free
5th July 2014, 05:55 PM |#6  
Minions_Army's Avatar
Senior Member
Flag 【Gru Laboratories】
Thanks Meter: 270
 
More
Quote:
Originally Posted by Akshay Kumar Raheja

hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.






Thanks bro





Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)

ure using galaxy pocket?
5th July 2014, 05:57 PM |#7  
Akshay Kumar Raheja's Avatar
OP Senior Member
Thanks Meter: 381
 
More
Quote:
Originally Posted by Minions_Army

ure using galaxy pocket?

No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you
The Following 2 Users Say Thank You to Akshay Kumar Raheja For This Useful Post: [ View ] Gift Akshay Kumar Raheja Ad-Free
5th July 2014, 10:24 PM |#8  
Minions_Army's Avatar
Senior Member
Flag 【Gru Laboratories】
Thanks Meter: 270
 
More
Quote:
Originally Posted by Akshay Kumar Raheja

No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you


thanks man
tw framework added
Attached Files
File Type: apk twframework-res.apk - [Click for QR Code] (362.1 KB, 37 views)
6th July 2014, 01:39 AM |#9  
AuliaYF's Avatar
Senior Member
Flag Bekasi, Indonesia
Thanks Meter: 205
 
More
does the back function work?
6th July 2014, 08:04 AM |#10  
Akshay Kumar Raheja's Avatar
OP Senior Member
Thanks Meter: 381
 
More
Smile
Quote:
Originally Posted by Minions_Army

thanks man
tw framework added

Hi Minions_Army, please check your twframework-res.apk again because i think you've attached wrong twframework-res.apk. i tried 3 times to decompile Settings.apk with framework-res.apk and twframework-res.apk(given by you ofcourse) installed but it always shows resources problems with twframework-res.apk. kindly check again and upload correct twframework-res.apk.
Quote:
Originally Posted by AuliaYF

does the back function work?

hi AuliaYF,
no it doesn't support back button function on title bar.
The Following User Says Thank You to Akshay Kumar Raheja For This Useful Post: [ View ] Gift Akshay Kumar Raheja Ad-Free
6th July 2014, 08:58 AM |#11  
pethrok's Avatar
Junior Member
Flag Jawa Timur
Thanks Meter: 1
 
More
good bro
Post Reply Subscribe to Thread

Tags
ics, kitkat, s5360. gingerbread, title bar

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

Advanced Search
Display Modes