[HELP]Compile error in APK Multi Tool - Android Q&A, Help & Troubleshooting

Hi guys
I was being decompiling my settings.apk
And after compiling i was edit XML Files there
And after editing i compile it
And theres a error that it said go to option 21 to take a log but its only a compression level for apks i think its should 24
But can someone help me fix this?
I was only creating a rom but this only compiling made the day long to post it here
Thanks for help
Sent from my GT-S5300 Rooted w/Remix v2 Rom using XDA-Developers App
Iam Filipino

LOG
Check you log file to find out error and fix it. You can find the log in the root folder of APK Multi Tool, named 'APK-Multi-Tool'. Open with Notepad (Notepad++ is recommended). Figure out the errors and try to fix them.

rhar**** said:
Check you log file to find out error and fix it. You can find the log in the root folder of APK Multi Tool, named 'APK-Multi-Tool'. Open with Notepad (Notepad++ is recommended). Figure out the errors and try to fix them.
Click to expand...
Click to collapse
i have same problem
but what should i do ? delete some strings ?

janreytuazon15 said:
Hi guys
I was being decompiling my settings.apk
And after compiling i was edit XML Files there
And after editing i compile it
And theres a error that it said go to option 21 to take a log but its only a compression level for apks i think its should 24
But can someone help me fix this?
I was only creating a rom but this only compiling made the day long to post it here
Thanks for help
Sent from my GT-S5300 Rooted w/Remix v2 Rom using XDA-Developers App
Iam Filipino
Click to expand...
Click to collapse
Kevalvino said:
i have same problem
but what should i do ? delete some strings ?
Click to expand...
Click to collapse
It could be an outdated aapt file. For those that have this problem,check the aptktool and aapt version.Make sure your apk's are also deodexed.Heres the latest version of apktool.... https://code.google.com/p/android-apktool/downloads/list
Apktool has to be able to support every generation APK, and that is becoming quite difficult to do. Especially with the new restrictions of aapt in every latest version.
Off the top of my head there is 2 major changes in newer aapt.
1) Implicit parent now requires a parent.
If you had
Code:
<style name="Door.Knob.Color"> ... </style>
You need
Code:
<style name="Door.Knob"></style>
<style name="Door"><style>
Even if they are NULL styles.
2) Android styles are enforced private.
So if you are extending some styles which HTC & Samsung are doing, then on newer aapt it fails to build. The obvious question is "well lets just use old aapt". Then my obvious answer is this (via Google)

Thanks, it's help me out

Related

Need help editing fw-res

Can anyone please direct me to the correct tutorial(or similar) on how to modify framework-res.apk files of 2011 xperias like St15i,st18i, etc.. ????
I have been Here but it is for the earlier xperias. Does it apply to today's xperias also ???
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
metalrawk said:
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
Click to expand...
Click to collapse
I'm using Apk Multi tool, since Apk manager is no longer supporting.
My problem is that the system ui apk i have is from a custom rom(Hybrom v11) which has control panel in the notification area.
Now when i'm decompiling the system ui.apk i get an error in apk tool, an error too technical in the log for me to understand.
I get an error in Apk Manager 4.9 too probably the same as apk multi tool.
So if error occurs some part of the apk is not decompiled right ?
If it is not decompiled correctly how am i going to edit the xmls and recompile it ??
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
metalrawk said:
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
Click to expand...
Click to collapse
Just now did that. But apk tool says that framw-res is not the dependent apk. So what is the solution ??
decompile it without dependency and post log here.
Strange now i'm not getting any error . I really had that problem today morning. Thanks for Prompt replies prateek
Any way one off topic question . Can you tell me how to mod power menu. I want to add reboot and recovery in power menu for my st15i . Do i have to add images for it ??
its not in systemUI afaik. there is other file I forgot its name.
metalrawk said:
its not in systemUI afaik. there is other file I forgot its name.
Click to expand...
Click to collapse
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
crazyadmit said:
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
Click to expand...
Click to collapse
yes it will work

Apktool for ICS APK files

I am unable to edit ICS apks using the apktool I have tried. Some times I get error while compiling and other times the compiled apk never work on phone.
I have tried compiling without changing any thing even then they don't work.
If some body can upload the apktool he/she is using to edit ICS apks I will be very grateful.
Thanks
singh_dd93 said:
I am unable to edit ICS apks using the apktool I have tried. Some times I get error while compiling and other times the compiled apk never work on phone.
I have tried compiling without changing any thing even then they don't work.
If some body can upload the apktool he/she is using to edit ICS apks I will be very grateful.
Thanks
Click to expand...
Click to collapse
If you are not going to touch the smali files, then no need to use apktool at all. For normal xml editing and PNG editing, I will prefer to use 7zip to open the apk package, and replace the files, without decompressing at all.
I had heard about the latest version of Apktool being released recently, I will search and share, in case someone doesn't do it before me.
Thanks,
Rick
Sent from my SK17i using XDA
thanks for help
I would have searched myself but I am having very slow internet in these hills.
I am unable to edit xml files without decompiling.
singh_dd93 said:
thanks for help
I would have searched myself but I am having very slow internet in these hills.
I am unable to edit xml files without decompiling.
Click to expand...
Click to collapse
Okay. So I tried to edit an ICS only apk using aptool version 1.4.3, and it could not recomplie. It threw in lots of errors.
It seems that you will need to use another version of apktool, which has some ICS APIs so that it becomes possible to successfully decompile and compile ICS apks.
Check this thread: http://forum.xda-developers.com/showthread.php?t=1558171.
The author of the post made it easier for newbies by making an apktool installer which has all the required forles to run ICS files already in it.
Thanks,
Rick
Sent from my SK17i using XDA
I am unable to decompile using ICS apktool from the link you mentioned.
When I used decompiled folder to compile using this apktool but got same errors.
There were no changes in any file.
singh_dd93 said:
I am unable to decompile using ICS apktool from the link you mentioned.
When I used decompiled folder to compile using this apktool but got same errors.
There were no changes in any file.
Click to expand...
Click to collapse
Dude, What app did u try? you know some lines was removed during decompile, so you may need to see error. like here when u try to compile Home.apk it'll gave error.
You need to :
<style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml and compile...
Click to expand...
Click to collapse
also, I use apktool_1.4.1.jar for doing de/compiling jobs.
Anyway, may you show the log?
nonake kh said:
Dude, What app did u try? you know some lines was removed during decompile, so you may need to see error. like here when u try to compile Home.apk it'll gave error.
You need to :
also, I use apktool_1.4.1.jar for doing de/compiling jobs.
Anyway, may you show the log?
Click to expand...
Click to collapse
well i had already replaced the thing in string.xml
but still have error
screen shot attached
singh_dd93 said:
well i had already replaced the thing in string.xml
but still have error
screen shot attached
Click to expand...
Click to collapse
:\
No: replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml and compile..replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml not string.xml
.
I am not pretty sure if it cause by resource problem. did u installed framework-res.apk yet?
Me I use Apkmanager 4.9
No problem at all.
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
singh_dd93 said:
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
Click to expand...
Click to collapse
Well, first try this, go to UOT kitchen, upload framework-res.apk then just mod battery icon,. cook it. u'll get new framework. use it and installed then try to decompile/compile maybe can help/.
---------- Post added at 07:56 PM ---------- Previous post was at 07:25 PM ----------
singh_dd93 said:
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
Click to expand...
Click to collapse
Well, first try this, go to UOT kitchen, upload framework-res.apk then just mod battery icon,. cook it. u'll get new framework. use it and installed then try to decompile/compile maybe can help/.

Decompile Settings.apk

Hey community, im looking to decompile Settings.apk in order to add my own features in. Basically in the same way AOKP does with its Rom Control settings. I have decompiled the apk using apktool but the xml files were not included so i could not put it into eclipse to add settings and such. can someoen tell me how to go about this?
Bump
Sent from my Galaxy Nexus using Tapatalk 2
This is a feature found in multiple roms on all devcies yet nobody can help me out ?
Sent from my Galaxy Nexus using Tapatalk 2
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Jonny said:
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
Click to expand...
Click to collapse
Ok i did this. great program by the way, but its java source is just generated as .class files and no .java files. Everything else was perfect but i need the .java files to actually edit and write new methods.
ajay8055 said:
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Click to expand...
Click to collapse
This explains hwo to edit the xml files in detail so thank yo for this. but it doesn thelp with adding any settings
?????
Sent from my Galaxy Nexus using Tapatalk 2

[Q] How to MOD APPS ?

HI Guys !
I am new to this developer world.I recently joined XDA and i am seeing here that there are many developers modding apps ...like [MOD][APP]WALKMAN APP FOR XPERIA P FROM XPERIA V..
My question is how they make it able to run on other devices?...How i can mod ? answer my question take me as a noob.
plz help me ..
it is only for developer i think,
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
timgreen123 said:
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
Click to expand...
Click to collapse
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
P.fever said:
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
Click to expand...
Click to collapse
Well first things first, you need the apps you're going to mod...
Pull them from your ROM.
Decompile
You need apktool for this...
First things first, you need the framework-res.apk in the apktool folder.
Open a command script and install it with: apktool if framework-res.apk
Then decompile your app ( ex: SystemUI.apk ) with: apktool d SystemUI.apk
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Jeroenvk94 said:
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Click to expand...
Click to collapse
Is this just an posibility 4 Layout and ui (XML) changes or can i even look & change @ the java Code and underling activities?

[Q] question : how to decompile and compile protected apk ?

hi
i have a program that i want to decompile and change something and then compile it
and i use 2 way
first i use apktool that decompile it but when i want compile it , it show errors ( even withot change nothing )
second i rename apk with zip and extract all and then without change nothing I compress extracted file and rename it to apk and sign it and then the program not work .
the program attached
i think it use some protection or ...
any one have an idea ?
thanks a lot
zeytunak said:
any one have an idea ?
Click to expand...
Click to collapse
Update your apktool...
XperienceD said:
Update your apktool...
Click to expand...
Click to collapse
hi
thanks for your reply
now i update my apktool but after compile decompiled package its not work
even after i use below swith when decompilation
apktool d -s -r b15.apk
you can chack the compiled apk and signed not work correctly .
Is that after doing your mods, just because it builds with no errors doesn't mean the mod hasn't broke something.
Also alot of apps are starting to add code that will break it if it is modded in anyway. Many paid apps are doing this to prevent pirating the app or getting some of the paid features for free. There is nothing you can really do if this is the case.

Categories

Resources