[Android Q&A, Help & Troubleshooting] scalleygwags:
helpp

i keep getting errors when recompiling systemui. i have gotten the right smali files from the website but keep getting this error. Can anyone point me in right direction? thanks in advance

c:\apktool>apktool b C:\apktool\systemui C:\systemui1.apk
I: Using Apktool 2.0.0-RC3 on systemui
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
W: Unknown file type, ignoring: C:\apktool\systemui\smali\com\android\systemui\s
tatusbar\policy\quicklaunch\.DS_Store
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\sean\A
ppData\Local\Temp\brut_util_Jar_2494091775960787813.tmp, p, --forced-package-id,
127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --ver
sion-name, 4.4.4-N910TUVU1ANK4, -F, C:\Users\sean\AppData\Local\Temp\APKTOOL3540
875971851525219.tmp, -0, arsc, -I, C:\Users\sean\apktool\framework\1.apk, -S, C:
\apktool\systemui\res, -M, C:\apktool\systemui\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\sean\AppData\Local\Temp\brut_util_Jar_24940917759607878
13.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version
, 19, --version-code, 19, --version-name, 4.4.4-N910TUVU1ANK4, -F, C:\Users\sean
\AppData\Local\Temp\APKTOOL3540875971851525219.tmp, -0, arsc, -I, C:\Users\sean\
apktool\framework\1.apk, -S, C:\apktool\systemui\res, -M, C:\apktool\systemui\An
droidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\sean\App
Data\Local\Temp\brut_util_Jar_2494091775960787813.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --versi
on-name, 4.4.4-N910TUVU1ANK4, -F, C:\Users\sean\AppData\Local\Temp\APKTOOL354087
5971851525219.tmp, -0, arsc, -I, C:\Users\sean\apktool\framework\1.apk, -S, C:\a
pktool\systemui\res, -M, C:\apktool\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
Caused by: java.io.IOException: Cannot run program "C:\Users\sean\AppData\Local\
Temp\brut_util_Jar_2494091775960787813.tmp": CreateProcess error=5, Access is de
nied
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:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more