[GUiDE][CM9][MODS]Transparent StatusBar, Center Clock, Carrier Logo.. - Optimus One, P500, V Themes and Apps

Transparent - SemiTransparent Statusbar
{
"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"
}
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
/SystemUI/smali/com/android/systemui/statusbar/StatusBar.smali
Click to expand...
Click to collapse
5. Search this line:
Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
6. Above this line, change :
Code:
const/16 v16, 0x4
To:
Code:
const/16 v16, -0x3
7. Save the file
8. Navigate to your decompiled folder and go to
SystemUI/res/values/drawables.xml
Click to expand...
Click to collapse
9. Search this line:
Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
10. Change the value of status_bar_background
Completely transparent:
Code:
<item type="drawable" name="status_bar_background">#00FFFFFF</item>
50% transparent:
Code:
<item type="drawable" name="status_bar_background">#7f000000</item>
11. Save the file
12. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
13. Sign the new apk and rename back to: SystemUI.apk
14. Push the new SystemUI.apk to your phone
15. Enjoy
Custom carrier logo in status bar
How to add as a feature to CM9/AOKP like MIUI:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
SystemUI/res/layouts/status_bar.xml
Click to expand...
Click to collapse
5. Find the line that starts with this:
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
6. Replace the new line with this line:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Center Clock:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
SystemUI/res/layouts/status_bar.xml
Click to expand...
Click to collapse
5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.Clock
5. Delete the whole line but only between brackets
6. Next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
7. Press Enter to create an empty line
8. Place cursor at the beginning of that empty space and paste this line:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
9. The next thing is to find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
10. After "@id/ticker" yiuo have to add this drawable (is not neccesary to create image is already exist):
Code:
android:background="@drawable/status_bar_bg_tile"
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Center Date:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
SystemUI/res/layouts/status_bar_expanded.xml
Click to expand...
Click to collapse
5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
5. Replace whole line by this one
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
6. Save the file
7. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
8. Sign the new apk and rename back to: SystemUI.apk
9. Push the new SystemUI.apk to your phone
10. Enjoy
Fix for small space between WiFI and Signal icon:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to the
SystemUI/res/layout/signal_cluster_view.xml
Click to expand...
Click to collapse
5. Find the line started
Code:
<FrameLayout android:id="@id/wifi_combo"
6. Replace whole line by this one:
Code:
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="1.0dip">
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Whole this MOD's looks like in status_bar.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<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:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<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_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.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="fill_parent" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" 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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</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:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" 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>

Download Section:
Center Clock & Center Date - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9
Center Clock & Center Date - FULL TRANSPARENT - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9
Center Clock & Center Date - SEMI TRANSPAREMT - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9

**reserved**

Hey master, can you attach the systemui with center date and center clock ONLY from tinystream?

dhruv.always said:
Hey master, can you attach the systemui with center date and center clock ONLY from tinystream?
Click to expand...
Click to collapse
See Download section

mastershefis said:
Transparent - SemiTransparent Statusbar
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Search this line:
Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
6. Above this line, change :
Code:
const/16 v16, 0x4
To:
Code:
const/16 v16, -0x3
7. Save the file
8. Navigate to your decompiled folder and go to
9. Search this line:
Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
10. Change the value of status_bar_background
Completely transparent:
Code:
<item type="drawable" name="status_bar_background">#00FFFFFF</item>
50% transparent:
Code:
<item type="drawable" name="status_bar_background">#7f000000</item>
11. Save the file
12. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
13. Sign the new apk and rename back to: SystemUI.apk
14. Push the new SystemUI.apk to your phone
15. Enjoy
Custom carrier logo in status bar
How to add as a feature to CM9/AOKP like MIUI:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Find the line that starts with this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel
6. Add a new line above that line and insert this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Center Clock:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.Clock
5. Delete the whole line but only between brackets
6. Next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
7. Press Enter to create an empty line
8. Place cursor at the beginning of that empty space and paste this line:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
9. The next thing is to find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
10. After "@id/ticker" yiuo have to add this drawable (is not neccesary to create image is already exist):
Code:
android:background="@drawable/status_bar_bg_tile"
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Center Date:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
5. Replace whole line by this one
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
6. Save the file
7. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
8. Sign the new apk and rename back to: SystemUI.apk
9. Push the new SystemUI.apk to your phone
10. Enjoy
Fix for small space between WiFI and Signal icon:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to the
5. Find the line started
Code:
<FrameLayout android:id="@id/wifi_combo"
6. Replace whole line by this one:
Code:
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="1.0dip">
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy
Click to expand...
Click to collapse
great work...thnx for sharing some knowledge...with some of us newbies...:good::good:

@master.. works excellent. thanks!

Can u also add semi transparent status bar with your center clock mod
Sent from my WT19i using xda premium

Somyab said:
Can u also add semi transparent status bar with your center clock mod
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
What ROM?
Please GUYS if you want some request post your ROM and version, or post SystemUI.apk with framework-res.apk

