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.
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?
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
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....
Hello everyone!
I have been searching about this matter for a few days now but can't seem to find a solution for it.
I am running a Samsung Galaxy S5 (SCL23)
I have a modified stock version of Android Lollipop Touchwiz 5.0.
I have already Deodexed the whole ROM.
I have successfully decompiled the whole SystemUi.apk and recompiled it without any errors.
I can change the color of the battery percentage text in the colors.xml (<color name="battery_text_color">#ffff0000</color>)
It works flawless!
But what i cannot seem to do is to remove the battery percentage completely.
I have tried adding: android:visibility="gone"
In the files: msim_system_icons.xml & system_icons.xml
Code:
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.74" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/battery_text_marginStart" android:visibility="gone" />
But without any effect at all...
It just boots normally.
I have tried removing the "<TextView />" line completely.
But that just results in a SystemUI has stopped working on boot.
Is there anything i'm missing here?
Appreciating any kind of help!
Here is a full copy of msim_system_icons.xml & system_icons.xml
msim_system_icons.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout 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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.0dip" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/msim_signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/battery_text_marginStart" android:visibility="gone" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:layout_marginStart="3.0dip" />
</LinearLayout>
</LinearLayout>
system_icons.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="0.74" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.0dip" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.74" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/battery_text_marginStart" android:visibility="gone" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:alpha="0.74" android:layout_marginStart="3.0dip" />
</LinearLayout>
</LinearLayout>
In the latest LP firmware, there is a toggle switch in battery settings to remove the % from the status bar
*Detection* said:
In the latest LP firmware, there is a toggle switch in battery settings to remove the % from the status bar
Click to expand...
Click to collapse
Unfortunately that is not possible, since the latest update for SCL23 is LP 5.0 only.
Is it possible to add this switch by myself instead?
My idea is to locate the files that is controlling this number and just edit it away.
I'm still sitting here and fiddling with it, trying different things.
If anyone want some files from me just ask and i will post them.
I would really love to fix this, any other ideas?
It is LP 5.0 with the switch
I was thinking you could figure out what that switch changes, and add the code yourself
*Detection* said:
It is LP 5.0 with the switch
I was thinking you could figure out what that switch changes, and add the code yourself
Click to expand...
Click to collapse
I will try and look at a different ROM SystemUi and see if i can make any sense out of it.
Or maybe i will have to install The same ROM i have in a Emulator on my computer for quicker modding.
I just changed:
Dimens.xml
Code:
<dimen name="battery_text_marginStart">0.0dip</dimen>
<dimen name="battery_text_size">0.0dip</dimen>
Rebuilded.
Replaced the SystemUI, with 0644 permissions.
Also wiped Dalvik Cache & Cache.
And fixed permissions.
Restarted
To see if it will go away, i will see if it works tomorrow morning.
Its upgrading all the apps now and I've got to sleep.
Yay! That fixed it, the text is gone!