[Q&A] [Windows][UTILITY][TOOL] APK Multi-Tool - Android Q&A, Help & Troubleshooting

Q&A for [Windows][UTILITY][TOOL] APK Multi-Tool
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Windows][UTILITY][TOOL] APK Multi-Tool. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!

Issue Explianed
bovirus said:
Please read carefully the answer and can image that YOU are wrong.
You are talking about an object that YOU DON'T KNOW.
As I explained the folder/storage unit is not part of this tools.
This tool decompress/recompress/sign the apk. That's all.
All other activities are out of this thread.
Click to expand...
Click to collapse
They are referring to the SystemUI.apk location change as of 4.4 KitKat or higher see URL: android.googlesource.com/platform/frameworks/base/+/ccbf84f
The system.bat file in the other directory is the issue; I have added the SystemUI.apk location and corrected some typos to the system.bat file for use on 4.4 Kitkat or higher.
I added lines 21, 45-46.
Code:
@ECHO off
COLOR 0A
ECHO *********************************************************************************
ECHO * *
ECHO * We are about to pull the needed Dependencies from your phone *
ECHO * This Is a Universal Script Designed to attempt to pull all needed Files *
ECHO * *
ECHO *********************************************************************************
pause
cls
ECHO *********************************************************************************
ECHO * *
ECHO * All ROMs Froyo and above require the system/framework/framework-res.apk *
ECHO * All ROMs Gingerbread and above require the /system/app/SystemUI.apk *
ECHO * All Samsung ROMs require the /system/framework/twframework-res.apk *
ECHO * All Sense UI ROMs require the system/framework/com.htc.resources.apk *
ECHO * All Xperia ROMs require the system/framework/SemcGenericUxpRes.apk *
ECHO * All XNote ROMs require the system/framework/lidroid-res.apk *
ECHO * All mediatek chipset Devices require the system/framework/mediatek-res.apk *
ECHO * All MIUI ROMs may require the system/framework/framework-miui.apk *
ECHO * ALL v4.4 KitKat and above require the /system/priv-app/SystemUI.apk *
ECHO * *
ECHO *********************************************************************************
pause
ECHO. Waiting for device...
adb kill-server
adb wait-for-device
ECHO *********************************************************************************
ECHO * *
ECHO * Device found Beginning system pull from required files from phone *
ECHO * Please note that not all phones will have all the files listed above *
ECHO * *
ECHO *********************************************************************************
ECHO. Device found.
ECHO attempting to pull framework-res.apk
adb pull system/framework/framework-res.apk
ECHO attempting to pull twframework-res.apk
adb pull system/framework/twframework-res.apk
ECHO attempting to pull com.htc.resources.apk
adb pull system/framework/com.htc.resources.apk
ECHO attempting to pull SemcGenericUxpRes.apk
adb pull system/framework/SemcGenericUxpRes.apk
ECHO attempting to pull SystemUI.apk
adb pull system/app/SystemUI.apk
ECHO attempting to pull SystemUI.apk for v4.4 KitKat and above
adb pull system/priv-app/SystemUI.apk
ECHO attempting to pull lidroid-res.apk
adb pull system/framework/lidroid-res.apk
ECHO attempting to pull mediatek-res.apk
adb pull system/framework/mediatek-res.apk
ECHO attempting to pull framework-miui.apk
adb pull system/framework/framework-miui.apk
pause
ECHO. System pull complete Killing ADB
adb kill-server
ECHO. ADB KILLED NOW Returning to main menu
pause
exit

Error while recompiling whatsapp APK
i was re-compiling an APK , even without modifying it and i keep getting this Error:
PHP:
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Using Apktool 2.0.0-Beta9 on 0677E8'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:32: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:31: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:42: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:41: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:46: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:45: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:363)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:286)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:258)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:236)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:88)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: ... 5 more'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:89)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
any and i trace the XML and i found the (android:searchViewEditQuery) & (android:searchViewVoiceIcon) already defined !!
plz help

