Unable to recompile SystemUI.apk using apktoo - Samsung Galaxy Nexus

I have been using apktool 1.4.3 to decompile and recompile framework-res.apk without any problem.
However while I can decompile SystemUI.apk without problem, I cannot recompile it. The error is shown below.
I have done searching in this forum but still can't find the solution.
Please kindly help thanks.
Code:
C:\apktool>apktool b systemui.apk
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:\apktool>

Problem solved
the command should be
apktool b SystemUI

Related

Compile Modified SystemUI.apk

I want to decompile and compile modified apk. (SystemUI.apk). I have error in apk tool. How can I ?
Dully79 said ; Have you installed TW framework??
Have you installed Jkays framework??
If no then install it.
http://forum.xda-developers.com/showpost.php?p=27519319&postcount=11
How can I install framework re-sources in apktool ?
If I try compile SystemUI.apk this error ;
Code:
[*] SystemUI
recompiling SystemUI...
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
The system can not find identified driver.
Arnadel said:
I want to decompile and compile modified apk. (SystemUI.apk). I have error in apk tool. How can I ?
Dully79 said ; Have you installed TW framework??
Have you installed Jkays framework??
If no then install it.
http://forum.xda-developers.com/showpost.php?p=27519319&postcount=11
How can I install framework re-sources in apktool ?
If I try compile SystemUI.apk this error ;
Code:
[*] SystemUI
recompiling SystemUI...
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
The system can not find identified driver.
Click to expand...
Click to collapse
Same problem here, but I'm on iMac. Got SDK and everything, yet I get this message. I have red somewhere that this is a common problem with 4.0.3 apk creating...
use this tool
http://forum.xda-developers.com/showthread.php?t=1189971
@[email protected] said:
use this tool
http://forum.xda-developers.com/showthread.php?t=1189971
Click to expand...
Click to collapse
Win only?

APKTOOL - recompiling error

I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
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)
Caused by: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
I could post it in General Android section, but I think it can be related with Xperia only.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\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\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.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\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
kokzhanjia said:
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
Click to expand...
Click to collapse
This 1.5 is strange... What is the comand for decompiling, compilng and installing frameworks? Damn...
Sent from my HTC One X using xda premium
Install frameworks first :apktool if framework-res.apk
Decompile : apktool d <name of apk> <folder created>
Recompile : apktool b <name of folder> <name of new apk>
Sent from my WT19i
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
You can,but thr error you stated may happen again,maybe if you could send that apk and i have a look ? If its okay to you
Sent from my WT19i
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
jader13254 said:
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
I just cannot solve it, I installed 587 framework and infact I cannot recompile anything
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Ja, papayayoghurt ist Österreicher
Aber, wir mussen English sprechen - das ist xda
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Code:
C:\Users\JA\Desktop\apktool>java -jar apktool.jar b lol
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\JA\Desktop\apktool\lol\res\values\arrays.xml:27: error: Found tag refer
ence-array where item is expected
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:888: error: Public symbol
array/shutdown_reboot_actions declared here is not defined.
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:887: error: Public symbol
array/shutdown_reboot_options declared here is not defined.
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:\Users\JA\AppData\Local\Temp\APKTOOL3563551836292598120.tmp, -I,
C:\Users\JA\apktool\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\lol\res, -
M, C:\Users\JA\Desktop\apktool\lol\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL3563551836292598120.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\lol\res, -M, C:\Users\JA\Desktop\apktool\lol\AndroidManifes
t.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
I placed folder with apktool on desktop, btw.
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Yeah, I know, I just wanted to put some English to German LOL
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
papayayoghurt said:
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
Click to expand...
Click to collapse
Will try tomorrow.
Ok, now I can recompile apks but only some. I get error while recompiling Phonebook, Mesaages or Phone. What is that?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
vavalexus said:
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
Click to expand...
Click to collapse
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
popthosegaskets said:
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
vavalexus said:
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
Click to expand...
Click to collapse
You can send me the link which you downloaded it from, along with what you want to change. I can do it for you.
僕のLT18iから送られてきた

[Q] recompile eror

i got this when recompile... eror what can i do ? please help me
C:\Users\Novin Pendar\Desktop\a>apktool b SystemUI almostdone.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 168)
at brut.androlib.Androlib.build(Androlib.java:185)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 164)
... 4 more
victor711 said:
i got this when recompile... eror what can i do ? please help me
C:\Users\Novin Pendar\Desktop\a>apktool b SystemUI almostdone.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 168)
at brut.androlib.Androlib.build(Androlib.java:185)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 164)
... 4 more
Click to expand...
Click to collapse
sorry for not seeing on gmail
i wasnt there to talk i just saw it now P
come in gtalk
Put in "Install Framework" Framework.apk from "Framework" folder and original file that you decompiled in "Install resource" .
Works 100000%

Compiling SecSettingsProvider

I am currently working on creating a new rom for the Note 2 (XXDLL4 - 4.1.2) and I was trying to edit SecSettingsProvider.apk. While I could decompile it, apktool kept bringing up errors while compiling even when not even modifying the apk. On other system files it worked correctly so I'm wondering if there's a different process to use with this file ?
This is the error :
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:168)
at brut.androlib.Androlib.build(Androlib.java:185)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
... 4 more
Thanks

Recompiling Errors(Need Help)

Im trying to recompile using Team rejects quick fix 2.0 im dragging the folder apk to the quick-recompile cmd file and i get this error. Am I suppose to add apktool to a path?
Team Rejectz QUICK FIX
Compiling...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: 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
!!!Aborted!!!
Press any key to continue . . .
prguzman1978 said:
Im trying to recompile using Team rejects quick fix 2.0 im dragging the folder apk to the quick-recompile cmd file and i get this error. Am I suppose to add apktool to a path?
Team Rejectz QUICK FIX
Compiling...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: 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
!!!Aborted!!!
Press any key to continue . . .
Click to expand...
Click to collapse
Is this the problem you pm'd me about or something new?
Sent from my SPH-D710 using xda premium
Issue resolved it wasn't compiling properly because apktool.yml was missing.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Issue resolved it wasn't compiling properly because apktool.yml was missing.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Glad you fixed it:good:

Categories

Resources