Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,161 Members 52,417 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Having problems when I compile with APKTOOL

Tip us?
 
galaxynote2
Old
#1  
galaxynote2's Avatar
Senior Member - OP
Thanks Meter 594
Posts: 364
Join Date: Sep 2012
Location: Buenos Aires - Argentina
Tablet [Q] Having problems when I compile with APKTOOL

Hi! As the title says, I'm having problems when i compile with APKTOOL. The apk in matter is SecSettings.apk. My phone is a Samsung Galaxy Note GT-N7000 running Jelly Bean Touchwiz and i have both framework-res.apk and twframework.res installed in APKTOOL. But it's not the only apk (SecSettings) which i have problems: If i try to recompile framework-res again i have a close-to-same error and the folder "dist" with the modded apk is not created. I'm attaching the error in CMD. Hope you guys can help me!
Code:
C:\Users\Julian\Desktop\ordenar\APKTOOL>apktool d SecSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Julian\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...

C:\Users\Julian\Desktop\ordenar\APKTOOL>apktool b SecSettings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Julian\Desktop\ordenar\APKTOOL\SecSettings\res\xml\device_info_settings
.xml:3: error: Error parsing XML: not well-formed (invalid token)
aapt: warning: string 'lgt_service_global_auto_roaming_call_customcenter_summary
_nocall' has no default translation in C:\Users\Julian\Desktop\ordenar\APKTOOL\S
ecSettings\res; found: de es_ES fr it pl ru
aapt: warning: string 'onscreen_keypad' has no default translation in C:\Users\J
ulian\Desktop\ordenar\APKTOOL\SecSettings\res; found: az bg ca cs da de el en_US
 es_ES es_US et eu fi fr ga gl hr hu hy is it ka kk ko lt lv mk nb nl pl pt_BR p
t_PT ro ru sk sl sr sv tr uk uz
aapt: warning: string 'wifi_scc_diff_notification_dialog_msg' has no default tra
nslation in C:\Users\Julian\Desktop\ordenar\APKTOOL\SecSettings\res; found: az b
g ca cs da de el en_US es_ES es_US et eu fi fr ga gl hr hu hy is it ka kk lt lv
mk nb nl pl pt_BR pt_PT ro ru sk sl sr sv tr uk uz
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Julian\AppData\Local\Tem
p\APKTOOL2031307369933499447.tmp, -0, arsc, -I, C:\Users\Julian\apktool\framewor
k\1.apk, -S, C:\Users\Julian\Desktop\ordenar\APKTOOL\SecSettings\res, -M, C:\Use
rs\Julian\Desktop\ordenar\APKTOOL\SecSettings\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, 16, --target-sdk-version, 16, -F, C:
\Users\Julian\AppData\Local\Temp\APKTOOL2031307369933499447.tmp, -0, arsc, -I, C
:\Users\Julian\apktool\framework\1.apk, -S, C:\Users\Julian\Desktop\ordenar\APKT
OOL\SecSettings\res, -M, C:\Users\Julian\Desktop\ordenar\APKTOOL\SecSettings\And
roidManifest.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, 16, --target-sdk-version, 16, -F, C:\Users\Julian\AppData\Local\Temp\
APKTOOL2031307369933499447.tmp, -0, arsc, -I, C:\Users\Julian\apktool\framework\
1.apk, -S, C:\Users\Julian\Desktop\ordenar\APKTOOL\SecSettings\res, -M, C:\Users
\Julian\Desktop\ordenar\APKTOOL\SecSettings\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
        ... 6 more
 
aureljared
Old
#2  
aureljared's Avatar
Senior Member
Thanks Meter 455
Posts: 676
Join Date: May 2013
Location: Quezon City
Try this
Code:
apktool b -f -d SecSettings
Sent from my GT-I9500 using Tapatalk

If I helped you in any way, just hit the Thanks button!

---------------------------------------
Samsung Galaxy Express GT-I8730 (CyanogenMod 11 / Android 4.4.4 by szezso)
---------------------------------------
General Development Thread CM Building Tutorial
Sign/Zipalign Script Enhanced VRTheme Template
Project CyanogenMod: GT-I8730 AOSP Icons + 1% Battery MOD
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes