I have been trying for so long yet I am stuck with compiling apk. I am using autoapk tool. Whenever I try to recompile I have problem.
Log when decompiling
[*] C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk
decompiling C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\USER\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
Recompiling log
[*] C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI
recompiling C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw600dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw720dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\USER\LOCALS~1\Temp\APKTOOL138857358957302105.tmp, -I, C:\Documents and Settings\USER\apktool\framework\1.apk, -S, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res, -M, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\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, C:\DOCUME~1\USER\LOCALS~1\Temp\APKTOOL138857358957302105.tmp, -I, C:\Documents and Settings\USER\apktool\framework\1.apk, -S, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res, -M, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Unable to open '_INPUT_APK\SystemUI\dist\SystemUI.apk' as zip archive
The system cannot find the drive specified.
Click to expand...
Click to collapse
I have latest jdk & jre installed. I use xp sp3. Someone please help & tell what I am doing wrong. I chose version 1.4.1 before decompiling in auto apktool. I tried alot of roms even tried deodexed rom.I tried systemUi,framework-res. Please tell me if there is any pre-requsite files I need before compiling & what to do?Please dont ask me to use other tool because I have tried all compiling tools
You said I should help you. I would try it on linux if I were you.
You can PM me and I will try it on my machine to decompile, make the changes and recompile it for you. Just send me a download link and instructions
Hmm..looks like you need to use the latest apktool and aapt files. 1.4.1 is very old now.
Try Tickle My Android 4.3. That uses the very latest versions.
Sent from my SK17i using xda premium
Related
hii guys
im trying to **** a new battery + icons on kitchen but im facing a problem only on feralab framework.apk file
i'v tried other rooms framework and it work fine
the error on post 2
any body have an idea ??
Error log: UOT-02-28-16-26-2-SHTF.txt
Decompiling framework-res.apk UOT-02-28-16-26-2
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-02-28-16-26-2
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
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-02-28-16-26-2
W: Could not find sources
I: Building resources...
/home/mendoza/port5/data/working_dir/UOT-02-28-16-26-2/fw_dec/res/values-hdpi/drawables.xml:3: error: Resource entry battery_low_battery is already defined.
res/drawable-hdpi/battery_low_battery.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL441865134536758008.tmp, -x, -S, /home/mendoza/port5/data/working_dir/UOT-02-28-16-26-2/fw_dec/res, -M, /home/mendoza/port5/data/working_dir/UOT-02-28-16-26-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:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL441865134536758008.tmp, -x, -S, /home/mendoza/port5/data/working_dir/UOT-02-28-16-26-2/fw_dec/res, -M, /home/mendoza/port5/data/working_dir/UOT-02-28-16-26-2/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191
I'm facing the exact same problem trying to cook a battery-mod (Version N, Blue numbers).
used amend scripting and patch9 autofix and uploaded framework-res.apk and systemUI.apk from feralabs zip. Please help !
Using:
Feralab rom 10.3
unlocked bootloader
i think thread can be closed as we're all on v11 now
Hey,
I am a noob (lol) and I have been trying to comile SystemUI apk but after decompiling I cannont recompile it as I get the following error:
apktool b SystemUI ~/Desktop/almostdone.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/layout-sw600dp
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/drawable-sw600dp-mdpi
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw600dp-port
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw720dp-port
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/drawable-sw720dp-mdpi
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw600dp
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1718396844567339264.tmp, -I, /home/wahmed/apktool/framework/1.apk, -S, /home/wahmed/Android/Danielle/ics/SystemUI/res, -M, /home/wahmed/Android/Danielle/ics/SystemUI/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/APKTOOL1718396844567339264.tmp, -I, /home/wahmed/apktool/framework/1.apk, -S, /home/wahmed/Android/Danielle/ics/SystemUI/res, -M, /home/wahmed/Android/Danielle/ics/SystemUI/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
Some help qould be appreciated! :crying:
PS: I am running ubuntu 12.10 beta and have openjdk 6 installed
have you performed:
Code:
java -jar apktool.jar if framework-res.apk
if that doesn't work, try a newer version of apktool.jar perhaps.. last time I checked was v1.5.0 by iBotPeaches.
Sorry my bad english.
I have a rooted LG Optimus EX SU-880 phone android ICS version v19c
I want to edit LGPhone_2c.apk but always get 1 error.
I tried many methods but unsuccessful:
- Used many version of appt.exe apktool.jar (appt newest from sdk + appt >5MB from miui dev team
apktool 1.4.2 --> 1.5
- Deodexed rom
- Used apkmanager, ....
Please guide me fix this error. Thank of all
This is my log decompiling and build without edit any file by apktool1.5 on windows XP and java JDK 1.7
Code:
C:\Documents and Settings\Home\Desktop\apk tool>apktool d LGPhone_2c.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\Home\apktool\fram
ework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Home\apktool\fram
ework\2.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Documents and Settings\Home\Desktop\apk tool>
This message box appear (attachment)
then i click "close" button ---> this log
Code:
C:\Documents and Settings\Home\Desktop\apk tool>apktool b LGPhone_2c
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-ver
sion, 15, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKTOOL8934582910798488423.tmp, -I,
C:\Documents and Settings\Home\apktool\framework\1.apk, -I, C:\Documents and Se
ttings\Home\apktool\framework\2.apk, -S, C:\Documents and Settings\Home\Desktop\
apk tool\LGPhone_2c\res, -M, C:\Documents and Settings\Home\Desktop\apk tool\LGP
hone_2c\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKT
OOL8934582910798488423.tmp, -I, C:\Documents and Settings\Home\apktool\framework
\1.apk, -I, C:\Documents and Settings\Home\apktool\framework\2.apk, -S, C:\Docum
ents and Settings\Home\Desktop\apk tool\LGPhone_2c\res, -M, C:\Documents and Set
tings\Home\Desktop\apk tool\LGPhone_2c\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Documents and Settings\Home\Desktop\apk tool>
I upload an apks in attachment including:
+ framework-res.apk
+ lge-res.apk
+ LGPhone_2c.apk
Please help me! I can't rebuild this apk.
Any body here?
Hey guys,
can anyone try decompiling SemcPhone.apk with apktool or any other tool then recompile ? If it works, please send the me appropriate aapt and apktool Ive been trying for ages but I keep getting silly errors due to '/' and '\' both appearing in address of 4 folders I tried deleting them to compile but then, I lose dialler functionality in apk :/
And I know its been done before so Im just wondering how the compiling was done I tried quite a few versions of aapt and all and so far, nothing worked Let me know at the earliest if you get it working cause I really want to decompile that apk :fingers-crossed:
Thanks in Advance
Cheers
I've had exact same this issue for a loong time. I've tried versions apktool and apkmanager. Any framework dependant apk ( SystemUI works fine I think ).
After decompiling, and trying to recompile, those same 4 directory name problems occur. Latest try is apktool 1.5.1. If anyone can help solve this, please post. Neectron may be able to help.
Even Im hoping someone will come up with a solution soon Its definitely possible because a friend of mine did compile SemcPhone for my rom but I didnt come across this error till after he left So Im in the lurch as well
Lets hope for the best And thanks for bumping the topic
Cheers
Can you copy and paste the error here?.I'll take a look.
This is what I had. Not sure if it's the same as Min3r
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\SURAJK~1\AppData\Local\Temp\APKTOOL1654663731666785591.tmp, -I, C:\Users\Surajkumar\apktool\framework\1.apk, -I, C:\Users\Surajkumar\apktool\framework\2.apk, -S, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res, -M, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\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, C:\Users\SURAJK~1\AppData\Local\Temp\APKTOOL1654663731666785591.tmp, -I, C:\Users\Surajkumar\apktool\framework\1.apk, -I, C:\Users\Surajkumar\apktool\framework\2.apk, -S, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res, -M, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Delete those folders and try?
Exact same error I get Google Search said the issue was due to outdated aapt but I tried pretty much every aapt I could find and no luck I then deleted the file and after a few Plurals.xml fixes, I got it to compile but the apk will be corrupt and create FCs when you try to make/receive calls
Hope we can finally be able to compile that darn file soon
Hey neectron, do you know where the index of folders.etc is ? There has to be an xml file which contains list of values folders right ? I think it might be a syntax or formatting error there causing the issue. Unfortunately, I dont know the apk file structure so well so I cant do it myself
Min3r said:
Hey neectron, do you know where the index of folders.etc is ? There has to be an xml file which contains list of values folders right ? I think it might be a syntax or formatting error there causing the issue. Unfortunately, I dont know the apk file structure so well so I cant do it myself
Click to expand...
Click to collapse
I think AndroidManifest.xml manages that,but there won't be any index.
The mcc454-mnc1000 etc.are used to support different carriers.
Google AndroidManifest you will get clearer explanation.
same problem.Any ideia?
Install additional framework files
Sent from my ST25i using xda app-developers app
I can perfectly do this!
Andrewasth said:
Install additional framework files
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
which ones and how?
I only managed to install framework-res.apk
Me said:
which ones and how?
I only managed to install framework-res.apk
Click to expand...
Click to collapse
systemui and semcgeneric one from the framework folder
same way
apktool if xxx.apk
bonjour j'ai un soucis , impossible de compiler SemcPhone.apk
j'ai des erreurs alors que j'ai apporté trois petite modifications et si je ne modifie rien ca me marque les mêmes erreur
Code:
C:\apktool>apktool d SemcPhone.apk SemcPhone
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Dada\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\Dada\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
C:\apktool>apktool b SemcPhone
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rCN
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rHK
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Dada\AppData\Local\Temp\
APKTOOL937899277147708100.tmp, -I, C:\Users\Dada\apktool\framework\1.apk, -I, C:
\Users\Dada\apktool\framework\2.apk, -S, C:\apktool\SemcPhone\res, -M, C:\apktoo
l\SemcPhone\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, 19, --target-sdk-version, 19, -F, C:
\Users\Dada\AppData\Local\Temp\APKTOOL937899277147708100.tmp, -I, C:\Users\Dada\
apktool\framework\1.apk, -I, C:\Users\Dada\apktool\framework\2.apk, -S, C:\apkto
ol\SemcPhone\res, -M, C:\apktool\SemcPhone\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, 19, --target-sdk-version, 19, -F, C:\Users\Dada\AppData\Local\Temp\AP
KTOOL937899277147708100.tmp, -I, C:\Users\Dada\apktool\framework\1.apk, -I, C:\U
sers\Dada\apktool\framework\2.apk, -S, C:\apktool\SemcPhone\res, -M, C:\apktool\
SemcPhone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
HELP ME ¨PLEASE
Hey Guys I want to decompile Xperia 2011 System UI but get error.
I got Res,Smali and Android Manifest folder only...
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk
decompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\use\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:339)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:174)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
When want to recompile like this
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:162)
at brut.androlib.Androlib.build(Androlib.java:179)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:158)
... 4 more
Unable to open '_INPUT_APK\SystemUI\dist\SystemUI.apk' as zip archive
The system cannot find the drive specified.
I was able to decompile and recompile 2012 Xperia System UI or Xperia Z System UI but this can't
Anyone please help me.Thanks.
u got framework 2.apk ?
XperiaMT27 said:
u got framework 2.apk ?
Click to expand...
Click to collapse
got but it is Xperia sola framework,i want to decompile that 2011 Xperia System UI
Ben Ling said:
got but it is Xperia sola framework,i want to decompile that 2011 Xperia System UI
Click to expand...
Click to collapse
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Andrewasth said:
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Click to expand...
Click to collapse
i can decompile properly now because installed Xperia 2011 Framework but can't recompile although i didn't edit any file. :crying:
Ben Ling said:
i can decompile properly now because installed Xperia 2011 Framework but can't recompile although i didn't edit any file. :crying:
Click to expand...
Click to collapse
Try my suggestion
Andrewasth said:
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Click to expand...
Click to collapse
sorry don't understand you.
i can decompile properly with all files
assets
res
smali
AndroidManifest
apktool.yml
but can't recompile
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/layout-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp-port
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp-port
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, C:\Users\use\AppData\Local\Temp\APKTOOL3831133532511105452.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\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, C:\Users\use\AppData\Local\Temp\APKTOOL3831133532511105452.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Unable to open '_INPUT_APK\SystemUI2\dist\SystemUI2.apk' as zip archive
The system cannot find the drive specified.
so i choose recompile ICS APK
and like this
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/layout-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp-port
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp-port
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, C:\Users\use\AppData\Local\Temp\APKTOOL5720352158713435138.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\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, C:\Users\use\AppData\Local\Temp\APKTOOL5720352158713435138.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Unable to open '_INPUT_APK\SystemUI2\dist\SystemUI2.apk' as zip archive
The system cannot find the drive specified.
i got all files in out_apk
Try with this! It's an older version but might solve the issue! http://forum.xda-developers.com/showthread.php?t=2011254
Sent from my ST25i using xda app-developers app