Dear community ,I wanted to edit my framework-res.apk and enable in it navigation bar on my Xperia S.
I did everything. Decompiled ,changed in bools.xml show navigation bar to true ,changed the dpi on dimens.xml but after I try to recompile the apk and rebuild it I get errors and the edited framework-res.apk provides me bootloops.
Can someone please do me a favour and decompile + recompile my framework-res.apk?
Change in bools.xml show navigation bar to true
Change in dimens.xml the DPI of the height=30
height_landscape=30
width=28
I will be very thankful for you! Please help me
Here is my framework-res.apk and SemcGenericUxpRes.apk
http://www51.zippyshare.com/v/42097932/file.html
davidbar93 said:
but after I try to recompile the apk and rebuild it I get errors and the edited framework-res.apk provides me bootloops.
Click to expand...
Click to collapse
Try this - http://forum.xda-developers.com/showthread.php?t=2321207
XperienceD said:
Try this - http://forum.xda-developers.com/showthread.php?t=2321207
Click to expand...
Click to collapse
"In the drawable folder of your framework-res you need to find and change a number of xmls and the easiest way to do this is with Notepad++. Download and open it first, then in the drawable folder highlight all 150 xmls prefixed with semc_, and drop them into Notepad++ (You may want to do so many at a time depending on your Computers specs). Using the search and replace feature, replace..."
I have more than 400 files and not all of them have this line:
"somc:colorizable"
davidbar93 said:
I have more than 400 files and not all of them have this line:
"somc:colorizable"
Click to expand...
Click to collapse
Change the ones that do.
XperienceD said:
Change the ones that do.
Click to expand...
Click to collapse
It is too complicated to search them
Can you please mod it for me?
davidbar93 said:
It is too complicated to search them
Click to expand...
Click to collapse
Then re-read the guide, which as it is was re-written by me and as I explain how to search for them you've either not read the guide properly or just being lazy. So read every last word, then re-read it then re-read it as you follow each step.
XperienceD said:
Then re-read the guide, which as it is was re-written by me and as I explain how to search for them you've either not read the guide properly or just being lazy. So read every last word, then re-read it then re-read it as you follow each step.
Click to expand...
Click to collapse
Thank you very much ,it worked. Appreciate it a lot :good:
Related
Hey, i am a bit noob here decompiling, and compiling system apks, so now im trying to decompile framework-res.apk from my CM7 rom, and i get a 9.png errors when decompiling and another strange one when compiling.
The whole CMD window is attached.
I hope get some help with this, i also got it with CM9 framework.
bump
Sent from my SG Ace
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
zelendel said:
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
Click to expand...
Click to collapse
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
Yes its because of the theme. If yo look at each file it says is broken you will have to remake all those .9.pngs properly. A search will teach you how to do it. You will need the android SDK installed for sure for the .9.png tool.
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
alteredlikeness said:
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
Click to expand...
Click to collapse
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
zelendel said:
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
Click to expand...
Click to collapse
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Adgoosuc said:
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Click to expand...
Click to collapse
The bools XML will be over writted when you flash the theme.
alteredlikeness said:
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Click to expand...
Click to collapse
Ok the 1 px boarder around the image has to be the last thing applied to an image. You can edit it with gimp and 7zip but that breaks the border settings. This is the reason most .9.pngs break when decompiled.
First, sorry for my poor english and thanks to everyone can help me. I really really want to change notification pulldown background to a custom PNG image. So who can show me how to do?
I'm using JJ Hybrid ROm for arcS.
THanks
Oohhlala said:
First, sorry for my poor english and thanks to everyone can help me. I really really want to change notification pulldown background to a custom PNG image. So who can show me how to do?
I'm using JJ Hybrid ROm for arcS.
THanks
Click to expand...
Click to collapse
wrong section :/
http://forum.xda-developers.com/showthread.php?t=1374394
@pandamic : sorry mate, i'm newbie
XperienceD said:
http://forum.xda-developers.com/showthread.php?t=1374394
Click to expand...
Click to collapse
thanks for link, i follow your guide to de-compile SystemUI.apk for editing, i used the guide from http://forum.xda-developers.com/showthread.php?t=1803813 to edit my systemui and when i move new systemui.apk to my phone, i lost my notification . I think i didn't understand exactly these sentences in you guide "Before using the new apk you need to extract the resources.arsc, then simply put it back in the new apk overwriting the original resources.arsc.
In WinRar it will give you the option to choose the compression method, and it's vital that you choose Store as the compression method..."
The resources.arsc file i have to put in the new apk is the one in the decompiled apk folder ?
Sorry for my poor english. THanks
Oohhlala said:
I think i didn't understand exactly these sentences in you guide "Before using the new apk you need to extract the resources.arsc, then simply put it back in the new apk overwriting the original resources.arsc.
In WinRar it will give you the option to choose the compression method, and it's vital that you choose Store as the compression method..."
The resources.arsc file i have to put in the new apk is the one in the decompiled apk folder ?
Sorry for my poor english. THanks
Click to expand...
Click to collapse
No, it's the one from the newly built apk, simply extract it then add it straight back.
XperienceD said:
No, it's the one from the newly built apk, simply extract it then add it straight back.
Click to expand...
Click to collapse
i think i did exactly to compile the apk because i didn't have got bootloop. But i didn't have good result of " dropdown background " editing. I was still fail, lost my notification bar again. It made me a headache three days
I dont know i was wrong in which step to change " dropdown background " into picture
btw when i used Theming tool do decompile Settings.apk, it was fail
hi, can anyone replace icons from archive to apk in archive ? http://www64.zippyshare.com/v/52683022/file.html because when I'm doing it and changing this app in system/app icons are stretched, I changed icons via WinRar because when I'm trying to de/recompile this app via apk tool and other similar applications I have errors and can't do it properly
regards
Yes... But I need the original .pngs (those are from a decompiled .apk) - you can obtain them easy just unzip that .apk using "7 zip". And the framework-res.apk from the same folder (framework) as SemcGenericUxpRes.apk you are trying to modify (because I need to install it in my "APK Multi-Tool", otherwise I can't recompile the .apk)
so here is my framework and original icons http://www16.zippyshare.com/v/11770168/file.html
XperienceD said:
Quick Tip: If all you want to do is edit or replace normal images, things like your Status Bar icons or Menu icons like those used in the main screen of Settings then decompiling IS NOT necessary, simply open the apk in a zip program then just drag and drop any replacement images in to the correct folder, for images like your actual Status Bar which may have a .9 at the end then decompiling IS required.
Note: It's important to use STORE as the compression method when replacing images in the apk.
Also Note: .9 pngs need to be edited ONLY when in the decompiled folder, if you just take a .9 png and edit it then you won't be able to see the borders that the system needs to determine how that image should be displayed. I have included links at the end of this post to help with .9 editing along with links to other various theming resources that I've come across and bookmarked.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
..
XperienceD said:
..
Click to expand...
Click to collapse
I'm noob at this, can you help me with edit these icons, please ?
Deleted
LaShto34 said:
I can help you. But I said to give me the original .png that you want to paste into SemcGenericUxpRes.apk. Those that you uploaded the first time was from a decompiled .apk, and the ones uploaded the second time (with framework-res.apk) are already included in SemcGenericUxpRes.apk. Give me those and I promise I'll give you SemcGenericUxpRes.apk in max. 10 minutes after.
Click to expand...
Click to collapse
http://www76.zippyshare.com/v/9442694/file.html
LaShto34 said:
I can help you. But I said to give me the original .png that you want to paste into SemcGenericUxpRes.apk. Those that you uploaded the first time was from a decompiled .apk, and the ones uploaded the second time (with framework-res.apk) are already included in SemcGenericUxpRes.apk. Give me those and I promise I'll give you SemcGenericUxpRes.apk in max. 10 minutes after.
Click to expand...
Click to collapse
thanks for your effort but I used tutorial from your link http://forum.xda-developers.com/showthread.php?t=2190716 and did it myself and it is working, thank you very much
godlesplay said:
http://www76.zippyshare.com/v/9442694/file.html
Click to expand...
Click to collapse
Here it is. Try it. I hope it will work. By the way I resized them a little, because they were not the same size as the ones from the original .apk.
Later...
OK. I'm very happy for you. Have a nice day. I used the same tutorial for recompiling...
How can I change the icons in the notification bar stock with those of G3??
AssoDiPicche said:
How can I change the icons in the notification bar stock with those of G3??
Click to expand...
Click to collapse
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Thank you!!
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
Thank you very much , I'll try in the evening !
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
Please can you guide me how to decompile and recompile LGSystemUI.apk
yashgumaste said:
Please can you guide me how to decompile and recompile LGSystemUI.apk
Click to expand...
Click to collapse
OK,
First, read this: http://forum.xda-developers.com/showthread.php?t=2251719
When you install al nessesery applications, ask if/when you stuck.
Or, if you ready to learn, there is my favourite app Virtuous Ten Studio, http://forum.xda-developers.com/showthread.php?t=1619473,
or http://virtuous-ten-studio.com/
maxx_hr said:
OK,
First, read this: http://forum.xda-developers.com/showthread.php?t=2251719
When you install al nessesery applications, ask if/when you stuck.
Or, if you ready to learn, there is my favourite app Virtuous Ten Studio, http://forum.xda-developers.com/showthread.php?t=1619473,
or http://virtuous-ten-studio.com/
Click to expand...
Click to collapse
I downloaded Virtuous ten studio and trying to decompile android.policy.jar, but cant find how to do it.
I opened that jar file through new project but cant figure out what to do next.
yashgumaste said:
I downloaded Virtuous ten studio and trying to decompile android.policy.jar, but cant find how to do it.
I opened that jar file through new project but cant figure out what to do next.
Click to expand...
Click to collapse
Didn't you ask: Please can you guide me how to decompile and recompile LGSystemUI.apk.
So, lets start with that... it is (infinitely) simpler than handling with android.policy.jar.
For beginning, please read and install from here:http://forum.xda-developers.com/showthread.php?t=2251719
All of this you need if you want to use VTS.
That is good base for start and understand this process (and works with kitkat).
And for virtuos ten studio, first you MUST read tutorials at this page: http://virtuous-ten-studio.com/, but if you don't understand base of whole process, VTS is useless.
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
I think we can decompile and compile apk via any root browser (Extract to decomplie and zip to compile).
Do you know a link where I can get notification bar icons from G3.
Thank you
yashgumaste said:
I think we can decompile and compile apk via any root browser (Extract to decomplie and zip to compile).
Do you know a link where I can get notification bar icons from G3.
Thank you
Click to expand...
Click to collapse
I dont know where you take only icons, you must take it by yourself from LGSystemUI, or framework-res from original G3 rom.
Try to extract from here: https://app.box.com/s/m0tvrwabte4x6lyc2la1, if they look like in attached pic.
Or try to search or ask someone on G3 forum.
Hi guys
I want to edit speed dial
Background, round corner, text color
How to this.?
abdoosman said:
Hi guys
I want to edit speed dial
Background, round corner, text color
How to this.?
Click to expand...
Click to collapse
You'll need to use apktool.jar to decompile the apk then to recompile again and test. Keep in mind you'll need some knowledge on XML coding
TheExploitedOne said:
You'll need to use apktool.jar to decompile the apk then to recompile again and test. Keep in mind you'll need some knowledge on XML coding
Click to expand...
Click to collapse
Thank you
I have knowledge of the. xml files
where I find the files for this
Dialer.apk or Contact.apk.?
abdoosman said:
Thank you
I have knowledge of the. xml files
where I find the files for this
Dialer.apk or Contact.apk.?
Click to expand...
Click to collapse
Usually under /system/app or /system/priv-app
TheExploitedOne said:
Usually under /system/app or /system/priv-app
Click to expand...
Click to collapse
Thank you
I decompile the Dialer.apk app
where I find its layout speed Dial
abdoosman said:
Thank you
I decompile the Dialer.apk app
where I find its layout speed Dial
Click to expand...
Click to collapse
You should see a folder called layout or something similar