about recompiling apps - General Topics

I have recompiled app using apktool, I got error
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\ROCK STAR>cd\
C:\>e:
E:\>cd a
E:\A>apktool if power.apk
I: Framework installed to: C:\Users\ROCK STAR\apktool\framework\127.apk
E:\A>apktool d power.apk
I: Using Apktool 2.0.0-RC2 on power.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ROCK STAR\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
testI: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
E:\A>apktool b power
I: Using Apktool 2.0.0-RC2 on power
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
E:\A\power\res\drawable-hdpi\matte_ab_back.PNG: error: File is case-insensitive
equivalent to: E:\A\power\res\drawable-xxhdpi\matte_ab_back.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\ROCKST
~1\AppData\Local\Temp\brut_util_Jar_4021937814520947120.tmp, p, --forced-package
-id, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 561, -
-version-name, 2.0.9-build-561-play, -F, C:\Users\ROCKST~1\AppData\Local\Temp\AP
KTOOL9038149586893225175.tmp, -I, C:\Users\ROCK STAR\apktool\framework\1.apk, -S
, E:\A\power\res, -M, E:\A\power\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\ROCKST~1\AppData\Local\Temp\brut_util_Jar_4021937814520
947120.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-vers
ion, 19, --version-code, 561, --version-name, 2.0.9-build-561-play, -F, C:\Users
\ROCKST~1\AppData\Local\Temp\APKTOOL9038149586893225175.tmp, -I, C:\Users\ROCK S
TAR\apktool\framework\1.apk, -S, E:\A\power\res, -M, E:\A\power\AndroidManifest.
xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\ROCKST~1
\AppData\Local\Temp\brut_util_Jar_4021937814520947120.tmp, p, --forced-package-i
d, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 561, --v
ersion-name, 2.0.9-build-561-play, -F, C:\Users\ROCKST~1\AppData\Local\Temp\APKT
OOL9038149586893225175.tmp, -I, C:\Users\ROCK STAR\apktool\framework\1.apk, -S,
E:\A\power\res, -M, E:\A\power\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
E:\A>e
what does this mean? How can be it solved?

Related

[Q] UoT Kitchen SHTF Error w/log

Decompiling framework-res.apk UOT-01-04-20-00-2
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: layout-1999x999/preference_dialog_edittext.xml
S: Could not decode file, replacing by FALSE value: layout-1999x999/textview_hint.xml
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-01-04-20-00-2
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 0700000048030000.
W: Invalid config flags detected. Dropping resources: bool-ERR0
I: Loaded.
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-01-04-20-00-2
W: Could not find sources
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5768030333969371231.tmp, -x, -S, /home/android1/port5/data/working_dir/UOT-01-04-20-00-2/fw_dec/res, -M, /home/android1/port5/data/working_dir/UOT-01-04-20-00-2/fw_dec/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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5768030333969371231.tmp, -x, -S, /home/android1/port5/data/working_dir/UOT-01-04-20-00-2/fw_dec/res, -M, /home/android1/port5/data/working_dir/UOT-01-04-20-00-2/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
I'm using A2tude for Huawei M865, which is a slightly modified stock gingerbread rom.
I have been working insane hours and my brain is probably not registering the error message...so if anyone has a solution to this; It would be greatly appreciated.
I am bumping this long lost thread

[Q] not able to compile systemUI.apk

hey i tried to decompile systemui.apk
it decompiled successfully using apktool
but whenever i tries to recompile it it shows dis error
it is of cyanogen mod 9.1
C:\Users\yo\Downloads\Compressed\New folder (2)>apktool b SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/drawable-sw720dp-mdpi
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/values-sw600dp
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/values-sw720dp
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\yo\AppData\Local\Temp\APKT
OOL3042390860033165785.tmp, -I, C:\Users\yo\apktool\framework\1.apk, -S, C:\User
s\yo\Downloads\Compressed\New folder (2)\SystemUI\res, -M, C:\Users\yo\Downloads
\Compressed\New folder (2)\SystemUI\AndroidManifest.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\yo\AppData\Local\Temp\APKTOOL3042390860033165785.tmp, -I, C:\Users\yo\apkto
ol\framework\1.apk, -S, C:\Users\yo\Downloads\Compressed\New folder (2)\SystemUI
\res, -M, C:\Users\yo\Downloads\Compressed\New folder (2)\SystemUI\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
plz help me
shubhamj596 said:
invalid resource directory name: C:\Users\yo\Downloads\Compressed\New folder (2)
\SystemUI\res/drawable-sw600dp-mdpi
Click to expand...
Click to collapse
I think this is the problem. First try to put the kitchen somewhere in a parth where no spaces occur in the build path. Then try to build the apk. If still you're facing problems. Reply back here.

[Q] No matter what I do I get UOT Kitchen SHTF error

