Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,560 Members 54,567 Now Online
XDA Developers Android and Mobile Development Forum

[HELP]Error in decompiling MiuiSystemUI.apk

Tip us?
 
Giridharbavana
Old
#1  
Giridharbavana's Avatar
Member - OP
Thanks Meter 5
Posts: 51
Join Date: Apr 2013
Location: Kovvur
Tutorial [HELP]Error in decompiling MiuiSystemUI.apk

I have some experience in theming Cyanogenmod and Touchwiz SystemUI and I am new for Miui.
I'm using Mi3 on MIUI V6.
I tried to decompile MiuiSystemUI.apk using apktool.
I installed framework files using these commands..
Code:
apktool if framework-ext-res.apk
[code[apktool if framework-res.apk[/code]
Code:
apktool if miui.apk
Code:
apktool if Miuiframework.apk
And then tried to decompile MiuiSystemUI.apk using the command
Code:
apktool d MiuiSystemUI.apk
I decompiled SystemUI wiithout any errors,but when I'm trying to compile it even without making any changes,I get this error.
[glow=red]I haven't made any changes to SystemUI,but just tried to recompile it.[/glow]


Waiting for help !!!!

Here is the debug log
Quote:
C:\Users\Giridhar Bavana\Desktop\Android>apktool b MiuiSYstemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Giridhar Bavana\Desktop\Android\MiuiSY
stemUI\res/values-largeui
invalid resource directory name: C:\Users\Giridhar Bavana\Desktop\Android\MiuiSY
stemUI\res/values-mediumui
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\GIRIDH~1\AppData\Local\T
emp\APKTOOL1130527827387163931.tmp, -0, arsc, -I, C:\Users\Giridhar Bavana\apkto
ol\framework\1.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\8.apk, -I, C:
\Users\Giridhar Bavana\apktool\framework\10.apk, -S, C:\Users\Giridhar Bavana\De
sktop\Android\MiuiSYstemUI\res, -M, C:\Users\Giridhar Bavana\Desktop\Android\Miu
iSYstemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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, 19, --target-sdk-version, 19, -F, C:
\Users\GIRIDH~1\AppData\Local\Temp\APKTOOL11305278 27387163931.tmp, -0, arsc, -I,
C:\Users\Giridhar Bavana\apktool\framework\1.apk, -I, C:\Users\Giridhar Bavana\
apktool\framework\8.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\10.apk,
-S, C:\Users\Giridhar Bavana\Desktop\Android\MiuiSYstemUI\res, -M, C:\Users\Giri
dhar Bavana\Desktop\Android\MiuiSYstemUI\AndroidManifes t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.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, 19, --target-sdk-version, 19, -F, C:\Users\GIRIDH~1\AppData\Local\Tem
p\APKTOOL1130527827387163931.tmp, -0, arsc, -I, C:\Users\Giridhar Bavana\apktool
\framework\1.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\8.apk, -I, C:\U
sers\Giridhar Bavana\apktool\framework\10.apk, -S, C:\Users\Giridhar Bavana\Desk
top\Android\MiuiSYstemUI\res, -M, C:\Users\Giridhar Bavana\Desktop\Android\MiuiS
YstemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:355)
... 6 more

C:\Users\Giridhar Bavana\Desktop\Android>apktool b MiuiSystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Giridhar Bavana\Desktop\Android\MiuiSy
stemUI\res/values-largeui
invalid resource directory name: C:\Users\Giridhar Bavana\Desktop\Android\MiuiSy
stemUI\res/values-mediumui
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\GIRIDH~1\AppData\Local\T
emp\APKTOOL8500391038501064038.tmp, -0, arsc, -I, C:\Users\Giridhar Bavana\apkto
ol\framework\1.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\8.apk, -I, C:
\Users\Giridhar Bavana\apktool\framework\10.apk, -S, C:\Users\Giridhar Bavana\De
sktop\Android\MiuiSystemUI\res, -M, C:\Users\Giridhar Bavana\Desktop\Android\Miu
iSystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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, 19, --target-sdk-version, 19, -F, C:
\Users\GIRIDH~1\AppData\Local\Temp\APKTOOL85003910 38501064038.tmp, -0, arsc, -I,
C:\Users\Giridhar Bavana\apktool\framework\1.apk, -I, C:\Users\Giridhar Bavana\
apktool\framework\8.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\10.apk,
-S, C:\Users\Giridhar Bavana\Desktop\Android\MiuiSystemUI\res, -M, C:\Users\Giri
dhar Bavana\Desktop\Android\MiuiSystemUI\AndroidManifes t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.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, 19, --target-sdk-version, 19, -F, C:\Users\GIRIDH~1\AppData\Local\Tem
p\APKTOOL8500391038501064038.tmp, -0, arsc, -I, C:\Users\Giridhar Bavana\apktool
\framework\1.apk, -I, C:\Users\Giridhar Bavana\apktool\framework\8.apk, -I, C:\U
sers\Giridhar Bavana\apktool\framework\10.apk, -S, C:\Users\Giridhar Bavana\Desk
top\Android\MiuiSystemUI\res, -M, C:\Users\Giridhar Bavana\Desktop\Android\MiuiS
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:355)
... 6 more
 
Giridharbavana
Old
#2  
Giridharbavana's Avatar
Member - OP
Thanks Meter 5
Posts: 51
Join Date: Apr 2013
Location: Kovvur
Finally,I found the solution.Head over to this thread to find the solution

http://forum.miui.co.in/viewtopic.php?f=43&t=1445
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes