lg widget bar on custom rom - LG Optimus 2x

Hi all,
i need some help over here.
I've changed many, many things in my framework folder. Now the next step is to add the notifications bar toggles from lg-res.apk
I took one prebaked lg-res.apk and modified it a bit. Then i zipped it into my rom, but no toggles jet...
My guess is that there are more files to edit to get the toggles working.
Can somebody help me out a little bit.
Every time i give up and post a question how to fix something, i emediatly find a fix..... So i have my toggles working, but want te remove the music widget. How can i decompile the .xml file to remove the lines from there ?

you edit the xml with notepad, you don't decompile an xml

Mjuksel said:
you edit the xml with notepad, you don't decompile an xml
Click to expand...
Click to collapse
ok ok, i decompiled framework-res then edited the xml file, but now i've got some bootloops

could you tell us how you got the toggles working???
can you take these out of the original rom and put them in another?

monkeytown said:
could you tell us how you got the toggles working???
can you take these out of the original rom and put them in another?
Click to expand...
Click to collapse
i extracted the lg-res.apk from a basic rom, edited it and placed in my framework folder.
Then i copied the file: status_bar_extended.xml from framework-res.apk to my own framework-res.apk.
That worked, but the carrier bar is now empty and i don't have a solution for that right now.

peewster said:
Hi all,
Every time i give up and post a question how to fix something, i emediatly find a fix..... So i have my toggles working, but want te remove the music widget. How can i decompile the .xml file to remove the lines from there ?
Click to expand...
Click to collapse
to remove the music widget buttons, you need lg music installed.
you can remove the buttons in menu of lg music ...

peewster said:
i extracted the lg-res.apk from a basic rom, edited it and placed in my framework folder.
Then i copied the file: status_bar_extended.xml from framework-res.apk to my own framework-res.apk.
That worked, but the carrier bar is now empty and i don't have a solution for that right now.
Click to expand...
Click to collapse
how do you know, what "status_bar_...." files you need?? if i wanted to copy the status bar toggles from a working rom, should i copy all staus_bar_ files i find?

monkeytown said:
how do you know, what "status_bar_...." files you need?? if i wanted to copy the status bar toggles from a working rom, should i copy all staus_bar_ files i find?
Click to expand...
Click to collapse
Well i think i had some stupid luck , just looked at all the file names and picked the one that looked the most logical to me

oh i see
but let me take a guess, you deal with the toggles to include them in your rom?

monkeytown said:
how do you know, what "status_bar_...." files you need?? if i wanted to copy the status bar toggles from a working rom, should i copy all staus_bar_ files i find?
Click to expand...
Click to collapse
It's just status_bar_expanded for the pull down, only one file.
@OP - Just change the height of the music control block to '0dip' in status_bar_expanded to hide the music controls - you can not remove them (but hide works fine). You do not need to use the LG Music app to do this.
Or search for my mod posted here and extract the status_bar_expanded xml.

Related