Hello everyone
I'm really at my wit's end with the UOT Kitchen here. I've uploaded 3 different Framework-res.apk and SystemUI.apk from the different ROMS available for my phone (LG Optimus Slider running 2.3.4) and I get the SHTF error each time. I've never had any trouble with UOTK before, granted it was about a year ago that I used it last. Did something change with it?
So I installed Xposed (for Gingerbread) thinking it would work better. Nope. When I try to install the UOT apk it won't install and spits out an error message about "Not being able to parse"
I've never had a problem using the UOTK before. Could somebody please tell me what's going wrong?
Error log: UOT-10-04-19-41-1-SHTF.txt
Decompiling framework-res.apk UOT-10-04-19-41-1
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-10-04-19-41-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: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Compiling framework-res.apk UOT-10-04-19-41-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-10-04-19-41-1/fw_dec/res/values-ko/strings.xml:689: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-ko/strings.xml:691: error: Unexpected end tag string
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-zh-rCN/strings.xml:689: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-zh-rCN/strings.xml:691: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

[Q] Apktool Error Compiling.

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows>apktool if c:\A1\SystemUI.apk
I: Framework installed to: C:\Users\Shaquille\apktool\framework\127.apk
C:\Windows>apktool d c:\A1\SystemUI.apk
I: Using Apktool 2.0.0-Beta7 on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Shaquille\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
C:\Windows>apktool b c:\Windows\SystemUI C:\A1\SystemUI2.apk
I: Using Apktool 2.0.0-Beta7 on SystemUI
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
c:\Windows\SystemUI\res\layout\powersaver_and_battery_layout.xml:6: error: Error
: No resource found that matches the given name (at 'style' with value '@com.htc
:style/list_primary_m').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\SHAQUI
~1\AppData\Local\Temp\brut_util_Jar_6592240642828505595.tmp, p, --forced-package
-id, 127, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, -
-version-name, 4.1.2-eng..20130418.210438, -F, C:\Users\SHAQUI~1\AppData\Local\T
emp\APKTOOL3486564733048346615.tmp, -0, arsc, -I, C:\Users\Shaquille\apktool\fra
mework\1.apk, -S, c:\Windows\SystemUI\res, -M, c:\Windows\SystemUI\AndroidManife
st.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\SHAQUI~1\AppData\Local\Temp\brut_util_Jar_6592240642828
505595.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-ver
sion, 16, --version-code, 16, --version-name, 4.1.2-eng..20130418.210438, -F, C:
\Users\SHAQUI~1\AppData\Local\Temp\APKTOOL3486564733048346615.tmp, -0, arsc, -I,
C:\Users\Shaquille\apktool\framework\1.apk, -S, c:\Windows\SystemUI\res, -M, c:
\Windows\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\SHAQUI~1
\AppData\Local\Temp\brut_util_Jar_6592240642828505595.tmp, p, --forced-package-i
d, 127, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --v
ersion-name, 4.1.2-eng..20130418.210438, -F, C:\Users\SHAQUI~1\AppData\Local\Tem
p\APKTOOL3486564733048346615.tmp, -0, arsc, -I, C:\Users\Shaquille\apktool\frame
work\1.apk, -S, c:\Windows\SystemUI\res, -M, c:\Windows\SystemUI\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
C:\Windows>
Any idea what's causing this error? I've tried every version of apktool I could find none worked. This is the raw systemui I haven't made any changes I just decompiled it (which works fine) and then recompiled. I'm using stock rom on the HTC First if that matters.
All I'm trying to do is hide the carrier label in the pull down notification bar and I've been going through hell -__-
P.S everything other system apk decompiles and recompiles perfectly I'm only having problems with the systemui.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Anyone willing to help a brother out the stock systemui and framework files are below.
SystemUI:
https://www.dropbox.com/s/o52uidc0tlewo0v/SystemUI.rar
Framwork-res:
https://www.dropbox.com/s/ytjnz83duxbfl85/framework-res.rar
Bump.

[Q] recompile problem framework-res.apk (4.2.2 jb) apk

i have apktool and all software for apktool i do decompile framework-res.apk working perfectly but i m also recompile apk it's send this error
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'headset_pin_recognition' has no default translation in C:
\apktool\framework-res\res; found: zh_CN
C:\apktool\framework-res\res\layout\keyguard_screen_password_landscape.xml:21: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_password_portrait.xml:21: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock.xml:22: error: Er
ror: No resource found that matches the given name (at 'layout' with value '@lay
out/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:16: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: err
or: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:20: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\T
emp\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:
\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\VINODK~1\AppData\Local\Temp\APKTOOL5014567853137649274.tmp, -x, -S, C:\ap
ktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\Tem
p\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:\a
pktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
what should i do plz help
thanks in advanced
at first you have wrong posted,it shall be in Q/A section,now the second,did you install the framework res before?when not do it and it shall work than.
hey bro sorry because when i posting this i have only permission in this section Sorry i was always tried it but getting this error
Did you change any files in the APK package?? If you send me the framework, may be I will be able to help.
Problem Solved
thanks for helping me problem has solved i did add + in the error of xmls this is working greate

Categories

Resources