the same Error!!
i got this error too by using APkMultiTool
PHP:
[C:\WINDOWS\TEMP
\brut_util_Jar_3333383656781163009.tmp, p, --forced-package-id, 127, --min-sdk-v
ersion, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.1
1.432, -F, C:\WINDOWS\TEMP\APKTOOL2640143219887317542.tmp, -I, C:\Users\XXXXX\a
pktool\framework\1.apk, -S, C:\Users\XXXXX\APK-Multi-Tool-WIP-2.0\projects\What
sapp64.apk\res, -M, C:\Users\XXXXX\APK-Multi-Tool-WIP-2.0\projects\Whatsapp64.a
pk\AndroidManifest.xml]
Please help , it used to work before, the previous was by using (Virtuous Ten Studio) and this one was by ApkMultiTool "ApkManager_ics" the stable one

f.alansari said:
i was re-compiling an APK , even without modifying it and i keep getting this Error:
PHP:
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Using Apktool 2.0.0-Beta9 on 0677E8'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:32: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:31: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:42: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:41: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:46: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:45: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:363)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:286)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:258)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:236)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:88)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: ... 5 more'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:89)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
any and i trace the XML and i found the (android:searchViewEditQuery) & (android:searchViewVoiceIcon) already defined !!
plz help
Click to expand...
Click to collapse
When I got this error it was the framework that was installed was not the one the apk file your are trying to compile was made for. Make sure the framework you use is the same one the apk your compiling runs on.

sixxkilur said:
When I got this error it was the framework that was installed was not the one the apk file your are trying to compile was made for. Make sure the framework you use is the same one the apk your compiling runs on.
Click to expand...
Click to collapse
how do i know the correct one? or from where i obtain it?

f.alansari said:
how do i know the correct one? or from where i obtain it?
Click to expand...
Click to collapse
Your best bet is pull the framework directly from the device.
I ran into this issue when I was attempting to compile a theme apk that was designed for CyanogenMod 11 while there was a framework from a touchwiz rom in the other directory and it was also one of my installed frameworks.
I tried different version of APK tools and got the same errors.
I then pulled the framework file from the device running CyanogenMod C11 and installed that one and the errors are gone.
The basics, if your apk will install and run fine on your current OS on your device then pull that framework and or SystemUI.apk then you should be good to go.

Error Decompiling..
--------------------------------------------------------------------------
|Fri 03/27/2015 -- 13:53:30.52|
--------------------------------------------------------------------------
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
Input file (Xiao\Documents\APK-Multi-Tool\projects/framework-res.apk) was not found or was not readable.
--------------------------------------------------------------------------
|Fri 03/27/2015 -- 13:57:34.10|
--------------------------------------------------------------------------
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
The directory name is invalid.
The directory is not empty.
Input file (Xiao\Documents\APK-Multi-Tool\projects/framework-res.apk) was not found or was not readable.
(call was unexpected at this time.
--------------------------------------------------------------------------
|Fri 03/27/2015 -- 13:59:05.20|
--------------------------------------------------------------------------
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
Input file (Xiao\Documents\APK-Multi-Tool\projects/framework-res.apk) was not found or was not readable.
i have done all the procedure ,but i cant still decompile the apk. pls ....help

problem on decompile
Hi ! everbody!
i have problem on decompile an apk file ... when i try apl multi tool .. i get this erorr :
Code:
--------------------------------------------------------------------------
|Thu 04/23/2015 -- 18:42:38.04|
--------------------------------------------------------------------------
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:102)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
Press any key to continue . . .
apk file is com.ngb.wpsconnect.aps that i attach here
please help me , ty

hey anyone can help me ?

No answer ???

Up

http://forum.xda-developers.com/showthread.php?t=1310151
So I followed the link supplied within this thread, to a "Hugefiles.net" url .... Next thing you know I have 5000 pop ups, fake virus alert messages from the website.... (shaking my head)
do you think we can talk the poster of the APK Multitool 2.0 to hosting it on DROPBOX? Its FREE ya know. And then we wont have to deal with the annoyances associated with trying to download your stuff.
Thanks.

Related