mastershefis said:
What ROM?
Please GUYS if you want some request post your ROM and version, or post SystemUI.apk with framework-res.apk
Click to expand...
Click to collapse
Latest release by hephappy
Sent from my WT19i using xda premium

Somyab said:
Latest release by hephappy
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
See down section, already did..
Sent from my LG-P500

mastershefis said:
Custom carrier logo in status bar
How to add as a feature to CM9/AOKP like MIUI:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Find the line that starts with this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel
6. Add a new line above that line and insert this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)
Click to expand...
Click to collapse
i can't find those lines....they are not present there

mastershefis said:
See down section, already did..
Sent from my LG-P500
Click to expand...
Click to collapse
Yeah I just checked it after my reply its working great
Sent from my WT19i using xda premium

@Master you're really amazing thanks!!!!! I'm gonna try all
Enviado desde mi LG-P500h usando Tapatalk 2

26jtyjn said:
i can't find those lines....they are not present there
Click to expand...
Click to collapse
Guide is updated now..

Woww, Can you make onscreen buttons mod for tiny stream with 32 dpi, anything bigger than that makes our screen so small,
PS - If possible , also add 1 soft key for option button
Anyways, U RocKK!!

And undo patch?
Sent from my LG-P500 using xda premium

vk2r said:
And undo patch?
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Just replace the SystemUI.apk in /system/app with the one from original ROM zip

Great guide Master thanxxx..surely help new ones here

Hi there, i am trying to compile but keep getting the below errors
D:\Patches>apktool b -f systemui systemui2.apk
I: Smaling...
I: Building resources...
invalid resource directory name: D:\Patches\systemui\res/drawable-sw600dp-mdpi
invalid resource directory name: D:\Patches\systemui\res/layout-sw600dp
invalid resource directory name: D:\Patches\systemui\res/values-sw600dp
invalid resource directory name: D:\Patches\systemui\res/values-sw600dp-port
invalid resource directory name: D:\Patches\systemui\res/values-sw720dp
invalid resource directory name: D:\Patches\systemui\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\user\AppData\Local\Temp\APK
TOOL1904243979116572953.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, D:\Pa
tches\systemui\res, -M, D:\Patches\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Sky\AppData\Local\Temp\APKTOOL1904243979116572953.tmp, -I, C:\Users\user\apk
tool\framework\1.apk, -S, D:\Patches\systemui\res, -M, D:\Patches\systemui\Andro
idManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I tried different versions of apktool.
Followed all the steps correctly loaded framework etc.
Any idea?

Related

editing lockscreen xml file

i decompiled framework-res.apk, removed this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
from keyguard_screen_unlock_portrait.xml in an attempt to remove the clock from the lockscreen.
i recompiled, signed, pushed back to system/framework. rebooted and everything worked just fine. except the clock is still there...
any ideas on how to remove that thing?
side note, i am trying to make the lockscreen transparent instead of showing the background image. in that same xml i located the place where i should have been able to make this change. the hex code was "70000000". first two characters being the alpha code i thought changing it to "00" would make it transparent. instead, it made it black.. would "ff" make it transparent?
You edit the wrong file.
This is the one you need:
"keyguard_screen_tab_unlock.xml"
thanks. ill try later.

[GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...

CREDITS:-
Master&Slave™ FOR MAKING ME UNDERSTAND ABOUT FEW STATUS BAR TWEAKS.
b16h22 FOR Settings Shortcut in StatusBar.
petrukgrinder for jelly bean style time, date in status bar
toxic77 for ICS Sliders and ICS Progress bar
evanlocked for Recent app Shortcut in StatusBar
WHAT YOU NEED:-
1. A COMPUTER AND A ROOTED AND DEODEXED SAMSUNG GALAXY ACE PLUS...
2. FILES MENTIONED IN EACH MOD CAN BE FOUND IN system/app OR system/framework FOLDERS OR OTHER FOLDERS AS MENTIONED IN EACH MOD.
3. LEARN EDITING APK FILES WITH apktool or similar. try this guide by me for how to compile/decompile apk files
4. notepad++ TO EDIT XML AND OTHER FILES.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~STATUS BAR MODS~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​1. Center Clock
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar.xml with notepad++
Search for this line and remove it:-
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Search for this line
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
Paste these lines after the above line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Save the file and close it. The whole status_bar.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<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" />
</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="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.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="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
Now compile back apk file and push back to system/app.
2. No Clock
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar.xml with notepad++
Search for this line and remove it:-
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Save the file and close it. The whole status_bar.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<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" />
</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="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.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="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
Now compile back apk file and push back to system/app.
3. No Date
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar.xml with notepad++
Search for this line and remove it:-
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Save the file and close it. The whole status_bar.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<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" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</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="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.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="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.StatusBarView>
Now compile back apk file and push back to system/app.
4. Pulldown Clock/Center Clear Button
4.1 Pulldown Clock
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
Replace above line with this
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Save the file and close it. The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
Now compile back apk file and push back to system/app.
4.2 Center Clear Button
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
Search for this line
Code:
</com.android.systemui.statusbar.NotificationLinearLayout>
Paste these lines before the above line
Code:
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
Save the file and close it. The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
Now compile back apk file and push back to system/app.
5. Remove Carrier logo
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Save the file and close it. The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
Now compile back apk file and push back to system/app.
6. Carrier logo in bottom of status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Save the file and close it. now open status_bar_tracking.xml with notepad++
search for this line
Code:
<ImageView android:layout_gravity="bottom" android:id="@id/close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
replace above line with this line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
Save the file and close it.
The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
and The whole status_bar_tracking.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/tracking_background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Now compile back apk file and push back to system/app.
7. Add settings shortcut in status bar
GO HERE​
8. Jelly bean style Date, Time and Day on Status Bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Replace above line with this line
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save the file and close it.
Download Jelly.zip from attachments of this post
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Now compile back apk file and push back to system/app.
{
"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"
}
9. Add Recent App shortcut in status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\values\ and open ids.xml with notepad++
Add this line in end of code but before </resources>
Code:
<item type="id" name="recent_app_button">false</item>
Now go to SystemUI.apk\res\layout\ and open statusbar_expanded.xml with notepad++
Search for 'clear' and whole code will be like this or different
Code:
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:paddingRight="6.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
Add this line above the code mentioned above
Code:
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toRightOf="@id/settings_button" />
Save the file and close it.
Download sourcei.zip from attachments of this post
Extract sourcei.zip and copy RecentAppButton.smali to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
and copy btn_recent_app.9.png to SystemUI.apk\res\drawable-mdpi\(here)
Now compile back apk file and push back to system/app.
10. Jelly Bean 4.2.2 Status bar on Gingerbread.
Screenshots:
Click to expand...
Click to collapse
Guide:
Go Here​
Reserved for more status bar stuff
Reserved for even more status bar stuff
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~System Apps Mods~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​
1. Remove (ANNOYING) SMS LOG from Call log
Decompile LogsProvider.apk with apktool or similar.
Go to LogsProvider.apk\smali\com\sec\android\provider\logsprovider\ and open LogsProvider.smali with notepad++
Search for word "SMS"
Remove the whole code. As shown below
Code:
.line 216
sget-object v0, Lcom/sec/android/provider/logsprovider/LogsProvider;->sURIMatcher:Landroid/content/UriMatcher;
const-string v1, "logs"
const-string v1, "sms"
const/16 v2, 0x9
invoke-virtual {v0, v3, v1, v2}, Landroid/content/UriMatcher;->addURI(Ljava/lang/String;Ljava/lang/String;I)V
Save the file and close it.
Now compile back apk file and push back to system/app.
2. Add own wallpapers to default wallpaper gallery.
Decompile TwWallpaperChooser.apk with apktool or similar.
resize wallpaper in two copies with some tool like "any pic image resizer". one copy of wallpaper of around 640x480 dimension and second copy of wallpaper of around 107x80 dimension(these values depends on whether your device is hdpi, mdpi, ldpi etc)(not much important only for proper re-sizing)
Rename wallpaper of 1st copy to wallpaper_name and wallpaper of 2nd copy to wallpaper_name_small
now copy these wallpapers to TwWallpaperChooser.apk\res\drawable-mdpi\
Go to TwWallpaperChooser.apk\res\values-mdpi\ and open arrays.xml with notepad++
Search for line
Code:
</string-array>
Add this line for wallpaper copied in drawable-mdpi from first copy
Code:
<item>wallpaper_name</item>
note: here we need to add only name of wallpaper from first copy. we won't add name of wallpaper from second copy i.e. wallpaper_name_small
Now whole arrays.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="wallpapers">
<item>wallpaper_lock</item>
<item>wallpaper_22</item>
<item>wallpaper_23</item>
<item>wallpaper_name</item>
</string-array>
</resources>
Save the file and close it.
Now compile back apk file and push back to system/app.
3. CRT OFF ANIMATION.
Decompile framework-res.apk with apktool or similar.
Go to framework-res.apk\res\values\ and open bools.xml with notepad++
Search for line
<bool name="config_animateScreenLights">true</bool>
Click to expand...
Click to collapse
Replace true with false. As shown below
<bool name="config_animateScreenLights">false</bool>
Click to expand...
Click to collapse
Save the file and close it.
Now compile back apk file and push back to system/framework.
Now open your build.prop with root explorer or similar on your phone.
search for
debug.sf.hw=1
Click to expand...
Click to collapse
add # infront of this line. Like this
#debug.sf.hw=1
Click to expand...
Click to collapse
save it and restart your phone.
4. ICS STYLE Progress bar and Sliders.
Decompile framework-res.apk with apktool or similar.
Go to framework-res.apk\res\drawable\ and open progress_horizontal.xml with notepad++
Replace Whole code with this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background" android:drawable="@drawable/progress_bg_holo_light" />
<item android:id="@id/secondaryProgress">
<scale android:drawable="@drawable/progress_secondary_holo_light" android:scaleWidth="100%" />
</item>
<item android:id="@id/progress">
<scale android:drawable="@drawable/progress_primary_holo_light" android:scaleWidth="100%" />
</item>
</layer-list>
Save the file and close it.
Now open progress_indeterminate_horizontal.xml
and replace whole code with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo1" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo2" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo3" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo4" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo5" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo6" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo7" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo8" />
</animation-list>
Save the file and close it.
Go to framework-res.apk\res\values\ and open styles.xml with notepad++
Search for Widget.ProgressBar.Horizontal and select whole code starting from <style name="Widget.ProgressBar.Horizontal" to </style>
Now replace it with this code
Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">16.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">16.0dip</item>
</style>
Search for Widget.SeekBar and select whole code starting from <style name="Widget.SeekBar" parent="@style/Widget"> to </style>
Now replace it with this code
Code:
<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">13.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">13.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">16.0dip</item>
</style>
Save the file and close it.
Now download progress_holo.zip from here and ics progress bar.zip from here
Extract files from both zips to res/drawable-mdpi/(here)
Now compile back apk file and push back to system/framework.
5. Modifying Settings app.
Screenshots:
Click to expand...
Click to collapse
Click to expand...
Click to collapse
5.1 Adding Categories in settings menu
Decompile Settings.apk with apktool or similar.
Go to Settings.apk\res\xml\ and open settings.xml with notepad++
Add this in it anywhere you want like in screenshot. (change ATOM Settings to whatever you want)
Code:
<PreferenceCategory android:title="ATOM Settings" />
5.2 Adding Options in settings menu
Decompile app you want to launch from the settings with apktool or similar. (in may case it is lidroid parts)
Open AndroidManifest.xml in notepad++ and in 2nd line search for package="com.something.else" (package="com.lidroid.parts" in my case)
Decompile Settings.apk with apktool or similar.
Go to Settings.apk\res\drawable-mdpi\ and copy and paste icon from the app. Remember the name of icon.
Go to Settings.apk\res\xml\ and open settings.xml with notepad++
Add this code where you want.
Code:
<com.android.settings.IconPreferenceScreen android:title="Atom Settings" settings:icon="@drawable/ic_gaple_part">
<intent android:targetPackage="com.lidroid.parts" android:action="android.intent.action.MAIN" android:targetClass="com.lidroid.parts.MainActivity" />
</com.android.settings.IconPreferenceScreen>
Change ic_gaple_part with name of your icon.
Change com.lidroid.parts to what it was yours in 2nd step.
5.3 Adding Text in About Phone section
Go Here​
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~Misc. Mods~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​
1. CHANGING HARD KEY FUNCTION (REMAPPING BUTTON)
1. open /system/usr/keylayout/[phone model]-keypad.kl with notepad++
(Some phone may have different names, but it will always end with "keypad.kl)
it will look like this --
Code:
# Copyright (c) 2011, Code Aurora Forum.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# [url]http://www.apache.org/licenses/LICENSE-2.0[/url]
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 HOME WAKE
key 60 SOFT_RIGHT WAKE
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 ENDCALL WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 212 SLASH
key 213 DEL WAKE_DROPPED
key 355 DEL WAKE_DROPPED
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 28 ENTER
key 56 ALT_LEFT
key 42 SHIFT_LEFT
key 215 AT
key 57 SPACE
key 53 SLASH
key 127 SYM
key 100 ALT_RIGHT
key 399 GRAVE
HERE YOU WILL FIND 3 ROWS...
FIRST ROW
As you can see, there are different attributes defaultly assigned to each key. like this
Code:
key 102 #FOR HOME
key 139 #FOR MENU
key 158 #FOR BACK
key 115 #FOR VOLUME_UP
key 114 #FOR VOLUME_DOWN
SECOND ROW
Specific application/action launchers:
Code:
HOME #Launches "Home"
MENU #Launches "Menu"
BACK #Takes you back to the last activity
SEARCH #Launches "Universal Search"
CALL #Launches the "Phone" activity and corresponding .apk or initiates a call
ENDCALL #Ends a call
CAMERA #Launches "Camera" activity and corresponding .apk
FOCUS #Initiates Auto-Focus while using the Camera
VOLUME_UP #Self explanatory
VOLUME_DOWN #Self explanatory
THIRD ROW
And attributes saying if it should wake the phone at button push to complete the action, or if it should just complete the action without waking the screen.
Code:
WAKE #Completes the action without waking the screen
WAKE_DROPPED #Wakes the phone to complete the action
Click to expand...
Click to collapse
2. NOW WE WILL EDIT SECOND AND/OR THIRD ROW
Erase the center row value for any key to completely disable it. To reassign the key, replace the center row value with another one from the same row. Change the right row value to either "WAKE" or blank to enable the wake function. Do not modify the left row.
NOTE: don't edit left row i.e. first row which contains specific key identity number.
FOR EXAMPLE I DO THESE CHANGES
DEFAULT VALUES ---
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
CHANGED VALUES ---
Code:
key 115 CAMERA WAKE
key 114 FOCUS WAKE
NOW VOLUME UP KEY WILL WORK AS CAMERA KEY AND VOLUME DOWN KEY WILL WORK AS FOCUS KEY....
NOTE: all words should be in BOLD letters i.e. capital letters...
I don't see any difference between this and 'StatusBar Tweaks' thread by Master&Slave™
varun.chitre15 said:
I don't see any difference between this and 'StatusBar Tweaks' thread by Master&Slave™
Click to expand...
Click to collapse
yes those status bar mods are same but i am currently adding more mods also more status bar mods which are not from him...
How to push those apk back??? Can I replace them using Root browser??
---------- Post added at 11:12 PM ---------- Previous post was at 10:56 PM ----------
nrgmalik said:
How to push those apk back??? Can I replace them using Root browser??
Click to expand...
Click to collapse
Also, do I need to decompile it using framework-res.apk or systemui.apk???which one??
Also, i have a Ace Duos(GT-S6802) mdpi, so dimensions given by you in twwallpaperchooser must be same for my phone? Right?
Yes you can replace apk's with root explorer...
I don't understand what you are talking of systemui.apk and framework-res.apk...
If you are talking of while Decompileing apk you will need to install framework-res.apk...
YES you will have to resize images to same dimention...
Sent from my GT-S7500 using xda premium
lokeshsaini94 said:
Yes you can replace apk's with root explorer...
I don't understand what you are talking of systemui.apk and framework-res.apk...
If you are talking of while Decompileing apk you will need to install framework-res.apk...
YES you will have to resize images to same dimention...
Sent from my GT-S7500 using xda premium
Click to expand...
Click to collapse
Sorry for asking about this but I think it will cause problem.
I have tried decompiling worked perfect. The problem starts when I recompile. After recompilation when I extracted both the apk's (original and recompiled one) some of the xml's which were edited are missing.
Edit: I used 7zip for extracting and compressing, but the folder res/values/ is missing . It is also not there in the original apk.
Sent from my GT-S6802 using xda premium
That problem is related to tool you are using so if you ask there than it might help... i can't help you much ...
Or try some other tool ...
Sent from my GT-S7500 using xda premium
lokeshsaini94 said:
That problem is related to tool you are using so if you ask there than it might help... i can't help you much ...
Or try some other tool ...
Sent from my GT-S7500 using xda premium
Click to expand...
Click to collapse
Give me a link to the tool you are using.
Sent from my GT-S6802 using xda premium
I don't have my computer so I can't give you links but try apktool from its official we site... Or apk multi - tool. Or vts... There are many more just search ...
Sent from my GT-S7500 using xda premium
nrgmalik said:
Give me a link to the tool you are using.
Sent from my GT-S6802 using xda premium
Click to expand...
Click to collapse
i think now i know why you get those errors... use apktool to decompile apk's and when you compile them back open both orignal and moded in 7zip or similar and copy META-INF folder and AndroidManifest.xml file from orignal to moded without extracting them... just drag and drop... and now you won't get those force closes...
here is the guide to decompile apk files my way by me... http://forum.xda-developers.com/show....php?t=1954886
Guide updated!!!!!!!!
Thanks bro, i'll try it
Error?
I got this error when I try to re-compile my systemui.apk
I'm on Xperia Ray Gingerbread, unlock, rooted
Code:
C:\ANDROID STUFFS\APKTOOL>apktool b systemui
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\ANDROID STUFFS\APKTOOL\systemui\res\layout\status_bar_tracking.xml:6: error:
Error: No resource found that matches the given name (at 'id' with value '@id/ca
rrier_label_background').
C:\ANDROID STUFFS\APKTOOL\systemui\res\layout\status_bar_tracking.xml:7: error:
Error: No resource found that matches the given name (at 'textColor' with value
'@color/status_bar_carrier_label_text').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\alex\AppData\Local\Temp\AP
KTOOL7935870667486649461.tmp, -I, C:\Users\alex\apktool\framework\1.apk, -S, C:\
ANDROID STUFFS\APKTOOL\systemui\res, -M, C:\ANDROID STUFFS\APKTOOL\systemui\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\alex\AppData\Local\Temp\APKTOOL7935870667486649461.tmp, -I, C:\Users\alex\a
pktool\framework\1.apk, -S, C:\ANDROID STUFFS\APKTOOL\systemui\res, -M, C:\ANDRO
ID STUFFS\APKTOOL\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\ANDROID STUFFS\APKTOOL>
Help.........
I'm trying to move the carrier logo to the bottom of the status bar
Here's my systemui.apk
crt mod ans sms mod ...
lokeshsaini94 said:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~system app mods~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​
1. Remove (ANNOYING) SMS LOG from Call log
Decompile LogsProvider.apk with apktool or similar.
Go to LogsProvider.apk\smali\com\sec\android\provider\logsprovider\ and open LogsProvider.smali with notepad++
Search for word "SMS"
Remove the whole code. As shown below
Code:
.line 216
sget-object v0, Lcom/sec/android/provider/logsprovider/LogsProvider;->sURIMatcher:Landroid/content/UriMatcher;
const-string v1, "logs"
const-string v1, "sms"
const/16 v2, 0x9
invoke-virtual {v0, v3, v1, v2}, Landroid/content/UriMatcher;->addURI(Ljava/lang/String;Ljava/lang/String;I)V
Save the file and close it.
Now compile back apk file and push back to system/app.
3. CRT OFF ANIMATION.
Decompile framework-res.apk with apktool or similar.
Go to framework-res.apk\res\values\ and open bools.xml with notepad++
Search for line
Replace true with false. As shown below
Save the file and close it.
Now compile back apk file and push back to system/framework.
Now open your build.prop with root explorer or similar on your phone.
search for
add # infront of this line. Like this
save it and restart your phone.
[/LIST]
Click to expand...
Click to collapse
your crt animation mod is incomplete....
after recompiling the modded framework.res.apk you have to put META-INF from original apk to the modded one
otherwise you will get bootloops
and mod for sms provider.apk is fabulous
thnks for that too:good:

[Q] anyone know how to move clock in the statusbar to center?

i want to move clock in the statusbar to center. but i don't know how to do it. i am very thankful if you can tell me the steps.
i'm using stock dxlf
First if you haven't already deodex your rom
then use apktool to decompile SystemUI.apk
goto res/layout/status_bar.xml and open in notpad++
find the line for the clock
change its gravity to center so it looks like the code below
Code:
<LinearLayout android:textColor="#ff09a9ec" android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="26.5dip" android:textStyle="bold" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="false" android:layout_weight="1.0" />
</LinearLayout>
recompile
put in a flashable zip and flash in cwm with system mounted

How To Make Lidroid Toggles Grid View

Help Me..
theres loads of guides for this if you search
look at my xml file and put something like it into your 2nd layout in your status bar
dont just copy it as it wont recopile without the correct drawable vaule pngs
you can get them from my statusbar
http://forum.xda-developers.com/showthread.php?p=46188493#post46188493
marcussmith2626 said:
theres loads of guides for this if you search
look at my xml file and put something like it into your 2nd layout in your status bar
dont just copy it as it wont recopile without the correct drawable vaule pngs
you can get them from my statusbar
http://forum.xda-developers.com/showthread.php?p=46188493#post46188493
Click to expand...
Click to collapse
i already made Two layout..
But in ur statusbR There is only 6 stock toggles .i want for 15toggles
Himan Boro said:
i already made Two layout..
But in ur statusbR There is only 6 stock toggles .i want for 15toggles
Click to expand...
Click to collapse
just add the rest - you have the smali in the quickpanel folder - just do the same but point to that smali and @id
marcussmith2626 said:
just add the rest - you have the smali in the quickpanel folder - just do the same but point to that smali and @id
Click to expand...
Click to collapse
Bro m not able to get it clearly..
If u r free..Plx Post A Guide regarding that
Himan Boro said:
Bro m not able to get it clearly..
If u r free..Plx Post A Guide regarding that
Click to expand...
Click to collapse
iv not done it before and I only post things Iv tested myself
I can give you an idea - the rest you will have to work out yourself
see for example this code for the gps toggle
Code:
<FrameLayout android:background="@drawable/tile_toggle" android:layout_width="83.0px" android:layout_height="80.0px" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.quickpanel.GpsSettingButton[/COLOR] android:textSize="0.0dip" android:textStyle="normal" android:textColor="#00ffffff" android:gravity="center" android:id="[COLOR="Red"]@id/quickpanel_gps_btn_text[/COLOR]" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="58.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent"[COLOR="Red"] android:text="@string/quickpanel_gps_text"[/COLOR] />
<ImageView android:layout_gravity="center_horizontal" [COLOR="Red"]android:id="@id/quickpanel_gps_btn_icon[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0px" [COLOR="Red"]android:src="@drawable/quickpanel_icon_gps_off[/COLOR]" />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="83.0px" android:layout_height="wrap_content" android:layout_marginBottom="12.0px" android:text="" android:singleLine="true" android:layout_alignParentBottom="true" />
</FrameLayout>
see the code that I have marked in red
change the com.android........ part to the smali you will find in com.android.systemui.statusbar.quickpanel to the one you want
eg
Code:
<com.android.systemui.statusbar.quickpanel.NameOfTheSmali
the rest find the values that relates to the toggle in the id.xml and strings.xml and change them
same with the drawable values for the pngs
marcussmith2626 said:
iv not done it before and I only post things Iv tested myself
I can give you an idea - the rest you will have to work out yourself
see for example this code for the gps toggle
Code:
<FrameLayout android:background="@drawable/tile_toggle" android:layout_width="83.0px" android:layout_height="80.0px" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.quickpanel.GpsSettingButton[/COLOR] android:textSize="0.0dip" android:textStyle="normal" android:textColor="#00ffffff" android:gravity="center" android:id="[COLOR="Red"]@id/quickpanel_gps_btn_text[/COLOR]" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="58.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent"[COLOR="Red"] android:text="@string/quickpanel_gps_text"[/COLOR] />
<ImageView android:layout_gravity="center_horizontal" [COLOR="Red"]android:id="@id/quickpanel_gps_btn_icon[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0px" [COLOR="Red"]android:src="@drawable/quickpanel_icon_gps_off[/COLOR]" />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="83.0px" android:layout_height="wrap_content" android:layout_marginBottom="12.0px" android:text="" android:singleLine="true" android:layout_alignParentBottom="true" />
</FrameLayout>
see the code that I have marked in red
change the com.android........ part to the smali you will find in com.android.systemui.statusbar.quickpanel to the one you want
eg
Code:
<com.android.systemui.statusbar.quickpanel.NameOfTheSmali
the rest find the values that relates to the toggle in the id.xml and strings.xml and change them
same with the drawable values for the pngs
Click to expand...
Click to collapse
ok..i will give a try to it....

[TUTORIAL][KK]JB style quick settings for KitKat

Inspired by AndroPlus's True Quick Settings, in this thread, I'll show you how to mod your KitKat SystemUI to get JellyBean style Quick Settings.
Files you need to edit
Code:
res/layout/somc_quick_settings_tab.xml
res/layout/somc_notifications_tab.xml
res/layout/somc_tabs_status_bar_expanded.xml
res/layout/status_bar_notification_tools_button.xml
res/values/dimens.xml
res/values/integers.xml
Requirements:
- ApkTool (I use this)
- Notepad++
- Patience
1. Decompile your SystemUI.apk
2. We must move the quick settings tab to notifications tab. So, go to somc_quick_settings_tab.xml and copy the Linear layout
Code:
<LinearLayout android:orientation="vertical" android:id="@id/tools_rows" android:layout_width="fill_parent" android:layout_height="wrap_content" />
3. Next edit the somc_notifications_tab.xml and add the above code and now it looks something like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/notifications_tab" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
[COLOR="Red"]<LinearLayout android:orientation="vertical" android:id="@id/tools_rows" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
4. To add the divider line which divides the quick settings and the time, copy this and paste it in somc_notifications_tab.xml below the Linear layout we copied earlier
Code:
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_divider_height" />
It looks like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/notifications_tab" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:id="@id/tools_rows" android:layout_width="fill_parent" android:layout_height="wrap_content" />
[COLOR="Red"]<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_divider_height" />[/COLOR]
5. Now to move the clock below the quick settings, go to somc_tabs_status_bar_expanded.xml and cut this line
Code:
<include layout="@layout/status_bar_expanded_header" />
Paste it to somc_notifications_tab.xml below the divider line code. Like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/notifications_tab" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:id="@id/tools_rows" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_divider_height" />
[COLOR="Red"]<include layout="@layout/status_bar_expanded_header" />[/COLOR]
<include layout="@layout/status_bar_expanded_stylus_actions" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
6. Make another copy of somc_notifications_tab.xml and rename it to somc_quick_settings_tab.xml and replace it with the original somc_quick_settings_tab.xml. So that both these files are the same.
7. To remove the top tabs [Notifications Quick settings], edit somc_tabs_status_bar_expanded.xml. Change this
Code:
<com.sonymobile.systemui.statusbar.tools.ToolsTabWidget android:orientation="horizontal" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />
to
Code:
<com.sonymobile.systemui.statusbar.tools.ToolsTabWidget android:orientation="horizontal" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" />
Also delete this line from somc_tabs_status_bar_expanded.xml
Code:
<include layout="@layout/somc_quick_settings_tab" />
8. To remove top space above quick settings icons, change these lines in status_bar_notification_tools_button.xml.
From
Code:
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
to
Code:
<FrameLayout [COLOR="Red"]android:layout_marginTop="@dimen/qs_tile_margin_above_icon"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content">
For single line text, change this
Code:
<TextView android:textSize="@dimen/status_bar_tools_button_label_text_size" android:gravity="top|center" android:id="@id/tools_button_text" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/status_bar_tools_button_margin_bottom" android:lines="2" android:scrollHorizontally="false" android:includeFontPadding="false" />
to
Code:
<TextView [COLOR="Red"]android:layout_marginBottom="@dimen/qs_tile_margin_below_icon"[/COLOR] android:textSize="@dimen/status_bar_tools_button_label_text_size" android:gravity="top|center" android:id="@id/tools_button_text" android:layout_width="fill_parent" android:layout_height="fill_parent" android:lines="[COLOR="Red"]1[/COLOR]" android:scrollHorizontally="false" android:includeFontPadding="[COLOR="Red"]true[/COLOR]" [COLOR="Red"]android:singleLine="true"[/COLOR]/>
9. Edit dimens.xml.
From
Code:
<dimen name="notification_panel_tools_row_height">100.0dip</dimen>
<dimen name="status_bar_tools_button_label_text_size">12.0dip</dimen>
<dimen name="qs_tile_margin_above_icon">27.0dip</dimen>
<dimen name="qs_tile_margin_below_icon">17.0dip</dimen>
to
Code:
<dimen name="notification_panel_tools_row_height">[COLOR="Red"]57.0dip[/COLOR]</dimen>
<dimen name="status_bar_tools_button_label_text_size">[COLOR="Red"]10.0dip[/COLOR]</dimen>
<dimen name="qs_tile_margin_above_icon">[COLOR="Red"]-22.0dip[/COLOR]</dimen>
<dimen name="qs_tile_margin_below_icon">[COLOR="Red"]-12.0dip[/COLOR]</dimen>
10. Edit integers.xml
From
Code:
<integer name="config_maxToolItemsInARow">4</integer>
<integer name="config_maxToolItemsInGrid">16</integer>
to
Code:
<integer name="config_maxToolItemsInARow">[COLOR="Red"]5[/COLOR]</integer>
<integer name="config_maxToolItemsInGrid">[COLOR="Red"]15[/COLOR]</integer>
11. Recompile and Enjoy
About the top space above quick settings icons, niaboc79 said it was his code, hence I had removed that. Also it had some bugs (for me at least) that I could not edit the SystemUI again. Even if I did, it would force close. And I have changed it so that when you decompile SystemUI again, mod it, and recompile, it can be used without any force close.
So what's the difference between niaboc79's JB style SystemUI and my tutorial?
-With my tutorial, you can use "Clear" button if you swipe the statusbar with one finger, and you can use "Edit" button for editing quick settings if you swipe the statusbar with two fingers. And he uses other file (com.android.settings-res.apk) to achieve this JB style SystemUI.
And why this comparison?
-Because he asked me to close the thread saying I used his methods. So I deleted his method and changed it with my own.
This mod has been tested on Xperia Z and Xperia ZL KitKat firmwares. Should work on other Sony KitKat devices (I doubt if it works on Z3 and new Z2 firmware). Test and report.
Always take a backup of original files so that you can replace it when something goes wrong
Credits:
AndroPlus
anagramgenius(myself )
XDA Portal
http://www.xda-developers.com/bring-back-jelly-bean-quick-toggles-to-your-kitkat-xperia-rom/
Thanks my friend.. Great work..
Cool Bro! But you know how to move the clock above the toggles?
Naufal Sidik said:
Cool Bro! But you know how to move the clock above the toggles?
Click to expand...
Click to collapse
In step 5, copy the code and place it above the linear layout of somc notification tab and somc quicksettings tab.
Good tutorial! Thanks!
Trimis de pe al meu D2303 folosind Tapatalk
i have a few questions:
1. does it work for Z1c?
2. can anybody tell me how to center clock in statusbar?
thx
m.
moonryder said:
i have a few questions:
1. does it work for Z1c?
2. can anybody tell me how to center clock in statusbar?
thx
m.
Click to expand...
Click to collapse
Haven't tested. It might work.
moonryder said:
i have a few questions:
1. does it work for Z1c?
2. can anybody tell me how to center clock in statusbar?
thx
m.
Click to expand...
Click to collapse
It will work all Kitkat 4.4+ Sony Devices without any problems..
Thanks for this! How did you get that really awesome-looking blur on the notification panel?
epic118 said:
Thanks for this! How did you get that really awesome-looking blur on the notification panel?
Click to expand...
Click to collapse
Its an xposed module. Blurred SystemUI by serajr.
Congrats for the XDA Portal
http://www.xda-developers.com/android/bring-back-jelly-bean-quick-toggles-to-your-kitkat-xperia-rom/
Rajeev said:
Congrats for the XDA Portal
http://www.xda-developers.com/android/bring-back-jelly-bean-quick-toggles-to-your-kitkat-xperia-rom/
Click to expand...
Click to collapse
Thanks:victory:
thanks so much sir.....!!! :good: :good: :good: working on t2 ultra 4.4.3
hazikh said:
thanks so much sir.....!!! :good: :good: :good: working on t2 ultra 4.4.3
Click to expand...
Click to collapse
Thanks for confirmation:good:
May I ask how you have the "USB Storage Connected - Tap here to safely remove " prompt , I would like to have it on my Sony Xperia M Dual to quickly unmount the usb device I connect.
sorry to ask, how to replace colors on a divider according to the theme ?
solonxpl said:
May I ask how you have the "USB Storage Connected - Tap here to safely remove " prompt , I would like to have it on my Sony Xperia M Dual to quickly unmount the usb device I connect.
Click to expand...
Click to collapse
If USB OTG function is present in your device, it appears. It was present in my device. I didn't mod anything to get that.
hazikh said:
sorry to ask, how to replace colors on a divider according to the theme ?
Click to expand...
Click to collapse
Dunno about that. Will find and tell you.
Hey i have edited the SystemUi.apk bt now i am not getting how to install that apk...when i install the apk it is not installed....
I had replaced the SystemUi.apk with edited one by es file explorer bt it didnt worked my status bar and navigation bar was gone after that....i had to flash my phone again to get in better position...help me!!

Categories

Resources