[Android Software Development] ravian29:
can anyone please help me here? i am stuck on systemui.apk recompilation.

What i am doing is decompiling systemUi.apk. Then without any changings i recompile (both with and without changing meta-inf and AndroidManifest.xml from or original then) sign it. Now, when i flash this to my phone and set permissions my phone bootups and i can see wallpaper but ui does not load.

here is the outcome when i try to do it manually(advanced apktool does not show me any error or warnings , it shows me Success: yes) i get:

C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\2-In>apktool b SystemUI

I: Using Apktool 2.0.1

I: Checking whether sources has changed...

I: Smaling smali folder into classes.dex...

I: Checking whether resources has changed...

I: Building resources...

warning: string 'data_usage_disable_mobile_vzw_1' has no default translation.

warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.

warning: string 'flight_mode_disabled_on_demo_devices' has no default translation.

I: Building apk file...

I can see restart menu but nothing else but after few minutes i see systemUI FC message. I have deleted dalvick cache but no joy. I checked these all steps with titaniuam backup apk and i can install it and works fine. Can you guys pease tell me why systemui.apk does not work?

I am using Advanced apktool 4.10 with apktool version 2.0.1 on windows 8.1 with jdk and jre version 7u65. Device is N9208 Note 5 dual sim on 5.1.1

Update:

When i try to recompile framework-res.apk i got the following error:

Log For : framework-res.apk

Log Type : Recompiling

Log Recorded At : Fri 10-30-2015 1:09:31.75

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

------------------------------------------------------

W: Could not find sources

C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\res\drawable-sw360dp-xxxhdpi-v13\ic_knox_badge.PNG: error: File is case-insensitive equivalent to: C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\res\drawable-xxxhdpi-v4\ic_knox_badge.png

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_59 0528688982866651.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9208ZTU2AOJ3, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL109730652 863356616.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib .java:459)

at brut.androlib.Androlib.buildResources(Androlib.jav a:397)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:256)

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\Admin\AppData\Local\Temp\brut_util_Jar_59 0528688982866651.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9208ZTU2AOJ3, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL109730652 863356616.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:419)

at brut.androlib.Androlib.buildResourcesFull(Androlib .java:445)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_59 0528688982866651.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9208ZTU2AOJ3, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL109730652 863356616.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\Admin\Desktop\delete\CustomRom\theme\Adva ncedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:413)

... 6 more

I have tried this tool with apktool 2.0.2 and i got the following exception

java version "1.7.0_67"

Java(TM) SE Runtime Environment (build 1.7.0_67-b01)

Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Picked up _JAVA_OPTIONS: -Xmx10000m

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_4449189792204992033.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9208ZTU2AOJ3, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL7973752985826484098.tmp, -0, resources.arsc, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_cdma_roam.qmg, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_cdma_roam_flash.qmg, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_cdma_roam_home.qmg, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_cdma_roam_home_flash.qmg, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_roam.qmg, -0, res/drawable-ldrtl-xxxhdpi-v4/stat_sys_data_connected_roam_dark.qmg, -0, res/drawable-nodpi-v4/btn_code_lock_default_holo.qmg, -0, res/drawable-nodpi-v4/btn_code_lock_default_holo_marked.qmg, -0, res/drawable-nodpi-v4/camera_default.qmg, -0, res/drawable-nodpi-v4/camera_press.qmg, -0, res/drawable-nodpi-v4/camera_swipe.qmg,

and almost 15 pages of different files and at the end

t brut.util.OS.exec(OS.java:93)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)

... 6 more

Caused by: java.io.IOException: Cannot run program "C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_4449189792204992033.tmp": CreateProcess error=206, The filename or extension is too long

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)

at java.lang.Runtime.exec(Runtime.java:617)

at java.lang.Runtime.exec(Runtime.java:485)

at brut.util.OS.exec(OS.java:84)

... 7 more

Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)

at java.lang.ProcessImpl.start(ProcessImpl.java:136)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)

... 10 more

Picked up _JAVA_OPTIONS: -Xmx10000m

warning: string 'data_usage_disable_mobile_vzw_1' has no default translation.

warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.

warning: string 'flight_mode_disabled_on_demo_devices' has no default translation.

Picked up _JAVA_OPTIONS: -Xmx10000m

The system cannot find the file specified.

Picked up _JAVA_OPTIONS: -Xmx10000m

I have read all this and many other threads but can not fix this aapt issue

Please help me out, I will be really very very thankful to you all.