[HTC One V] sakshamx:
[MENTION=4812035]tonyskyfall[/MENTION]

i edited the systemui.apk but it keeps giving error on compiling after 4th step could u look into it :rolleyes:

using vts to decompile btw

12:53:51.548: [Normal] - TenProjectViewModel.BuildProject: 'Building project: SystemUI'
12:53:51.566: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
12:53:51.597: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\BB130C''
12:53:52.850: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\BB130C\smali'
12:53:52.850: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\BB130C\classes.dex" "C:\Users\saksham\AppData\Local\Temp\BB130C\smali"'
12:53:54.846: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
12:53:54.959: [Normal] - ApkTool.CompileApk: 'Compiling apk'
12:53:54.959: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\ApkTool\apktool_1.5.2.jar" b -a "C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe" "C:\Users\saksham\AppData\Local\Temp\BB130C" "C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Binary\SystemUI.apk"'
12:53:58.075: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
12:53:58.085: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
12:53:58.087: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\saksham\AppData\Local\Temp\BB130C\res\values\arrays.xml:5: error: Error parsing XML: junk after document element'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResources(Androlib.java:283)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:206)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:176)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.cmdBuild(Main.java:228)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.main(Main.java:79)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool:	... 5 more'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.util.OS.exec(OS.java:89)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)'
12:53:58.093: [Error] - ApkTool.CompileApk: 'ApkTool:	... 6 more'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
12:53:58.093: [Error] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling resource files failed!'

edit: above error was solved by not copying the arrays.xml in my systemui.apk there is no arrays.xml

when i copied the smali files and then run the script it said done but then when i build apk there was this error of smali

13:42:50.226: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
13:42:50.266: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\6BC7FD''
13:42:52.049: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali'
13:42:52.049: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\6BC7FD\classes.dex" "C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali"'
13:42:54.064: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[31,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[47,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[61,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[67,14] no viable alternative at input 'undefined''
13:42:54.065: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
13:42:54.067: [Debug] - SmaliTool.Smali: 'Exitcode: 1'

ignore this