[Q] editing cm9 Contacts.apk - Android Themes

hi, i've already searched a lot for this and i've tried many tools but i have a problem with modding cm9 Contacts.apk. if i only change images it's ok, decompiling,compiling and singing work well and the apk works. if i edit xml files, the apk compile and decompile correctly but when i flash the file throughh recovery at the boot it FC. what is the problem? what tool i can use for correctly decompiling and compiling Contacts.apk of cm9? thanks in advance

anyone knows what can be the problem? thanks in advance

Related

Framework-res.apk won't compile

Hi everyone,
it's 3 days I'm trying to edit the framework-res.apk, but I can't make it work either with apkmanager (no errors shown) nor with apktool (here some exception errors). I've even tested the UOT Kitchen but when I flash the archive, it just doesn't run and get struck on the boot loop. Working on MoDaCo Fr16 beta3, any idea of what this could mean?
Thanks in advance,
Tiwiz
use a version 1.3.1 of APKtool instead of 1.3.2
I'll try and update the post if I succed or not
Tiwiz
tiwiz said:
I'll try and update the post if I succed or not
Tiwiz
Click to expand...
Click to collapse
Let us know your progress.
tiwiz said:
Hi everyone,
it's 3 days I'm trying to edit the framework-res.apk, but I can't make it work either with apkmanager (no errors shown) nor with apktool (here some exception errors). I've even tested the UOT Kitchen but when I flash the archive, it just doesn't run and get struck on the boot loop. Working on MoDaCo Fr16 beta3, any idea of what this could mean?
Thanks in advance,
Tiwiz
Click to expand...
Click to collapse
i´ve got the same problem with framework-res.apk from FR17 ...
no matter if i extract, decompile, compile, use UOT kitchten ... after flashing i get bootloop ...
but my themed framework-res.apk took out from fr14 works flawless in fr17 rom .... strange !!!
i don´t know what paul did with framework-res.apk when he updated Norwegian resources in framework-res.apk ...
75markus said:
i´ve got the same problem with framework-res.apk from FR17 ...
no matter if i extract, decompile, compile, use UOT kitchten ... after flashing i get bootloop ...
but my themed framework-res.apk took out from fr14 works flawless in fr17 rom .... strange !!!
i don´t know what paul did with framework-res.apk when he updated Norwegian resources in framework-res.apk ...
Click to expand...
Click to collapse
The problem already started on FR16 because it happened to me since FR16.
Dunno how to ask him, already posted on MoDaCo forum as well... trying to tweet him.
Btw, tried even with new apktool 1.4.1 but nothing, still struck on boot loop.
I'll attach my framework-res, in case someone finds out how to deal with it.
Tiwiz
i tried with apkmanager 1.4.7. , also no success !
UOT kitchen the same ...
i can´t find out what´s wrong ...
folder names have changed (from drawable-hdpi-v4 to drawable-hdpi) but this can´t be the problem or ?
As a workaround, you can use themed framework-res.apk from FR14, it works for me on FR17 ...
75markus said:
i tried with apkmanager 1.4.7. , also no success !
UOT kitchen the same ...
i can´t find out what´s wrong ...
folder names have changed (from drawable-hdpi-v4 to drawable-hdpi) but this can´t be the problem or ?
As a workaround, you can use themed framework-res.apk from FR14, it works for me on FR17 ...
Click to expand...
Click to collapse
Could you post a working framework-res.apk? I'd try to use it on the kitchen and see if it works. Tweeted to Paul twice about this bug, but no answer yet.
Tiwiz
Tell me what modifications you want to apply and i'll upload the one i compiled. Then someone needs to test if it works cuz i dont have an o2x (maybe i will in the future)...
Sent from my GT-I9000 using Tapatalk
I'd just need a basic (LG version) framework-res.apk that surely works, but I can't find it anywhere... in case, I can test yours, if you like
Tiwiz
Fix builded framework-res.apk
Hi guys,
I got same problem. I fix it by these steps after compiling with apktool 1.3.1 is done.
1. Open original framework-res.apk file in 7zip.
2. Open compiled version of framework-res.apk from dist folder in 7zip.
3. Drag & Drop META-INF and AndroidManifest.xml from original into compiled.
That's all. Now compiled version is fixed & signed. This extra step works for me.
Can't get it work... could you take a look to mine? I can't understand what's wrong with it :-S
I'll post both mine and the original apk from MoDaCo's Kitchen.
^^ Link ^^
Tiwiz
tiwiz said:
Could you post a working framework-res.apk? I'd try to use it on the kitchen and see if it works. Tweeted to Paul twice about this bug, but no answer yet.
Tiwiz
Click to expand...
Click to collapse
take this one, it works with UOT Kitchern and you can apply without bootloop in FR18
orig.framework_MoDaCo_fr14
What worked for me is this:
Compile a theme using the upload of the framework-res.
Then when it is ready replace the update-binary, and insert the lge-res.apk in the same map as framework-res. Do this with a program like winrar.
It was a pain in the butt getting there for a newbie like me.
files you need are in this rar:
http://www.megaupload.com/?d=I46AAQA6
My theme as a example:
http://www.megaupload.com/?d=HKZBEFHX
JJnJ said:
What worked for me is this:
Compile a theme using the upload of the framework-res.
Then when it is ready replace the update-binary, and insert the lge-res.apk in the same map as framework-res. Do this with a program like winrar.
It was a pain in the butt getting there for a newbie like me.
files you need are in this rar:
http://www.megaupload.com/?d=I46AAQA6
My theme as a example:
http://www.megaupload.com/?d=HKZBEFHX
Click to expand...
Click to collapse
Compiling framework-res.apk using your method still gives me bootloops. So it doesn't really work.

