Spz0
Android Expert
Im needing to edit some xml files in my framework for my ROM, but Im running into problems with the admires framework-res.apk file when I recompile.
By the looks of the log file, it _may_ have something to do with the decompile process in some .9 files I have edited? -- but they run perfect on the phone, so Im a little puzzled.
Here's the log file for decompile/compile:
DECOMPILE
When its states "renaming to *.png" I notice that it actually creates a dup of the file but removes the .9 extension...
Im thinking this may be why?
So, is there any way to stop this from happening (without re-editing all the above mentioned png's which work fine in the ROM iteself)?
*edit:: I removed the mdpi folder in projects, and replaced it with an unaltered copy from the apk itself, and tried to recompile. Still ran into the same error on recompile.
Bahh... I may just end up re-editing all the suspect png files, just so its not sloppy..
Cheers.
By the looks of the log file, it _may_ have something to do with the decompile process in some .9 files I have edited? -- but they run perfect on the phone, so Im a little puzzled.
Here's the log file for decompile/compile:
DECOMPILE
COMPILE--------------------------------------------------------------------------
|Sat 06/23/2012 -- 22:53:23.77|
--------------------------------------------------------------------------
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'platform-tools\adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Spz0\Desktop\apk\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\Spz0\Desktop\apk\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_up_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_down_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickcontact_badge_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_media_player_disabled_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_input_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/tab_focus.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_dropdown_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_item_background_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/menuitem_background_focus.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_small_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_keyboard_key_trans_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/list_selector_background_longpress.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_small_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickcontact_badge_small_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/menuitem_background_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickcontact_nobadge_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_up_disabled_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_up_disabled_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_search_dialog_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/highlight_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_up_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_keyboard_key_trans_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_erase_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_down_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_down_disabled_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/gallery_unselected_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_down_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/tab_press.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_dropdown_disabled_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/gallery_selected_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/list_selector_background_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/frame_gallery_thumb_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_input_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_normal_disable_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_search_dialog_voice_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_erase_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickcontact_nobadge_highlight.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/jog_tab_bar_left_end_confirm_yellow.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/jog_tab_bar_right_end_confirm_green.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_down_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_default_small_normal_disable_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/list_selector_background_focus.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/jog_tab_bar_right_end_confirm_yellow.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/spinner_press.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_media_player_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_zoom_down_disabled_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_media_player_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/editbox_background_focus_yellow.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_up_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/grid_selector_background_focus.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_search_dialog_voice_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_dropdown_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/jog_tab_bar_left_end_confirm_green.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/grid_selector_background_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/gallery_selected_focused.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/timepicker_up_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/frame_gallery_thumb_selected.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_item_background_focus.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/spinner_select.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/highlight_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/btn_search_dialog_selected.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Spz0\AppData\Local\Temp\APKTOOL5104236788858254714.tmp, -x, -S, C:\Users\Spz0\Desktop\apk\platform-tools\..\projects\framework-res.apk\res, -M, C:\Users\Spz0\Desktop\apk\platform-tools\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
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:\Users\Spz0\AppData\Local\Temp\APKTOOL5104236788858254714.tmp, -x, -S, C:\Users\Spz0\Desktop\apk\platform-tools\..\projects\framework-res.apk\res, -M, C:\Users\Spz0\Desktop\apk\platform-tools\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
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:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Unable to access jarfile apktool.jar
Unable to access jarfile apktool.jar
Unable to access jarfile apktool.jar
Unable to access jarfile apktool.jar
Unable to access jarfile apktool.jar
Unable to access jarfile apktool.jar
^CUnable to access jarfile apktool.jar
--------------------------------------------------------------------------
When its states "renaming to *.png" I notice that it actually creates a dup of the file but removes the .9 extension...
Im thinking this may be why?
So, is there any way to stop this from happening (without re-editing all the above mentioned png's which work fine in the ROM iteself)?
*edit:: I removed the mdpi folder in projects, and replaced it with an unaltered copy from the apk itself, and tried to recompile. Still ran into the same error on recompile.
Bahh... I may just end up re-editing all the suspect png files, just so its not sloppy..
Cheers.
