[help] cant recompile apk - Android Software/Hacking General [Developers Only]

Hi Im using cm10.1 on my desire s.
I'm using latest apktool. I'm trying to mod in call screen to make more transparent I did found out how to do it thanks to XDA.
but when I recompile it I got error as in screenshot.
I installed framework-res.apk from my rom and decompiled phone.apk
than I edited Phone\res\layout\in_call_screenui.xml that's it.
when I try to recomple it. I get errors in Phone\values\strings.xml which I didn't even edited. I don't get error in every values folder though.
so what am I doing wrong here? can any1 help please?

You may need to install another resource apk, look in your framework folder for one and retrace your steps to make sure you didn't miss anything.

Related

theme help

can someone please help me I have edited the files I want edited and have used draw9 to set patches...but when I run the xultimate 9 patch compiler I get this error>>> C:\Documents and Settings\H\Local Settings\Application Data\7z.exe is not a valid Win 32 application and I don't know how to fix it...any help would be GREATLY appreciated!!
filthy1 said:
can someone please help me I have edited the files I want edited and have used draw9 to set patches...but when I run the xultimate 9 patch compiler I get this error>>> C:\Documents and Settings\H\Local Settings\Application Data\7z.exe is not a valid Win 32 application and I don't know how to fix it...any help would be GREATLY appreciated!!
Click to expand...
Click to collapse
not sure what going on there. but try this. instead of using ultimatex, decompile with apk manager, make your edits, then recompile the apk. when you use ultimatex to recompile a .9 it wont decompile properly when you want to make future edits.
apk manager
I was able to do this for tge framework but now I am trying to edit my message bubbles in the mms.apk and am honestly a little,confused on how to decompile and recompile apps....
filthy1 said:
I was able to do this for tge framework but now I am trying to edit my message bubbles in the mms.apk and am honestly a little,confused on how to decompile and recompile apps....
Click to expand...
Click to collapse
do you have apk manager??
gunnermike said:
do you have apk manager??
Click to expand...
Click to collapse
Yes sir sure do! Btw thanks for trying to help.
I answered your q&a thread too. Just re/install 7Zip.
Sent from my Droid Charge running GummyCharged 2.0
kvswim said:
I answered your q&a thread too. Just re/install 7Zip.
Sent from my Droid Charge running GummyCharged 2.0
Click to expand...
Click to collapse
I still had it installed while it was giving me an error but I will try.
no go
So I just reinstalled 7zip but it did the same error tried to use apk manager and it won't decompile cause it says I have to extract it first so I extracted it and tried to recompile it and I got error 21 with a bunch of missing images but there is nothing that I changed other than the .9.png's I am so confused that I may just live with a theme I dislike ....
filthy1 said:
So I just reinstalled 7zip but it did the same error tried to use apk manager and it won't decompile cause it says I have to extract it first so I extracted it and tried to recompile it and I got error 21 with a bunch of missing images but there is nothing that I changed other than the .9.png's I am so confused that I may just live with a theme I dislike ....
Click to expand...
Click to collapse
make sure you have the proper frameworks installed. 7z wont do you any good. put in "place here for mods" or something like that, the select option 9 to decompile. now, you cant have any extras. it theres one extra icon it wont recompile. so make sure you account for every icon that goesn in there.
gunnermike said:
make sure you have the proper frameworks installed. 7z wont do you any good. put in "place here for mods" or something like that, the select option 9 to decompile. now, you cant have any extras. it theres one extra icon it wont recompile. so make sure you account for every icon that goesn in there.
Click to expand...
Click to collapse
I don't have a framework....I am just trying to edit the bubbles in the mms.apk to start....and I keep getting an error that tells me check the log if I try to decompile or recompile the mms.apk
filthy1 said:
I don't have a framework....I am just trying to edit the bubbles in the mms.apk to start....and I keep getting an error that tells me check the log if I try to decompile or recompile the mms.apk
Click to expand...
Click to collapse
ok, you need to get some basics. head over to freenode channel #teamsbrissenmod. thats the best place to go to learn how to do this stuff. i will be on for a little bit.
I think i'm going to go there I would like to learn some basics!....*looks forward to some boot camp*
4G LTE Tapatalked
gunnermike said:
not sure what going on there. but try this. instead of using ultimatex, decompile with apk manager, make your edits, then recompile the apk. when you use ultimatex to recompile a .9 it wont decompile properly when you want to make future edits.
Click to expand...
Click to collapse
thats not really true...xultimate does the exact same thing when compiling .9s as if they were compiled with apktool or eclipse
a lot of the .9s i compile in windows (unfortunate byproduct of work) are with xultimate and the decompile fine later
same with android utility in linux
generally its fine to just use apktool to decompile, edit and recompile but this doesnt always work with some apks that just cant be decompiled without errors
nitsuj17 said:
thats not really true...xultimate does the exact same thing when compiling .9s as if they were compiled with apktool or eclipse
a lot of the .9s i compile in windows (unfortunate byproduct of work) are with xultimate and the decompile fine later
same with android utility in linux
generally its fine to just use apktool to decompile, edit and recompile but this doesnt always work with some apks that just cant be decompiled without errors
Click to expand...
Click to collapse
not doubting you, however i have never had a .9 that compiled with apkmanager or tool seperate during decompile, and where as not all .9's compiled with ultimate x seperate, many do. so...i just dont bother with ultimate x. when your apks decompile and recompile properly, it makes future edits much easier.

