Lockscreen center clock mods.
If you are using CM9/CM10 and would like to replace the weather images like I have, I will place instructions at the bottom of this post and attach the images.
Ok you will need to know this first:
1. How to decompile and compile the framework "This is not a how to for that" I will provide links to my tools!
2. How to ADB push or use 7zip to place your modded framework to an update.zip. I will provide a base to use to flash it in recovery after you mod your framework"
3. Edit XML's
That's it!!!
The reason behind doing a how to is because Frameworks change all the time with rom updates and phones all have different values in framework.
If you don't know how to do those things, please learn that before posting questions!!!! "Google is a wonderful thing"
SIMPLE MOD 1
This is a mod that's easy to make but I only have the values for the Gnex sized screens:
I got this mod from here: [GUIDE][05 AUG] How To Make Lock Screen Clock Allign To Center in Jellybean and ICS
ALL CREDIT GOES TO blindndumb
Go thank/donate to him for finding the location and how to!!! I just wanted to share the values I found for Gnex screens.
This is my screenshot on CM10 JellyBro:
{
"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"
}
Ok here we go:
1. Extract the framework-res.apk from your phone or rom zip located in system/framework
2. Decompile using APK TOOL...here are my tools do decompile ICS or JB Frameworks: Tools
3. Locate the folder res/values inside the decompiled framework-res folder
4. Open the dimens.xml using an XML editor like XML Marker or Notepad++
5. locate the line:
Code:
<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen>
6. Change it to :
Code:
<dimen name="keyguard_lockscreen_status_line_font_right_margin">82.0dip</dimen>
"This is specific to Gnex phones only..if your phone has a different resolution you might have to change the 82 to something else"
7. Save your changes and compile the apk using the APK Multitool in the Tools zip from above!! ***You will need to move the framework folder to "projects" and the original framework-res.apk to the "place-apk-here-for-modding" of APK Multitool***
8. SIGN IT or Move the META-INF folder from the original apk to the modded one!!!! "I SIGNED MINE USING APK MULITITOOL"
9. Now that it's made you can either push it back with ADB or copy the framework-res.apk you modded to the system/framework folder in my Flashable-zip-template.zip attached at the bottom of the OP using 7zip.
10. Flash in recovery or if you did ADB reboot!!!
11. Enjoy!!!!!
ADVANCED MOD 2:
This mod was created and given to me from a few guys on my Rootzwiki thread willyjay and bouchigo Go to my rootwiki thread and thank them!!!
Advanced centered clock:
Ok this will be a better looking centered clock but is a bit harder to make.
1. Extract the framework-res.apk from your phone or rom zip located in system/framework
2. Decompile using APK TOOL...here are my tools do decompile ICS or JB Frameworks: Tools
3. Locate the folder res/layout inside the decompiled framework-res folder
4. Open the keyguard_screen_tab_unlock.xml using an XML editor like XML Marker or Notepad++
5. Just to make things easier I will just have you copy and paste the lines to replace:
Take this and paste over lines 1-19
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/root" android:layout_width="match_parent" android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="12.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="4.0dip" />
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_panel" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/weather_image" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_dialog_alert" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
<RelativeLayout android:orientation="horizontal" android:padding="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentRight="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_condition" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/weather_city" android:layout_alignParentRight="true" />
<TextView android:textSize="8.0sp" android:textColor="?textColorSecondary" android:gravity="right" android:id="@id/update_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_condition" android:layout_alignParentRight="true" />
</RelativeLayout>
6. Save your changes and compile the apk using the APK Multitool in the Tools zip from above!! ***You will need to move the framework folder to "projects" and the original framework-res.apk to the "place-apk-here-for-modding" of APK Multitool***
7. SIGN IT or Move the META-INF folder from the original apk to the modded one!!!! "I SIGNED MINE USING APK MULITITOOL"
8. Now that it's made you can either push it back with ADB or copy the framework-res.apk you modded to the system/framework folder in my Flashable-zip-template.zip attached at the bottom of the OP using 7zip.
9. Flash in recovery or if you did ADB reboot!!!
10. Enjoy!!!!!
Weather Images
I have taken these images from AOKP but themed them Black and White to match the lockscreen font color.
1. Download the Weather Icons.zip from the Bottom of the OP.
2. Use 7zip to open your framework-res.apk "Take it from the rom zip or adb pull yours from the phone"
3. You will see a folder named "res" in the opened framework-res.apk - drop the folder "res" from my
Weather Icons zip into your framework-res.apk "NO NEED TO SIGN THE APK"
4. Close 7zip and place it in the system/framework folder in my Flashable-zip-template.zip attached at the bottom of the OP using 7zip then flash it in recovery - OR adb push it back to your phone.
5. Enjoy!!!!
If you want to add this the the center clock mod, just use these steps after you compile the apk.
Hope you like this mod, I love it!!! :victory:
DJ
Even better mod coming tomorrow.
DarkJelly Gnex on JellyBro sent this from the app.
New mod added
I posted a second mod that I like better but kept the first one for those who like it better!!!
Thanks again willyjay and bouchigo for the help!!!
Can you used this mod with ZipThemer?
motoxxxx said:
Can you used this mod with ZipThemer?
Click to expand...
Click to collapse
No idea, I've never used zipthemer.
Thanks DJ, easy to do and has good results...
When I try to build apk keeps saying an error occured check log 24 i can decompile it using our apktools framework-res fine then i move my decompiled files into multitool to build apk and keep getting error anyone know why?
Kimomini said:
When I try to build apk keeps saying an error occured check log 24 i can decompile it using our apktools framework-res fine then i move my decompiled files into multitool to build apk and keep getting error anyone know why?
Click to expand...
Click to collapse
Did you place .apk on the end of the folder?
djdarkknight96 said:
Did you place .apk on the end of the folder?
Click to expand...
Click to collapse
Yea i put that i dont understand why it won't work:crying:
---------- Post added at 12:20 AM ---------- Previous post was at 12:09 AM ----------
djdarkknight96 said:
Did you place .apk on the end of the folder?
Click to expand...
Click to collapse
--------------------------------------------------------------------------
|28/08/2012 -- 0:18:24.59|
--------------------------------------------------------------------------
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\layout\keyguard_screen_tab_unlock.xml:26: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL8860110860679237268.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL8860110860679237268.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Thats the log im getting on the multi tool
Kimomini said:
Yea i put that i dont understand why it won't work:crying:
---------- Post added at 12:20 AM ---------- Previous post was at 12:09 AM ----------
--------------------------------------------------------------------------
|28/08/2012 -- 0:18:24.59|
--------------------------------------------------------------------------
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\layout\keyguard_screen_tab_unlock.xml:26: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL8860110860679237268.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL8860110860679237268.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Thats the log im getting on the multi tool
Click to expand...
Click to collapse
There's something wrong with the XML. Try pasting it in again and rebuild it.
djdarkknight96 said:
There's something wrong with the XML. Try pasting it in again and rebuild it.
Click to expand...
Click to collapse
So do i decompile the apk using jellybean framework-apk tool then mod the xml file then copy the whole decompiled framework file to the project folder in multi tool and then rebuild because that's what i've tried and it doesn't seem to work. When you said paste of lines 1-19 i noticed that it changed the number of lines in xml so i tried pasting over lines 1-21 which kept the number of lines the same and also pasting over 1-19 but neither have worked so far, ill give it another go.
Kimomini said:
So do i decompile the apk using jellybean framework-apk tool then mod the xml file then copy the whole decompiled framework file to the project folder in multi tool and then rebuild because that's what i've tried and it doesn't seem to work. When you said paste of lines 1-19 i noticed that it changed the number of lines in xml so i tried pasting over lines 1-21 which kept the number of lines the same and also pasting over 1-19 but neither have worked so far, ill give it another go.
Click to expand...
Click to collapse
Yes just paste 1-19 there are more lines in the hack then in the stock.
DarkJelly Gnex on JellyBro sent this from the app.
djdarkknight96 said:
Yes just paste 1-19 there are more lines in the hack then in the stock.
DarkJelly Gnex on JellyBro sent this from the app.
Click to expand...
Click to collapse
Did everything again, followed instructions to the T and still getting this
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\layout\keyguard_screen_tab_unlock.xml:30: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Kareem\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Im on AOKP Jellybean build 1 if that affects anything.
---------- Post added at 01:07 AM ---------- Previous post was at 12:52 AM ----------
Kimomini said:
Did everything again, followed instructions to the T and still getting this
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\layout\keyguard_screen_tab_unlock.xml:30: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Kareem\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Im on AOKP Jellybean build 1 if that affects anything.
Click to expand...
Click to collapse
If i decompile and don't edit any files i can recompile fine, so obviously im messing up the xml somehow or other but i dont get why i've edited it with both notepad and xml marker
Kimomini said:
Did everything again, followed instructions to the T and still getting this
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\layout\keyguard_screen_tab_unlock.xml:30: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Kareem\AppData\Local\Temp\APKTOOL975030519696155232.tmp, -x, -S, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\res, -M, C:\Users\Kareem\Downloads\JellyBean-tools\JellyBean-tools\Compile-EVERYTHING-Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Im on AOKP Jellybean build 1 if that affects anything.
Click to expand...
Click to collapse
doesn't AOKP already have the center clock option?
DarkJelly Gnex on JellyBro sent this from the app.
djdarkknight96 said:
doesn't AOKP already have the center clock option?
DarkJelly Gnex on JellyBro sent this from the app.
Click to expand...
Click to collapse
Only for the statusbar not on the lockscreen, when i add your lines in over lines 1-19 and open in an xml editor it says error: unexpeced text so maybe this mod doesn't work with AOKP JB
Kimomini said:
Only for the statusbar not on the lockscreen, when i add your lines in over lines 1-19 and open in an xml editor it says error: unexpeced text so maybe this mod doesn't work with AOKP JB
Click to expand...
Click to collapse
Attach the xml without editing it so I can look.
DarkJelly Gnex on JellyBro sent this from the app.
djdarkknight96 said:
Attach the xml without editing it so I can look.
DarkJelly Gnex on JellyBro sent this from the app.
Click to expand...
Click to collapse
Had to put it in a zip as it wouldnt let me attach the xml for some reason but there you go
Kimomini said:
Had to put it in a zip as it wouldnt let me attach the xml for some reason but there you go
Click to expand...
Click to collapse
Yeah, it won't work the same since they added the lockscreen wallpaper to the xml and have a different setup. BUT I attached a modifyed one for you to try.
Wow, thanks a lot
willl03 said:
Wow, thanks a lot
Click to expand...
Click to collapse
Let me know if that works.
DarkJelly Gnex on JellyBro sent this from the app.
I start this thread in order to share with you the information I already collected regarding the theming the navbar keys on stock roms. You should have realized that after Lollipop upgrade there is not even one stock based ROM or theme which contains themed navbar icons. The reason for this is:
1. Apktool RC3 is buggy on LG system apps, including LGSystemUI.apk. There is no way recently to decompile systemui and have access to the source code of the navbars.
2. With the Lollipop upgrade LG changed its approach regarding definition of the navbar icons using Google's new public classes of VectorDrawables.
Code:
java.lang.Object
↳android.graphics.drawable.Drawable
↳android.graphics.drawable.VectorDrawable
VectorDrawables are specific xml files that define vector graphics via vector coordinates.
The three main navbar icons are defined in LGSystemUI.apk as follows:
ic_sysbar_back_button.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="42.0dip" android:width="42.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M124.125,120.827h-76c-1.358,0-2.667-1.789-2.667-4c0-2.209,1.273-4,2.667-4h76c11.045,0,20-8.953,20-20 c0-11.046-8.955-19.999-20-19.999h-96v-8h96c15.463,0,28,12.535,28,27.999C152.125,108.292,139.588,120.827,124.125,120.827z" />
<path android:fillColor="#ffffffff" android:pathData="M45.447,54.302L30.36,66.189c0,0-1.581,1.291-0.553,2.639c-1.028,1.346,0.553,2.639,0.553,2.639 l15.086,11.886c0,0,3.054,2.04,0,5.447c-2.114,2.359-4.366,1.172-5.865,0L17.741,71.466c-1.291-1.074-1.616-2.639-1.616-2.639 s0.326-1.564,1.616-2.639l21.842-17.334c1.499-1.172,3.75-2.359,5.865,0C48.5,52.263,45.447,54.302,45.447,54.302z" />
</vector>
ic_sysbar_home_button.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="48.0dip" android:width="48.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M159.881,87.102l-0.541,1.217c-0.898,2.02-3.264,2.927-5.281,2.027L144.5,86.09c0,14.906,0,28.396,0,28.396 c0,2.209-1.791,4-4,4h-112c-2.209,0-4-1.791-4-4V86.09l-9.559,4.256c-2.018,0.898-4.382-0.009-5.281-2.027l-0.542-1.217 c-0.898-2.02,0.009-4.384,2.027-5.282l70.647-31.455c0.889-0.395,1.839-0.423,2.708-0.178c0.868-0.245,1.818-0.217,2.708,0.178 l70.647,31.455C159.873,82.718,160.781,85.082,159.881,87.102z M32.5,109.154c0,1.27,0.038,1.332,1.333,1.332h101.333 c1.244,0,1.334-0.047,1.334-1.332V82.528l-52-23.152l-52,23.152C32.5,95.766,32.5,109.154,32.5,109.154z" />
</vector>
ic_sysbar_recent_button.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="42.0dip" android:width="42.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M149,51.5H37c-2.209,0-5,1.027-5,3.236c0,0,0,5.764,0,10.764H21c-2.209,0-5,1.027-5,3.236v42.998 c0,2.211,2.791,4.766,5,4.766h112c2.209,0,3-2.555,3-4.766V101.5c8,0,13,0,13,0c2.209,0,3-2.555,3-4.766V54.736 C152,52.527,151.209,51.5,149,51.5z M128,106.402c0,1.285,0.91,2.098-0.333,2.098H26.333c-1.296,0-2.333-0.828-2.333-2.098V74.068 c0-1.27,1.038-0.568,2.333-0.568h101.333c1.243,0,0.333-0.716,0.333,0.568L128,106.402L128,106.402z M144,91.402 c0,1.285,0.91,2.098-0.333,2.098H136V68.736c0-2.209-0.791-3.236-3-3.236H40v-5.432c0-1.269,1.038-0.568,2.333-0.568h101.334 c1.243,0,0.333-0.716,0.333,0.568V91.402L144,91.402z" />
</vector>
I spent many dozen hours on finding/creating vector graphics of Lollipop navbar keys as SVG files. I tried many times and many ways to save the corresponding SVG files and convert them to VectorDrawable using this site: http://inloop.github.io/svg2android/
Used a trick to recompile the new xmls and replaced them in the LGSystemUI.apk with my vrtheme engine. But still no success. When the shape of the icon was OK the size of them was never.
Basically I am fully confused why the virtual canvas of the stock icons is 168x168. I am struggling with the fill and stroke color definition as well.
This is the status quo. I hope by starting this thread that together we can solve the problem and get the working source code of the Lollipop navbars. I look forward for any help.
Please note that skin1980 is already involved in the project and I got from him huge help with his intelligent hints.
This is a development thread please do not post comments and remarks that are not intended to provide professional help.
Merry Xmas to all of you!
Vector codes
REAL SOLUTION
Since the release of 20H software version LG also introduced the Lollipop navbar icons. These are defined in LGSystemUI.apk res/drawables folder by xml files [email protected]_button.xml where @ is the corresponding function name (for example ic_sysbar_back_button.xml.
{
"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"
}
Back button:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M122.132,132c-0.921,0-1.759-0.324-2.435-0.847L44.916,87.979c-0.965-0.499-1.956-0.894-2.525-1.88c-0.338-0.586-0.492-1.221-0.516-1.852c-0.007-0.082-0.004-0.165-0.007-0.247c0.003-0.082,0-0.165,0.007-0.247c0.023-0.632,0.178-1.266,0.516-1.852c0.569-0.987,1.623-1.35,2.525-1.88l74.781-43.175c0.676-0.523,1.514-0.847,2.435-0.847c2.209,0,4,1.791,4,4v88C126.132,130.209,124.341,132,122.132,132zM54.025,84l64.106,37.012V46.988L54.025,84z" />
</vector>
Dual window
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M120,36H48c-6.627,0-12,5.373-12,12v72c0,6.627,5.373,12,12,12h72c6.627,0,12-5.373,12-12V48C132,41.373,126.627,36,120,36zM124,120c0,2.209-1.791,4-4,4H48c-2.209,0-4-1.791-4-4V88h80V120zM124,80H44V48c0-2.209,1.791-4,4-4h72c2.209,0,4,1.791,4,4V80z" />
<path android:fillColor="#ffffffff" android:pathData="M85.871,73.958h-4.795V55.041H76.23v-3.065l9.641-2.01V73.958z" />
<path android:fillColor="#ffffffff" android:pathData="M92.177,118.375h-16.38v-3.147l7.762-8.322c1.143-1.307,1.944-2.395,2.406-3.263c0.461-0.868,0.691-1.687,0.691-2.455c0-1.033-0.267-1.865-0.799-2.497c-0.533-0.632-1.31-0.947-2.332-0.947c-1.131,0-1.979,0.371-2.545,1.112c-0.566,0.741-0.85,1.75-0.85,3.023h-4.812c0-2.252,0.73-4.122,2.192-5.61c1.461-1.489,3.465-2.233,6.014-2.233c2.516,0,4.469,0.632,5.858,1.896s2.085,2.988,2.085,5.174c0,1.473-0.388,2.808-1.162,4.005s-2.101,2.807-3.979,4.828l-4.351,4.746h10.2V118.375z" />
</vector>
Home button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M84,131.916c-26.464,0-47.917-21.453-47.917-47.916c0-26.463,21.453-47.917,47.917-47.917S131.917,57.537,131.917,84C131.917,110.465,110.463,131.916,84,131.916zM84,44.333c-21.908,0-39.667,17.76-39.667,39.667c0,21.908,17.76,39.667,39.667,39.667s39.667-17.76,39.667-39.667C123.667,62.093,105.908,44.333,84,44.333z" />
</vector>
Menu button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M40,54h88c2.209,0,4-1.791,4-4s-1.791-4-4-4H40c-2.209,0-4,1.791-4,4S37.791,54,40,54zM128,80H40c-2.209,0-4,1.791-4,4s1.791,4,4,4h88c2.209,0,4-1.791,4-4S130.209,80,128,80zM128,114H40c-2.209,0-4,1.791-4,4s1.791,4,4,4h88c2.209,0,4-1.791,4-4S130.209,114,128,114z" />
</vector>
Notification down
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M123,44.179H45c-2.209,0-4-1.791-4-4s1.791-4,4-4h78c2.209,0,4,1.791,4,4S125.209,44.179,123,44.179zM51.181,90.828L79,118.647V58.379c0-2.209,1.791-4,4-4s4,1.791,4,4v60.557l28.025-28.026c1.563-1.562,4.096-1.562,5.656,0c1.563,1.563,1.563,4.096,0,5.658L86.59,130.66c-1.018,1.018-2.445,1.359-3.75,1.052c-1.151,0.114-2.342-0.253-3.224-1.134L45.524,96.486c-1.562-1.563-1.562-4.096,0-5.658C47.086,89.267,49.619,89.267,51.181,90.828z" />
</vector>
Notification up
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M123,131.82H45c-2.209,0-4-1.791-4-4s1.791-4,4-4h78c2.209,0,4,1.791,4,4S125.209,131.82,123,131.82zM115.025,77.09L87,49.064v60.556c0,2.209-1.791,4-4,4s-4-1.791-4-4V49.354L51.181,77.172c-1.562,1.563-4.095,1.563-5.657,0c-1.562-1.562-1.562-4.095,0-5.657l34.092-34.092c0.882-0.882,2.073-1.248,3.224-1.134c1.305-0.309,2.733,0.034,3.75,1.052l34.092,34.092c1.563,1.562,1.563,4.095,0,5.657C119.121,78.652,116.588,78.652,115.025,77.09z" />
</vector>
Qmemo button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M87.637,123.2c-19.2,0-43.168,0-43.168,0c-5.523,0-10-4.478-10-10v-66c0-5.523,4.477-10,10-10h66c5.522,0,10,4.477,10,10c0,0,0,23.578,0,42.833c0,7.74-0.167,1.55-0.167,3.667c0,2.116-1.716,3.833-3.833,3.833s-3.832-1.717-3.832-3.833c0-2.117-0.168,1.901-0.168-3.5c0-16.292,0-39,0-39c0-3.313-2.687-6-6-6h-58c-3.313,0-6,2.687-6,6v58c0,3.313,2.688,6,6,6c0,0,22.708,0,39,0c5.402,0-0.117,0.237,2,0.237s3.833,1.717,3.833,3.834s-1.716,3.834-3.833,3.834S95.198,123.2,87.637,123.2z" />
<path android:fillColor="#ffffffff" android:pathData="M102.559,110.938c-3.443-3.053-8.367-8.672-10.938-12.484l-2.563-3.801c-2.572-3.813-1.324-5.215,2.772-3.113l4.082,2.094c4.098,2.102,10.269,6.319,13.711,9.372l22.323,18.669c1.951,1.73,2.128,4.713,0.395,6.661l-0.783,0.881c-1.734,1.947-4.723,2.124-6.675,0.394L102.559,110.938z" />
</vector>
Qslide button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M98,74h26c2.209,0,4-1.791,4-4s-1.791-4-4-4h-16.302l19.515-19.515c1.563-1.562,1.563-4.095,0-5.657c-1.563-1.563-4.095-1.563-5.656,0L102,60.385V44c0-2.209-1.791-4-4-4s-4,1.791-4,4v26C94,72.209,95.791,74,98,74z" />
<path android:fillColor="#ffffffff" android:pathData="M70,94H44c-2.209,0-4,1.791-4,4s1.791,4,4,4h16.301l-19.515,19.516c-1.562,1.563-1.562,4.094,0,5.656c1.563,1.563,4.095,1.563,5.657,0L66,107.615V124c0,2.209,1.791,4,4,4s4-1.791,4-4V98C74,95.791,72.209,94,70,94z" />
<path android:fillColor="#ffffffff" android:pathData="M107.698,102H124c2.209,0,4-1.791,4-4s-1.791-4-4-4H98c-2.209,0-4,1.791-4,4v26c0,2.209,1.791,4,4,4s4-1.791,4-4v-16.385l19.557,19.557c1.563,1.563,4.096,1.563,5.656,0c1.563-1.563,1.563-4.095,0-5.656L107.698,102z" />
<path android:fillColor="#ffffffff" android:pathData="M70,40c-2.209,0-4,1.791-4,4v16.385L46.443,40.829c-1.562-1.563-4.094-1.563-5.657,0c-1.562,1.562-1.562,4.095,0,5.657L60.301,66H44c-2.209,0-4,1.791-4,4s1.791,4,4,4h26c2.209,0,4-1.791,4-4V44C74,41.791,72.209,40,70,40z" />
</vector>
Recent button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M128.041,36.042H39.958c-2.209,0-4,1.791-4,4v87.917c0,2.209,1.791,4,4,4h88.083c2.211,0,4-1.791,4-4V40.042C132.041,37.833,130.252,36.042,128.041,36.042zM123.791,123.041c0,0.553-0.447,1-1,1H44.792c-0.553,0-1-0.447-1-1v-78c0-0.552,0.447-1,1-1h77.999c0.553,0,1,0.448,1,1V123.041z" />
</vector>
Simswitch button
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="34.0dip" android:width="34.0dip" android:viewportWidth="168.0" android:viewportHeight="168.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M137.348,121.033h-54.71c-2.569,0-4.653-2.09-4.653-4.668V94.984h-14.7l3.836,3.852c1.558,1.563,1.558,4.096,0,5.656c-0.779,0.781-1.799,1.172-2.82,1.172s-2.042-0.391-2.82-1.172l-10.368-10.41c-1.558-1.563-1.558-4.094,0-5.654l10.369-10.406c1.558-1.563,4.082-1.563,5.64,0c1.558,1.562,1.558,4.095,0,5.656l-3.272,3.285h17.501c2.569,0,4.653,2.09,4.653,4.666v21.352h48.004V67.817l-14.582-12.892H91.881c-2.57,0-4.279-1.465-4.279-4.042c0-2.577,1.709-3.917,4.279-3.917h28.49c1.135,0,2.229,0.416,3.078,1.167l16.979,15.08c1,0.885,1.572,2.16,1.572,3.499v49.653C142,118.943,139.918,121.033,137.348,121.033zM89.988,66.711v6.292h14.457l-3.563-3.576c-1.559-1.561-1.559-4.095,0-5.656c1.559-1.563,4.082-1.563,5.641,0l10.367,10.405c1.559,1.562,1.559,4.094,0,5.656L106.523,90.24c-0.777,0.781-1.801,1.172-2.82,1.172s-2.041-0.391-2.818-1.172c-1.559-1.563-1.559-4.094,0-5.656l3.662-3.677H86.654c-2.569,0-4.653-2.09-4.653-4.667v-8.509L67.605,54.963H33.993v58.017h31.566c2.569,0,4.153,1.434,4.153,4.01s-1.584,4.012-4.153,4.012H30.653c-2.569,0-4.653-2.09-4.653-4.668V51.633c0-2.577,2.083-4.667,4.653-4.667h37.644c1.133,0,2.228,0.416,3.078,1.167l17.04,15.08C89.414,64.098,89.988,65.373,89.988,66.711z" />
</vector>
For all button there is a different code for the transparent version. The above codes are already modified by me because the stock buttons are way too big. See here.
The button size is defined by vector android:height="42.0dip" android:width="42.0dip" and I decreased those values for my Lollipop theme.
In ChupaChups 4.1 you will be able to reduce the navigation bar height which requires the change of the corresponding button height as well.
I hope I helped. Good work with this icons.
Missing codes fixed. We need a proper pathdata for the lollipop icons and the right size definitions.
one might try to rebuild a customized in another lgsystemui with new icons and put them with full apk buttons.
I try this but I'm a little confused. buttons you create are not the photo. I still investigating
forgiveness. My English is the translator of google.
se podria intentar recompilar unos botones customizados en otro lgsystemui con iconos nuevos y meterlos con la apk completa.
yo intente hacer esto pero estoy un poco confuso. los botones que cree no son los de la foto. sigo investigando..
perdon. mi ingles es del traductor de google.
forgive my English.
first.
decompile a LGSystemUI.apk ok kitkat and open ic_sysbar_back.xml
second
decompile framework of kitkat and open values/public
third
decompile framework-res.apk of lollipop and open values/public
ok. ready.
first wanted png that android not use. for example "ic_jog_dial_answer". now, Go to values of lollipop and wanted id public and copy your id. Wanted on public of kitkat and copy your drawable.
Code:
<public type="drawable" name="ic_jog_dial_answer"[COLOR="Red"] id="0x01080371[/COLOR]" />
on lollipop
Code:
<public type="drawable" name="[COLOR="lime"]ic_perm_group_bluetooth[/COLOR]" [COLOR="red"]id="0x0108037[/COLOR]1" />
on kitkat
ok now go to ic_sysbar_back and replace your drawable
Code:
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@[COLOR="Cyan"]*android:[/COLOR]drawable/[COLOR="Lime"]ic_perm_group_bluetooth[/COLOR]" />
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@*android:drawable/ic_perm_group_bookmarks" />
<item android:drawable="@*android:drawable/ic_perm_group_bookmarks" />
</selector>
now recompile your systemui of kitkat and replace ic_sysbar_back on LGsystemUI.apk of lollipop
replace ic_jog_dial_answer.png for your png with this name and copy into framework-res.apk.
now put LGSystemUI.apk into your phone with root explorer and permission.
flash framework-res.apk with the new icons and voila
View attachment 3090021View attachment 3090024
if you want a tutorial in spanish ask to me:good:
edit. if you want test. here have my work.
first put lgsystemui.apk with root explorer and permision
after flash zip keytest.zip
http://www.mediafire.com/download/rabr0kmwv2l8g5g/LGSystemUI.apk
http://www.mediafire.com/download/oeyr76k15vbyye9/keys-test.zip
enjoy
ffalete said:
forgive my English.
first.
decompile a LGSystemUI.apk ok kitkat and open ic_sysbar_back.xml
second
decompile framework of kitkat and open values/public
third
decompile framework-res.apk of lollipop and open values/public
ok. ready.
first wanted png that android not use. for example "ic_jog_dial_answer". now, Go to values of lollipop and wanted id public and copy your id. Wanted on public of kitkat and copy your drawable.
Code:
<public type="drawable" name="ic_jog_dial_answer"[COLOR="Red"] id="0x01080371[/COLOR]" />
on lollipop
Code:
<public type="drawable" name="[COLOR="lime"]ic_perm_group_bluetooth[/COLOR]" [COLOR="red"]id="0x0108037[/COLOR]1" />
on kitkat
ok now go to ic_sysbar_back and replace your drawable
Code:
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@[COLOR="Cyan"]*android:[/COLOR]drawable/[COLOR="Lime"]ic_perm_group_bluetooth[/COLOR]" />
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@*android:drawable/ic_perm_group_bookmarks" />
<item android:drawable="@*android:drawable/ic_perm_group_bookmarks" />
</selector>
now recompile your systemui of kitkat and replace ic_sysbar_back on LGsystemUI.apk of lollipop
replace ic_jog_dial_answer.png for your png with this name and copy into framework-res.apk.
now put LGSystemUI.apk into your phone with root explorer and permission.
flash framework-res.apk with the new icons and voila
View attachment 3090021View attachment 3090024
if you want a tutorial in spanish ask to me:good:
View attachment 3090234View attachment 3090235
edit. if you want test. here have my work.
first put lgsystemui.apk with root explorer and permision
after flash zip keytest.zip
http://www.mediafire.com/download/rabr0kmwv2l8g5g/LGSystemUI.apk
http://www.mediafire.com/download/oeyr76k15vbyye9/keys-test.zip
enjoy
Click to expand...
Click to collapse
Many thanks ffalete. I followed your guide but got the following result:
I am confused with the following steps:
1. When changing the reference in ic_sysbar_(...).xml you said
Code:
android:drawable="@*android:drawable/ic_perm_group_bookmarks" />
I used:
Code:
android:drawable="@drawable/ic_perm_group_bookmarks" />
The * is not required, isn't it?
The navbar icons are 128X128. I put them into the xhdpi folder of framework-res.apk with the name "ic_perm_group_bookmarks".
What am I doing wrong? I had the same problems before the system loads different icons.
Do you know how to change the keys in the appdrawer?
*android: is requiered because this command is for framework.
if you do not put the framework will read
ffalete said:
*android: is requiered because this command is for framework.
if you do not put the framework will read
Click to expand...
Click to collapse
here you have the mod whith your vrtheme.
open the zip and decompile the xml of lgsystemui for compare.:good:
the vrtheme is funtional. you can flash on your phone
Great job! It works. Next step is to make the navbar transparent.
That is already more complicated jejejejeje.
For now we have to settle for this. you know
:laugh::laugh:
ffalete said:
That is already more complicated jejejejeje.
For now we have to settle for this. you know
:laugh::laugh:
Click to expand...
Click to collapse
Can you add up / down buttons and menu?
Here you have[emoji1]
http://www.mediafire.com/download/428x3w987mne9ck/test_navvar2.zip
ffalete said:
Here you have[emoji1]
http://www.mediafire.com/download/428x3w987mne9ck/test_navvar2.zip
Click to expand...
Click to collapse
Can you, please, NavBar botton "Menu" to activate?
According to your instructions, I did not get
There is no need for menu button just longpress recent button.
Is theres a way to resize the Navigation Bar Icons on Lollipop Custom ROM (AHD9.1) its way too big for my liking.
Sent from my LG-D855 using XDA Premium 4 mobile app
jeffzmagboo said:
Is theres a way to resize the Navigation Bar Icons on Lollipop Custom ROM (AHD9.1) its way too big for my liking.
Sent from my LG-D855 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes, use ChupaChups4.
OP updated with useful information.
thanks for share my friend just a small question on post 2 why back buttom have different size from the rest?
hugs !
Crash said:
thanks for share my friend just a small question on post 2 why back buttom have different size from the rest?
hugs !
Click to expand...
Click to collapse
Hey, my mistake, fixed.
Kickoff said:
Hey, my mistake, fixed.
Click to expand...
Click to collapse
Don´t worry jus one more question hehe sorry for disturb theres two files for example
ic_sysbar_back_button and ic_sysbar_back_button_trans do we have to change the size on both files or just in the file without the "transparent" ?
Hugs my friend
Both
Hi!
Meet me again with a copy-paste simple mod tutorial (without editing any smali)
to give ur SystemUI runtime theme accent color change
Screenshots:
{
"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"
}
Requirements:
- know how to decompile, recompile, sign apk
- original SystemUI.apk
Steps:
- decompile SystemUI.apk
- open /res/values/colors.xml, add this
PHP:
<color name="somc_color_accent_dark">@android:color/somc_color_accent_dark</color>
- open /res/values/ids.xml, add this
PHP:
<item type="id" name="theme_accent">false</item>
- open /res/values/styles.xml
- find
PHP:
<style name="TextAppearance.StatusBar.Expanded.Clock"
- change
PHP:
<item name="android:textColor">#ffffffff</item>
to
PHP:
<item name="android:textColor">@color/somc_color_accent_dark</item>
- find
PHP:
<style name="TextAppearance.StatusBar.Expanded.Date"
- change
PHP:
<item name="android:textColor">#b2ffffff</item>
to
PHP:
<item name="android:textColor">@color/somc_color_accent_dark</item>
- open /res/drawable-xxhdpi, delete these png's
Code:
ic_edit_settings
ic_qs_auto_sync_on
ic_qs_data_traffic_on
ic_qs_hotspot_on
ic_qs_lte_on
ic_qs_nfc_on
ic_qs_roaming_on
ic_qs_screen_mirroring_on
ic_qs_signal_in
ic_qs_signal_out
ic_qs_stamina_on
ic_qs_throw_on
ic_qs_volte_on
ic_qs_wifi_0
ic_qs_wifi_1
ic_qs_wifi_2
ic_qs_wifi_3
ic_qs_wifi_4
ic_qs_wifi_detail_empty
ic_qs_wifi_full_0
ic_qs_wifi_full_1
ic_qs_wifi_full_2
ic_qs_wifi_full_3
ic_qs_wifi_full_4
ic_qs_wifi_no_network
- open /res/drawable-hdpi, delete ic_tasklist_switch_normal.png
- download attached files, extract, merge it to ur decompiled SystemUI.apk
- save all changes, recompile, sign, push
- done
Note:
- Quick setting tile text isn't colored
- Only affect with themes which don't change quick setting icon
Thanks to: Nathan Ali Ashari & serajr, as my inspirations
Theme Accent Colored Power Menu
Screenshots:
Steps:
- decompile framework-res.apk
- open /res/values/ids.xml, add this
PHP:
<item type="id" name="theme_accent">false</item>
- open /res/drawable-xxhdpi, delete these png's
Code:
ic_lock_restart
semc_ic_dialog_screenshot
somc_ic_dialog_screenrecording
- download attached files, extract, merge it to ur decompiled framework-res.apk
- save all changes, recompile, sign, push
- done
Please report if this work on u
thanks
thanks bro all works great on z1 5.1
Amazing!
can yhu make tha toggles with dis icons here; http://forum.xda-developers.com/cro...d-aosp-systemui-style-themed-z-z1-z2-t3204655...... Good job!
raziel zarafan said:
thanks bro all works great on z1 5.1
Click to expand...
Click to collapse
nice :good:
serajr said:
Amazing!
Click to expand...
Click to collapse
thanks master
whalesplaho said:
can yhu make tha toggles with dis icons here; http://forum.xda-developers.com/cro...d-aosp-systemui-style-themed-z-z1-z2-t3204655...... Good job!
Click to expand...
Click to collapse
yes, I can but I don't like aosp style
idid idamrep said:
nice :good:
thanks master
yes, I can but I don't like aosp style
Click to expand...
Click to collapse
woooooopssss... please can yhu just make for me?
enjoying tha mod.... thanks!:good::good::good:
As far as i know, this code : somc_color_accent_dark from KK, LP is using Material_light ..etc codes, so how it works ?
Added theme accent colored power menu guide
Check post #2
whalesplaho said:
woooooopssss... please can yhu just make for me?
enjoying tha mod.... thanks!:good::good::good:
Click to expand...
Click to collapse
no, bro. sorry. I don't have the icons.
I think u can do it urself
abo hani said:
As far as i know, this code : somc_color_accent_dark from KK, LP is using Material_light ..etc codes, so how it works ?
Click to expand...
Click to collapse
somc_color_accent_dark is exist on LP too, in colors.xml in framework-res.apk or android.zip (theme asset)
in colors.xml, there are:
<color name="somc_color_dark_primary_dark">#ff158597</color> ----> used for status bar color
<color name="somc_color_primary_dark">#ff009faf</color> ----> used for action bar color
<color name="somc_color_accent_dark">#ffd15b40</color> ----> used for tab indicator color, slider color, accent color
<color name="somc_color_accent_light">#ffed6642</color> ----> used for floating action button color
You make very good Tutorials. Thanks for your hard work and keep it up!
Regards
Wolfbreak
Edit: You made a small typo it says delete ic_qs_roaming but it should be ic_qs_roaming_on i guess.
Thanks for sharing.
Quick setting tile text colored!
\SystemUI\res\values\colors.xml
Search:
HTML:
<color name="qs_tile_text">#b3ffffff</color>
Change to:
HTML:
<color name="qs_tile_text">@android:color/somc_color_accent_dark</color>
Power Menu Settings shortcut colored!
delete these png
HTML:
ic_settings.png
Download this file Add to your framework-res Corresponding position.
Download link:
https://mega.nz/#!uZJUyRpQ!iHhlWU1tekjMs6qybqGT_FLlFpIvljXZlpDy1B2AS_g
Thanks bro, use it in upcoming rom?
Wolfbreak said:
You make very good Tutorials. Thanks for your hard work and keep it up!
Regards
Wolfbreak
Edit: You made a small typo it says delete ic_qs_roaming but it should be ic_qs_roaming_on i guess.
Click to expand...
Click to collapse
Thanks for correction
Skies/SANKE said:
Quick setting tile text colored!
\SystemUI\res\values\colors.xml
Search:
HTML:
<color name="qs_tile_text">#b3ffffff</color>
Change to:
HTML:
<color name="qs_tile_text">@android:color/somc_color_accent_dark</color>
Power Menu Settings shortcut colored!
delete these png
HTML:
ic_settings.png
Download this file Add to your framework-res Corresponding position.
Download link:
https://mega.nz/#!uZJUyRpQ!iHhlWU1tekjMs6qybqGT_FLlFpIvljXZlpDy1B2AS_g
Click to expand...
Click to collapse
I know that, but I choose not to coloring them. Anyway, it's ur choice
yuzhengwen said:
Thanks bro, use it in upcoming rom?
Click to expand...
Click to collapse
U mean u wanna use this in ur rom?
Go ahead. No need permission for this
idid idamrep said:
Thanks for correction
I know that, but I choose not to coloring them. Anyway, it's ur choice
U mean u wanna use this in ur rom?
Go ahead. No need permission for this
Click to expand...
Click to collapse
Bro,can u share that overlay apk for customized power menu?
how to add task manager to this?
katibehi said:
how to add task manager to this?
Click to expand...
Click to collapse
http://forum.xda-developers.com/crossdevice-dev/sony-themes-apps/guide-how-to-add-task-manager-panel-to-t3212189
Nice
@idid idamrep i did step right no error recompile but no change at all
i use m4 aqua device
edit systemUI only and not use step ic tasklist, edit setting, clock and date for change. how to fix it
can u edit for me for fix it, at attach my files systemUI already finish like our guide but no change
Any Solution? pls
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : 12 2016-05- 20:40:22.87
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
W: warning: string 'accessibility_quick_settings_airplane' has no default translation.
W: warning: string 'accessibility_quick_settings_bluetooth' has no default translation.
W: warning: string 'battery_low_subtitle' has no default translation.
W: warning: string 'done_button' has no default translation.
W: warning: string 'jelly_bean_dream_name' has no default translation.
W: warning: string 'keyguard_accessibility_status' has no default translation.
W: warning: string 'kg_password_wrong_pin_code' has no default translation.
W: warning: string 'kg_text_message_separator' has no default translation.
W: warning: string 'notifications_off_text' has no default translation.
W: warning: string 'notifications_off_title' has no default translation.
W: warning: string 'quick_settings_wifi_display_label' has no default translation.
W: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation.
W: warning: string 'ssl_ca_cert_dialog_title' has no default translation.
W: warning: string 'ssl_ca_cert_info_message' has no default translation.
W: warning: string 'ssl_ca_cert_settings_button' has no default translation.
W: warning: string 'ssl_ca_cert_warning_message' has no default translation.
W: C:\AdvancedApkTool\3-Out\SystemUI.apk\res\drawable\ic_qs_signal_in.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_qs_signal_in_colored').
W:
W: C:\AdvancedApkTool\3-Out\SystemUI.apk\res\drawable\ic_qs_signal_out.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_qs_signal_out_colored').
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Osyx\AppData\Local\Temp\brut_util_Jar_2350029730569970630.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1, -F, C:\Users\Osyx\AppData\Local\Temp\APKTOOL6263661773584598833.tmp, -0, arsc, -0, arsc, -I, C:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Osyx\AppData\Local\Temp\brut_util_Jar_2350029730569970630.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1, -F, C:\Users\Osyx\AppData\Local\Temp\APKTOOL6263661773584598833.tmp, -0, arsc, -0, arsc, -I, C:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Osyx\AppData\Local\Temp\brut_util_Jar_2350029730569970630.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1, -F, C:\Users\Osyx\AppData\Local\Temp\APKTOOL6263661773584598833.tmp, -0, arsc, -0, arsc, -I, C:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)
... 6 more
------------------------------------------------------