I know it can be done by 7-zip but i get some errors. Look at the screen shots here
{
"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"
}
In the first picture look at the notification bar.
I just edited the swagger toggle. It's resolution is the same as the resolution of the original file.
As I've spotted also original apk image in file manager changed from the smiling bean to the clock...
Sent from my R800i using xda premium
You can't use 7-zip. You need to decompile the APK with APKTool because the PNG's are encoded as 9-patch PNG's. Google these terms for more info, there are heaps of guides out there for editing APK resources.
Odp: How can I edit system-ui.apk properly in jellybean?
So all i have to change is to add black lines on the top and on the left on the image + rename the file to toggle swagger.9.png right?
Or I don't have to do this at all and I just have to use the apktool?
Sent from my R800i using xda premium
olokos said:
So all i have to change is to add black lines on the top and on the left on the image + rename the file to toggle swagger.9.png right?
Or I don't have to do this at all and I just have to use the apktool?
Sent from my R800i using xda premium
Click to expand...
Click to collapse
No, that won't work. The black lines are a decoded PNG file, but the .9.png's in the APK are encoded. APKTool encodes and decodes the PNG's as needed.
If the filename is called swagger.png inside APK then it's not a .9.png and doesn't need it. But the .9.png isn't needed in filename, it's just an easy indication for hackers/source builders that it's a 9-patch PNG. The graphics I see in the screenshot are a classic symptomn of an encoded .9.png losing it's hidden 9-patch layer from modification.
Just decompile the original APK with APKTool, make your mods and preserve the already existing 1px border that might be on any PNG files, then recompile the APK and resign if needed.
Related
Recently used the ..ICS COMPLETE PACKAGE 2.1 w/ Juggernaut 4.1. Enjoy it alot but not a fan of settings color
{
"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"
}
How would i change the color of these icons from the blue to a white?
KrisHilbun said:
Recently used the ..ICS COMPLETE PACKAGE 2.1 w/ Juggernaut 4.1. Enjoy it alot but not a fan of settings color
How would i change the color of these icons from the blue to a white?
Click to expand...
Click to collapse
Easy way, which is not easy, is to learn how to edit the systemUI.apk and framework-res.apk ..
There is no "simple" way to change these without flashing a new theme ...
Which apk/'s would i need to decompile and edit?
Sent from my SGH-T989 using xda premium
Update;
Android ApkTool Tutorial Extremely helpful..
Setup apktool on linux
installed frameworks with apktool, since was changing settings.apk required both frameworks to be installed..
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
Once framework installed decompile the settings.apk (case sensitive)
Code:
apktool d Settings.apk out
apktool d (decompile) Settings.apk (/locaation/apk/) out (folder name for after decompiled)
Once decompiled go to folder.. mine which is named out in home directory..
/res/drawable-hdpi/ location of the pngs (pictures seem blown up but i think thats flickr)
ic_settings_icon_juggernaut.png
ic_settings_applications.png
now to change colors of png and recompile...
TO BE CONTINUED!
Does anyone know how to modify the transparency of the notification bar header? I've tried editing drawables.xml but no luck and I cant seem to find a png linked to it. Any ideas? I've only had this problem on BAMF ROM. I've uploaded the theme chooser apk im using if someone wants to take a look.
Thanks
In the pic below it looks fully opaque, but it's not.
{
"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"
}
You need to compile the systemUI.apk from ROM source.
http://forum.xda-developers.com/showthread.php?t=1409540
Beamed from my Grouper.
That tutorial if for the status bar. I'm talking about the drop down notification header.
ssmcd said:
That tutorial if for the status bar. I'm talking about the drop down notification header.
Click to expand...
Click to collapse
It should some what be the same.
notification_header_bg.9 is not included as a themed item in that apk you provided. To add it you would need to decompile the bamf apk add in edited image and add appropriate lines to the systemUI xml and recompile and sign. You know though if you make it trans it's gonna look pretty funny with all that crap overlaying.
good day.
chopper the dog said:
notification_header_bg.9 is not included as a themed item in that apk you provided. To add it you would need to decompile the bamf apk add in edited image and add appropriate lines to the systemUI xml and recompile and sign. You know though if you make it trans it's gonna look pretty funny with all that crap overlaying.
good day.
Click to expand...
Click to collapse
Haha thanks man, I cant believe I didn't find that png. That's all i needed. It's strange because with other themes I've only needed to change the color in the drawable.xml, there was no png. Right now it's transparent and looks like crap on my phone with purple tint. I'm changing it to be fully opaque.
Here's what I have so far for a homescreen. I really want the top center clock to be white, and if it all possible the wifi/signal bars to be white as well. Something simple like MIUI. Also, is there a way to hide the vibration/silent icon from the notification bar? Any dice??
{
"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"
}
I don't have any dice, but I'll have a look for you.
What rom are you on?
Sent from my Galaxy Nexus
what about trying Statusbar+ ?
https://play.google.com/store/apps/...sImNvbS50b21iYXJyYXNzby5hbmRyb2lkLndwN2JhciJd
if you extract and upload the SystemUI.apk from whatever ROM you are using, i can make a few of the edits you are asking for. i will also write out the steps for you if you want to try it yourself or do it again in the future. it's actually pretty simple to modify a lot of these images with 7-zip and a photo editor.
1. open (open, not extract.) the ROM archive with 7-zip. browse to system/app/SystemUI.apk/res/drawable-xhdpi.
2. locate the following files and extract them:
stat_sys_signal_1_fully.png
stat_sys_signal_2_fully.png
stat_sys_signal_3_fully.png
stat_sys_signal_4_fully.png
stat_sys_wifi_1_fully.png
stat_sys_wifi_2_fully.png
stat_sys_wifi_3_fully.png
stat_sys_wifi_4_fully.png
stat_sys_ringer_silent.png
stat_sys_ringer_vibrate.png
3. edit the images so that the bar color is white, and edit the silent/vibrate images so that they are totally transparent (blank).
4. save those images, and drag them back into the drawable-xhdpi folder in 7-zip. say "yes" to the prompts about overwriting files or changing/updating the archive.
5. you can now flash that ROM file as is. 7-zip won't mess up the signatures. or if you don't want to flash the whole ROM over, you can simply extract the SystemUI.apk and do the edits in the apk file directly. then you can push the apk back to your phone.
the clock color in the status bar will need an XML edit or two, which is unfortunately a bit over my head, but this will at least get you most of the way there in your vision for your homescreen.
I'm trying to decompile lidroid-res.apk using apktool. I just want to add translation for my native language. I know it is usually quite easy, you just have to add a /res/value-fr/ folder with a strings.xml file inside and then you translate the string contained in the strings.xml file. Unfortunately, I have trouble decompiling it, I get multiple errors. I already had framework-res.apk and twframework-res.apk installed using "apktool if" command so it can't be the cause of my problem. Also, please take note that the lidroid-res.apk file come from this ModPack, in case it could be us find the solution.
Here's a screenshot showing the errors:
{
"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"
}
Nico3d3 said:
I'm trying to decompile lidroid-res.apk using apktool. I just want to add translation for my native language. I know it is usually quite easy, you just have to add a /res/value-fr/ folder with a strings.xml file inside and then you translate the string contained in the strings.xml file. Unfortunately, I have trouble decompiling it, I get multiple errors. I already had framework-res.apk and twframework-res.apk installed using "apktool if" command so it can't be the cause of my problem. Also, please take note that the lidroid-res.apk file come from this ModPack, in case it could be us find the solution.
Here's a screenshot showing the errors:
Click to expand...
Click to collapse
Got it to decompile. Turns out it was because I had switched some .png files (I had made the quickpanel background dark blue instead of the default grey), so I just took the original unmodified lidroid-res.apk, and it decompiled perfectly! Attached is the original lidroid-res.apk, decompiled (and compressed into a .rar archive). Translate it to French, and upload the changes here so I can incorporate them into the next version of Mod Pack II X please
If anyone could offer some advice I'd be very grateful!
I used Unicon to apply an icon pack across my device, so my home screen currently looks like this:
{
"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"
}
My lockscreen on the other hand displays the shortcut icons in grey circles:
What I'd like to do is remove those grey circles such that the shortcuts look like the ones on my home screen. I do have G3 Tweaksbox but it doesn't seem to offer a solution to this.
Thanks!
Open "lgkeyguard.apk" in /system/priv-apps/
via apk-decompile / winrar (extract the res/drawable-xxxhdpi folder)
Search the picture corresponding with the background you want to change.
Copy the recompiled apk back after recopying the picture.
Done.
-Rye- said:
Open "lgkeyguard.apk" in /system/priv-apps/
via apk-decompile / winrar (extract the res/drawable-xxxhdpi folder)
Search the picture corresponding with the background you want to change.
Copy the recompiled apk back after recopying the picture.
Done.
Click to expand...
Click to collapse
Great, thanks! Unfortunately I've never dealt with decompiling/recompiling apk's before, so I'll have to approach this stuff carefully. I actually can't find lgkeyguard.apk in /system/priv-app/ using Root Browser though - is it possible that is has a different name / location in Lollipop?
/system/priv-app/LGKeyguard.apk
is the exact path for me (KK 4.4.2)
You could do a search for it using your filebrowser if it isn't there in LP.
Replacing pictures in apk files via Winrar is rather save.
I'd suggest that if you haven't tinkered with apk's b4.
Thanks for the advice, I appreciate it!