[q] help with framework mod - General Questions and Answers

Hi. I'm making an ics mod to my phone. I've tried to change the progress bar like ics. I know that the files that i have to change are progress horizontal (drawable folder) to make it square changing to 0.0 dip and change the color, and the other file is styles.xml (values folder) to change the width of the bar changing the values of widget progress bar and seekbar to 5.0dip. When i change everything and recompile using apk multi tool i followed the steps, and when i get the recompiled apk I read in other post that i had to move the meta-inf folder, the manifest file, to the original framework and when i put it back to my phone nothing changes. So i moved the resources.asrc file too but i get a bootloop. Can anyone tell me what i'm doing wrong? Maybe is because i don't sign the framework? thanks in advance.
PD: I'm using Froyo

mschief148 said:
Hi. I'm making an ics mod to my phone. I've tried to change the progress bar like ics. I know that the files that i have to change are progress horizontal (drawable folder) to make it square changing to 0.0 dip and change the color, and the other file is styles.xml (values folder) to change the width of the bar changing the values of widget progress bar and seekbar to 5.0dip. When i change everything and recompile using apk multi tool i followed the steps, and when i get the recompiled apk I read in other post that i had to move the meta-inf folder, the manifest file, to the original framework and when i put it back to my phone nothing changes. So i moved the resources.asrc file too but i get a bootloop. Can anyone tell me what i'm doing wrong? Maybe is because i don't sign the framework? thanks in advance.
PD: I'm using Froyo
Click to expand...
Click to collapse
Did you resign the new apk?

Victorian09 said:
Did you resign the new apk?
Click to expand...
Click to collapse
At the first time no. But I tried resingning the new framework but it's the same result (bootloop)

Related

problem replacing specifc icon (status bar)