Want to do a full theme

I want to do a full theme for ICS, probaly using ViperBoys ROM or the stock deodex ROM. I have to contact Viper yet to get his blessing. One issue though. I can't find a apktool/manager that will compile the modded apk's and xml's. If anyone knows of a apk manager that WILL compile these apk's I would sure love to know about it.
I have tried the WANAM manager, no luck. apk 4.9 and 5.0 no luck. And numerous others. If anyone can help me, I will do a full blown theme for our phones. Decompiling is not a issue, compiling is where all the problems arise.
Suggestions??
What error messages are you getting?
Sent from my EVO using xda premium
errors
mostly public.xml errors. I will try to compile one, then copy and paste the error in here, thanks for your response.
will u teach me alsoo? any hlp will be appreciated
Sent from my HTC One V using xda premium
Numerous people have tired to help you bro. I sent you my tools and you never even replied back. And slayer tried to help you for hours.
If you are getting errors on recompiling then you are probably editing wrong.
You need to post your errors
Sent from my EVO using xda premium
fernando sor said:
Numerous people have tired to help you bro. I sent you my tools and you never even replied back. And slayer tried to help you for hours.
If you are getting errors on recompiling then you are probably editing wrong.
You need to post your errors
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I'm also interested in this. I'd like to do a skin/theme combo if possible. If you have the knowledge/tools to share, I will, in turn, create a How-to thread to share the wealth. Let me know if you and/or slayer can find a few minutes... I'm a very fast learner and a thorough documenter. I'll PM you as well. Thanks in advance.
Sent from my EVO using Tapatalk 2
Edit: fernando sor, I just saw the link in your signature (I was on Tapatalk before) so I'm going to give that a read. Not sure if it works for Sense 4.0 since it's in the Evo 3D forum, but I'm sure at least some, if not most, of the concepts apply. From what I hear, a lot of people are waiting for a release of Virtuous Ten Studio that supports Sense 4.0, but, nonetheless, there are Sense 4.0 themes out there for other devices, so it's certainly possible!
Hi Fernando
I used your tools and they were great, and thanks for sending. The primary reason I posted this was I wanted to see if their was anything new that I might have missed, and I have switched phones since Slayer was working with me.
I'm not unappreciative Fernando, just trying to stay current, one never knows when there might be a break through on this as things can change rapidly at times. My bad for not responding to what you sent. again, they worked great, now if we can just get something for the remaining 16 apk's
teach me??
If you mean will I teach you how to theme, I can only say there are people far better at ti than I am, I only learned recently myself. If you see folks with recognized themer out there by their screen name you would want to check with them, I am not qualified to teach yet, if there is anything else I might be able to help with let me know.
musicman625 said:
Hi Fernando
I used your tools and they were great, and thanks for sending. The primary reason I posted this was I wanted to see if their was anything new that I might have missed, and I have switched phones since Slayer was working with me.
I'm not unappreciative Fernando, just trying to stay current, one never knows when there might be a break through on this as things can change rapidly at times. My bad for not responding to what you sent. again, they worked great, now if we can just get something for the remaining 16 apk's
Click to expand...
Click to collapse
Well if you post the error logs we may be able to help
Sent from my ADR6425LVW using xda premium
sounds good
I plan on trying to work on Framework and Resources tonight to see what I can get accomplished. I will post errors, if you don't mind a nine mile long post lol
So far the only app that I have found that won't even decompile is HtcDialer.apk. All others so far have decompiled and recompiled just fine. You will see flag /integer errors on some of them, ignore them, the app compiles. This is using the same apktool that Fernando is using just fyi. If you are seeing other errors, check your images, there are bad ones, trust me. None of them will compile with image errors.
Sent from LTEVO!
Errors from HTC Resources
---------------------
|Wed 06/06/2012 -- 17:57:30.07|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\layouts.xml:3: error: Found tag layout where item is expected
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975: error: Public entry identifier 0x2050209 entry index is larger than available symbols (index 521, total symbols 521).
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975: error: Public symbol dimen/zero_dummy_dimen declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3854: error: Public symbol layout/htc_list_item_2text_2stamp declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3855: error: Public symbol layout/htc_list_item_2text_bright declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3859: error: Public symbol layout/htc_list_item_dlna_1 declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3856: error: Public symbol layout/htc_list_item_image_2text_image_bright declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3857: error: Public symbol layout/htc_list_item_imageicon_2text_2stamp declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3858: error: Public symbol layout/htc_list_item_separator declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3853: error: Public symbol layout/zero_dummy_layout declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mike\AppData\Local\Temp\APKTOOL3247610965678022077.tmp, -x, -I, C:\Users\mike\apktool\framework\1.apk, -S, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res, -M, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mike\AppData\Local\Temp\APKTOOL3247610965678022077.tmp, -x, -I, C:\Users\mike\apktool\framework\1.apk, -S, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res, -M, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
These are the errors I got when compiling Resources, and the apk is from Viper rom
hello can someone help me? i am trying to theme SystemUI.apk but i get error when i try to decompile
Please make your decision:9
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper
framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
here is what i get when i first run the script
--------------------------------------------------------------------------
|Fri 06/15/2012 -- 14:54:13.08|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
what am i missing?
Do you have the right resources apk installed?
Sent From My Sweet Ass EVO LTE
Reviving this thread because I installed VTS and went thru the tutorial for creating a skin. I didn't modify any files or settings and these are the errors I get when trying to build the project in step 10. I haven't purchased a license. Anyone have any ideas what the problem is?
14:30:36.779: [Normal] - <BuildProject>d__16.MoveNext: 'Building project: Matte'
14:30:36.787: [Debug] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Compiling changed M10 pictures'
14:30:37.048: [Debug] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Copying 'C:\Users\myName\Documents\Virtuous Ten Studio\Projects\My.Own.Skin\Matte\Data' to 'C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9''
14:30:38.154: [Debug] - M10Transformer.Encode: 'M10 encode: 93ms'
14:30:38.302: [Debug] - M10Transformer.Encode: 'M10 encode: 18ms'
14:30:38.385: [Normal] - ApkTool.CompileApk: 'Compiling apk'
14:30:38.387: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files (x86)\Java\jre6\bin\java.exe'
14:30:38.387: [Debug] - ApkTool.CompileApk: 'ApkTool args: -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool_1.5.0.jar" b "C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9" "C:\Users\myName\Documents\Virtuous Ten Studio\Projects\My.Own.Skin\Matte\Binary\Matte.apk"'
14:30:43.173: [Error] - ApkTool.CompileApk: 'ApkTool: W: Could not find sources'
14:30:43.174: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\arrays.xml:18: error: Found tag reference-array where item is expected'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1008: error: Public symbol array/autocompletetextview_backgrounds declared here is not defined.'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1004: error: Public symbol array/carousel_colors declared here is not defined.'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1007: error: Public symbol array/htcbutton_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1011: error: Public symbol array/htcexpandablelistview_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1012: error: Public symbol array/htcfastscrollerhrzt_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1010: error: Public symbol array/quickcontactbadge_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1005: error: Public symbol array/skinProgressBarArray declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1006: error: Public symbol array/skinSeekBarArray declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1009: error: Public symbol array/togglebutton_backgrounds declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\myName\AppData\Local\Temp\APKTOOL5017037619860584830.tmp, -x, -I, C:\Users\myName\apktool\framework\1.apk, -I, C:\Users\myName\apktool\framework\2-4.0-tag.apk, -S, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res, -M, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\AndroidManifest.xml]'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:269)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:192)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:174)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:188)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:70)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\myName\AppData\Local\Temp\APKTOOL5017037619860584830.tmp, -x, -I, C:\Users\myName\apktool\framework\1.apk, -I, C:\Users\myName\apktool\framework\2-4.0-tag.apk, -S, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res, -M, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\AndroidManifest.xml]'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:83)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)'
14:30:43.181: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
14:30:43.181: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
14:30:43.181: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
14:30:43.252: [Error] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Compiling resource files failed!'
Click to expand...
Click to collapse
---------- Post added at 03:18 PM ---------- Previous post was at 02:37 PM ----------
Figured it out. Delete arrays.xml, public.xml, and styles.xml from the data\res\values folder. Everything worked after that.

