apktool help

Discussion in 'Android Tech Support' started by jasonppp, Oct 1, 2010.

  1. jasonppp

    jasonppp Premium Member
    Premium Member Developer

    Joined:
    May 27, 2010
    Messages:
    959
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +2
    howdy,
    hope this is the right forum to post I have been toying around with various different things. Right now i am trying to modify an already great setup to make it perfect.

    APKtool i am trying to modify theme colors and tired of messing with hxd,
    i have installed


    aapt.exe
    apktool.bat
    apktool.jar
    baksmali.jar
    colorchangev3.jar
    and java

    to my c:/ directory

    i run the script "apktool d c:\framework-res.apk c:\framework
    runs with no errors i think least nothing prints out

    i edit the files keyguard_screen_tab_unlock.xml, status_bar.xml, status_bar_expanded.xml and status_bar_latest_event.xml\

    then when i think i am finished i run this command
    apktool b c:\framework.apk
    then comes the madness

    this is the output
    c:\>apktool b c:\framework
    W: Could not find sources
    I: Checking whether resources has changed...
    I: Building resources...
    libpng error: Read Error
    c:\framework\res\values\public.xml:2672: error: Public symbol drawable/stat_sys_vp_phone_call declared here is not defined.
    c:\framework\res\values\public.xml:3170: error: Public symbol drawable/stat_sys_vp_phone_call_bluetooth declared here is not defined.
    c:\framework\res\values\public.xml:2673: error: Public symbol drawable/stat_sys_vp_phone_call_on_hold declared here is not defined.
    c:\framework\res\values\public.xml:2650: error: Public symbol drawable/stat_sys_warning declared here is not defined.
    c:\framework\res\values\public.xml:3171: error: Public symbol drawable/stat_sys_wifi_signal_0 declared here is not defined.
    c:\framework\res\values\public.xml:3172: error: Public symbol drawable/stat_sys_wifi_signal_1 declared here is not defined.
    c:\framework\res\values\public.xml:3173: error: Public symbol drawable/stat_sys_wifi_signal_2 declared here is not defined.
    c:\framework\res\values\public.xml:3174: error: Public symbol drawable/stat_sys_wifi_signal_3 declared here is not defined.
    c:\framework\res\values\public.xml:3175: error: Public symbol drawable/stat_sys_wifi_signal_4 declared here is not defined.
    c:\framework\res\values\public.xml:3176: error: Public symbol drawable/status_bar_background declared here is not defined.
    c:\framework\res\values\public.xml:3177: error: Public symbol drawable/status_bar_close_on declared here is not defined.
    c:\framework\res\values\public.xml:2536: error: Public entry identifier 0x1080358 entry index is larger than available symbols (index 856, total symbols 20).
    c:\framework\res\values\public.xml:2536: error: Public symbol drawable/status_bar_closed_default_background declared here is not defined.
    c:\framework\res\values\public.xml:3178: error: Public symbol drawable/status_bar_header_background declared here is not defined.
    c:\framework\res\values\public.xml:2429: error: Public symbol drawable/status_bar_item_app_background declared here is not defined.
    c:\framework\res\values\public.xml:3179: error: Public symbol drawable/status_bar_item_app_background_normal declared here is not defined.
    c:\framework\res\values\public.xml:2430: error: Public symbol drawable/status_bar_item_background declared here is not defined.
    c:\framework\res\values\public.xml:3180: error: Public symbol drawable/status_bar_item_background_focus declared here is not defined.
    c:\framework\res\values\public.xml:3181: error: Public symbol drawable/status_bar_item_background_normal declared here is not defined.
    c:\framework\res\values\public.xml:3182: error: Public symbol drawable/status_bar_item_background_pressed declared here is not defined.
    c:\framework\res\values\public.xml:2537: error: Public entry identifier 0x1080359 entry index is larger than available symbols (index 857, total symbols 20).
    c:\framework\res\values\public.xml:2537: error: Public symbol drawable/status_bar_opened_default_background declared here is not defined.
    c:\framework\res\values\public.xml:2523: error: Public symbol drawable/status_icon_background declared here is not defined.
    c:\framework\res\values\public.xml:3183: error: Public symbol drawable/statusbar_background declared here is not defined.
    c:\framework\res\values\public.xml:2524: error: Public symbol drawable/submenu_arrow declared here is not defined.
    c:\framework\res\values\public.xml:3184: error: Public symbol drawable/submenu_arrow_nofocus declared here is not defined.
    c:\framework\res\values\public.xml:3185: error: Public symbol drawable/sym_action_add declared here is not defined.
    c:\framework\res\values\public.xml:2651: error: Public symbol drawable/sym_action_call declared here is not defined.
    c:\framework\res\values\public.xml:2652: error: Public symbol drawable/sym_action_chat declared here is not defined.
    c:\framework\res\values\public.xml:2653: error: Public symbol drawable/sym_action_email declared here is not defined.
    c:\framework\res\values\public.xml:3186: error: Public symbol drawable/sym_app_on_sd_unavailable_icon declared here is not defined.
    c:\framework\res\values\public.xml:2654: error: Public symbol drawable/sym_call_incoming declared here is not defined.
    c:\framework\res\values\public.xml:2655: error: Public symbol drawable/sym_call_missed declared here is not defined.
    c:\framework\res\values\public.xml:2656: error: Public symbol drawable/sym_call_outgoing declared here is not defined.
    c:\framework\res\values\public.xml:2658: error: Public symbol drawable/sym_contact_card declared here is not defined.
    c:\framework\res\values\public.xml:2657: error: Public symbol drawable/sym_def_app_icon declared here is not defined.
    c:\framework\res\values\public.xml:3187: error: Public symbol drawable/sym_keyboard_delete declared here is not defined.
    c:\framework\res\values\public.xml:3188: error: Public symbol drawable/sym_keyboard_delete_dim declared here is not defined.
    c:\framework\res\values\public.xml:3189: error: Public symbol drawable/sym_keyboard_feedback_delete declared here is not defined.
    c:\framework\res\values\public.xml:3190: error: Public symbol drawable/sym_keyboard_feedback_ok declared here is not defined.
    c:\framework\res\values\public.xml:3191: error: Public symbol drawable/sym_keyboard_feedback_return declared here is not defined.
    c:\framework\res\values\public.xml:3192: error: Public symbol drawable/sym_keyboard_feedback_shift declared here is not defined.
    c:\framework\res\values\public.xml:3193: error: Public symbol drawable/sym_keyboard_feedback_shift_locked declared here is not defined.
    c:\framework\res\values\public.xml:3194: error: Public symbol drawable/sym_keyboard_feedback_space declared here is not defined.
    c:\framework\res\values\public.xml:3195: error: Public symbol drawable/sym_keyboard_num0_no_plus declared here is not defined.
    c:\framework\res\values\public.xml:3196: error: Public symbol drawable/sym_keyboard_num1 declared here is not defined.
    c:\framework\res\values\public.xml:3197: error: Public symbol drawable/sym_keyboard_num2 declared here is not defined.
    c:\framework\res\values\public.xml:3198: error: Public symbol drawable/sym_keyboard_num3 declared here is not defined.
    c:\framework\res\values\public.xml:3199: error: Public symbol drawable/sym_keyboard_num4 declared here is not defined.
    c:\framework\res\values\public.xml:3200: error: Public symbol drawable/sym_keyboard_num5 declared here is not defined.
    c:\framework\res\values\public.xml:3201: error: Public symbol drawable/sym_keyboard_num6 declared here is not defined.
    c:\framework\res\values\public.xml:3202: error: Public symbol drawable/sym_keyboard_num7 declared here is not defined.
    c:\framework\res\values\public.xml:3203: error: Public symbol drawable/sym_keyboard_num8 declared here is not defined.
    c:\framework\res\values\public.xml:3204: error: Public symbol drawable/sym_keyboard_num9 declared here is not defined.
    c:\framework\res\values\public.xml:3205: error: Public symbol drawable/sym_keyboard_ok declared here is not defined.
    c:\framework\res\values\public.xml:3206: error: Public symbol drawable/sym_keyboard_ok_dim declared here is not defined.
    c:\framework\res\values\public.xml:3207: error: Public symbol drawable/sym_keyboard_return declared here is not defined.
    c:\framework\res\values\public.xml:3208: error: Public symbol drawable/sym_keyboard_shift declared here is not defined.
    c:\framework\res\values\public.xml:3209: error: Public symbol drawable/sym_keyboard_shift_locked declared here is not defined.
    c:\framework\res\values\public.xml:3210: error: Public symbol drawable/sym_keyboard_space declared here is not defined.
    c:\framework\res\values\public.xml:2525: error: Public symbol drawable/tab_bottom_left declared here is not defined.
    c:\framework\res\values\public.xml:2526: error: Public symbol drawable/tab_bottom_left_v4 declared here is not defined.
    c:\framework\res\values\public.xml:2527: error: Public symbol drawable/tab_bottom_right declared here is not defined.
    c:\fraException in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL5031585279923772580.tmp, -x, -S, c:\framework\res, -M, c:\framework\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
    at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
    at brut.androlib.Androlib.buildResources(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.apktool.Main.cmdBuild(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)
    Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL5031585279923772580.tmp, -x, -S, c:\framework\res, -M, c:\framework\AndroidManifest.xml]
    at brut.util.OS.exec(Unknown Source)
    ... 7 more

    i shortened the error i can put in text if anyone wants to see full error
    i am on windows 7 64 bit
    i have added enviroment variables\
    aatp :%path%: C:\
    if anyone can help i would be much appreciative
    i also have this http://forum.xda-developers.com/archive/index.php/t-695701.html and still same problem
    thnx in advance
     
    #1 jasonppp, Oct 1, 2010
    Last edited: Oct 1, 2010
  2. jasonppp

    jasonppp Premium Member
    Premium Member Developer

    Joined:
    May 27, 2010
    Messages:
    959
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +2
    nvm i figuared it out gotta use a unmodified apk to use it
     
Search tags for this page
libpng error saat buil framework-res
,

aapt command in a path

,
android declared here is not defined
,
apk tool android error public
,
apktool b declared here is not defined
,
apktool cannot find sources
,
apktool could not exec command error
,

apktool could not find sources

,
apktool error declared here is not defined
,
error: public symbol style/ declared here is not defined.