[Q] not able to compile systemUI.apk - HTC Pico (Explorer)

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.

Related

[Q] Patchrom error

Can anyone give me a quick answer on this error in patchrom?
Code:
>>> Install framework resources for apktool...
install framework-miui-res.apk
/home/andy/patchrom/tools/apktool --quiet if /home/andy/patchrom/miui/system/framework/framework-miui-res.apk
unzip >/dev/null sensation_4.5.4.zip "system/framework/*.apk" -d out
install out/system/framework/com.htc.resources.apk
install out/system/framework/framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
/home/andy/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/home/andy/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-sw600dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/drawable-sw600dp-hdpi
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-w360dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/layout-sw600dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-sw600dp-w1280dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-h720dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-sw600dp-land
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-w500dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-w480dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-w720dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-w600dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/layout-w600dp
invalid resource directory name: /home/andy/patchrom/sensation/out/framework-res/res/values-sw600dp-w1024dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL528070660894835237.tmp, -x, -S, /home/andy/patchrom/sensation/out/framework-res/res, -M, /home/andy/patchrom/sensation/out/framework-res/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, /tmp/APKTOOL528070660894835237.tmp, -x, -S, /home/andy/patchrom/sensation/out/framework-res/res, -M, /home/andy/patchrom/sensation/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/framework-res.apk] Error 1
I've checked a few resources and cant figure it out. any help will be much appreciated.
Thanks
ok so it an issue with the apktool and ics so have to wait for a fix.
Any update on the apktool with ICS?
http://forum.xda-developers.com/showthread.php?t=1608112
[Q] compile SystemUi.apk
Sent by Telepathy

[Q] How to zip the framework-res

I want to cook a Sense 4 rom and I unpacked the framework-res.apk in a folder with apktool. However, Which confused me is I can't zip the floder in an apk file and apktool shows these words below:"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: XX\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: XX\framework-res\res/layout-sw600dp
invalid resource directory name: XX\framework-res\res/layout-w600dp
invalid resource directory name: XX\framework-res\res/values-h720dp
invalid resource directory name: XX\framework-res\res/values-sw600dp
invalid resource directory name: XX\framework-res\res/values-sw600dp-land
invalid resource directory name: XX\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: XX\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: XX\framework-res\res/values-w360dp
invalid resource directory name: XX\framework-res\res/values-w480dp
invalid resource directory name: XX\framework-res\res/values-w500dp
invalid resource directory name: XX\framework-res\res/values-w600dp
invalid resource directory name: XX\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, %users%\AppData\Local\Temp\APKTOOL4350327246804464168.tmp, -x, -S, XX\framework-res\res, -M, XX\framework-res\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, %users%\AppData\Local\Temp\APKTOOL4350327246804464168.tmp, -x, -S, XX\framework-res\res, -M, XX\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Click to expand...
Click to collapse
"
Thanks for any gus who can help me>
is there anyone here?
anyone who can help me?
PLS HELP
I need some one to help me/.
Try Apk manager. I always get problems with apk tool.
Did you run framework.if to load sources?
Sent from my SGH-T989 using xda premium
yes, I have installed them
dillym34 said:
Did you run framework.if to load sources?
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I have run these in the CMD:"
apktool if framework-res.apk
apktool if com.htc.resources.apk
Click to expand...
Click to collapse
"
and then "1.apk" and "2.apk" show in the floder: %users%/apktool/ ,but it still not work.
dan-fish said:
Try Apk manager. I always get problems with apk tool.
Click to expand...
Click to collapse
thanks, I'll try it.

Auto APK Tool

Hy all it's mee again :/
Today i try to add change ( http://review.cyanogenmod.com/#/c/25391/ ) i found this is in LatinIME.apk file then i download THIS AutoAPKTool and i do like this
1. Open AutoAPKTool.bat
2. Move the apk file whitch i want to edit in _INPUT_APK Folder
3. Press number 6 and drag the link of file in and press enter
4. Edit the Style.xml
5. Then again run the AutoAPKTool.bat
6. Press number 7 and drag the link of edited folder in
7. Then i get this error :/
[*] C:\Users\Nataça\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME
recompiling C:\Users\Nataça\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/drawable-xhdpi
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw600dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw600dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw768dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw768dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw600dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw600dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw768dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw768dp-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\NATAA~1\AppData\Local\Temp\APKTOOL4520095 777156111205.tmp, -I, C:\Users\Nataša\apktool\framework\1.apk, -S, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res, -M, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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\NATAA~1\AppData\Local\Temp\APKTOOL4520095 777156111205.tmp, -I, C:\Users\Nataša\apktool\framework\1.apk, -S, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res, -M, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:191)
... 6 more
Unable to open '_INPUT_APK\LatinIME\dist\LatinIME.apk' as zip archive
Navedenega pogona ni mogoźe najti.
Click to expand...
Click to collapse
Can anyone tell me how to fix this ? :/
You seem to have a typo somewhere as the "_INP UT_APK" folder should not have a blank in it.

[Q] i can't recompile framework-res

i can decompile and recompile systemui.apk
i can decompile framework-res.apk but i can't recompile framework-res
this log :
D:\android\APKTool\APKTool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\android\APKTool\APKTool\framework-res\res/dr
awable-ldrtl-hdpi
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\user\AppData\Local\Temp\
APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\fra
mework-res\res, -M, D:\android\APKTool\APKTool\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\user\AppData\Local\Temp\APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S,
D:\android\APKTool\APKTool\framework-res\res, -M, D:\android\APKTool\APKTool\fr
amework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\user\AppData\Local\Temp\AP
KTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\frame
work-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
i think i wrong edit my framework-res.apk but i try decompile and no edit ,its same cannot recompile framework-res
sorry to my english
friend try this
hi friend i think there is ssomething error in the apktool
i have posted a link below
:cyclops: http://forum.xda-developers.com/showpost.php?p=43353411&postcount=54:cyclops:
download that version
unzip that file to a specific folder ther you open comand prompt by shift+right click
in that first type
step-1
apktool if framework-res.apk (here xxxxxx.apk is your desired apk file)
step-2(decompile)
apktool d xxxxxxx.apk
step-3(recompile)
apktool b -f -d xxxxxxx
you find the recompiled apk in xxxxxx/dist folder open it with winrar or 7zip .now open original apk file with 7zip or winrar and drag and drop
META-INF and resource files there give the compression level as (store) and sign it(important)
step-4(sign)
java -jar signapk.jar testkey.x509.pem testkey.pk8 xxxxxxx.apk xxxxxxx_signed.apk
step-5(zipalign)
zipalign -fv 4 xxxxxxxx.apk xxxxxxxx-new.apk
to zip align you must install android sdk software in that go to tools/ there you search for (draw9patch.bat) and (zipalign.exe)
copy that two files and paste in C:\windows\paste it
hit thanks if i helped

[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