HELP with Decompiling APK (using APKTOOL)

I've looked around for some good tutorials on decompiling APKs using APKTool but haven't been able to get a few questions answered. Hoping someone can guide me with this process a bit since I'm really new at it.
A few things first: I am running CM 7.1 on a Droid Incredible (orig) and I'm also on Windows, not Linux. I'm looking to make some changes to the code of an APK and have APKtool downloaded. Questions I have so far are:
1) Do I need to use the CM 7.1 framework-res.apk file for any decompiling / /recompiling work on this 3rd party APK? Or can I do all the work without it? No one seems to have a clear answer on that and I'm not sure exactly what the framework-res.apk is for exactly.
2) After I decompile an APK and make code changes to a SMALI file, is there anything I need to do special before running the compile command?
3) After I have a newly compiled APK, what do I need to do to make this work on my phone? If I do nothing, the overall file size of the compiled APK seems much smaller than the original one that I decompiled so it seems like something is wrong. Plus it won't install. I saw one video where the newly compiled APK is renamed to .ZIP and the contents are put into the ORIGINAL APK (also renamed to .zip), overwriting all the original contents. Is this required?
4) I've also read that APKs need to be signed to install on Android. Is this correct? I found "SignApk" online which seems like it just asks you to rename your APK to app.apk and it does the signing by running a .BAT file. Is that all I have to do before installing the APK on my phone?
Would really appreciate any help on this. Or if there's a great tutorial out there on doing this, I'd be happy to read through.
Thanks for any help in advance!
I want to know these too! Hope someone helps

insert language of rom ics

Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
its not a good idea, the new apk with modified strings is not stable, even you work the compiling out, you would not like the result after you place the new apk in .
logg88 said:
Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1427959
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
logg88 said:
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
Click to expand...
Click to collapse
Wait for l9 to be released it uses same frame-res.apk or try the one from the prada
Please post all questions in the General section. Thanks! Thread moved.
Sent from my Galaxy Nexus using Tapatalk 2

sense 3.6 theming/modding help needed

Guys,
I really need your help here!!
I beginning to try to create status bar themes for sense 3.6 ROMs on 3.33 base but am getting a bit stuck.
I've pulled all the .pngs I want to edit from SystemUI.apk (decomplied with Multi APK Tool), edited them using photoshop and saved them (Keeping the filenames the same) then recompiled to get the new APK (ensuring it is still named SystemUI.apk).
I don't know how to create flashable zips so have used root explorer to replace the original SystemUI.apk file with my new one and set permissions to rw-r--r-- and rebooted but nothing changes.
I don't know if I need to edit more than these image files (like stuff in framework.res.apk) or if there's anything else apart from image editing I need to do. Can anyone please guide me on this?
Once I can do this, I would love to be able to create flashable zips, to flash new themes and I have found odd bits of info here and there online about how to create them, but I am still unsure about this, so if anyone can help me with that as well, it would be great.
Can anyone please help/guide me here?]
Thank you :fingers-crossed:
wildcardspv said:
Guys,
I really need your help here!!
I beginning to try to create status bar themes for sense 3.6 ROMs on 3.33 base but am getting a bit stuck.
I've pulled all the .pngs I want to edit from SystemUI.apk (decomplied with Multi APK Tool), edited them using photoshop and saved them (Keeping the filenames the same) then recompiled to get the new APK (ensuring it is still named SystemUI.apk).
I don't know how to create flashable zips so have used root explorer to replace the original SystemUI.apk file with my new one and set permissions to rw-r--r-- and rebooted but nothing changes.
I don't know if I need to edit more than these image files (like stuff in framework.res.apk) or if there's anything else apart from image editing I need to do. Can anyone please guide me on this?
Once I can do this, I would love to be able to create flashable zips, to flash new themes and I have found odd bits of info here and there online about how to create them, but I am still unsure about this, so if anyone can help me with that as well, it would be great.
Can anyone please help/guide me here?]
Thank you :fingers-crossed:
Click to expand...
Click to collapse
Hi,
Look HERE

[Q] Recompile 4.2.2 Framework-res.apk

Hi i am trying to perform some mods on framework-res.apk.
I am using deodex I9105PXXUBMI3_I9105POXXBMJ1_I9105PXXUBMI1_HOME that i deodexed using Pandas guide in the other forum.
I can decompile it without problems but when i try to recompile it even without changing anything i get a lot of erros. Tried to update aapt.exe use diffrent version of apktool, apkmanger and so on but still no luck. Searched both the forum and the web for answer but nothing have worked for me.
Tried to run apk if framework-res.apk and same with twframework and tried without.
No luck.
Below is the log and the framework-res.apk file does anyone know why i get this errors.
Framework-res.apk https://dl.dropboxusercontent.com/u/38268704/delat/framework-res.apk
Edit: temporally solved it by adding a + sign before the missing layouts as described here http://forum.xda-developers.com/showpost.php?p=41563695&postcount=31
apperently i did not search well enough. But it feels like it should exist a better solution

Categories

Resources