Tra i vari OT vorrei segnalare questo Tool con GUI molto elementare;
[TOOL][UPDATE 3/12/12]GUI APK Tool for decompiling/recompiling APKs now with .NET 3.5
La decompilazione non è mai un problema, spesso però nel ricompilare il SystemUI escono errori, su file che non si toccano minimamente.
Ho cambiato, come ho già provato, solo il colore backgroud e nel ricompilare esce, qualcuno mi aiuta a decifrare il problema? perché i nomi citati nel CODE non li ho toccati:
codice:
04/12/2012
1:40:20,98
Re-compiling...
W: Could not find sources
I: Building resources...
aapt: warning: string 'dualmodesetting_cannot_set_flight_mode' has no default translation in C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res; found: az bg ca cs da de el en_US es_ES es_US et eu fi fr ga gl hr hu hy is it ka kk ko lt lv mk nb nl pl pt_BR pt_PT ro ru sk sl sr sv tr uk uz
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\stat_sys_gps_acquiring_anim.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/multi_window_header_ic_press_bg_03').
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\status_bar_settings_slider_disabled.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/keyguard_weather_11').
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\status_bar_settings_slider_disabled.xml:6: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/keyguard_weather_11').
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\status_bar_settings_slider_disabled.xml:9: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/keyguard_weather_11').
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\status_bar_toggle_button.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/APKTOOL_DUMMY_04d5').
C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res\drawable\status_bar_toggle_button.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@*android:drawable/keyguard_weather_11').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL7642407027353397878.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -S, C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL7642407027353397878.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -S, C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Admin\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Ed aggiungo che i problemini sono solo su questi file di "sistema" le App normali...zero problem, le cambio come meglio credo e le ricompilo.
Ho rom stock e preso systemui stock per provare a moddarlo.