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
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>
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"
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
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1922
const/4 v6, 0x0
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>
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"
Attachments
Last edited: