Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.
This is the source of the speed net meter:
SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>
SystemUI>res/values/styles.xml
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style>
PS: i'm using apktool v2.0.0b9.
In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fatminmin.xposed.networkspeedindicator
es0tericcha0s said:
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:
Click to expand...
Click to collapse
thanks, but i don't want use xposed! :good:
Help :c
moderators, close the thread! resolved!
ramon20 said:
moderators, close the thread! resolved!
Click to expand...
Click to collapse
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
kermage said:
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
Click to expand...
Click to collapse
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
ramon20 said:
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
Click to expand...
Click to collapse
:good:
Related
I wish to make transparent the contacts.apk on my streak , I have tried many guides but none of these worked for my froyo 2.2.2. Any of you tried by chance?
Have you looked here?
http://forum.xda-developers.com/showthread.php?t=990014
Seems to be a lot of transparent apps here and some instructions for editing your own.
thanks for the help (useful link), even if I meant something like
I'm sorry if you do not see too much but definitely makes the idea (sorry but taken from the web)
Now that is cool and I want it too....
I found this guide on the web,i tried many times it did not work :
What you have to do:
Extract the Contacts.apk from your phone/rom zip file
Decompile Contacts.apk
Open
call_background.xml
in res/drawable
Change
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:drawable/screen_background_dark" />
</selector>
--- End code ---
To:
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:color/transparent" />
</selector>
--- End code ---
Save and close.
Open
styles.xml
in res/values.
Change lines 3-6
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">null</item>
</style>
--- End code ---
To.
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme.Wallpaper">
<item name="android:windowBackground">drawable/custom_background_dialer</item>
<item name="android:windowNoTitle">null</item>
</style>
--- End code ---
Save and close.
Next add the transparent custom_background_dialer.png to the drawable-mdpi-finger folder.This can also be a custom image doesn't have to be a transparent one.
IN APKManager choose the option to compile your Contacts
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and everything that you changed, (i.e. call_background.xml and the styles.xml is now hidden so you can't delete that so just delete the resources.arsc & call_background.xml)
Let apkmanager continue its work.
Now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedContacts.apk /system/app/Contacts.apk or rename taking the unsigned out and put in your theme zip.
Now you must make the dialer buttons transparent.Change the following to be transparent,
Images are in the drawable-mdpi-finger folder:
btn_dial_action_left_disable.9
btn_dial_action_left_disable_focused.9
btn_dial_action_left_normal.9
btn_dial_action_left_pressed.9
btn_dial_action_left_selected.9
btn_dial_action_middle_disable.9
btn_dial_action_middle_disable_focused.9
btn_dial_action_middle_normal.9
btn_dial_action_middle_pressed.9
btn_dial_action_middle_selected.9
btn_dial_action_right_disable.9
btn_dial_action_right_disable_focused.9
btn_dial_action_right_normal.9
btn_dial_action_right_pressed.9
btn_dial_action_right_selected.9
btn_dial_normal.9
btn_dial_pressed.9
btn_dial_selected.9
btn_dial_textfield_activated.9
btn_dial_textfield_normal.9
btn_dial_textfield_pressed.9
btn_dial_textfield_selected.9
Screen Shot of what it looks like:
You have ideas on how to do (even call_background.xml is different )
I did ok, this is for you (although I have to change something again)
could we see a teaser screenie on the streak with this, thanks guys!
nice work!
How To Port a Theme: The Nottach Way
This first draft will probably have confusing parts so if you get stuck let me know and I'll make it clearer.
Backing Up:
The first thing you're going to want to do is backup the files you will be editing. I recommend making a CWM zip of the backed up files. That way if you bootloop you can easily flash back.
Steps To Backup:
You will most likely be theming framework-res.apk and systemui.apk at first. I will show you how to back them up. If you theme other files in the future be sure to add the original to your backup CWM update by repeating these steps. *note* this installer will only install files to the /system directory.
Pull /system/framework/framework-res.apk and /system/app/SystemUI.apk from your device using either adb or root explorer.
Download this pre-scripted zip and extract it to a folder of your choosing.
Place your original framework-res and systemui in their repective folders (framework;app).
Next zip the system and META-INF folders at the root of the extracted folder and be sure to choose a compression of "store" or "none".
Copy the new zip to your SD and try to flash it. Just to make sure it works.
File Structure of the New Zip should be:
Code:
META-INF
-(unchanged contents)
system
-app
--systemui.apk
-framework
--framework-res.apk
If it doesn't flash the most common mistake would be not choosing "store" or "none" for compression.
Once you've got your back-up working you can begin theming.
Basic Theming:
These are my steps. They may seem backwards to some but I can get a quality port out in under an hour this way.
Getting the needed files.
Find a hdpi theme of your choosing.
Using winRAR extract the themes framework-res.apk and systemui.apk (if present).
Extract each apk to its own folder.
You should now have all the icons you should need inside each drawable-hdpi folder you just extracted, one for framework-res and one for systemui.
Have a look through the drawable-hdpi folders. These are the only two folders you'll need so you can delete the others if you wish.
Prepping.
Extract your back-up Zip to a new folder and name that folder after the theme you are working on.
First open framwork-res.apk with winrar.
Navigate to /res/drawable-hdpi
Copying Images.
You'll want to set both your winRAR window and the themes drawable folder side by side.
Next overwrite the icons/images in winRAR with the icons/images in the themes folder. Make sure to only choose the icons/images that are in the /res/drawable-hdpi winRAR. Dont just drag them all in, this will undoubtly leave you with unused icons that will bloat your framework.
Once youve copied over all the images you need, overwriting the originals.
Close the archive (winRAR).
Do the same for systemui.apk, only choosing the needed files.
Tips: If porting a CM7 theme a lot of file renaming will be required. First, sort all the files based on their prefixes (eg. framework-res_; com_android_systemui_; etc). Then, use all file renamer to easily delete XX characters from the left side. You'll need to have a look at what I mean to really get it.
Tips: Some themes lack a systemui.apk but will instead have the images needed for systemui.apk inside their framework-res.apk.
Tips: If a theme doesnt have enough battery icons you will have to make more to suit your framework-res. Do this by spanning the gaps with copies. For instance, if there are only 20 icons and you need 100, make 5 copies of each and name appropriately. This is the biggest pain about a 1% battery.
Once you've overwriten all the images in framework-res and sytemui go ahead and zip up your package following the same steps as the backup, naming the zip appropriately. Don't forget the "store" or "none" compression.
Now try to flash it. If it works it most likely won't be perfect, this is a first draft.
If it doesn't work, again check your compression and zip file structure.
Now take notes of things that are wrong or need fixing, text colors particularly. We will fix them in the next steps.
Editing the status bar.
Now that you can see what needs fixing in the status bar we will decompile your original (backup) systemui.apk and edit the xmls. I will assume you have apkmanager and know how to use it. There are other guides for that so I won't go to deep into it. Look here for a video tutorial on apkmanager.
Decompile systemui.apk
Make edits to XMLs.
These are the edits I make most often.
/res/layout/status_bar.xml -
Code:
<TextView android:textSize="16.0sp" android:textStyle="bold" android:gravity="left|center" android:id="@id/onsText" android:paddingLeft="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="[COLOR="Red"]0[/COLOR]" /> [COLOR="red"]///HIDES CARRIER TEXT[/COLOR]
Click to expand...
Click to collapse
/res/layout/status_bar_expanded.xml -
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="?android:textAppearanceLarge" android:textColor="[COLOR="Red"]#ffffffff[/COLOR]" android:layout_gravity="center_vertical" android:id="@id/dateLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> [COLOR="red"]///DATE TEXT COLOR[/COLOR]
Click to expand...
Click to collapse
/res/values/drawable.xml -
Code:
<item type="drawable" name="shade_bgcolor">[COLOR="Red"]#ff162939[/COLOR]</item> [COLOR="red"]///NOTIFICATION TITLE BACKGROUND (eg. Ongoing)[/COLOR]
Click to expand...
Click to collapse
/res/values/style.xml -
Code:
<style name="TextAppearance.StatusBar.Title" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearanceSmall</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">[COLOR="red"]#ffffffff[/COLOR]</item> [COLOR="red"]///NOTIFICATION TITLE TEXT (eg. No Notifications)[/COLOR]
</style>
Click to expand...
Click to collapse
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Once recompiled you will have unsignedSystemUI.apk in your place_here_for_modding folder. Open it in winRAR along with your previous version of SystemUI.apk from the first draft and drag the images from the first draft drawable-hdpi folder into the new unsignedSysemUI.apk's corresponding folder, overwriting the images there. Now rename unsignedSystemUI.apk to SystemUI.apk and overwrite your first draft version. This is your second draft SystemUI.apk and we will create a second draft framework-res.apk in the next step using these same steps.
Editing the framework.
We will now decompile your original (backup) framework-res.apk and edit the xmls. Again using apkmanager.
Decompile systemui.apk
Make edits to XMLs.
These are the edits I make most often.
/res/drawable/progress_horizontal.xml - sliders & volume bars
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff262223" android:endColor="#ff414042" android:angle="270.0" android:centerY="0.13" android:centerColor="#ff262223" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#80[COLOR="red"]547f8c[/COLOR]" android:endColor="#a0[COLOR="red"]87cce2[/COLOR]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#80[COLOR="red"]547f8c[/COLOR]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff[COLOR="red"]547f8c[/COLOR]" android:endColor="#ff[COLOR="red"]87cce2[/COLOR]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#ff[COLOR="Red"]547f8c[/COLOR]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
</layer-list>
Click to expand...
Click to collapse
/res/values/styles.xml - text colors
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">[COLOR="red"]#ff555555[/COLOR]</item> [COLOR="red"]///POP UP MENU TEXT COLOR[/COLOR]
</style>
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="textColor">[COLOR="red"]#ff555555[/COLOR]</item> [COLOR="red"]///SECONDARY MENU TEXT COLOR[/COLOR]
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
[COLOR="red"]///DELETED LINE[/COLOR]
</style>
Code:
<style name="TextAppearance.WindowTitle" parent="@style/TextAppearance">
<item name="textSize">14.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[COLOR="Red"]#ffffffff[/COLOR]</item> [COLOR="red"]///WINDOW TITLE TEXT (App Title Bar)[/COLOR]
</style>
Code:
<style name="TextAppearance.StatusBar.Title" parent="@style/TextAppearance.StatusBar">
<item name="textStyle">bold</item>
<item name="textColor">[COLOR="red"]#ffffffff[/COLOR]</item> [COLOR="red"]///STATUS BAR TITLE (May be same as SystemUI?)[/COLOR]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">16.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[COLOR="red"]#ffffffff[/COLOR]</item> [COLOR="red"]///FIRST LINE OF NOTIFICATION[/COLOR]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar">
<item name="textColor">[COLOR="red"]#ffffffff[/COLOR]</item> [COLOR="red"]///2ND LINE OF NOTIFICATION[/COLOR]
</style>
Code:
<style name="Widget.Button" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmallInverse</item>
<item name="textColor">[COLOR="red"]#ffffffff[/COLOR]</item> [COLOR="red"]///BUTTON TEXT COLOR[/COLOR]
<item name="gravity">center</item>
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
</style>
Click to expand...
Click to collapse
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Now following the same steps as we did for SystemUI we will overwrite the images in the new unsignedframework-res.apk with those from the first draft framework-res.apk. By dragging from one winRAR window to the other. Once you've done that rename the new apk and overwrite the first draft version. Create a new update zip, using "store" or "none", and flash it. You should now see the text edits you just made.
Advanced Tips
.9 Images.
--If a .9.png is all (every pixel) one color then the .9 patch does not matter.
Hex editing.
--It is not always necessary to decompile to make text color or slider edits. Instead if know what color you're looking for you can use a hex editor to make the edits.
--For instance, to change text colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract resources.arsc
Open resources.arsc in a hex editor.
Search for the color in this format BB GG RR AA, as opposed to usual aarrggbb. (Red = ffff0000 = 00 00 FF FF)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
--To change slider colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract /res/drawable/progress_horizontal.xml
Open progress_horizontal.xml in a hex editor.
Search for 08 00 00 1C.
After each instance examine the next four pairs.
The first few will be grey but eventually youll come to a color.
That's where you start editing. (6 total)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
Undoing Moto's Status Bar Edits.
Post #15
Adding an Animated PullDown Shade.
[RESOURCES] - Theming the Atrix 4G: tools, processes, locations, etc.
Spot on work! Thanks a lot! I am planning to see if I can make a clean minimalistic theme once I can figure out how to do theming correctly
Motorola Atrix 2.3.4 bl unlocked full debian weptop and themed
Small donation on it's way to you for all your hard work!
Confirmation number: 3W612387P3801853H.
Awesome work! Hopefully I will get some time to understand this and port a theme or two
Nottach said:
Advanced Tips
.9 Images.
--If a .9.png is all (every pixel) one color then the .9 patch does not matter.
Hex editing.
--It is not always necessary to decompile to make text color or slider edits. Instead if know what color you're looking for you can use a hex editor to make the edits.
--For instance, to change text colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract resources.arsc
Open resources.arsc in a hex editor.
Search for the color in this format BB GG RR AA, as opposed to usual aarrggbb. (Red = ffff0000 = 00 00 FF FF)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
--To change slider colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract /res/drawable/progress_horizontal.xml
Open progress_horizontal.xml in a hex editor.
Search for 08 00 00 1C.
After each instance examine the next four pairs.
The first few will be grey but eventually youll come to a color.
That's where you start editing. (6 total)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
Click to expand...
Click to collapse
Can i ask you a question seeing though you know abit about framework modding can you see were i have gone wrong here - http://forum.xda-developers.com/showthread.php?t=1195549
I can live with it but i would rather change it to a light gray or a different color? Or if not how would i be able to change the text in these pop up windows so i can see them properly? Any help would be very nice & not had a reply about this yet? Can you help? you can private message me if you would prefer
Thanks in advance
Png sizes
Okay do the PNG/.9.png from the ported theme have to be the same size as the ones in the Atrix drawable-hdpi?
Thanks a lot on the tutorial it helped me figure out how to edit the XMl files.
D$G said:
Okay do the PNG/.9.png from the ported theme have to be the same size as the ones in the Atrix drawable-hdpi?
Thanks a lot on the tutorial it helped me figure out how to edit the XMl files.
Click to expand...
Click to collapse
Not necessarily. As long as the .9 patch is ok then it should work. though it may look weird if theres a themed background. such as a aosp buuton on motoblur background. trial and error is your best bet there.
I'm guessing that this is a generic tutorial for most, if not all android devices?
XCellPhoneSalesRep said:
I'm guessing that this is a generic tutorial for most, if not all android devices?
Click to expand...
Click to collapse
You are correct.
If I change some icons in other .apks like the blur-res.apk, will the updater script you posted include that when it updates?
redz22 said:
If I change some icons in other .apks like the blur-res.apk, will the updater script you posted include that when it updates?
Click to expand...
Click to collapse
Yes, those are in the /system directory so it will work. Just make sure to put them in the right folder (framework). That disclaimer is more for those editing something in /data.
How to "undo" MotoBlurs Status Bar
As many of you themers out there have mostly likely noticed, Moto has screwed with the Status Bar layout in GingerBread which makes theming difficult. I will show you how to revert to the way it was in Froyo.
I will show you you how to perform these edits:
Change the Date Background back to status_bar_header_background.
Change the Title Background back to title_bar_portrait.
{
"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. Decompile SystemUI.apk
2. Open /res/layout/status_bar_expanded.xml
---First we'll change the Date Background.
---Out of the box it calls the drawable title_bar_portrait. In Froyo its called status_bar_header_background. So in order to go back to that we will change:
Code:
<LinearLayout android:orientation="horizontal" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
---to:
Code:
<LinearLayout android:orientation="horizontal" [COLOR=Red]android:background="@drawable/status_bar_header_background"[/COLOR] android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
Click to expand...
Click to collapse
---And add your status_bar_header_background png to drawables-hdpi. It can be either .png or .9.png. If it's a .9.png make sure it's in decompiled form, with the 1 pixel border, or else you will get an error during recompiling.
Click to expand...
Click to collapse
---Next we'll have the title background use the existing title_bar_portrait image instead of the shade_bgcolor.
---So we change:
Code:
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_bgcolor" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/ongoingTitle" android:background="@drawable/shade_bgcolor" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/priorityTitle" android:background="@drawable/shade_bgcolor" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_priority_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/priorityItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/latestTitle" android:background="@drawable/shade_bgcolor" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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>
---To:
Code:
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/noNotificationsTitle" [COLOR=Red]android:background="@drawable/title_bar_portrait"[/COLOR] android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/ongoingTitle" [COLOR=Red]android:background="@drawable/title_bar_portrait"[/COLOR] android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/priorityTitle" [COLOR=Red]android:background="@drawable/title_bar_portrait"[/COLOR] android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_priority_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/priorityItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/latestTitle" [COLOR=Red]android:background="@drawable/title_bar_portrait"[/COLOR] android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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>
Click to expand...
Click to collapse
---No need to add an image as it already exists.
Click to expand...
Click to collapse
3. Compile SystemUI.apk, be sure to delete the old status_bar_expanded.xml from the keep folder.
4. Done.
Hi,
Very cool to see someone documenting what they are doing! Keep up the good work.
Cheers!
I've been waiting for this! Love you so much...in brotherly way
I came into this android world with guns.blazing. a fresh newb and learnt to flash/root/oc etc. At one point I had stayed up 4 days in a row (using a different,but similar guide) trying to tweak a theme. Hell I was only trying to change the battery icon! I never got it,till this day. In gonna give it another shot (havent tried in months) using this guide. If finally get it,ill post a very detailed step by step video on youtube. One question though,when adding the icon I want to the framework folder,do I delete the one already there,or just let it overwrite? Thats one thing I never understood fully
Sent from my MB860 using XDA Premium App
brd912 said:
I came into this android world with guns.blazing. a fresh newb and learnt to flash/root/oc etc. At one point I had stayed up 4 days in a row (using a different,but similar guide) trying to tweak a theme. Hell I was only trying to change the battery icon! I never got it,till this day. In gonna give it another shot (havent tried in months) using this guide. If finally get it,ill post a very detailed step by step video on youtube. One question though,when adding the icon I want to the framework folder,do I delete the one already there,or just let it overwrite? Thats one thing I never understood fully
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
Im thinking you mean in the decompiled projects folder. you overwrite the image in that folder but during recompiling when given the prompt, you delete the old one from the keep folder. if you delete it from keep it will replace it with the one from the project.
When I decompile systemui.apk, it gave me 'an error occured'. Is it normal?
Hey all,
So early today an eagle eyed user on our forum www.alliance-rom.com (Kkillize) posted asking if the following could cause battery drain. The power profile.xml in framework-res.apk had the following:
Code:
<item name="cpu.idle">4</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">2100</item>
Now...last time I checked our device didnt have these values!! Seems samsung ported the S3 firmware and didnt change these entries.
I suspected these may be contributing if not responsible for the lockscreen freeze so me and Mirkoddd have tested changing these values today to what they should be...
Code:
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
...and so far have had 0 lockscreen freezes.
I have attached a link to a cwm framework-res.apk for deodexed LSJ for willing testers as this needs to be tested by lots of people. I have also attached the individual compiled xml for people on custom roms who want to drag this into their framework-res.apk.
MAKE A BACKUP AND DO NOT FLASH THE CWM ZIP ON A CUSTOM ROM!!!!
If you have already tried this and still get freezes, please shout up!!
Thanks
https://sourceforge.net/projects/goldiealliance/files/Stock-LSJ-LockscreenFreezeFixTest.zip/download
2hrs with no freeze
Mirko ddd said:
2hrs with no freeze
Click to expand...
Click to collapse
Yes.... I ran that all day yesterday with no freeze.
:thumbup:
I was scanning around and noticed that.
Sent from my SGH-I777 using Tapatalk 2
Seems too simple to me but we will see once people test it
Goldieking said:
Seems too simple to me but we will see once people test it
Click to expand...
Click to collapse
Funny thing is also...since I changed that bool setting I told you about.... earlier I haven't had any freeze either.
So I'm not sure if it's one or both you know?
Sent from my SGH-I777 using Tapatalk 2
As posted in the alliance forums, it definitely seems to be working. Tnx guys
Sent from my GT-I9100
Does that battery capacity value matter for users with the Samsung extended battery?
Sent from my GT-I9100 using Tapatalk 2
diffusal said:
Does that battery capacity value matter for users with the Samsung extended battery?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Yes because it effects how the phone reads the battery usage and it could show misinformation.
This is what the sgs2 should have with stock battery.
Code:
<device name="Android">
<item name="none">0</item>
<item name="screen.on">75</item>
<item name="bluetooth.active">32</item>
<item name="bluetooth.on">0.3</item>
<item name="screen.full">201</item>
<item name="wifi.on">0.3</item>
<item name="wifi.active">83</item>
<item name="wifi.scan">52</item>
<item name="dsp.audio">34</item>
<item name="dsp.video">265</item>
<item name="radio.active">242</item>
<item name="radio.scanning">82</item>
<item name="gps.on">1</item>
<array name="radio.on">
<value>2.7</value>
<value>3</value>
</array>
<array name="cpu.speeds">
<value>12000000</value>
<value>10000000</value>
<value>800000</value>
<value>500000</value>
<value>200000</value>
</array>
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
</device>
So for users with extended battery do we just change 1650 to 1950?
Sent from my GT-I9100 using Tapatalk 2
diffusal said:
So for users with extended battery do we just change 1650 to 1950?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
To get more accurate battery usage results..... yes...
Wow! Quiet thread, I thought loads of people would be wanting to test if this fixes the most annoying thing in LSJ. Without feedback and testers how can we know if it fixes the issue?
The lockscreen freeze happens mainly on wifi and is quite annoying.
Flashed the fix and will test it for at least 24hrs to come to a conclusion.
Kudos to whoever found this out. Does this also help in fixing battery drain on wifi?
Sent from the Matrix
rakeshishere said:
The lockscreen freeze happens mainly on wifi and is quite annoying.
Flashed the fix and will test it for at least 24hrs to come to a conclusion.
Kudos to whoever found this out. Does this also help in fixing battery drain on wifi?
Sent from the Matrix
Click to expand...
Click to collapse
It may help with drain i suppose yes. The more people who install it the better. Thanks
Goldieking said:
Hey all,
So early today an eagle eyed user on our forum www.alliance-rom.com (Kkillize) posted asking if the following could cause battery drain. The power profile.xml in framework-res.apk had the following:
Code:
<item name="cpu.idle">4</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">2100</item>
Now...last time I checked our device didnt have these values!! Seems samsung ported the S3 firmware and didnt change these entries.
I suspected these may be contributing if not responsible for the lockscreen freeze so me and Mirkoddd have tested changing these values today to what they should be...
Code:
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
...and so far have had 0 lockscreen freezes.
I have attached a link to a cwm framework-res.apk for deodexed LSJ for willing testers as this needs to be tested by lots of people. I have also attached the individual compiled xml for people on custom roms who want to drag this into their framework-res.apk.
MAKE A BACKUP AND DO NOT FLASH THE CWM ZIP ON A CUSTOM ROM!!!!
If you have already tried this and still get freezes, please shout up!!
Thanks
https://sourceforge.net/projects/goldiealliance/files/Stock-LSJ-LockscreenFreezeFixTest.zip/download
Click to expand...
Click to collapse
Im on a custom rom so how can I safely apply this?
Omega 16.2
philz kernal 3.75
ICS XD AIO mod
GT-I9100
How do I change this if I have "the extended battery". The xml seems to be in some binary format
Take my cwm zip.
Copy your framework-res.apk from your phones system/framework folder to pc.
Download the xml attached in op.
Open your framework-res.apk with 7zip.
Drag the xml into the res/xml folder.
Close 7zip.
Replace the framework-res.apk in the flashable zip with the one you just edited and flash it in cwm.
Sent from my GT-I9100 using Tapatalk 2
Thanks but my ideal was to change The value to match my extended battery
Skickat från min GT-I9100 via Tapatalk 2
Goldieking said:
Take my cwm zip.
Copy your framework-res.apk from your phones system/framework folder to pc.
Download the xml attached in op.
Open your framework-res.apk with 7zip.
Drag the xml into the res/xml folder.
Close 7zip.
Replace the framework-res.apk in the flashable zip with the one you just edited and flash it in cwm.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Ok I will give it a try.
Omega 16.2
philz kernal 3.75
ICS XD AIO mod
GT-I9100
I am going to modify it to suit the 2000mah battery and test it. Why do we need to copy the framework-res.apk from the phone? Also, how to modify the xml file in the front page which is not allowing the text editor to edit. Thx.
Would you please share it with med also
Skickat från min GT-I9100 via Tapatalk 2
Hay Guys/Girl I'm Back..
Now I Will Present Statusbar Animation...
It's So Simple,.
No Screeshoot Cause You Will Se After Hack Your UI
Istall With HackUI
Download: View attachment HackUI.apk
1. Make A New Folder On Sdcard Name It (.tjatoer)
2. Put Your SystemUI.apk To .tjatoer
3. Open HackUI And Hack Your System UI (No Reboot)
Download:
Droid :View attachment SystemUIAndroid.apk
Gangnam :View attachment SystemUIGangnam.apk
Matrix :View attachment SystemUIMartix.apk
Honey :View attachment SystemUIHoney.apk
Rename SystemUIGangnam.apk To SystemUI.apk
Guide How To Apply To Ur Statbar:
Download:View attachment drawable.zip
1. Download And Extact Zip File
2. Open The One File With Notepad++ (I Think It's No Need>status_bar_background_animation.xml)
3. U See File status_bar_afrizal_bg Like This
Code:
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1000" android:drawable="@drawable/afrizal01" />
<item android:duration="1000" android:drawable="@drawable/afrizal02" />
<item android:duration="1000" android:drawable="@drawable/afrizal03" />
<item android:duration="1000" android:drawable="@drawable/afrizal04" />
<item android:duration="1000" android:drawable="@drawable/afrizal05" />
<item android:duration="1000" android:drawable="@drawable/afrizal06" />
<item android:duration="1000" android:drawable="@drawable/afrizal07" />
<item android:duration="1000" android:drawable="@drawable/afrizal08" />
<item android:duration="1000" android:drawable="@drawable/afrizal09" />
<item android:duration="1000" android:drawable="@drawable/afrizal10" />
<item android:duration="1000" android:drawable="@drawable/afrizal11" />
<item android:duration="1000" android:drawable="@drawable/afrizal12" />
<item android:duration="1000" android:drawable="@drawable/afrizal13" />
<item android:duration="1000" android:drawable="@drawable/afrizal14" />
<item android:duration="1000" android:drawable="@drawable/afrizal15" />
<item android:duration="1000" android:drawable="@drawable/afrizal16" />
<item android:duration="1000" android:drawable="@drawable/afrizal17" />
<item android:duration="1000" android:drawable="@drawable/afrizal18" />
<item android:duration="1000" android:drawable="@drawable/afrizal19" />
<item android:duration="1000" android:drawable="@drawable/afrizal20" />
<item android:duration="1000" android:drawable="@drawable/afrizal21" />
<item android:duration="1000" android:drawable="@drawable/afrizal22" />
<item android:duration="1000" android:drawable="@drawable/afrizal23" />
<item android:duration="1000" android:drawable="@drawable/afrizal24" />
<item android:duration="1000" android:drawable="@drawable/afrizal25" />
<item android:duration="1000" android:drawable="@drawable/afrizal26" />
<item android:duration="1000" android:drawable="@drawable/afrizal27" />
<item android:duration="1000" android:drawable="@drawable/afrizal28" />
<item android:duration="1000" android:drawable="@drawable/afrizal29" />
<item android:duration="1000" android:drawable="@drawable/afrizal30" />
<item android:duration="1000" android:drawable="@drawable/afrizal31" />
<item android:duration="1000" android:drawable="@drawable/afrizal32" />
</animation-list>
4. Provide Ur Picture Animation Should PNG, And Change Name Like That There Is In status_bar_afrizal_bg
5. If Ur Pictures Animation There Are 10 Images Remove Code Line 14 Until 35
6. Now Decompile Ur SystemUI
7. Go To res\drawable Copy One File To res\drawable
8. And Go To res\layout\status_bar_expanded.xml Here On Line 2 (android:background=".............................")
Replace With (android:background="@drawable/status_bar_afrizal_bg")
9.Copy Ur Picture To res\drawable-ldpi
10. Now Compile Ur System UI, Sign And Put Your SystemUI.apk To sdcard\.tjatoer
11. Open HackUI And Hack Your System UI
Name afrizal U Can Change The Name With Your Own Name Or Whatever
Note: So Sorry, Cause I Wear In My SystemUI (android:background="..........") Located In res\layout\status_bar_expanded.xml
Another Time I Decompile Some SystemUI (android:background="........") Located In res\layout\status_bar_tracking.xml
Im Sorry. I Have Exams.
Thanks:
Allah
Nabi Muhammad SAW
Mom & Dad
Dewy
Marin Alin. (I Use Ur SystemUI To Present Statusbar Animation)
Evanlocked.
Dawam A
Dimas Adi
Khakiki
Fedy
Zallz.
Cbr
Rata Bb
Kirafuda R
Ncez.
Lihat Selengapnya
Official Grup Galaxy Young Indonesia
All....
Sorry For My Very Pery Bad English..
cool,but its coooler with screenies or a lil video i think,i think i make a lil screenvideo.
Could you please give a proper tutorial with steps.
What i have done :
Made folder > opened hackui > clicked given button, a notifcation displayed in status bar > then systemhoneyui.apk pasted in the folder > then installed it.
Then my status bar lost. Bur when again open hackui and clicked the button status bar comes as it is.
Sent from Earth
Quote:
androite said:
Could you please give a proper tutorial with steps.
What i have done :
Made folder > opened hackui > clicked given button, a notifcation displayed in status bar > then systemhoneyui.apk pasted in the folder > then installed it.
Then my status bar lost. Bur when again open hackui and clicked the button status bar comes as it is.
Sent from Earth
Click to expand...
Click to collapse
Rename to SystemUI.apk
What exact the app do???
Please xplain more.....
Same happens said as androite..
Sorry for bad English
Sent from my GT-S5360
This gay scumbag, why u dont give credit for hackUI creator?
(T_T)
Cool
Sent from my GT-S5360 using xda app-developers app
madfrog91 said:
This gay scumbag, why u dont give credit for hackUI creator?
Click to expand...
Click to collapse
Tjatoer is the creator of hackui and see the credits idiot before saying a word.
Edit : Op for which rom is this ? coz i tried it on minirom and it gave a force close.
Afrizal Firmansyah said:
2. Put Your SystemUI.apk To .tjatoer
Click to expand...
Click to collapse
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
androite said:
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
Click to expand...
Click to collapse
If u want animations.then put your downloaded status bar n rename to systemUI.apk.then open hack UI hit OK and poof.
A systemui android has jellybean style.like Marinalin theme.cmiiw
Sent from my GT-S5360 using xda app-developers app
---------- Post added at 10:47 AM ---------- Previous post was at 10:42 AM ----------
N if ur statusbar lost just delete sdcard/.tjatoer/systemUI.apk n replace with your previous systemUI.n hit OK.u will get your previous UI.
Sorry my bad Eng
Sent from my GT-S5360 using xda app-developers app
Quote:
androite said:
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
Click to expand...
Click to collapse
.tjatoer folder on sdcard
install statusbargreeper1.8.1,apk and maybe you will not lose ur statusbar
not working on hyperion
force close why?
cool
@op
this is pulldown animation,right?
i see ure code look like a pulldown anomation
cmiiw
Worked for anybody here?
Sent from my GT-S5360 using xda premium
Hey op.how to make statusbar transparant?coz I change some PNG its still black.and sorry I change afrizal01-38..here teh screenis
Sent from my GT-S5360 using xda app-developers app
Sent from my GT-S5360 using xda app-developers app
@psidco
you dont need to change any png file. just change the hex code in status_bar.xml from
android:background="ff000000"
to
android:background="00000000"
this is look like animation pulldown
and the background can change using png from bootanimation
just rename of png
cmiiw
GUIDE 3Minit Battery
Work and Tested - CM 12.1 & LP Based
1. Decompile systemUI.apk
(FIRST)Mregae all smali -->>
(SECOND)At the file:
SystemUI\res\layout\system_icons.xml
Add this line
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="0.0dip" />
Click to expand...
Click to collapse
*Compile systemUI.apk DONE*
2. Decompile settings.apk
settings\res\xml\display_settings.XML
Add this lines
PHP:
<PreferenceScreen android:title="@string/3Minit_Battery_Mod" android:key="battery_mod" android:summary="@string/Settings_Battery_Mod">
<intent android:targetPackage="com.three.minit.minitbatterysettings" android:action="android.intent.action.MAIN" android:targetClass="com.three.minit.minitbatterysettings.MainActivity" />
</PreferenceScreen>
settings\res\values\strings.XML
Add this lines
<string name="3Minit_Battery_Mod">3Minit Battery Mod</string>
<string name="Settings_Battery_Mod">Battery Mod Settings</string>
Click to expand...
Click to collapse
*Compile settings.apk DONE*
Files and Compare Press Me
@ahmed.nasser.hk excellent guide, but there is a small mistake. there is a space that there should not be
Code:
........ android:targetClass="com.three.minit.[B][COLOR="Red"]minitbatterys ettings[/COLOR][/B].MainActivity" />
Thanks for this nice mod and easy to follow tutorial!
Thank you Bro !!! Very easy
But I have found a small error:
<com.android.systemui.statusbar.policy.MinitBatter y android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="0.0dip" />
PD: On the guide its good.
glfsd said:
@ahmed.nasser.hk excellent guide, but there is a small mistake. there is a space that there should not be
Code:
........ android:targetClass="com.three.minit.[B][COLOR="Red"]minitbatterys ettings[/COLOR][/B].MainActivity" />
Click to expand...
Click to collapse
Thanks for attention and observation, Modified