How to modify Jelly Bean Contacts.ap?

I am trying to modify XMLs of Jelly Bean Contacts.apk. Using apktool that has been used for ICS and other Jelly Bean apks, I can decompile and then recomplie it without any error. However, the recompiled Contacts.apk would not work in cell phone, showing a message "Unfortunately, Contacts has stopped!".
To simplify the problem, I simply do decompiling and then recompiling without any modifications. I found that the size of resources.arsc has been changed from 1480 KB to 1525 KB. The new Contacts.apk causes FC!
Note: Files in smali folder can still be modified. After editing, use apktool to recompile and create a new apk. Then use WinRAR or 7zp to drag the newly created classes.dex into the original Contacts.apk. Such a "modified" Contacts.apk works properly. Note here that we did not modify resources.arsc.
This problem is only related to resources.arsc!! XMLs cannot be recompiled!!
Does anybody have the same problem? Do you know how to solve this problem? Any solutions or suggestions are appreciated.
Did anybody try this?
Are you all ok with modifying Contacts.apk?
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
zelendel said:
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
Click to expand...
Click to collapse
Thank you for your reply. The question is why we can edit XML in other apks except Contacts.apk.
Is there any magic?
framework-res.apk, Settings.apk, SystemUI.apk, Phone.apk are all ok without any problem.
iBotPeaches, the author of apktool, wrote: "Looks like we have new resource type. T9Map. Will have to code support for it. Its just loosing it on rebuild."
See discussions at: https://github.com/iBotPeaches/brut.apktool/issues/11

[solved] Apktool not working?

This Problem solved by downloading apkmanager.
Hi guys.
I just have to make a small change in the Settings App.
I have done that before on official cm7 and even on stock.
Problem is that if i just decompile the apk using apktool, then even compile it with no change at all. Then Sign It, and copy it to system /app with permissions..It just doesn't show up in the app drawer even after a reboot..
This is surely a problem with apktool, coz i'm not even changing anything, just decompiling and compiling.
The same for cm7 themes. i try to compile cm7 themes but they just don't work when i copy them to system /app.
I copied it to sd card and tried to install from sd card. And it works, but not when it's included in system /app.
Problem solved by downloading apkmanager.
masterex567 said:
Hi guys.
I just have to make a small change in the Settings App.
I have done that before on official cm7 and even on stock.
Problem is that if i just decompile the apk using apktool, then even compile it with no change at all. Then Sign It, and copy it to system /app with permissions..It just doesn't show up in the app drawer even after a reboot..
This is surely a problem with apktool, coz i'm not even changing anything, just decompiling and compiling.
The same for cm7 themes. i try to compile cm7 themes but they just don't work when i copy them to system /app.
I copied it to sd card and tried to install from sd card. And it works, but not when it's included in system /app.
How do i fix this?
Please Reply Soon, as this is urgent.
Click to expand...
Click to collapse
Reboot ?
Sent from my GT-S5830 using xda premium
Nope not working...
Trying to make Settings.apk ICS Style for unofficial cm7. Making it work on the official cm7 was a left hand game. But I don't know what's the issue wid this one.
I tried apk manager, and it's getting errors at decompiling it.
Lemme see what else i can dig up. :/
Why is this flagged as urgent?
On: Which version of apktool do you use? The newer versions may not be compatible!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
Urgent because it's important and i need it for rom cooking.
Using 1.3.2.
Which version do you recommend?
masterex567 said:
Urgent because it's important and i need it for rom cooking.
Using 1.3.2.
Which version do you recommend?
Click to expand...
Click to collapse
Try apk multi-tools
http://apkmultitool.com/node/14
it works without problems for me
your problem is that you're signing the apk. Stock apps, like Settings and SystemUI, cannot be signed. You need to keep the original apk (the one you've decompiled) and change files inside it.
Take a look here: http://forum.xda-developers.com/showthread.php?t=1664292
Renan Lazarotto said:
your problem is that you're signing the apk. Stock apps, like Settings and SystemUI, cannot be signed. You need to keep the original apk (the one you've decompiled) and change files inside it.
Take a look here: http://forum.xda-developers.com/showthread.php?t=1664292
Click to expand...
Click to collapse
I tried.
Then just used apk manager.
Got errors on decompiling copied the apktool 1.4.3 files to the "other" folder.
Decompiled succesfully
followed instructions.
And it worked.
It's not urgent. I'm changing the title.
eagleeyetom said:
It's not urgent. I'm changing the title.
Click to expand...
Click to collapse
It was.
but now it's okk.
You can close this thread.

Help please Re-compile framework-res.apk

Hi please can anybody help:
So I decompiled the framework-res.apk with apk-tool and did some changes in res/values/arrays ...when I compiled everything this probleme was coming: In the original framework-res.apk all values folders are hidden, in my re-compiled ones they are there
I tried to flash the rom - bootloop ... can anybody teach me right compiling of the framework-res.apk?
Thank you
Flo0008 said:
Hi please can anybody help:
So I decompiled the framework-res.apk with apk-tool and did some changes in res/values/arrays ...when I compiled everything this probleme was coming: In the original framework-res.apk all values folders are hidden, in my re-compiled ones they are there
I tried to flash the rom - bootloop ... can anybody teach me right compiling of the framework-res.apk?
Thank you
Click to expand...
Click to collapse
Take Meta-inf folder from original apk and copy it to new one. Open apks with 7zip or winrar. And I think that you need to copy AndroidManifest too.
Sent from my GT-I9070 using Tapatalk

[Q] Modify USMHome.apk (ultrastamina)

I'm searching to decompile, modify and recompile USMHome.apk of the last kk .77
Why? Because I would like add Walkman app, or other music app. My files are .odex...
So I'm studying this tutorial without success!
http://forum.xda-developers.com/showthread.php?t=3007920
I can decompile, modify and recompile my file, but the new apk is without .odex and isn't useful!
Anyone can help me?
Thanks!

Categories

Resources