[Q] Theme chooser APK Recompile Error

I've been trying for many days to get this to work, it's driving me nuts!!
I can decompile and recompile framework-res.apk and other apps successfully, but every time I decompile a theme chooser *.apk I get errors trying to recompile.
Is there a trick to this? I am running Reaper 3.0(CyanogenMod 7) installed the framework via installation options(that's all), have paths to platform-tools, tools etc.. The latest Android SDK installed (and all the others..)
Once again I'n only getting these errors Recompiling TC Themes.
Here is an Excerpt of my APKMULTITOOL.LOG, the start middle and end.
(full log is also attached)
|
Code:
Thu 06/21/2012 -- 22:05:11.28|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.araviel.theme.aerish.apk
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.araviel.theme.aerish.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\twIIce\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 3988): Bad string block: string #14 extends to 1847, past end at 60
W/ResourceType( 3988): Bad string block: string #13 extends to 1842, past end at 60
W/ResourceType( 3988): Bad string block: string #12 extends to 1075, past end at 60
W/ResourceType( 3988): Bad string block: string #11 extends to 815, past end at 60
W/ResourceType( 3988): Bad string block: string #10 extends to 812, past end at 60
W/ResourceType( 3988): Bad string block: string #9 extends to 1061, past end at 60
W/ResourceType( 3988): Bad string block: string #8 extends to 1575, past end at 60
W/ResourceType( 3988): Bad string block: string #7 extends to 2075, past end at 60..................
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:shadowColor'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:shadowDx'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:11: error: Error: No resource found that matches the given name: attr 'android:shadowDy'..............................................................................................................................................................................................
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I would GREATLY appreciate it if anyone could shed some light on this for me, I've been googling for days, but sadly (at the moment) I've no programming skills whatsoever and sorting through technical posts is confusing at best.
Bump!
twiice said:
Bump!
Click to expand...
Click to collapse
Did you found a solution ?
Ive been trying for days too ... no sucess

[Q] APK Editor?

Hey,
I'm a little lost.
I a newbie, but want to try to change in a apk file, so that i can change the language to danish, because i am.
But i don't know which software to use.
I'm on windows 7.
Thx
velein
Found this by searching...
http://www.virtuousrom.com/p/ten-studio.html
Thx, but after changing some language stuff, i try to build the .apk file.
then this happens:
22:46:11.952: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether sources has changed...'
22:46:11.952: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
22:46:11.953: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
22:46:11.954: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\arrays.xml:30: error: Error parsing XML: not well-formed (invalid token)'
22:46:11.954: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:105: error: Public symbol array/album_art_size_values declared here is not defined.'
22:46:11.954: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:104: error: Public symbol array/album_art_sizes declared here is not defined.'
22:46:11.955: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:108: error: Public symbol array/camera_button declared here is not defined.'
22:46:11.955: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:109: error: Public symbol array/camera_button_values declared here is not defined.'
22:46:11.955: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:106: error: Public symbol array/default_tab declared here is not defined.'
22:46:11.956: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:107: error: Public symbol array/default_tab_values declared here is not defined.'
22:46:11.956: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:110: error: Public symbol array/repeat_modes declared here is not defined.'
22:46:11.956: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res\values\public.xml:111: error: Public symbol array/repeat_modes_values declared here is not defined.'
22:46:11.956: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mikkel\AppData\Local\Temp\APKTOOL743745514086871364.tmp, -I, C:\Users\Mikkel\apktool\framework\1.apk, -S, C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res, -M, C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\AndroidManifest.xml]'
22:46:11.957: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)'
22:46:11.957: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)'
22:46:11.957: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:248)'
22:46:11.957: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:171)'
22:46:11.958: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:154)'
22:46:11.958: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:182)'
22:46:11.958: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:67)'
22:46:11.959: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mikkel\AppData\Local\Temp\APKTOOL743745514086871364.tmp, -I, C:\Users\Mikkel\apktool\framework\1.apk, -S, C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\res, -M, C:\Users\Mikkel\Documents\Virtuous Ten Studio\Projects\TEST\TEST\Data\AndroidManifest.xml]'
22:46:11.959: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:83)'
22:46:11.959: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)'
22:46:11.959: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
22:46:11.960: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
22:46:11.960: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
22:46:11.960: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'Apktool failed while compiling apk!'
22:46:11.960: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'ApkTool failed, see log for further details'
Well then off hand I'd say there is a error in your modification. Or you could try a different version of Apktool. Try arrays.xml on line 30, just like the log says...
thewadegeek said:
Found this by searching...
http://www.virtuousrom.com/p/ten-studio.html
Click to expand...
Click to collapse
Will try it... Nice thing if I can adding new languange in my custrom.
With apk tool I just can do pack the apk, while do repack, I get some error.
ICS or GB
velein said:
Thx, but after changing some language stuff, i try to build the .apk file.
then this happens:
...
22:46:11.960: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
22:46:11.960: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'Apktool failed while compiling apk!'
22:46:11.960: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'ApkTool failed, see log for further details'
Click to expand...
Click to collapse
are u on GB or ics ?
if ICS try this one
http://forum.xda-developers.com/showthread.php?t=1752201
manually i have successfuly mod some apk with it
regards