[Q] How to mod framework-res.apk and twframework-res.apk

Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
icezar1 said:
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=724778
Get apk manger.I'm trying to do this too.
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
icezar1 said:
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
Click to expand...
Click to collapse
find you find out before keep me updated, and i'll do the same.
icezar1 said:
Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Click to expand...
Click to collapse
You can change the battery icons in the framework-res.apk [look in the res/drawable hdpi/stat_sys_battery_x.png
and to change the text color: I was trying to figure that one out last week....From what I figured out you need to modify:
res/layout/status_bar_latest_event_content.xml
Which is found in your framework-res.apk aswell....Decomplie-edit-recomplie....
Good luck
what program are you using to edit your xml's?
chaosjh said:
what program are you using to edit your xml's?
Click to expand...
Click to collapse
apk_manager_4.9 to decomplie-recomplie. Then use notepad to edit
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
No way..
OK, just decompiled-added icons from other decompiled framework-recompiled, no xml edits-installed. Look is changed, battery icons now displaying fine but... force closes and restarts the shell in less than 20 secs...
yup try the winrar method - there is no decompiling.. just copies the images into the *.apk
And shouldn't have any FC's if you try that method.
avgjoegeek said:
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
Click to expand...
Click to collapse
Yeah i changed icon with winRar, and all kinds of crazy stuff happed. Loop boots,and Fc
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
fritzgerald said:
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
dfuse06 said:
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
Click to expand...
Click to collapse
Shoot me a link to the icons you're trying to use. What ROM are you using(name & version). What text are you looking to change? There's not one global change to make all the text different I'll need to know what specifically you're trying to change.
I use the uot kitchen you get the icon on perception 7,but im on 8 now. I'm running perception 7 darknees 2.3 theme, and that is what i'm trying to get the icons on its the battery icon of the android smiley faces it is version j with white numbers. i'm going to look for a link for them.i have the framwork-res.apk with them in it.
When you recompile with APK Manager, a couple of things are very important to do:
1. Hit yes to "system app".
2. Hit yes to restoring the files:
-Open the "keep" folder and delete resources.arsc. Then delete anything you changed (if it's there).
3. Do NOT sign it.
It should work.
PuffinNugz said:
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
Click to expand...
Click to collapse
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
TheEscapist said:
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
Click to expand...
Click to collapse
I just dragged the images from a particular themes framework and dropped them to the new one all within 7zip.

How can I mix different themes?

Hi guys.
I've been using the Elegance Theme by Erestor6 for some time now, but I find I would really like a white status bar.
So I went to the UOT Kitchen and designed my own.
It's not refined like the work of Erestor, but it will do for me.
Problem, in the first attached image you can see the result of my UOT kitchen mod.
It's nice but the default switch buttons don't fit.
In the second image you can see the wonderfull Erestor work.
I would like to have his switches and my status bar. How can I do that?
Also in the third image you can see a problem: whenever a phone call is started, the status bar turns black again. I suspect it's embedded in the dialer apk.
Can anyone help me in fixing these issues?
erups said:
Hi guys.
I've been using the Elegance Theme by Erestor6 for some time now, but I find I would really like a white status bar.
So I went to the UOT Kitchen and designed my own.
It's not refined like the work of Erestor, but it will do for me.
Problem, in the first attached image you can see the result of my UOT kitchen mod.
It's nice but the default switch buttons don't fit.
In the second image you can see the wonderfull Erestor work.
I would like to have his switches and my status bar. How can I do that?
Also in the third image you can see a problem: whenever a phone call is started, the status bar turns black again. I suspect it's embedded in the dialer apk.
Can anyone help me in fixing these issues?
Click to expand...
Click to collapse
the toggle buttons are stored in systemUI.apk, you have to change them manually, not with UOT
i uploaded the icons for you , you can exchange them with erestor ones and put em back in systemUI.apk ...
75markus said:
the toggle buttons are stored in systemUI.apk, you have to change them manually, not with UOT
i uploaded the icons for you , you can exchange them with erestor ones and put em back in systemUI.apk ...
Click to expand...
Click to collapse
Thanks, but yours are not the same as Erestor's.
But you pointed me in the right direction: I thought all these files were packed somehow, but looking in erestor's zip they are all there in plain site.
I can try a merge
Edit: I spoke too soon, the UOT zip is packed. They are already apk files.
How can I unpack them?
erups said:
Thanks, but yours are not the same as Erestor's.
But you pointed me in the right direction: I thought all these files were packed somehow, but looking in erestor's zip they are all there in plain site.
I can try a merge
Edit: I spoke too soon, the UOT zip is packed. They are already apk files.
How can I unpack them?
Click to expand...
Click to collapse
yes, i know they are not same, just wanted to point you to this direction ...
just use winrar, winzip, 7zip or whatever to extract them
75markus said:
yes, i know they are not same, just wanted to point you to this direction ...
just use winrar, winzip, 7zip or whatever to extract them
Click to expand...
Click to collapse
You mean an apk is just a zip????
My gosh... couldn't believe it
erups said:
You mean an apk is just a zip????
My gosh... couldn't believe it
Click to expand...
Click to collapse
Yeah, that´s it
just open it with winRAR, and drag new icons into it.
as long as if you don´t change xml files, you can just drag & drop
Yes I noticed, thanks mate!!!
Now since I'm modding my phone, I tried modding the bootanimation.
I took the one I chose with the UOT, unpacked, modified the images, resaved, repacked and put it in my phone.
It doesn't work.
The images have the exact same dimensions and name, still the screen is black.
I used photoshop to save the PNGs.
What may be wrong?
One frame is attached below.
erups said:
Yes I noticed, thanks mate!!!
Now since I'm modding my phone, I tried modding the bootanimation.
I took the one I chose with the UOT, unpacked, modified the images, resaved, repacked and put it in my phone.
It doesn't work.
The images have the exact same dimensions and name, still the screen is black.
I used photoshop to save the PNGs.
What may be wrong?
One frame is attached below.
Click to expand...
Click to collapse
I can tell you :
for bootanimation, it is necessary that you save the zip WITHOUT Compression after modding the images ! (not just drag & drop into zip file, this will use compression !)
you can choose that in winRAR for example, just use option : save
you can have a look at my bootanimation and check archive details ...
http://www.mediafire.com/75markus#r5ah69lj81ci8,1
75markus said:
I can tell you :
for bootanimation, it is necessary that you save the zip WITHOUT Compression after modding the images ! (not just drag & drop into zip file, this will use compression !)
you can choose that in winRAR for example, just use option : save
Click to expand...
Click to collapse
Ok thanks!
It's working
erups said:
Ok thanks!
It's working
Click to expand...
Click to collapse
fine 10 chars

ICS - Little theming but doesn't work

Hello, I'm pretty noob on theming...
I have a HTC Desire with a custom ICS ROM, no problem
I want to change some status bar notification icons:
- Icon for GPS
- Icon for new mail from gmail
- Icon for new chat message
- Icon for missed call
So I extracted the apk framework-res.apk from the system/framework directory via ADB
In the apk, I replaced the files:
\res\drawable-hdpi\stat_sys_gps_on.png
\res\drawable-hdpi\stat_notify_chat.png
\res\drawable-hdpi\stat_notify_missed_call.png
\res\drawable-hdpi\stat_notify_gmail.png
with my custom icons
then I pushed back the framework-res.apk at his place
Problem: Only the GPS icon is replaced... where did i messed up ?
Best regards
Oligoy said:
Hello, I'm pretty noob on theming...
I have a HTC Desire with a custom ICS ROM, no problem
I want to change some status bar notification icons:
- Icon for GPS
- Icon for new mail from gmail
- Icon for new chat message
- Icon for missed call
So I extracted the apk framework-res.apk from the system/framework directory via ADB
In the apk, I replaced the files:
\res\drawable-hdpi\stat_sys_gps_on.png
\res\drawable-hdpi\stat_notify_chat.png
\res\drawable-hdpi\stat_notify_missed_call.png
\res\drawable-hdpi\stat_notify_gmail.png
with my custom icons
then I pushed back the framework-res.apk at his place
Problem: Only the GPS icon is replaced... where did i messed up ?
Best regards
Click to expand...
Click to collapse
Not every image will be found in the framework-res.apk so you need to pull apart a few apks to find the image you're after.
Thanks,
Oh I see... it's strange because I actualy found the images in framework-res.apk
So they are in another file too... I'm going to look for them
I someone knows the place to look for...
Oligoy said:
Thanks,
Oh I see... it's strange because I actualy found the images in framework-res.apk
So they are in another file too... I'm going to look for them
I someone knows the place to look for...
Click to expand...
Click to collapse
I don't own an HTC device so I don't know off the top of head, but Im pretty sure the other apk is called HTC resources or something.
Oligoy said:
Oh I see... it's strange because I actualy found the images in framework-res.apk
Click to expand...
Click to collapse
There are lots of images in there that aren't used by the system for whatever reason, so while they may look the same, doesn't mean it's what you're looking for.
Oligoy said:
I someone knows the place to look for...
Click to expand...
Click to collapse
But much more rewarding to find it by yourself.
I looked into ALL the apks of the ROM and can't find others files corresponding :-/
But you're not using a theme, right? :laugh:
These icons are normally located in framework-res.apk/systemui.apk/any device specific resource file.
Do you looked into systemui? There should be at least the icons, even if they're not used.
cakebomb said:
But you're not using a theme, right? :laugh:
These icons are normally located in framework-res.apk/systemui.apk/any device specific resource file.
Do you looked into systemui? There should be at least the icons, even if they're not used.
Click to expand...
Click to collapse
No, I'm not using a theme, I just want to change 4 statut bar icons
And yes I looked into systemui, but the icons are not inside
The gmail icon will need to be changed in the gmail.apk have you looked in there?
Sent from my Phone.
Oligoy said:
Hello, I'm pretty noob on theming...
I have a HTC Desire with a custom ICS ROM, no problem
I want to change some status bar notification icons:
- Icon for GPS
- Icon for new mail from gmail
- Icon for new chat message
- Icon for missed call
So I extracted the apk framework-res.apk from the system/framework directory via ADB
In the apk, I replaced the files:
\res\drawable-hdpi\stat_sys_gps_on.png
\res\drawable-hdpi\stat_notify_chat.png
\res\drawable-hdpi\stat_notify_missed_call.png
\res\drawable-hdpi\stat_notify_gmail.png
with my custom icons
then I pushed back the framework-res.apk at his place
Problem: Only the GPS icon is replaced... where did i messed up ?
Best regards
Click to expand...
Click to collapse
try looking in the contacts or phone apks for missed call, gmail in gmail and chat in talk....
if they are not in the framework or system ui....they are in the apk that controls the image being used.....
jasonevil said:
try looking in the contacts or phone apks for missed call, gmail in gmail and chat in talk....
if they are not in the framework or system ui....they are in the apk that controls the image being used.....
Click to expand...
Click to collapse
Yeah I found gmail notification icon in the gmail.apk :victory:
Thanks XperienceD and jasonevil
But others... are nowhere, I looked in all apks... the only ones are in framework-res but mod them don't make any change :crying:
Oligoy said:
Yeah I found gmail notification icon in the gmail.apk :victory:
Thanks XperienceD and jasonevil
But others... are nowhere, I looked in all apks... the only ones are in framework-res but mod them don't make any change :crying:
Click to expand...
Click to collapse
missed call is in framework. make sure you are coding it right and that the file names matched.
in android.xml
Code:
<item name="drawable/stat_notify_missed_call">@drawable/stat_notify_missed_call</item>
i found the google talk chat icons in the drawable-xhdpi folder in the Talk.apk
your xml for that should be com_google_android_talk.xml
Code:
<item name="drawable/stat_notify_ongoing_audio_chat">@drawable/stat_notify_ongoing_audio_chat</item>
<item name="drawable/stat_notify_ongoing_video_chat">@drawable/stat_notify_ongoing_video_chat</item>
<item name="drawable/stat_notify_talk_audio">@drawable/stat_notify_talk_audio</item>
<item name="drawable/stat_notify_talk_text">@drawable/stat_notify_talk_text</item>
<item name="drawable/stat_notify_talk_video</item>

lildroid-res.apk missing

hey guys,
i want to modify my toggle-bar.
but for that lidroid-res.apk is necessary, but it is NOT in /system/framework
i need this file for modding...
any ideas?
My ROM: see signature
JackoMJ
For modding toggle bar is necessary to made some smali and xml edit too, only lidroid apk in framework folder is for nothing. Look here for more info.
somin.n said:
For modding toggle bar is necessary to made some smali and xml edit too, only lidroid apk in framework folder is for nothing. Look here for more info.
Click to expand...
Click to collapse
Thx somin, i read the thread and tested it.
And i must confess that i am too silly for that ... :crying:

Custom Wifi/Signal icons - Marshmallow

Hi,
I'm running resurection remix with
neptune cm13 theme
I would like to use some other themes status bar icons ..
I'm looking for an easy way to just replace the wifi and signal icon by the ones of the second theme without touching anything else
Is this possible ?
Thanks
edit : looks like there are already some explanations in different threads..reading those at the moment
I use winrar and open the apk then drag and drop the icons in the appropriate folder
32dave said:
I use winrar and open the apk then drag and drop the icons in the appropriate folder
Click to expand...
Click to collapse
Hi,
Sorry did not see your answer..can you give me more details ?
Which are the proper icons and in which folder should it be pasted ? :angel:
greg285 said:
Hi,
Sorry did not see your answer..can you give me more details ?
Which are the proper icons and in which folder should it be pasted ? :angel:
Click to expand...
Click to collapse
I will upload a decompiled systemui and you can browse through it and see where everything is but most will be in res\drawable-xxxhdpi-v4 on a stock Note 4 rom and the icons in the status bar start with "stat_sys"
here is the file its in zip format but is not usable so just unzip its from 5.1.1-N910W8VLU1COK3 but all are pretty much the same, also if you want to change colours and position of icons you will need to decompile the apk easiest program I have ever used is Tickle My Android which can be found here http://forum.xda-developers.com/showthread.php?t=1633333
systemui zip is here https://www.androidfilehost.com/?fid=24415232478675087
Hi...understood, thanks for the answers.
I also digged my hands in apkstudio, apk signing and zipaliging processes and managed to achieve thos and even tweak some aps
Sent from my A0001 using XDA

Categories

Resources