Translating MIUI 4 - I stuck on Settings.apk - Android Q&A, Help & Troubleshooting

Hello, I'm trying to translate my MIUI 4 port. I have translater MiuiSystemUI.apk, and now I recompiled Settings.apk, translated strings but I can't compile it back. I'm getting stupid error all the time. Please help me if you can.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL4900171214982366998.tmp, -I, H:\Documents and Settings\ks\apktool\framework\1.apk, -I, H:\Documents and Settings\ks\apktool\framework\6.apk, -S, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\res, -M, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\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, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL4900171214982366998.tmp, -I, H:\Documents and Settings\ks\apktool\framework\1.apk, -I, H:\Documents and Settings\ks\apktool\framework\6.apk, -S, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\res, -M, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Here is log from whole operation

Related

[Q] Error in Apktool.

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Matias\AppData\Local\Temp\APKTOOL2036701665567611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?

I get error

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xm l]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Matias\AppData\Local\Temp\APKTOOL203670166556 7611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?
Try apk manager. Apk tool gave me a lot of trouble!
Accidentally sent from my Google Nexus S using XDA Premium

MiuiMusic apk Compiling

need some help i was trying to change the color of the lyrics that displayed in miui wanted to change it to the color purple to match the theme i have on it. I used apktool to decompile but getting this error while recompiling can someone help me. My Question is why is this happening?
H:\apktool1.4.3\miuimusic\res\values\colors.xml:62 : error: Error: No resource fo
und that matches the given name (at 'audio_player_lyric_current_text_n' with val
ue '@android:color/purple').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\belsmith\LOCALS~1\Temp\
APKTOOL4750143335413059235.tmp, -I, C:\Documents and Settings\belsmith\apktool\f
ramework\1.apk, -S, H:\apktool1.4.3\miuimusic\res, -M, H:\apktool1.4.3\miuimusic
\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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:\D
OCUME~1\belsmith\LOCALS~1\Temp\APKTOOL475014333541 3059235.tmp, -I, C:\Documents
and Settings\belsmith\apktool\framework\1.apk, -S, H:\apktool1.4.3\miuimusic\res
, -M, H:\apktool1.4.3\miuimusic\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

How to recompile Phonesky.apk (4.0.25) ?

I try to mod Phonesky (Google Play) lastest 4.0.25. But when recompile, got error. Who can help me, thanks
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 8, --target-sdk-version, 14, -F, C:\Users\\AppData\Local\Tem
p\APKTOOL2095748971035764179.tmp, -0, arsc, -I, C:\Users\\apktool\framewo
rk\1.apk, -S, C:\Users\\Desktop\Complain\a\res, -M, C:\Users\\Desk
top\Com\a\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, 8, --target-sdk-version, 14, -F, C:\
Users\\AppData\Local\Temp\APKTOOL2095748971035764179.tmp, -0, arsc, -I, C
:\Users\\apktool\framework\1.apk, -S, C:\Users\\Desktop\Com\a
\res, -M, C:\Users\\Desktop\Com\a\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, 8, --target-sdk-version, 14, -F, C:\Users\\AppData\Local\Temp\
APKTOOL2095748971035764179.tmp, -0, arsc, -I, C:\Users\\apktool\framework
\1.apk, -S, C:\Users\\Desktop\Complain\a\res, -M, C:\Users\\Deskto
p\Complain\a\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Have you signed it?
Well sir I don't really know much about these errors but try copying meta-inf folder and androidmanifest.xml for proper compilation of system apps...anyways u cud refer experts like sandy7...he'll surely help u..
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2

[Q] help me , i can not recompile miuisystemui.apk

i has some problem when i recompiling miuisystemui.apk , please help me how to fix ( my english is not good )
invalid resource directory name: D:\apktool\miuisystemui\res/values-fr-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-largeui
invalid resource directory name: D:\apktool\miuisystemui\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, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\AP
KTOOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Use
rs\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\m
iuisystemui\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, 16, --target-sdk-version, 16, -F, C:
\Users\AS\AppData\Local\Temp\APKTOOL574966566911823709.tmp, -I, C:\Users\AS\apkt
ool\framework\1.apk, -I, C:\Users\AS\apktool\framework\6.apk, -S, D:\apktool\miu
isystemui\res, -M, D:\apktool\miuisystemui\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, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\APKT
OOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Users
\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\miu
isystemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
please ,help me!!!

Categories

Resources