[MOD][GUIDE] Lenox-Label profile pic and label mod - Android Themes

Hi guys,
today with sir PineappleOwl's permission I'm going to present you the profile pic and label mod known as lenox label....... some of you already know about it or/and might have used it..... so this guide is going to help those who want to have profile pic mod on their SystemUI but don't know how to make it........ let's get into business and as usual it's clear I'm not the owner I'm only the sharer
Requirements:
Brain
Patience
Experience
lenox.zip
How to add:
1. decompile your SystemUI.apk
2. go to res/values/ids.xml and add these lines:
Code:
<item type="id" name="lenoxlabel">false</item>
<item type="id" name="lenoxpic">false</item>
3. go to res/layout/*wherever you want* and add these:
Code:
<com.lenox.Lenox_Label.lenoxpicture android:gravity="center" android:id="@id/lenoxpic" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.lenox.Lenox_Label.lenoxlabel android:gravity="center" android:layout_gravity="bottom" android:id="@id/lenoxlabel" android:background="#bf000000" android:layout_width="wrap_content" android:layout_height="wrap_content" />
4. now add the smalis from lenox.zip to your decompiled SystemUI
5. now recompile and than decompile again....... it's time for id matching
6. go to res/values/public.xml and find this public id:
Code:
<public type="id" name="lenoxlabel" id="*×********" />
7. take the public id and go to smali\com\lenox\Lenox_Label\lenoxlabel.smali
8. go to line 25 and replace the public id you copied on this:
Code:
const v7, 0x7f0d0144
9. now again go to public.xml and take the public id of:
Code:
<public type="id" name="lenoxpic" id="*x********" />
10. go to smali\com\lenox\Lenox_Label\lenoxpicture.smali
11. go to line 21 and replace the public id you just got on this:
Code:
const v4, 0x7f0d0143
12. done now recompile
sign
wait
13. now take Lenox_Label.apk from lenox.zip and push with SystemUI
reboot
enjoy !!!
link:
https://www.androidfilehost.com/?fid=817550096634757786
credits:
@PineappleOwl for making this awesome mod
@r2dak for giving me the guide

screenshots

Preety simple...:thumbup::thumbup:
Sent from my GT-S7392 using XDA Free mobile app

Yes

Thread updated.... Thanks to @ShadeSK for the help

Related

[TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie!

hello community
i would like to share something i know about how to theme for most SystemUI.apk.
What in this TUT??
PAGE #1 :
1. Theme Tools that needed.
2. STEPS for making theme.
3. HOW TO CHANGE COLOR FOR TEXT.
4. HOW TO MAKE 1% BATTERY INCREMENT.
5. HOW TO MAKE CENTER CLOCK.
6. HOW TO REARRANGE THE TOGGLE.
7. HOW TO REMOVE THE BRIGHTNESS BAR.
8. HOW TO CHANGE STATUS BAR BACKGROUND.
9. HOW TO MAKE THE BUTTON AND NOTIFICATION TRANSPARENT.
10. HOW TO MAKE TRANSPARENT BACKGROUND.
PAGE #2 :
11. HOW TO REMOVE THE TEXT AND TOGGLES STATUS.
12. HINT HOW TO EDIT IMAGE WITHOUT GETTING ERROR!
13. sample_toggles for all!
14. HOW TO CHANGE ANY PART WITH IMAGE.
15. How To Sign Your Apk After Modding!
TUT SHARED BY OTHERS :
- HOW TO MOVE TOGGLES TO BOTTOM, HOW TO MOVE BATTERY ICON TO LEFT, HOW TO ADD AM/PM AT STATUS BAR. by @SuperDroid-BOND
- HOW TO ADD SCREENSHOT BUTTON IN STATUSBAR. by @remuntada78​​
1. Theme Tools that needed :
Click to expand...
Click to collapse
- Apktool (download the Jar and aapt) [only for Windows] thanks to iBotPeaches for the tool.
- Android Utility [only for MAC/LINUX] thanks to tommytomatoe for the tool.
- Better Draw9Patch. (for editing .9patch png) thanks to AndroidGraphix for the tool.
- good .xml reader (i'd prefer Notepad ++).
- good image editor (i'd prefer GIMP).
- for color to html, go to this site (colorgenerator or colorhunter which is my reference for color
i dont know about Linux or Mac, so this TUT is just for Windows. But im sure the steps is just the same.
STEPS after download the tool (Apktool):
Click to expand...
Click to collapse
- extract both downloaded zip file. (the Jar and aapt)
- you'll get 3 files ( aapt.exe, apktool.bat, and apktool.jar), place it together in one folder.
- go to Home Menu, search for "cmd", copy the cmd to the apktool folder.​
STEPS for installing:
1) pull your framework-res.apk (in system/framework)
2) pull SystemUI.apk (in system/app)
3) install them with the command
Code:
apktool if framework-res.apk
Code:
apktool if SystemUI.apk
this will install the framework and the systemui for the current ROM.​
2. STEPS for making theme :
1) decompile SystemUI.apk with the command.
Code:
apktool d SystemUI.apk
2) then go to SystemUI/res/drawable-hdpi/ (to edit the images)
be careful of the .9.png . Use the Better Draw9Patch tool for editing .9patch pngs.
these are the list of the png and where it will display :
Click to expand...
Click to collapse
for background :
* notification_panel_bg.9 ------------------------------------------------| (status bar bg)
* tw_quick_panel_list_bg_f/n/p ----------------------------------------| (toggle bg)
* tw_quick_panel_quick_setting_button_bg_normal.9 ---------| (toggle button background)
* tw_status_bar_call_ongoing_#####.9 ----------------------------| (status bar display when call)
for icons :
* all tw_quick_panel_icon_###.png ----------------------------------| (toggle button)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* stat_sys_battery_# , stat_sys_battery_charge_anim## ------| (for battery display)
* tw_quickpanel_icon_#.png -------------------------------------------| (for status bar expended quicksetting)
* tw_quick_panel_plnm_setting_dv ----------------------------------| (for divider between the quicksetting and clock)
* tw_status_bar_close_on/off ------------------------------------------| ( for the status bar bottom drag)
for recent tumbnail :
* look for all recents_thumbnail_#.png ------------------------------| (for thumbnail bg)
* tw_btn_default_normal_holo_recent_button.9 ------------------| (for btn bg)
* tw_recent_panel_icon_######_holo_dark ----------------------| (for btn icon)
thats all for the important images (other images you'll know just with its look and where it belong )​
3. HOW TO CHANGE TEXT COLOR.
Click to expand...
Click to collapse
res/layout :
1. tw_status bar.xml
battery text color.
Code:
<TextView android:textSize="12.0dip" android:textColor="#something"
clock text color.
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#something"
change the "something" with your preferred color.
2. tw_status_bar_expanded_header.xml
for pull down clock color.
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#something"
for date color.
Code:
"@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#something"
res/values :
1. colors.xml
for pull down Notification label color.
Code:
<color name="notification_category_color">
for clear button label text color.
Code:
<color name="tw_status_bar_clear_btn_text">
2. styles.xml
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff33b5e5</item>
<item name="android:fontFamily">sans-serif-light</item>
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#FF9CE4FE</item>
<item name="android:textAllCaps">true</item>
Code:
<style name="TextAppearance.StatusBar.Expanded.Network" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff33b5e5</item>
you can change the text size, color, style (bold or normal) in that xml.​
4. HOW TO MAKE 1% BATTERY INCREMENT :
Click to expand...
Click to collapse
res/drawable/
- edit the stat_sys_battery.xml and stat_sys_battery_charge.xml to be like this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
<item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
<item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
<item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
.
.
.
.
until :
Code:
.
.
.
.
.
<item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="95" />
<item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
<item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
<item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
<item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>
animated battery charge display :
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_0" />
<item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim0" />
</animation-list>
</item>
<item android:maxLevel="1">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_1" />
<item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim1" />
</animation-list>
</item>
<item android:maxLevel="2">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_2" />
<item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim2" />
</animation-list>
.
.
.
.
until :
Code:
.
.
.
.
<item android:maxLevel="100">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_100" />
<item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim100" />
</animation-list>
</item>
<item android:maxLevel="101">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_100" />
<item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_animfull" />
</animation-list>
</item>
</level-list>
then put the battery icons in res/drawable-hdpi, recompile.​
5. HOW TO MAKE CENTER CLOCK?
Click to expand...
Click to collapse
res/layout
tw_status_bar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/left_icons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="15.0dip" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/doNotDisturbIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff99FF00" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/right_icons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:textSize="9.0dip" android:textColor="#ff99FF00" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
edit the xml just like mine ​
6. HOW TO REARRANGE THE TOGGLE :
Click to expand...
Click to collapse
before:
res/values
arrays.xml
Code:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item><string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>Location</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>DormantMode</item>
<item>PowerSaving</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>Sync</item>
</string-array>
just arrange what ever you want it to be with replace the arrangement of that xml.
eg. you want to make the GPS toggle to the other side :
HTML:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>DormantMode</item>
<item>PowerSaving</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>Location</item>
<item>Sync</item>
</string-array>
after :
thats it, then recompile! ​
7. HOW TO REMOVE THE BRIGHTNESS BAR :
Click to expand...
Click to collapse
res/layouts
tw_status_bar_expanded.xml
find :
Code:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
replace the
Code:
android:layout_height="56.0dip"
with
Code:
android:layout_height="0.0dip"
recompile ​
8. HOW TO CHANGE STATUS BAR BACKGROUND :
Click to expand...
Click to collapse
res/drawable-hdpi
this is the easiest way.
replace the notification_panel_bg.9.png with any of your preferred image with resolution of 480x800.
but before that dont forget to make all toggle background to be transparent.​well, these are several ways that you can make it done :
1) this is the step that i always use to make change the background.
- decompile the apk.
- go to the res/drawable-hdpi folder.
- find the notification_panel_bg.9.png.
- open it with any of your preferred photo editor.
- resize the image to 482x802 (so that the other 2x2 pixel will leave for .9patch).
- open the image that you want to make as background (copy it)
- paste it into the notification_panel_bg.9.png that you have resized.
- draw the whole 2x2 with black line #000000.
- save the image.
- recompile.​
2) this steps is much easier, but i dont recommend. sometimes it failed.
- decompile the apk.
- recompile the apk.
- go to build/apk/res/drawable-hdpi.
- find the notification_panel_bg.9.png
- replace with your preferred image. (but dont forget to name the image with the same name include .9)
- build the apk again.
- your finished apk will be in dist folder.​
3) this is the safest way i guess but always success.
- decompile the apk.
- go to res/layout folder.
- find tw_status_bar_expanded.xml
- in that xml, find android:background="@drawable/notification_panel_bg".
- change that notification_panel_bg with any name. example android:background="@drawable/mybackground".
- save the xml.
- then, go to res/drawable-hdpi folder.
- place your image named "mybackground".
- compile the apk.​
9. HOW TO MAKE THE BUTTON AND NOTIFICATION TRANSPARENT :
Click to expand...
Click to collapse
res/layouts
tw_status_bar_expanded.xml
find :
all
Code:
android:background="#something"
in the xml the change the "#something" with "#00000000".
change ff value to (00 -> 100% transparency, 3f -> 75% transparency, 7f -> 50% transparency, bf -> 25% transparency)
The other value (1e1e1e) is RBG for grey color, if you want it black it will be (000000).
So:
#00000000 - black with 100% transparency
#3F000000 - black with 75% transparency
#7F000000 - black with 50% transparency
#BF000000 - black with 25% transparency
this post originally posted at http://forum.xda-developers.com/showthread.php?t=2078585 by majdinj (hit thanks to him )
Click to expand...
Click to collapse
then go to SystemUI\smali\com\android\systemui\statusbar\phone
PhoneStatusBar.smali
- find -0x100 (there will be just two of it in that smali)
- change both to 0x0 (0=zero)
- save smali.
(that will make the notification bar transparent).​
10. HOW TO MAKE TRANSPARENT BACKGROUND :
Click to expand...
Click to collapse
res/layout
tw_status_bar_expanded.xml
find :
Code:
android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg"
change the "@drawable/notification_panel_bg" to "#00000000" or your preferred transparent range. Then, recompile ​
11. HOW TO REMOVE THE TEXT AND TOGGLES STATUS :
Click to expand...
Click to collapse
res/layout
tw_quick_setting_button.xml
find :
Code:
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="fill_parent" android:layout_height="60.0dip" android:layout_marginTop="4.0dip" />
1. change the android:layout_height="60.0dip" to android:layout_height="90.0dip".
2. change the android:layout_marginTop="4.0dip" to android:layout_marginTop="0.0dip"
then in the same xml.
find :
Code:
<TextView android:textSize="@dimen/quick_setting_button_text_size"
at the same line, you'll see android:textColor="blablabla", change it to android:textColor="#00000000".
and android:layout_height="blabla.bladip" to android:layout_height="0.0dip"
also at the same xml.
find :
Code:
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image"
.
change all the padding to be like mine :
HTML:
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
all this steps will make the size of the toggle bigger, remove the toggles text, and remove the toggles status.
then go to :
res/values
dimens.xml
find :
Code:
<dimen name="quick_setting_button_
there will be 7 lines of it in that xml.
change the line to be just like mine :
HTML:
<dimen name="quick_setting_button_height">90.0dip</dimen>
<dimen name="quick_setting_button_image_height">90.0dip</dimen>
<dimen name="quick_setting_button_text_height">0.0dip</dimen>
<dimen name="quick_setting_button_text_size">0.0dip</dimen>
<dimen name="quick_setting_button_status_height">0.0dip</dimen>
<dimen name="quick_setting_button_status_padding">2.0dip</dimen>
<dimen name="quick_setting_button_margin_top">0.0dip</dimen>
next steps :
- make your own toggle images with resolution of 80x100 or 90x110 or mine is 90x150. ( just any resolution that fit your toggle when displayed).
- it doesn't matter because you already fix the dimension of the toggle display. The point of creating new big toggles is not to make the display stretched or narrowed.
final steps:
res/layout
tw_status_bar_expanded.xml
find :
Code:
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content"
- in that line you'll see android:divider="@bla/blablabla" change it to android:divider="#00000000".
(that will remove the divider between the toggles)
then in the same xml, find :
HTML:
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content"
edit the android:layout_height= to android:layout_height="90.0dip".
finish, recompile!
this is how it will look like :
​
12. HINT HOW TO EDIT IMAGE WITHOUT GETTING ERROR! :
Click to expand...
Click to collapse
1) ONLY EDIT the .9patch images before recompile the apk!
HOW TO EDIT IT??
- use the Better Draw9Patch to edit .9patch.
- there are many TUT for that..but i will put it in this TUT later.
- ONLY EDIT THE .9patch images in res/ (which folder it belong) before recompile!
2) EDIT NON-.9patch images after you recompile the "HOW TO EDIT IT" above.
- you can edit all of the NON-.9patch images FREELY in build/res/apk/ (which folder it belong).
- the folder you'll get after you recompile the apk.
- BUT DO NOT TOUCH ANY .9patch images in there!
​
13. sample toggles for ALL!! :
Click to expand...
Click to collapse
want other cool toggles???
click this link!!
sample_toggles_1 :
Click to expand...
Click to collapse
sample_toggles_2 :
Click to expand...
Click to collapse
sample_toggles_3 :
Click to expand...
Click to collapse
sample_toggles_4 :
Click to expand...
Click to collapse
sample_toggles_5 :
Click to expand...
Click to collapse
DOWNLOAD LINK:
sample_toggles_1
sample_toggles_2
sample_toggles_3
sample_toggles_4
sample_toggles_5
Click to expand...
Click to collapse
link updated : 12 MAY 2013
and here is the base for all my icons :
just put the icon inside that toggle base
download link :
base_sample_toggle_1
base_sample_toggle_2
want other cool toggles???
click this link!!
just download it and try to mod yourself with my toggles
the toggles is able to use if you use all my dimension that i have modded in the tut. (TUT #11)
dont forget to hit thanks if you using this toggles for your mod. give me credits is good enough.
​
14. HOW TO CHANGE ANY BACKGROUND WITH OWN IMAGE :
Click to expand...
Click to collapse
In this TUT#14, you can change any part with any image by using the .9patch. png.
its easy, you just need to change the color code in the xml for example android:background="#colorcode" to android:background="@drawable/your_image".
And then you need to create an .9.png image then put it into res/drawable-****.
the **** means what is your device dpi.
the size of the image is depend with the part that you want to change, it is your creativity.​
before :
after :
Click to expand...
Click to collapse
15. How To Sign Your Apk After Modding! (IMPORTANT)
Click to expand...
Click to collapse
- recompile the apk, then the apktool will create new folder named "build".
- open the build/apk/ , copy and replace the original META-INF folder and AndroidManifest.xml into it. (for signing)
- recompile again by using command :
Code:
apktool b SystemUI
- your modded file will be in "dist" folder.
Click to expand...
Click to collapse
P.S : ALWAYS REPLACE THE ORIGINAL META-INF FOLDER AND AndroidManifest.xml from the ORIGINAL APK into the MODDED APK AFTER BUILD! or else you got bootloop.​
references :
- http://forum.xda-developers.com/showthread.php?t=2078585 by majdinj.
- http://forum.xda-developers.com/showthread.php?t=1714481 by emompong.
- http://forum.xda-developers.com/showpost.php?t=35294425&postcount=172 by devabhishek.
credits to :
- Koulis2000 because teach me a lot of things especially for the xml and .9patch, thanks dude!
- bobfrantic also share what he knows to me , thanks a lot!
Click to expand...
Click to collapse
let me know if i forgot place your name as credit, im just normal human being :fingers-crossed: and sorry for that.
hit thanks to them, their post really help me a lot
there will be more TUT after this..maybe how to theme framework-res.apk
there must be something more i left, but i will put it later when i remember what it is.
if you got something more to ask, dont be shy to PM me.. i'll be happy to help..
(only if im able to!)​
IF YOU HAVE SOMETHING THAT YOU KNOW FOR HOW TO MODDING SYSTEMUI.APK, AND IT IS NOT INCLUDED IN THIS TUT, PLEASE SHARE IT HERE
SO THAT MAYBE THIS TUT WILL HELP MANY PEOPLE WITH MANY VERSION OF DEVICES, I WISH THIS THREAD WILL BECOME THE PERFECT PLACE FOR PEOPLE WHO WANT TO LEARN ABOUT HOW TO THEME SYSTEMUI.APK ​
Nice thread, can you also add how to hide text in the toggles in the status pull down? Also here is a great little program people can use for determining color codes like #cecece to change colors. windows only though
View attachment color2html.zip
bobfrantic said:
Nice thread, can you also add how to hide text in the toggles in the status pull down? Also here is a great little program people can use for determining color codes like #cecece to change colors. windows only though
View attachment 1826979
Click to expand...
Click to collapse
i put the site i refer already
anyway, thanks..
will update the thing you said for next update..
Re: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
Nice thread that can really help out all the noobs out there. :thumbup:
Sent from my GT-I9070 using xda premium
can i use apk multi tool to do this as it gives all xml and icon files easily..??
is both same ??
thx for tutorial.
Re: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
Great tutorial, all well explained. Thanks
Sent from my GT-I9070
ravijani said:
can i use apk multi tool to do this as it gives all xml and icon files easily..??
is both same ??
thx for tutorial.
Click to expand...
Click to collapse
yes..just the same..but for apkmulti tool always set compression level to 0..(option 21).
and dont forget to replace the original META folder and AndroidManifest to the modded apk after recompile..
frzek said:
Great tutorial, all well explained. Thanks
Sent from my GT-I9070
Click to expand...
Click to collapse
hope this thread help a lot of people
Epic tut... but is apktools necessary? I use WinRAR.
R: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
panda00 said:
Epic tut... but is apktools necessary? I use WinRAR.
Click to expand...
Click to collapse
Yes for modify xml files. With winrar you can change the png only
Inviato dal mio GT-I9070 con Tapatalk 2
KINGbabasula said:
Yes for modify xml files. With winrar you can change the png only
Inviato dal mio GT-I9070 con Tapatalk 2
Click to expand...
Click to collapse
How come? If you use winrar, you can open xml files and edit them...
panda00 said:
How come? If you use winrar, you can open xml files and edit them...
Click to expand...
Click to collapse
you need to decode the xml so it can be read by any xml reader..with winrar you cant read the xml..
thats why you need the apktool to decode the xml..
Re: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
The finest work. Tnx a lot
Enviado desde mi GT-I9070 usando Tapatalk 2
Одг: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
Great tut.
Послато са GT-I9070 користећи Тапаток 2
xessus said:
The finest work. Tnx a lot
Enviado desde mi GT-I9070 usando Tapatalk 2
Click to expand...
Click to collapse
shut_down said:
Great tut.
Послато са GT-I9070 користећи Тапаток 2
Click to expand...
Click to collapse
thanks a lot for the compliment, friend
Re: [TUT][JB] HOW TO THEME SystemUI.apk for newbie!
Thanks, after my exams this week I'm definitely going to theme some!
Sent from my GT-I9070 using xda app-developers app
hey guys
why the 'command' to be like this when i recompile the SystemUI?
i just "MAKE 1% BATTERY INCREMENT" , can you tell me where is my mistake? thks before
sandrin0 said:
Thanks, after my exams this week I'm definitely going to theme some!
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
goodluck
droid_bazzline02 said:
hey guys
why the 'command' to be like this when i recompile the SystemUI?
i just "MAKE 1% BATTERY INCREMENT" , can you tell me where is my mistake? thks before
Click to expand...
Click to collapse
that is not the problem..scroll up more, the exact problem will shown at the several lines after you hit the the build command..
my guess is you forgot to put the battery set completely in the hdpi folder..
joehanh88 said:
goodluck
that is not the problem..scroll up more, the exact problem will shown at the several lines after you hit the the build command..
my guess is you forgot to put the battery set completely in the hdpi folder..
Click to expand...
Click to collapse
I've checked it again, then after i try to recompile the SystemUI again, the dist folder was not out.
why guys?
droid_bazzline02 said:
I've checked it again, then after i try to recompile the SystemUI again, the dist folder was not out.
why guys?
Click to expand...
Click to collapse
because you got error while decompile..

[GB SPECIAL][GUIDE][2.Jan.14] Add BatteryText% to Left of Battery.JB levels! Final.

Signal Icon - BatteryText% - Battery Icon
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello guys. Welcome to my another topic about battery percentage. I had a lot of PM for putting it to left of battery icon like ICS, JB bla bla.. So here is the final. An alternative way. Special for Gingerbread.
TUTORIAL
->>framework-res.apk<<-
STEP 1
Decompile framework-res.apk >> Go to res/drawable folder and edit stat_sys_battery.xml
stat_sys_battery_charge.xml and also if you have zzz_stat_sys_battery_1.xml with this code:
PHP:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
</level-list>
save all .xml files.
STEP 2
Go to res/values/arrays.xml and find config_statusBarIcons string array.
Here is mine:
Code:
<string-array name="config_statusBarIcons">
[B]<item>battery</item>[/B]
<item>alarm_clock</item>
<item>secure</item>
<item>clock</item>
<item>ime</item>
<item>sync_failing</item>
<item>sync_active</item>
<item>gps</item>
<item>bluetooth</item>
<item>nfc</item>
<item>tty</item>
<item>hac</item>
<item>speakerphone</item>
<item>mute</item>
<item>volume</item>
<item>wifi</item>
<item>cdma_eri</item>
<item>data_connection</item>
[B]<item>phone_evdo_signal</item>
<item>phone_signal</item>[/B]
</string-array>
LOGIC: In here we try to put percentage to right of signal icon and we make invisible stock battery icon.
So normally battery, alarm bla bla items were after phone_signal and I moved them to first.
Basicly move to top what you have after phone_signal and put battery item to top.
And then save.
**We're done with framework-res.apk so compile apk.**
->>SystemUI.apk<<-
STEP 3
Decompile SystemUI.apk >> go to res/layout/status_bar.xml and add <com.erhany.BatteryLine.. after @id/statusIcons.
It will look like that:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
[B]<com.erhany.BatteryLine android:textSize="14.0sp" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_marginLeft="-4.0dip" />[/B]
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon"
android:textColor="#ffffffff" android:gravity="left|center" android:paddingRight="6.0dip"
android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
* This textSize and layout_margin is tested on HDPI device. You may need to change dips after modding done if you have a MDPI device.
STEP 4
Download attachment. You will have 16 .png icons and 2 .smali files.Here is patience step.
C[opy smali files into smali/com/erhany folder. ( First, create erhany folder inside com/ )
Copy icons into drawable-hdpi folder.
*MDPI users need to copy into drawable-mdpi folder but you must find mdpi icons first. It may look bigger if you use hdpi icons. Not tested on mdpi.
STEP 5 - The patience!
Go to res/values/public.xml and add these lines:
PHP:
<public type="drawable" name="stat_sys_battery_0" id="0x7f020083" />
<public type="drawable" name="stat_sys_battery_15" id="0x7f020084" />
<public type="drawable" name="stat_sys_battery_28" id="0x7f020085" />
<public type="drawable" name="stat_sys_battery_43" id="0x7f020086" />
<public type="drawable" name="stat_sys_battery_57" id="0x7f020087" />
<public type="drawable" name="stat_sys_battery_71" id="0x7f020088" />
<public type="drawable" name="stat_sys_battery_85" id="0x7f020089" />
<public type="drawable" name="stat_sys_battery_100" id="0x7f02008a" />
<public type="drawable" name="stat_sys_battery_charge_anim0" id="0x7f02008b" />
<public type="drawable" name="stat_sys_battery_charge_anim15" id="0x7f02008c" />
<public type="drawable" name="stat_sys_battery_charge_anim28" id="0x7f02008d" />
<public type="drawable" name="stat_sys_battery_charge_anim43" id="0x7f02008e" />
<public type="drawable" name="stat_sys_battery_charge_anim57" id="0x7f02008f" />
<public type="drawable" name="stat_sys_battery_charge_anim71" id="0x7f020090" />
<public type="drawable" name="stat_sys_battery_charge_anim85" id="0x7f020091" />
<public type="drawable" name="stat_sys_battery_charge_anim100" id="0x7f020092" />
* Don't use my id codes. Find last drawable code and change manually all. (1-9 .. a-f..)
My last drawable was id="0x7f020082" so continued ..83,..84,..85.. Change and save it.
STEP 6
Go to com/erhany/BatteryLine.smali and open it,
I wrote lines to make it easier for you to edit. It starts with
Code:
.line 99
const v0, 0xstat_sys_battery_charge_anim100
so change them with your codes.
Example;
Code:
.line 99
const v0, 0x7f020092
Do same for 16 lines and save.
**We're done. Compile SystemUI.apk**
* apks are ready to push to system. Enjoy your new look!
------------------------------------------
>>> Answers to some questions <<<
- Why don't we use stock battery icons?
- Stock SystemUI uses id/statusIcons, I checked statusbarPolicy.java for icons, so we can use any drawable between signal and battery icon but can not put battery% there.
-Why 16 .png icons?
- JB 4.3 uses these icons for level-list. I did same levels & drawables like original. Here is code from original:
Code:
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="4" android:drawable="@drawable/stat_sys_battery_0" />
<item android:maxLevel="15" android:drawable="@drawable/stat_sys_battery_15" />
<item android:maxLevel="35" android:drawable="@drawable/stat_sys_battery_28" />
<item android:maxLevel="49" android:drawable="@drawable/stat_sys_battery_43" />
<item android:maxLevel="60" android:drawable="@drawable/stat_sys_battery_57" />
<item android:maxLevel="75" android:drawable="@drawable/stat_sys_battery_71" />
<item android:maxLevel="90" android:drawable="@drawable/stat_sys_battery_85" />
<item android:maxLevel="100" android:drawable="@drawable/stat_sys_battery_100" />
</level-list>
-Text turned "red" from "white". Why?
- I changed textColor if level < 15 from white to red. Just a colored mod
-Used "hdpi" icons. Only for HDPI?
- No!. I have a hdpi device. For other resolutions put drawables into your related folders and test it. You know pixels are different on hdpi/mdpi etc. so statusbar fits it otomatically.
For other questions just reply to topic.
If you like my work, please hit thanx and donate me!
Happy moddings..
Erhany said:
Signal Icon - BatteryText% - Battery Icon
Hello guys. Welcome to my another topic about battery percentage. I had a lot of PM for putting it to left of battery icon like ICS, JB bla bla.. So here is the final. An alternative way. Special for Gingerbread.
TUTORIAL
->>framework-res.apk<<-
STEP 1
Decompile framework-res.apk >> Go to res/drawable folder and edit stat_sys_battery.xml
stat_sys_battery_charge.xml and also if you have zzz_stat_sys_battery_1.xml with this code:
PHP:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
</level-list>
save all .xml files.
STEP 2
Go to res/values/arrays.xml and find config_statusBarIcons string array.
Here is mine:
Code:
<string-array name="config_statusBarIcons">
[B]<item>battery</item>[/B]
<item>alarm_clock</item>
<item>secure</item>
<item>clock</item>
<item>ime</item>
<item>sync_failing</item>
<item>sync_active</item>
<item>gps</item>
<item>bluetooth</item>
<item>nfc</item>
<item>tty</item>
<item>hac</item>
<item>speakerphone</item>
<item>mute</item>
<item>volume</item>
<item>wifi</item>
<item>cdma_eri</item>
<item>data_connection</item>
[B]<item>phone_evdo_signal</item>
<item>phone_signal</item>[/B]
</string-array>
LOGIC: In here we try to put percentage to right of signal icon and we make invisible stock battery icon.
So normally battery, alarm bla bla items were after phone_signal and I moved them to first.
Basicly move to top what you have after phone_signal and put battery item to top.
And then save.
**We're done with framework-res.apk so compile apk.**
->>SystemUI.apk<<-
STEP 3
Decompile SystemUI.apk >> go to res/layout/status_bar.xml and add <com.erhany.BatteryLine.. after @id/statusIcons.
It will look like that:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
[B]<com.erhany.BatteryLine android:textSize="14.0sp" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_marginLeft="-4.0dip" />[/B]
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon"
android:textColor="#ffffffff" android:gravity="left|center" android:paddingRight="6.0dip"
android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
* This textSize and layout_margin is tested on HDPI device. You may need to change dips after modding done if you have a MDPI device.
STEP 4
Download attachment. You will have 16 .png icons and 2 .smali files.Here is patience step.
C[opy smali files into smali/com/erhany folder. ( First, create erhany folder inside com/ )
Copy icons into drawable-hdpi folder.
*MDPI users need to copy into drawable-mdpi folder but you must find mdpi icons first. It may look bigger if you use hdpi icons. Not tested on mdpi.
STEP 5 - The patience!
Go to res/values/public.xml and add these lines:
PHP:
<public type="drawable" name="stat_sys_battery_0" id="0x7f020083" />
<public type="drawable" name="stat_sys_battery_15" id="0x7f020084" />
<public type="drawable" name="stat_sys_battery_28" id="0x7f020085" />
<public type="drawable" name="stat_sys_battery_43" id="0x7f020086" />
<public type="drawable" name="stat_sys_battery_57" id="0x7f020087" />
<public type="drawable" name="stat_sys_battery_71" id="0x7f020088" />
<public type="drawable" name="stat_sys_battery_85" id="0x7f020089" />
<public type="drawable" name="stat_sys_battery_100" id="0x7f02008a" />
<public type="drawable" name="stat_sys_battery_charge_anim0" id="0x7f02008b" />
<public type="drawable" name="stat_sys_battery_charge_anim15" id="0x7f02008c" />
<public type="drawable" name="stat_sys_battery_charge_anim28" id="0x7f02008d" />
<public type="drawable" name="stat_sys_battery_charge_anim43" id="0x7f02008e" />
<public type="drawable" name="stat_sys_battery_charge_anim57" id="0x7f02008f" />
<public type="drawable" name="stat_sys_battery_charge_anim71" id="0x7f020090" />
<public type="drawable" name="stat_sys_battery_charge_anim85" id="0x7f020091" />
<public type="drawable" name="stat_sys_battery_charge_anim100" id="0x7f020092" />
* Don't use my id codes. Find last drawable code and change manually all. (1-9 .. a-f..)
My last drawable was id="0x7f020082" so continued ..83,..84,..85.. Change and save it.
STEP 6
Go to com/erhany/BatteryLine.smali and open it,
I wrote lines to make it easier for you to edit. It starts with
Code:
.line 99
const v0, 0xstat_sys_battery_charge_anim100
so change them with your codes.
Example;
Code:
.line 99
const v0, 0x7f020092
Do same for 16 lines and save.
**We're done. Compile SystemUI.apk**
* apks are ready to push to system. Enjoy your new look!
------------------------------------------
>>> Answers to some questions <<<
- Why don't we use stock battery icons?
- Stock SystemUI uses id/statusIcons, I checked statusbarPolicy.java for icons, so we can use any drawable between signal and battery icon but can not put battery% there.
-Why 16 .png icons?
- JB 4.3 uses these icons for level-list. I did same levels & drawables like original. Here is code from original:
Code:
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="4" android:drawable="@drawable/stat_sys_battery_0" />
<item android:maxLevel="15" android:drawable="@drawable/stat_sys_battery_15" />
<item android:maxLevel="35" android:drawable="@drawable/stat_sys_battery_28" />
<item android:maxLevel="49" android:drawable="@drawable/stat_sys_battery_43" />
<item android:maxLevel="60" android:drawable="@drawable/stat_sys_battery_57" />
<item android:maxLevel="75" android:drawable="@drawable/stat_sys_battery_71" />
<item android:maxLevel="90" android:drawable="@drawable/stat_sys_battery_85" />
<item android:maxLevel="100" android:drawable="@drawable/stat_sys_battery_100" />
</level-list>
-Text turned "red" from "white". Why?
- I changed textColor if level < 15 from white to red. Just a colored mod
-Used "hdpi" icons. Only for HDPI?
- No!. I have a hdpi device. For other resolutions put drawables into your related folders and test it. You know pixels are different on hdpi/mdpi etc. so statusbar fits it otomatically.
For other questions just reply to topic.
If you like my work, please hit thanx and donate me!
Happy moddings..
Click to expand...
Click to collapse
i am getting bootloops after incoprating you your mod. something missed out Erhany...If you have a working systemui.apk pl upload...Thanks ...great work
nice! I followed your tutorials but got no error. 2 mods in one. lol.
Thank you so d*mn much Erhany!
(credits also to Krisdee for the framework-res from NXT_r1)
pal you made it!!!
you deserve a medal! seriously!
:good:
alextheboss96 said:
pal you made it!!!
you deserve a medal! seriously!
:good:
Click to expand...
Click to collapse
No bro, I am nothing. Erhany deserves a medal. Hehe. Thanks btw.
While compiling systemUI i get this error.What am i missing?
I: Building resources...
D:\Android\apktool-install-windows-r05-ibot\SystemUI\res\values\public.xml:293:
error: Public resource drawable/stat_sys_battery_0 has conflicting type codes fo
r its public identifiers (0x2 vs 0xc).
D:\Android\apktool-install-windows-r05-ibot\SystemUI\res\values\public.xml:294:
error: Public resource drawable/stat_sys_battery_15 has conflicting type codes f
or its public identifiers (0x2 vs 0xc).
@Erhany you did a great job.
Just a question how will I reduce the font size of the battery percentage? Maybe about 50% smaller than on your screenshot.
zgmfx20 said:
nice! I followed your tutorials but got no error. 2 mods in one. lol.
Thank you so d*mn much Erhany!
(credits also to Krisdee for the framework-res from NXT_r1)
Click to expand...
Click to collapse
Can you give me this system ui with a flashable zip?
Sent from my Xperia Arc S using xda app-developers app
petros11 said:
Can you give me this system ui with a flashable zip?
Sent from my Xperia Arc S using xda app-developers app
Click to expand...
Click to collapse
you also need framework-res in tandem to make it work. This will overwrite your framework-res. Here
thanks to this guide sir
You'll be glad to know this works on KitKat as well. :highfive:
need help
i tried it but i am getting this error while compiling systemui.apk.....please help me
qvgahub said:
i tried it but i am getting this error while compiling systemui.apk.....please help me
Click to expand...
Click to collapse
Do you have that image file in your drawable-?dpi folders?
Ticklefish said:
Do you have that image file in your drawable-?dpi folders?
Click to expand...
Click to collapse
thanks a lot ...my mistake was"i renamed it to 75 instead of 71".....but i removed that line from public.xml and compiled it.....it's working great ...than you.:victory:
qvgahub said:
thanks a lot ...my mistake was"i renamed it to 75 instead of 71".....but i removed that line from public.xml and compiled it.....it's working great ...than you.:victory:
Click to expand...
Click to collapse
Any time.
HELP...
Me user SE Xperia X8 with ROM CyanogenMod 7.2 i can add battery text in my status bar, but i can't change position of the battery text on the left icon battery. I am confused, please help
thanks for that icon. I' loved it nice useful thinks are yours..
not working in my gingerbread 2.3.6
bro i did all the editing like you told and framework part is done but whenever i try to recompile system ui its shows an error in recompiling that is-
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[23,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[23,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[37,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[38,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[37,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[52,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[53,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[52,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[54,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[103,15] no viable alternative at input 'filter'
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[103,22] no viable alternative at input 'Landroid/content/IntentFilter;'
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[162,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[162,15] mismatched input '"intent"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/erhany/BatteryLine.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
I: Using Apktool 2.0.0-Beta7 on SystemUI_src
I: Smaling...
Anuj Rana said:
bro i did all the editing like you told and framework part is done but whenever i try to recompile system ui its shows an error in recompiling that is-
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[23,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[23,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[37,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[38,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[37,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[52,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[53,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[52,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[54,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[103,15] no viable alternative at input 'filter'
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[103,22] no viable alternative at input 'Landroid/content/IntentFilter;'
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[162,4] Error for input '.parameter': Invalid directive
../../../mnt/sdcard/SpeedSoftware/Extracted/volume/app/SystemUI_src/smali/com/erhany/BatteryLine.smali[162,15] mismatched input '"intent"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/erhany/BatteryLine.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
I: Using Apktool 2.0.0-Beta7 on SystemUI_src
I: Smaling...
Click to expand...
Click to collapse
You need to use apktool 1.5.2 for these smali files. Apktool 2 is great...but it doesn't like smali files that were made with apktool 1..
Thanks a lot. But how to change Battery text Color ?

[GUIDE]Adding Extra Pages in Settings

Hello Today I Have Bring {GUIDE}.All the Credits goes to PineappleOWL.So I have Modify Some Things.
Downloads-Link in Attachment
Instructions:
Pull Setting from Your Phone
apktool d Settings.apk
Downloads the File and extract
Open AndroidManiFiest
find
HTML:
<uses-library android:name="touchwiz" />
below add this
HTML:
<activity android:name="ExtraPages" />
recomnile settings
decomnile its again
open Pubic.xml from for values/public
find extra_pages note ids code
open smali/com/shadman0/ExtraPages
Find
[HTM]L0x7f04003b[/HTML]
change it to accroding to your Public.xml
open string add this
HTML:
<string name="extra_pages">Extra Pages</string>
befor </resources>
open res/xml/settings.xml
paste this before Resources
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/extra_page" settings:icon="@drawable/milkshake_bar">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.shadman0.ExtraPages" />
</com.android.settings.IconPreferenceScreen>
Credits:
PineappleOWL
Reserved

[MOD][GUIDE] Circle Lenox-Label Circle profile pic and label mod

Hi guys,
today I have something to share which will help you have a circled profile pic on your SystemUI like AOSP Lollipop/Zenui etc. ...... well it's lenox label but not the regular one, I moded it with CircleImageView smalis and make it Circle....... but neither lenox label nor circleimageview is mine both is made by @PineappleOwl .... and as I got he's permission for sharing this cool mod here we are......
Requirements :
1. Brain
2. Patience
3. Experience
4. Apktool or something like it
How to :
1. Decompile your SystemUI.apk
2. Go to res/layout/*wherever you want*
3. Add these :
Code:
<com.lenox.Lenox_Label.Circlelenoxpicture android:gravity="center" android:id="@+id/lenoxpic" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.lenox.Lenox_Label.Circlelenoxlabel android:gravity="center" android:layout_gravity="bottom" android:id="@+id/lenoxlabel" android:background="#bf000000" android:layout_width="wrap_content" android:layout_height="wrap_content" />
4. Extract and attach the contents of "Circle_Lenox_Label_smali.zip" to your decompiled SystemUI
5. Recompile and decompile again
6. Time for id matching :
1. Go to res/values/public.xml and find this:
Code:
<public type="id" name="lenoxlabel" id="*x********" />
now take it's public id and go to smali/com/lenox/Lenox_Label/Circlelenoxlabel.smali and replace the public id you got on line no. 25 with:
Code:
const v7, 0x7f0d0144
2. Again go to res/values/public.xml and find this:
Code:
<public type="id" name="lenoxpic" id="*x********" />
now go to smali/com/lenox/Lenox_Label/Circlelenoxpicture.smali and replace the public id you have on line no.21 with:
Code:
const v4, 0x7f0d0143
7. Now recompile, sign, push with Circle_Lenox_Label.apk, reboot and enjoy !
Link :
Circle_Lenox_Label.apk
Circle_Lenox_Label_smali.zip
Credits :
@PineappleOwl for making everything here, I only combined them
Lenox devs​
NOTES :
1. The app can't be installed as user app so you must push it to system
2. You need to uninstall the original Lenox Label app if you already have it installed
3. You can actually make CircleImageViews with this mod anywhere on your SystemUI as it has CircleImageView smalis...... just instead of <ImageView start your line with this:
Code:
<android.widget.CircleImageView
Original Lenox Label guide​
Reserved
sdeepb said:
NOTES:
1. The app can't be installed as user app so you must push it to system
2. You need to uninstall the original Lenox Label app if you already have it installed
3. You can actually make CircleImageViews with this mod anywhere on your SystemUI as it has CircleImageView smalis...... just instead of <ImageView start your line with this:
Code:
<android.widget.CircleImageView
Link for original Lenox Label guide:
http://forum.xda-developers.com/android/themes/mod-lenox-label-profile-pic-label-mod-t3101642
Click to expand...
Click to collapse
Its nice bro
I 'll do that on JB TW and reports you success
mjraogr said:
Its nice bro
I 'll do that on JB TW and reports you success
Click to expand...
Click to collapse
Tested on my trend....... JB TW with no problems
Great piece of work @sdeepb keep it up!

[GUIDE][LP] How To Add Custom Carrier Label

Ya! I Am Back With Another Guide How To Add Custom Carrier Label Feature In Your Rom
So, You May Think Why New Guide Already We Have Many Guides On This Ya Those Guide Will Not Work Over The LP Based Rom And You May Get Smalis Error After Recompiling The Apk
What U Need To Do This
Apktools
Notepad ++
SystemUI.apk
Settings.apk
Some Working Brain
Process To Add Them
1. Download The Custom Carrier Lable.zip Which Is Attached Below To The Thread
2. Decompile The Settings.apk & SystemUI.apk
Things To Be Done In SystemUI
After Decompiling
Merge The Files Which Are Provided In Zip
After Merging
Go To res/layout/status_bar.xml
Now Add
Code:
<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Near
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
Finally It Should Look Like
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
[COLOR="Red"]<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
Now Move To res/values/styles.xml
Add Below Styles At Last
Code:
<style name="TextAppearance.StatusBar.CustomLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">13.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
Now Recompile The Apk And Again Decompile It
And Move To res/values/public.xml
Find Line
Code:
[COLOR="Red"]<public type="id" name="custom_label"[/COLOR] id="??????????" />"
Now Copy The ??????????(Value eg: <public type="id" name="custom_label" id="0x7f0e018f" />)
Move To smali/com/adi/rom/interface/customcarrierlabel
Find For 0x7f0e018f And Replace It By U R value Which U Got In res/values/public.xml <public type="id" name="custom_label" id="??????????"
Part Of SystemUI As Done Recompile It And U R Done
But Wait V Left One More Settings.apk
Things To Be Done In Settings
After Decompiling
Move To res/xml/display_settings.xml (Here V R Adding It Under The display_settings U Add Wherever You Want)
Add Below Line In It
Code:
<PreferenceScreen android:title="Show carrier label">
<intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
</PreferenceScreen>
Therefore It May Look Like
Code:
<PreferenceScreen android:title="@string/gsensor_title" android:key="gsensor">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.bird.settings.GSensorCalibrationActivity" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/bird_small_screen" android:key="smallscreen_on" android:defaultValue="true" />
[COLOR="Red"]<PreferenceScreen android:title="Show carrier label">
<intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
</PreferenceScreen>[/COLOR]
</PreferenceScreen>
Ya Done Recompile It
Now Push SystemUI.apk ,Settings.apk & StatusbarLabel.apk To Your Rom
Credits:
All Credits Goes To Mediatek Android Art and Dev Reborn Group (Where I Got Smails )
I Just Made Smali To Suport Which Apktool 2.0.2 & Made Guide For Lp Base
Hit Thanks If Guide Is Use full For You​
YO! Awesome
Nice work bro! Hoping to see more You should really apply for recognized contributor now :v
Nice work :good:
thx,
I try it on an very old ICS phone, it working fine xD

Categories

Resources