PROBLEM IN COMPILING systemUI.apk of my moto g(2014) - G 2014 Q&A, Help & Troubleshooting

ok so i read how to port home button animations fro google pixel to other phones so i decided to try it out on my moto g 2014 running CM 14.1
i downloaded latest apktool and also installed latest java runtime but whenever i try to recompile my systemui.apk after decompiling andporting the recources it gives error
K:\1pixel_project\m\Apktool>java -jar apktool.jar b SystemUI -c
I: Using Apktool 2.2.1
I: Checking whether resources has changed...
I: Building resources...
W: K:\1pixel_project\m\Apktool\SystemUI\res\values\styles.xml:2126: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
W:
W: K:\1pixel_project\m\Apktool\SystemUI\res\values\styles.xml:2127: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
W:
W: K:\1pixel_project\m\Apktool\SystemUI\res\values\styles.xml:2132: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
W:
W: K:\1pixel_project\m\Apktool\SystemUI\res\values\styles.xml:2142: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
W:
W: K:\1pixel_project\m\Apktool\SystemUI\res\values\styles.xml:2352: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/Theme.DeviceDefault.Light.Dialog.NoActionBar.FixedSize'.
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec (exit code = 1): [C:\User
s\almash\AppData\Local\Temp\brut_util_Jar_6240443644379257488.tmp, p, --forced-p
ackage-id, 127, --min-sdk-version, 25, --target-sdk-version, 25, --version-code,
25, --version-name, 7.1, -F, C:\Users\almash\AppData\Local\Temp\APKTOOL88538327
96008194591.tmp, -0, arsc, -0, arsc, -I, C:\Users\almash\AppData\Local\apktool\f
ramework\1.apk, -S, K:\1pixel_project\m\Apktool\SystemUI\res, -M, K:\1pixel_proj
ect\m\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 1): [C:\Users\almash\AppData\Local\Temp\brut_util_Jar_6240443
644379257488.tmp, p, --forced-package-id, 127, --min-sdk-version, 25, --target-s
dk-version, 25, --version-code, 25, --version-name, 7.1, -F, C:\Users\almash\App
Data\Local\Temp\APKTOOL8853832796008194591.tmp, -0, arsc, -0, arsc, -I, C:\Users
\almash\AppData\Local\apktool\framework\1.apk, -S, K:\1pixel_project\m\Apktool\S
ystemUI\res, -M, K:\1pixel_project\m\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
almash\AppData\Local\Temp\brut_util_Jar_6240443644379257488.tmp, p, --forced-pac
kage-id, 127, --min-sdk-version, 25, --target-sdk-version, 25, --version-code, 2
5, --version-name, 7.1, -F, C:\Users\almash\AppData\Local\Temp\APKTOOL8853832796
008194591.tmp, -0, arsc, -0, arsc, -I, C:\Users\almash\AppData\Local\apktool\fra
mework\1.apk, -S, K:\1pixel_project\m\Apktool\SystemUI\res, -M, K:\1pixel_projec
t\m\Apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:433)
... 6 more
i am running windows 8.1 ... please someone help me what i am doing wrong
probabaly its a noobish mistake
PLEASE HELP:crying:

Related

[Q] Can't compile miui4 framework

I decompiled framework-miui-res.apk just changed strings and tried compile
So it shows log
[*] C:\Users\***\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res
recompiling C:\Users\***\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users***r\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res\res/drawable-xhdpi
invalid resource directory name: C:\Users\***r\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res\res/values-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\***\AppData\Local\Temp\APKTOOL3321239409313508694.tmp, -x, -I, C:\Users\***r\apktool\framework\1.apk, -S, C:\Users\***\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res\res, -M, C:\Users\***r\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-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\***\AppData\Local\Temp\APKTOOL3321239409313508694.tmp, -x, -I, C:\Users\***\apktool\framework\1.apk, -S, C:\Users\***\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res\res, -M, C:\Users\***\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-miui-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sistem belirtilen srcy bulamyor.(it means system can't find srcy specified)

[HELP] Got errors while compiling 'framework-res.apk'

I am noob at theming but started off to explore things. Today I decompiled my framework-res.apk using apk-tool, then changed PNG images in folder 'drawable-mdpi', fine till here but when I try to recompile my framework-res.apk I get following errors, any idea?
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Windows>cd apk tool
C:\Windows\apk tool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_
background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\eyusawa\AppData\Local\Temp
\APKTOOL3098020830120440330.tmp, -x, -S, C:\Windows\apk tool\framework-res\res,
-M, C:\Windows\apk tool\framework-res\AndroidManifest.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\eyusawa\AppData\Local\Temp\APKTOOL3098020830120440330.tmp, -x, -S, C:\Windo
ws\apk tool\framework-res\res, -M, C:\Windows\apk tool\framework-res\AndroidMani
fest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Windows\apk tool>
Click to expand...
Click to collapse
If playing with ICS systems apks, make sure you decompile with apktool 1.4.2 and compile with apktoll 1.4.3
Compiling and decompiling errors will be solved by this.
Google "Modified apktool for ICS"
You will get links to download

[Q] Please help with framework-res recompiling

hey guuys, i am using xdaAutoTool to customize the framework-res apk,,
i have installed the framework apk, and it decompiles perfectly fine,, i make my changes and if i recompile it comes up with this
-----------------------------------------------------
[*] Processing framework-res folder...
-----------------------------------------------------
Recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/layout-sw600dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/layout-w600dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/mipmap-xhdpi
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-h720dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-sw600dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-w360dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-w480dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-w500dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-w600dp
invalid resource directory name: C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\winxuser\AppData\Local\Temp\APKTOOL2968905148637335578.tmp, -x, -S, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res, -M, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\AndroidManifest.xml]
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, 15, --target-sdk-version, 15, -F, C:\Users\winxuser\AppData\Local\Temp\APKTOOL2968905148637335578.tmp, -x, -S, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res, -M, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\winxuser\AppData\Local\Temp\APKTOOL2968905148637335578.tmp, -x, -S, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res, -M, C:\Users\winxuser\Desktop\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
DONE!
if someone could point out were im going wrong that would be great
Yes..i too had that problem earlier..don't know why.. but got it only when decompiling JB 4.2.2 framework-res.apk..
Well i'll reasearch again n tell u..
Have you tried compiling without making any changes to ensure it works fine? It could be a bug with the program as the above Guy said, you could be trying to compile a 4.2 apk which sometimes causes errors..
Because I am seeing so many damn errors in there that I can't believe it..
Thanks for the ffeed back.. Yes i did try without editibg stuff and yes it worked. Its the framework from ics aosp
Sent from my GT-I9300 using xda app-developers app
winxuser said:
Thanks for the ffeed back.. Yes i did try without editibg stuff and yes it worked. Its the framework from ics aosp
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Did you change the mentioned files in the log?
no i only changed arrays.xml
winxuser said:
no i only changed arrays.xml
Click to expand...
Click to collapse
Bug with the program then..

[Q] Editing Apk Error Help

C:\apktool>apktool b secmms secmmshi.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool\secmms\res/layout-sw399dp-xhdpi
invalid resource directory name: C:\apktool\secmms\res/values-sw399dp-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\GIMCHO~1\AppData\Local\Tem
p\APKTOOL8788300092931504939.tmp, -I, C:\Users\Gim Chow\apktool\framework\1.apk,
-I, C:\Users\Gim Chow\apktool\framework\2.apk, -S, C:\apktool\secmms\res, -M, C
:\apktool\secmms\AndroidManifest.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\GIMCHO~1\AppData\Local\Temp\APKTOOL8788300092931504939.tmp, -I, C:\Users\Gi
m Chow\apktool\framework\1.apk, -I, C:\Users\Gim Chow\apktool\framework\2.apk, -
S, C:\apktool\secmms\res, -M, C:\apktool\secmms\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
anyone got any ideas? i was editing the secmms.apk to change the receipient limit and SmstoMmsConversionThreshold
-bump-
You haven't posted the complete log.. In last it says more
Sent from my GT-N7000 using Tapatalk 2
ikr. but i dont see any log files ><

[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]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Waiting for help !!!!
Here is the debug log
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.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, 19, --target-sdk-version, 19, -F, C:
\Users\GIRIDH~1\AppData\Local\Temp\APKTOOL1130527827387163931.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\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.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(AndrolibResources.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.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, 19, --target-sdk-version, 19, -F, C:
\Users\GIRIDH~1\AppData\Local\Temp\APKTOOL8500391038501064038.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\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.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(AndrolibResources.jav
a:355)
... 6 more
Click to expand...
Click to collapse
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
Giridharbavana said:
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
Click to expand...
Click to collapse
What is Solution bro. Same problem

Categories

Resources