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
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
Hi every body.
I'm trying to change the gb notification bar to the jb one using this tutorial:
http://forum.xda-developers.com/showthread.php?t=1953934
First of all, I uncompressed SystemUI.apk and framework-res.apk from miniCM7-mimmi.zip.
Then, I decompile systemui using this tutorial:
http://androidforums.com/esteem-all...roperly-decompile-recompile-apks-apktool.html
It worked, I got the systemui files and I changed jelly theme, clearbutton and network information.
But, when I tried to compile, it shows an error:
Code:
C:\Users\victor\Desktop>apktool b systemUI systemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'C:\Users\victor\Desktop\systemUI\res\drawable-ldpi\Thu
mbs.db')
(skipping index file 'C:\Users\victor\Desktop\systemUI\res\drawable-mdpi\Thu
mbs.db')
C:\Users\victor\Desktop\systemUI\res\values\styles.xml:24: error: Error parsing
XML: junk after document element
C:\Users\victor\Desktop\systemUI\res\values\public.xml:249: error: Public symbol
style/StatusBar.BatteryBar declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:248: error: Public symbol
style/StatusBar.ClearButton declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:247: error: Public symbol
style/TextAppearance.StatusBar.CarrierLabel declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:250: error: Public symbol
style/TextAppearance.StatusBar.IntruderAlert declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:246: error: Public symbol
style/TextAppearance.StatusBar.Title declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\victor\AppData\Local\Temp\
APKTOOL8547767369398553713.tmp, -I, C:\Users\victor\apktool\framework\1.apk, -S,
C:\Users\victor\Desktop\systemUI\res, -M, C:\Users\victor\Desktop\systemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\victor\AppData\Local\Temp\APKTOOL8547767369398553713.tmp, -I, C:\Users\vict
or\apktool\framework\1.apk, -S, C:\Users\victor\Desktop\systemUI\res, -M, C:\Use
rs\victor\Desktop\systemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\victor\Desktop>
Then I searched on Google and I found that I have to update apktool, but I didn't find any new apktool, so I decided to use Apk Manager (4.9).
I decompiled apk, changed the modifications, recompile and signed the apk file.
Then, using root explorer, I changed SystemUI.apk to the signed one, but Notification bar has disappeared.
Do someone know how to change Notification bar, or if I made any mistake?
I have uploaded the original SystemUI.apk and the modificated one.
Thank you very much and sorry for my english.
Nobody can help me?
Well, it looks like you have an error on line 24 of styles.xml.
That needs to be taken care of, before you do anything else.
It also looks like you need apktool 1.5.0. And you're not doing the process right. If you sign a system apk, it won't work. You have to keep the signature from the original file.
There's a sticky in the Themes section that tells you how to do all this.
Or..you could try Tickle My Android, which has the latest apktool and aapt files and can create files properly for you.
Sent from my SK17i using xda premium
Thank you very much, Ticklefish!
I will try again using Tickle My Android.
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.
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.