songhongji / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
1 stars 0 forks source link

list index out of range in apk.py line 1406 #110

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
"/usr/lib/python2.7/site-packages/androguard/core/bytecodes/apk.py", line 1406, 
in get_resource_dimen
    return [ate.get_value(), "%s%s" % (complexToFloat(ate.key.get_data()), DIMENSION_UNITS[ate.key.get_data() & COMPLEX_UNIT_MASK])]
IndexError: list index out of range

Sorry I cannot upload the app to reproduce the problem

Original issue reported on code.google.com by liadalex82@gmail.com on 11 Feb 2013 at 10:14

GoogleCodeExporter commented 8 years ago
print ate.get_value()
print ate.key.get_data() & COMPLEX_UNIT_MASK

font_title_size
2
font_title_margin
1
font_subtitle_size
2
font_subtitle_margin
1
font_normal_size
2
font_normal_margin
1
font_small_size
2
font_small_margin
1
vidItem_width
1
vidItem_height
1
vidItem_padding
1
vidItem_poster_marginRight
1
vidItem_title_padding
1
vidItem_title_margin
1
vidItem_width_small
1
vidItem_height_small
1
vidItem_title_padding_small
1
vidItem_title_margin_small
1
vidItem_locBig_width
1
vidItem_locBig_height
1
vidItem_locBig_title_height
1
vidItem_locBig_separation
1
vidItem_locSmall_width
1
vidItem_locSmall_height
1
vidItem_locSmall_title_height
1
vidItem_locSmall_separation
1
catItem_width
1
catItem_height
1
catItem_title_padding
1
catItem_title_margin
1
catItem_round_bg_width
1
catItem_round_bg_height
1
catItem_round_poster_width
10
catItem_round_poster_height
11
catItem_round_title_marginBottom
1
catItem_width_small
1
catItem_height_small
1
catItem_round_bg_width_small
1
catItem_round_bg_height_small
1
catItem_round_poster_width_small
3
catItem_round_poster_height_small
4
medController_padding
1
medController_label_padding
1
my_purchases_button_width
1
logo_team_size
1
abs__config_prefDialogWidth
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
abs__action_button_min_width
1
abs__alert_dialog_title_height
1
abs__dialog_min_width_major
0
abs__dialog_min_width_minor
0
image_thumbnail_size
1
image_menu_thumbnail_size
1
padding_small
1
padding_medium
1
padding_large
1
price_font_size_big
2
price_font_size_little
2
price_padding
1
arrow_left_padding
1
abbonamentobox_descrizione_font_size
2
calcio_box_title_size
1
calcio_box_subtitle_size
1
calcio_box_score_size
1
calcio_box_padding_left
1
calcio_box_icon_maxheight
1
calcio_box_icon_margin
1
calcio_box_score_padding
1
calcio_box_font_title_margin
1
calcio_box_font_subtitle_margin
1
abs__dialog_min_width_major
0
abs__dialog_min_width_minor
0
padding_small
1
padding_medium
1
padding_large
1
font_title_size
2
font_title_margin
1
font_subtitle_size
2
font_subtitle_margin
1
font_normal_size
2
font_normal_margin
1
font_small_size
2
font_small_margin
1
vidItem_width
1
vidItem_height
1
vidItem_padding
1
vidItem_poster_marginRight
1
vidItem_title_padding
1
vidItem_title_margin
1
vidItem_width_small
1
vidItem_height_small
1
vidItem_title_padding_small
1
vidItem_title_margin_small
1
vidItem_locBig_width
1
vidItem_locBig_height
1
vidItem_locBig_title_height
1
vidItem_locBig_separation
1
vidItem_locSmall_width
1
vidItem_locSmall_height
1
vidItem_locSmall_title_height
1
vidItem_locSmall_separation
1
catItem_width
1
catItem_height
1
catItem_title_padding
1
catItem_title_margin
1
catItem_round_bg_width
1
catItem_round_bg_height
1
catItem_round_poster_width
10
catItem_round_poster_height
11
catItem_round_title_marginBottom
1
catItem_width_small
1
catItem_height_small
1
catItem_round_bg_width_small
1
catItem_round_bg_height_small
1
catItem_round_poster_width_small
3
catItem_round_poster_height_small
4
medController_padding
1
medController_label_padding
1
my_purchases_button_width
1
logo_team_size
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
abs__action_button_min_width
1
abs__dialog_min_width_major
0
abs__dialog_min_width_minor
0
price_font_size_big
2
price_font_size_little
2
price_padding
1
arrow_left_padding
1
abbonamentobox_descrizione_font_size
2
calcio_box_title_size
1
calcio_box_subtitle_size
1
calcio_box_score_size
1
calcio_box_padding_left
1
calcio_box_icon_maxheight
1
calcio_box_icon_margin
1
calcio_box_score_padding
1
calcio_box_font_title_margin
1
calcio_box_font_subtitle_margin
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
action_button_min_width
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
vidItem_locBig_separation
1
vidItem_locSmall_separation
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
action_button_min_width
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1
abs__action_bar_default_height
1
abs__action_bar_icon_vertical_padding
1
abs__action_bar_title_text_size
1
abs__action_bar_subtitle_text_size
1
abs__action_bar_subtitle_top_margin
1
abs__action_bar_subtitle_bottom_margin
1

Original comment by liadalex82@gmail.com on 11 Feb 2013 at 10:28

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 13 Feb 2013 at 8:48