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
Related
Hi, I've been using APKManager for sometime, and for some unknown reason, it stopped working all of a sudden. It won't decompile anymore. I tried V10 Studio same weird problem. I have tried decompiling the same apk on another machine with V10 studio, and it worked, but not on my machine.
Log provided:
Code:
23:58:10.165: [Normal] - WorkspaceViewModel.LoadSolution: 'Loading solution, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS.tensln'
23:58:10.244: [Debug] - TenProjectViewModel.LoadBackups: 'Found 1 backups for project 'XS''
23:58:10.344: [Warning] - ApkProjectViewModel.AnalyzeAdditionalData: 'Can't find public.xml, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data\res\values\public.xml'
23:58:11.275: [Normal] - WorkspaceViewModel.LoadSolution: 'Loading solution, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS.tensln'
23:58:11.289: [Debug] - TenProjectViewModel.LoadBackups: 'Found 1 backups for project 'XS''
23:58:11.342: [Warning] - ApkProjectViewModel.AnalyzeAdditionalData: 'Can't find public.xml, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data\res\values\public.xml'
23:58:11.429: [Normal] - WorkspaceViewModel.LoadSolution: 'Loading solution, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS.tensln'
23:58:11.443: [Debug] - TenProjectViewModel.LoadBackups: 'Found 1 backups for project 'XS''
23:58:11.489: [Warning] - ApkProjectViewModel.AnalyzeAdditionalData: 'Can't find public.xml, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data\res\values\public.xml'
23:58:13.378: [Normal] - StartupManager.SearchForUpdates: 'Searching for updates, beta: False, alpha: False'
23:58:30.857: [Debug] - ADBTool.Shell: 'Starting Adb...'
23:58:35.045: [Error] - ADBTool.Shell: 'ADB shell failed, Exitcode: 1'
23:58:35.045: [Error] - ADBTool.Shell: 'Shell command'su' failed'
23:58:35.046: [Error] - ADBTool.Shell: 'Shell command'find /data/app /system/app /system/framework -type f \( -iname "*.apk" -o -iname "*.jar" \)' failed'
23:58:50.461: [Normal] - BackupManager.CreateNewBackup: 'Creating new backup 'changed files (automatic backup before import)', source: 'C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data', target: 'C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Backup''
23:58:54.576: [Debug] - TenProjectViewModel.LoadBackups: 'Found 2 backups for project 'XS''
23:58:54.581: [Debug] - <DeleteOldFilesAsync>d__2.MoveNext: 'Deleting old ApkTool files'
23:58:55.674: [Debug] - <>c__DisplayClass6.<ImportFilesAsync>b__5: 'Decompiling apk'
23:58:55.694: [Normal] - ApkTool.DecompileApk: 'Decompiling apk: MotoBlurV3.1.apk'
23:58:55.700: [Debug] - FileSystem.GetJavaInstallationPath: 'Searching for java.exe'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Using registry path: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Current version: 1.7'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Subkey: 1.7'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Subkey: 1.7.0_03'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Using subkey: 1.7'
23:58:55.701: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files (x86)\Java\jre7\bin\java.exe'
23:58:55.701: [Debug] - ApkTool.DecompileApk: 'ApkTool args: -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool1.4.3.jar" d -f "C:\Users\Milad\Desktop\MotoBlurV3.1.apk" "C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data"'
23:59:09.364: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Baksmaling...'
23:59:09.366: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'
23:59:09.367: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
23:59:09.369: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Milad\apktool\framework\1.apk'
23:59:09.370: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
23:59:09.371: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding file-resources...'
23:59:09.371: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding values*/* XMLs...'
23:59:09.371: [Error] - ApkTool.DecompileApk: 'ApkTool: Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9'
23:59:09.372: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)'
23:59:09.372: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)'
23:59:09.372: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)'
23:59:09.372: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)'
23:59:09.372: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)'
23:59:09.373: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)'
23:59:09.373: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)'
23:59:09.373: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)'
23:59:09.373: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)'
23:59:09.373: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)'
23:59:09.374: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)'
23:59:09.375: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.apktool.Main.cmdDecode(Main.java:128)'
23:59:09.375: [Error] - ApkTool.DecompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:65)'
23:59:09.377: [Debug] - ApkTool.DecompileApk: 'ApkTool failed, see log for further details'
23:59:09.377: [Debug] - ApkTool.DecompileApk: 'Exitcode: 1'
23:59:09.377: [Error] - <>c__DisplayClass6.<ImportFilesAsync>b__5: 'Decompiling apk failed!'
23:59:09.406: [Debug] - TenProjectViewModel.LoadBackups: 'Found 2 backups for project 'XS''
23:59:09.433: [Warning] - ApkProjectViewModel.AnalyzeAdditionalData: 'Can't find public.xml, path: C:\Users\Milad\Documents\Virtuous Ten Studio\Projects\XS\XS\Data\res\values\public.xml'
I wanted to add APKManager's log as well, but now it just closes when select the decompile option.
It happened the exact same thing to me also today with the same log.
Same issue here... don't know where else to look for help. Anybody have any ideas?
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.
Can some one help me to change text color of my xperia mini pro Using moded ICS.
I want font color to be blue,i tried but i am unable to compile and decompile SystemUi with at least 5 tools and apk managers.
Thanx in advance
nabeelahmad909 said:
Can some one help me to change text color of my xperia mini pro Using moded ICS.
I want font color to be blue,i tried but i am unable to compile and decompile SystemUi with at least 5 tools and apk managers.
Thanx in advance
Click to expand...
Click to collapse
See the second link in my sig.
i did all this but today i used uot kitchen that give same error log as i got on my log. here it is?
i think apktool is unable to compile systemui.
Error log: UOT-12-31-17-57-1-SHTF.txt
Decompiling framework-res.apk UOT-12-31-17-57-1
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-12-31-17-57-1
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Compiling framework-res.apk UOT-12-31-17-57-1
W: Could not find sources
I: Building resources...
aapt: /lib/libz.so.1: no version information available (required by aapt)
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7137: error: Public symbol interpolator/accelerate_cubic declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7141: error: Public symbol interpolator/accelerate_decelerate declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7135: error: Public symbol interpolator/accelerate_quad declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7139: error: Public symbol interpolator/accelerate_quint declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7142: error: Public symbol interpolator/anticipate declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7144: error: Public symbol interpolator/anticipate_overshoot declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7145: error: Public symbol interpolator/bounce declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7147: error: Public symbol interpolator/cycle declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7138: error: Public symbol interpolator/decelerate_cubic declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7136: error: Public symbol interpolator/decelerate_quad declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7140: error: Public symbol interpolator/decelerate_quint declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7146: error: Public symbol interpolator/linear declared here is not defined.
/home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res/values/public.xml:7143: error: Public symbol interpolator/overshoot declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, /tmp/APKTOOL6551350820469009083.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, /tmp/APKTOOL6551350820469009083.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-12-31-17-57-1/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
hope there is a solution and you can help me.
nabeelahmad909 said:
i did all this but today i used uot kitchen that give same error log as i got on my log. here it is?
i think apktool is unable to compile systemui.
Click to expand...
Click to collapse
Read my guide again and use the stock files from your Phone.
I'm having problems decompiling APKs from the Huawei U8350.
I have tried the latest versions of APKTool, APKManager, APK Multi-Tool and also Virtuous Ten Studio. Of the four VTS has the least errors but still it is not decompiling properly and it doesn't matter which APK it is. The typical errors are as follows.
Code:
09:54:39.800: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Config flags size > 36. Exceeding bytes: 0xFA000000.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Invalid config flags detected. Dropping resources: array-w101dp-ERR0'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Config flags size > 36. Exceeding bytes: 0x38000000.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Invalid config flags detected. Dropping resources: array-w224dp-ERR1'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Config flags size > 36. Exceeding bytes: 0x6C020000.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Invalid config flags detected. Dropping resources: array-w224dp-ERR2'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Config flags size > 36. Exceeding bytes: 0x3A030000.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Invalid config flags detected. Dropping resources: array-w224dp-ERR3'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding AndroidManifest.xml with resources...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Duncan\apktool\framework\1.apk'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Regular manifest package...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding file-resources...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: W: Cant find 9patch chunk in file: "drawable/candidate_hl_bg2.9.PNG". Renaming it to *.png.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding values */* XMLs...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Done.'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Copying assets and libs...'
09:54:39.801: [Debug] - ApkTool.DecompileApk: 'Apk decompiled!'
Can anyone help?
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.