Error Compiling SystemUI ? - AT&T HTC One (M7)

Hi. I am apptemping to recompile my SystemUI and I am receiving the following error. Can anyone assist ? Thanks
C:\Users\KC\Desktop\apktool HTC>apktool if framework-res.apk
I: Framework installed to: C:\Users\KC\apktool\framework\1.apk
C:\Users\KC\Desktop\apktool HTC>apktool b SystemUI
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
C:\Users\KC\Desktop\apktool HTC>

Related

Trying to port miui to htc rezound and having a smali error

the error is
/home/josh/patchrom/tools/apktool --quiet b out/services out/services.jar
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: *** [out/services.jar] Error 1
Any help would be appreciated.

Please help!! Able to decompile ICS APK yet unable to Compile it back again!

Before everything else, don't even try to say to me that I need to research, because I searched and searched I even filled up my computer with a bunch of apktools and aapt and various decompilers, both Command line and with GUI, it's freaking me out! Please help.!!.
-----------------------------------------------------
[*] SystemUI.apk
-----------------------------------------------------
Recompiling SystemUI.apk folder...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_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:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\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": CreateProcess error=2, The system cannot find the file specified
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: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Done!
deCompiling = APKTool 1.4.3
Compiling = Tried every version...
on another version of AAPT i get a freaking Invalid resource thingy says that some folders are invalid...

Help to Fix: brut.directory.PathNotExist: apktool.yml

Hi, i cant compile, because this problem, how do i fix it?
log said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Click to expand...
Click to collapse

Can' t recompiling framework-res

Hi, I searched all internet, but I still don't know why I can't recompile my framework-res.apk
I can decompile it, but only via newest APKTool, other ways getting error.
And recompiling ... I just tried decompile and recompile it, do nothing and it don't work.... I want change language in my phone to polish, it is Kiphone 5s, phone is great, but I can't recompile my translated xml file, because it don' work. It doesn't matter if I use changed files or stock files. Please help me with this.
My log, tried recompiling stock decompiled files ...
[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/drawable-ldrtl-hdpi
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/mipmap-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\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, C:\Users\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Nie moľna odnale«† dysku.
@Amcio
Try to use the GUI APK Tool for decompiling/recompiling APKs
@eduds
Hi, much thanks for reply, but it still not work ... Are yo have any ideas ? Maybe I will send you file ?
It is log:
2013-12-21
17:31:02,45
Decompiling..
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080301 drawable/ic_ab_back_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
@Amcio
Try to decompile and recompile right after, without change anything.
Sent from my GT-I9070 using XDA Premium 4 mobile app

error when trying to compile systemui !

Hi guys,
so i decompiled SystemUI.apk ... edited some few things, when i tried to compile it, i got an error.
C:\Users\SzQ\Desktop\apktool>apktool b SystemUI
I: Using Apktool 2.0.3
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 263)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
105)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 258)
... 4 more
please help!

Categories

Resources