please help me to change gingerbread stock music background in tabview i.e the background of song list, artist, album etc..
please anyone,,(
I guess....
Okay.. Unzip that Original file.... Can you see that file? If you can see that .xml file?
Then... Just Put it(edited & compiled xml file) original apk file for replacement!
As you said, that xml file is belongs resource file.. You can't see that xml file before decompiling apk file...
check this out.
-Did you signed the apk file after building?
you must decompile...editing.. compile.. signing.... and then copy & put that resource file to the original one.
92st said:
Okay.. Unzip that Original file.... Can you see that file? If you can see that .xml file?
Then... Just Put it(edited & compiled xml file) original apk file for replacement!
As you said, that xml file is belongs resource file.. You can't see that xml file before decompiling apk file...
check this out.
-Did you signed the apk file after building?
you must decompile...editing.. compile.. signing.... and then copy & put that resource file to the original one.
Click to expand...
Click to collapse
thanks but I already tried all, but nothing helped,, I found an alternate way, btw thx
Related
I am trying to add some .9 files and soem xml files to the drawable, drawable-hpdi folders respectivly, and i get compiles issues. What's the trick to this? I compile all day long with other apk's.
I get a ton of these:
ERROR: Failure processing PNG image D:\APK Manager 4.9\other\..\projects\com.htc.resources.apk\res\drawable-hdpi\appwidget_inner_focus_c.9.png
libpng error: Read Error
i believe you need to add the edited .9 files in after you compile. switch apk to zip and do it that way and then sign. atleast that is how i always have done it. compile with altered .9's always failed on me too.
RafficaX said:
i believe you need to add the edited .9 files in after you compile. switch apk to zip and do it that way and then sign. atleast that is how i always have done it. compile with altered .9's always failed on me too.
Click to expand...
Click to collapse
Thanx for answering.. But a bit fuzzy..
I actually have xml's to add to the drawable-hpdi and standard .png's not .9's to add to the drawable
I tried to just copy them over to the compiled version of the apk..
what do you mean switch apk to zip?
rename it to zip after you compile it, so this way you can open in winrar or 7zip and just drop those png's in the folders they need to be in. then rename name the zip to apk and sign it. the xml's can be in there when you compile it. they wont cause an issue.
like i said every time i made xml and png edits i had to do it this way to work right.
If you use 7zip there is no need to rename the file to .zip
Just right click on the file and choose 7zip - open archive.
Sent from my B.A.M.F. Thunderbolt
okay someone earlier in an email said never sign a htc.resources file.
Seems there could be several ways.
1. Open resources file with 7zip
2. copy png's to drawable folder
3. copy xml's to drawable-hdpi folder
then what?
thats it. bc its still an apk file through 7 zip. load it on your phone. i make sure it copies over the signature when it re compiles though. watch the output to make sure it did.
RafficaX said:
thats it. bc its still an apk file through 7 zip. load it on your phone. i make sure it copies over the signature when it re compiles though. watch the output to make sure it did.
Click to expand...
Click to collapse
Sorry being dense or just not getting it. You said re-compiles. If you are just opening the com.htc.resources with 7zip and copying files into it, how are you re-comiling?
The bits and pieces are confusing. PM me the exact steps to replacing png and xml in the resources file?
Dont you have to Zip align it? Or zip it? So it can be flashed from recovery?
I downloaded a theme didnt like it so im flashing a back to stock .zip file...
I opened HtcClockWidget.apk and in it are a few folders some with xml files some with png files.
if I change(the color of a) png file using photoshop and save it back in the folder the same format. would i see the change when i flash the .zip file
example: i open this .png file....and replace it with the red one. Would i see the change when i flash back?
Hi i am trying to edit the framework res apk so i can change the text colour and the themed clock colour. I can decompile with apktool and change the colors.xml but after compiling framework res i just get stuck in a bootloop. I have tried just copying the reaources file to my original framework but still bootloops. I have searched google and here and finding it hard to find a solution. One thing i noticed in 7zip it says that for resources the OS is FAT but on the edited one it is UNIX as well as being a smaller file when compressed. If anyone can help that will be great.* Thanks
Sent from my GT-I9100 using XDA App
sign the apk as a system app.
no you shouldn't have to sign it just rename unsigned framework-res.apk to framework-res.apk and reflash to phone it shouldn't bootloop when you compiled did you select yes to system file and yes to copy everything then delete what was in keep file? If its an XML when you delete from keep file you have to delete the file you modified also.
txr33 said:
One thing i noticed in 7zip it says that for resources the OS is FAT but on the edited one it is UNIX as well as being a smaller file when compressed.
Click to expand...
Click to collapse
Did you choose Store as the compression method when adding the Resource file to your original apk?
mattfox27 said:
no you shouldn't have to sign it just rename unsigned framework-res.apk to framework-res.apk and reflash to phone it shouldn't bootloop when you compiled did you select yes to system file and yes to copy everything then delete what was in keep file? If its an XML when you delete from keep file you have to delete the file you modified also.
Click to expand...
Click to collapse
I originally just renamed mine and got a bootloop. Signed it as a system apk and stuck it in an update.zip and flashed it and it worked. Also, as the above post mentions, store must be selected as the compression method.
is it possible to flash only certain files contained in an APK? For instance if I want to modify a XML file in systemUI.apk, can I just flash that file or do I have to flash the whole systemUI.apk containing the modified file?
folder structure within flashable zip:
single file: \system\app\systemui.apk\res\values\drawable.xml
vs
whole apk: \system\app\systemui.apk
holtenc said:
is it possible to flash only certain files contained in an APK? For instance if I want to modify a XML file in systemUI.apk, can I just flash that file or do I have to flash the whole systemUI.apk containing the modified file?
folder structure within flashable zip:
single file: \system\app\systemui.apk\res\values\drawable.xml
vs
whole apk: \system\app\systemui.apk
Click to expand...
Click to collapse
You can't just flash anything in an apk file... But you can replace a file in an add-on using morph or vr theme... For more info search...
And if you want any reference to learn how vr theme works then you can see my atomods... In its theming section...
Thank you...
Send from my Galaxy far far away nexus...
Hi,
I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.
The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?
syztemlord said:
Hi,
I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.
The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?
Click to expand...
Click to collapse
if it is system file than place it in system/app
and set permissions and reboot
Does that include the original odex file or should I just dump it after I've edited the apk?
syztemlord said:
Does that include the original odex file or should I just dump it after I've edited the apk?
Click to expand...
Click to collapse
it work only if you have deodex it
Hello, I am running into the same problem. I want to change a setting in an apk. But I'm confused with the odex file accompanied with it.
Can I unpack an apk, change it. Rebuild it and put it back?
Do I also have to unpack the odex file and rebuild it and put it back?
I can see a lot of information about apk editing. But I can't find tools to edit an Odex?
I think I'm also confused about the odex/deodex. I just googled everything about this subject and got the tools studioandroid, but it doesn't contain anything with editing odex files....
I hope someone can help me out!
Thanks!!