[Q] [HELP] Unable to build LGPhone_2c.apk

Sorry my bad english.
I have a rooted LG Optimus EX SU-880 phone android ICS version v19c
I want to edit LGPhone_2c.apk but always get 1 error.
I tried many methods but unsuccessful:
- Used many version of appt.exe apktool.jar (appt newest from sdk + appt >5MB from miui dev team
apktool 1.4.2 --> 1.5
- Deodexed rom
- Used apkmanager, ....
Please guide me fix this error. Thank of all
This is my log decompiling and build without edit any file by apktool1.5 on windows XP and java JDK 1.7
Code:
C:\Documents and Settings\Home\Desktop\apk tool>apktool d LGPhone_2c.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\Home\apktool\fram
ework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Home\apktool\fram
ework\2.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Documents and Settings\Home\Desktop\apk tool>
This message box appear (attachment)
then i click "close" button ---> this log
Code:
C:\Documents and Settings\Home\Desktop\apk tool>apktool b LGPhone_2c
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-ver
sion, 15, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKTOOL8934582910798488423.tmp, -I,
C:\Documents and Settings\Home\apktool\framework\1.apk, -I, C:\Documents and Se
ttings\Home\apktool\framework\2.apk, -S, C:\Documents and Settings\Home\Desktop\
apk tool\LGPhone_2c\res, -M, C:\Documents and Settings\Home\Desktop\apk tool\LGP
hone_2c\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKT
OOL8934582910798488423.tmp, -I, C:\Documents and Settings\Home\apktool\framework
\1.apk, -I, C:\Documents and Settings\Home\apktool\framework\2.apk, -S, C:\Docum
ents and Settings\Home\Desktop\apk tool\LGPhone_2c\res, -M, C:\Documents and Set
tings\Home\Desktop\apk tool\LGPhone_2c\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Documents and Settings\Home\Desktop\apk tool>
I upload an apks in attachment including:
+ framework-res.apk
+ lge-res.apk
+ LGPhone_2c.apk
Please help me! I can't rebuild this apk.
Any body here?

[Q] apktool error: error: No resource identifier found for attribute...?

i try decompile settings.apk (cm9) and recompile it without changing any thing and get this error: ị just updated apktool to lastest: 2.00 beta 9, latest java 7 u 55, re-install java.. but not resolve problem. please help me! thanks
Code:
--------------------------------------------------------------------------
|Fri 05/23/2014 -- 15:50:46.82|
--------------------------------------------------------------------------
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HA TRUNG KIEN\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'hitRadius' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'hitRadius' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

Categories

Resources