I can't seem to replace an icon in my framework-res.apk and I'm wondering if it's possible to create a flashable .zip file that'll overwrite the icon I want replaced in the file.
Attached is the alarm clock icon (with the proper file name) which I extracted from the Droid 2 framework-res.apk.
I want to replace the CM6 icon I'm using now w/ the Droid 2 icon I'm attaching.
I copy my apk to my computer, unzip it, replace 'stat_notify_alarm.png', zip it back up, rename to apk, use the 'Android-sign' droplet app (I'm on a Mac), push back to the system/framework folder, reboot, nothing... old icon still there.
1. Can someone tell what steps I'm missing?
2. Can someone create a flashable .zip that'll overwrite the icon?
Thanks!
Give me your framework-res.apk and I will do it for you signed and everything
I'd like to know how to do this too.
I also have a question about icons on the homescreen. Is there anyway to get rid of the text right underneath the icon?
ms79723 said:
I also have a question about icons on the homescreen. Is there anyway to get rid of the text right underneath the icon?
Click to expand...
Click to collapse
Use LauncherPro.......you can hide the text in preferences.
ms79723 said:
I'd like to know how to do this too.
Click to expand...
Click to collapse
i'd like to know too.
As for creating a flashable zip, make your changes and then delete the 2 cert files and the manifest file inside the meta inf folder then sign it. You can use Avabox or the tool regaw just made.
Sent from my SUPERSONIC
bluebeast213 said:
Use LauncherPro.......you can hide the text in preferences.
Click to expand...
Click to collapse
well i want to make new icons for sense that dont have the text on the bottom
xxbabiboi228xx said:
Give me your framework-res.apk and I will do it for you signed and everything
Click to expand...
Click to collapse
Here's my framework-res.apk
*Note* my APK has a modded battery icon (don't know if that matters to you or not but better safe than sorry )

Anyone managed to change style.xml and recompile/add resources.arsc

Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
go3asy said:
Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
Click to expand...
Click to collapse
Have you followed this guide to the letter?
I changed the progressbar_horizontal.xml in my framework using this guide and it worked!
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Try asking Mr.Rusch or Calum?
Sent from my X10a using XDA App
go3asy said:
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Click to expand...
Click to collapse
Hmm style.xml is not viewable but also not any other .xml is viewable or readable if you do not decompile.
So I return to My_Immortal's initial question. Have you followed calum's guide about decomipling/recompiling the resources to the letter? What about the part where you take the .asrc file from the unsigned.apk and you chose to add it to the copmressed .zip file (which is the original signed apk that you have renamed). Have you done that exactly as you should?
_calum_ said:
This will create a new framework-res.apk in a subfolder out.
IMPORTANT: Do not push this apk to your phone unless you want to reflash
Extract the xml files and images from the newly generated apk (you can use the original images, but the xml files must be the newly compiled ones from the new apk). Add these files to the original framework-res.apk that you want to push to your phone (see the previous post).
Extract the resources.arsc from the root of the apk
Rename the original framework-res.apk from your theme to framework-res.zip
Right-click the extracted resources.arsc and choose the 7zip menu item ‘Add to archive’
In the dialog that appears set the achive field at the top to the framework-res.zip from step 7. And set the archive format to zip. Now set the Compression level to store and click OK(if you do not do this your phone will not boot). The settings are in the attached screenshot.
Rename framework-res.zip to framework-res.apk and double check that the compressed size or resources.arsc is the same as the original size (see screenshot)
Done. Push the new framework to your phone.
Click to expand...
Click to collapse
Its tge re compiling tgatsvthe problem aleays get sources not founf error in apktool. Read that it might be im not using fresh framework files tgat havent already been fiddlef eith but dont have any originnalsat the moment they all gave battery mod
Sent from my X10i using XDA App

Editing CM7 APK's?

ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
n388mm said:
ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
Click to expand...
Click to collapse
Did you edit androidmanifest xml correctly? At times if your preview.png is not in the right place then there is no preview but the name should show up from androidmanifest with blank preview.
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
n388mm said:
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
Click to expand...
Click to collapse
if you are just changing a png, just use 7zip or an equivalent program. But in the op you said decompile and recompile with apk manager, then you better update the Androidmanifest.xml and might need to change values and style xmls as well. but either ways I would use the application installer for this instead of ADB. So if its an existing package with the same name , browse to the apk with say Astro and it will take you to the installer, uninstall first and then install the new one.
I just use 7zip, way easier...
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
WFG said:
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
Click to expand...
Click to collapse
searched in there but couldn't seem to find the files
bump..... 10 char
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
Very likely in the Drawable folders. Or go through the redirections xmls and you should be able to reverse engineer. I think it depends on what your base apk is.

[Q] stat_sys_battery_charge.xml issue

I have been making my own battery mod for the sensation ICS Robo rom.
I use apk Manager 5.02 to decompile the framework-res.apk file and it decompiles successfully. I then change the 200 png files and then changed the stat_sys_battery_charge.xml to suit. I am making a battery icon that shows up purely as text so if it 100% it will show up as 100
I want the charge XML to show a green number when charging and a white number when not charging. When I compile the framework-res.apk file it compiles with out any errors. I then sign the file, rename it framework-res.apk and flash it.
It works ok, but makes the status bar at the top much bigger and throws the rest of the rom out. Any ideas were I went wrong?
Here is a copy of the xml file - it has been renamed from .xml to .txt so I can upload!
Found out what was wrong. I was using the wrong version of apktool.jar. Downloaded the correct version and now can edit my own ICS fies

[ASK][MIRO] Guide on how to decompile system apk file

Hi guys, someday ago i tried to decompile the SystemUI.apk. The modded version is named : SystemUI_mod.apk and the original is SystemUI.apk. I've done the copy procedure of META-INF folder, but every time i tried to push it to my phone, it cause my phone to get a bootlop. Is there any guide on how to decompile, editing, or something that is safe for my phone? And is there any way to mod my font colour to red, blue, or anything? Because my phone background is white, so i cant see anything Thanks for your help :highfive: Sorry if i posted it in the wrong section
FajarMF28 said:
Hi guys, someday ago i tried to decompile the SystemUI.apk. The modded version is named : SystemUI_mod.apk and the original is SystemUI.apk. I've done the copy procedure of META-INF folder, but every time i tried to push it to my phone, it cause my phone to get a bootlop. Is there any guide on how to decompile, editing, or something that is safe for my phone? And is there any way to mod my font colour to red, blue, or anything? Because my phone background is white, so i cant see anything Thanks for your help :highfive: Sorry if i posted it in the wrong section
Click to expand...
Click to collapse
use autoapktool tool to decompile...... or just select the icons that u want to change and juss replace them with the orginal one direcly by opening the apk in winrar and just drag and drop
vsbrt said:
use autoapktool tool to decompile...... or just select the icons that u want to change and juss replace them with the orginal one direcly by opening the apk in winrar and just drag and drop
Click to expand...
Click to collapse
Its already fixed. Now i can change everything i want :laugh:

Categories

Resources