Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Tablet [Q] Having problems when I compile with APKTOOL

OP galaxynote2

14th February 2014, 07:49 PM   |  #1  
galaxynote2's Avatar
OP Senior Member
Flag Buenos Aires - Argentina
Thanks Meter: 654
387 posts
Join Date:Joined: Sep 2012
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!
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...
.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
        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
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
        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
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
        ... 6 more
16th February 2014, 08:00 AM   |  #2  
aureljared's Avatar
Senior Member
Flag Quezon City
Thanks Meter: 461
705 posts
Join Date:Joined: May 2013
Try this
apktool b -f -d SecSettings
Sent from my GT-I9500 using Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes