|
FAQ
Frequently asked questions
Featured FAQWhat about "-j" switch from your video on YouTube?Is it possible to run apktool on a device?Not yet. Let's talk about it: Running apktool on a device @ Google Groups. If you don't have a Google account (and you are using Android device? I don't believe you ;-P), then you could at least read that thread and write to me on XDA or somewhere. Where can I download sources of apktool?They aren't released yet. I have an issue for that: issue 53 , but better explanation is here: issue 71 Resulting apk file is much smaller than original! Is there something missing?First: compression of resources.arsc file. Sometimes this file is compressed in original apk, sometimes not and apktool always compress it. Second: lack of META-INF dir. Apktool builds unsigned apks, so they lack signatures stored in this dir. Third: apktool uses newest Android SDK, so it could optimize files better, especially if original app is old. So: unpack both original and resulting apk, remove META-INF from original and then compare sizes. If they're still much different, then you could report on XDA or somewhere. There is no META-INF dir in resulting apk. Is this ok?Yes. META-INF contains apk signatures mostly and after modifying apk in no longer signed, so there are no signatures in it. You have to sign resulting apk and then META-INF dir will be created. What do you call "magic apks"?Sometimes there are some apks which (for my current knowledge) are invalid, broken, theoretically they shouldn't exist. There may be many reasons of their existence: my lack of understanding of Android resources; some non-public, maybe future SDK tools or custom modifications of these; manual hacking of binaries, etc. Usually I can't do anything about it, but you could at least try to replace broken parts by something valid. Actually it's quite likely that they aren't even used, because if they would, then application would crash. Could I integrate apktool into my own tool? Could I modify apktool sources? Do I have to credit you then?Actually Apache License, which apktool uses, answers all these questions: yes, you could redistribute and/or modify apktool without my permission to do that. If you have credits section in your tool/app, then it would be nice to add me and others (JesusFreke, etc.) there, but I don't require that. |
aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory brut.androlib.AndrolibException?: brut.common.BrutException?: could not exec command: [aapt, p, -F, /usr/local/tomcat-5.0.28/temp/APKTOOL55311.tmp, -I, /root/apktool/framework/1.apk, -S, /usr/local/Test/ExtraPath?/a.apk/res, -M, /usr/local/Test/ExtraPath?/a.apk/AndroidManifest?.xml]
Caused by: brut.common.BrutException?: could not exec command: [aapt, p, -F, /usr/local/tomcat-5.0.28/temp/APKTOOL55311.tmp, -I, /root/apktool/framework/1.apk, -S, /usr/local/Test/ExtraPath?/a.apk/res, -M, /usr/local/Test/ExtraPath?/a.apk/AndroidManifest?.xml]Hi,
I am in need of a way to "rip" the GUI of an apk to find all the UI components (buttons, textboxes, etc) and I came across this tool. I tested it on some simple apps and the res/layout folder contained lots of GUI xml layouts. Just wondering if these generated XMLs are accurate - also, I was wondering if a programmatically-created GUI (i.e. created at runtime, not declared via XML) would still be able to be ripped by this tool.
Thanks and sorry for the poor wording.
Hey, great work you are doing. Question for you. On tablets without a functioning 3G radio, you lose a lot of battery due to the cell standby process. On the new Acer Iconia, for example, the phone.apk and telephony.apk can be renamed and it seems to help with battery, but folks report to brick their tablets if they try to recover using the reset to factory for some reason.
Question, in your opinion how hard would it be (or has it been done already), to open up the phone.apk and neuter it so that it can be present and running, yet just sleeping in the background instead of looking for a signal? Or, is it more likely to require a kernel recompile to eliminate the offending device driver?
Thanks, appreciate any advice you can give on this.
resources.arsc file. META-INF dir. I had trouble figuring out the commands to get them decompiled
does each .smali file in a decompiled .apk represent a different activity? Sorry if the question is too basic I am new to coding.
The decode command generates smali files. Smali format is defined in the eponymous assembler http://code.google.com/p/smali/
Linux:
3rd step? how do i do that. i need root permission and extract it!? how do i do it?
Can apktool be used with java 1.7?
The apktool v1.4.3 release decompile the PAK file Hello, I have not done any changes , the following error when recompiling .
main_title_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:32: error: Public symbol drawable/ mid_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:156: error: Public symbol drawable /month_flag declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:157: error: Public symbol drawable /month_flag_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:158: error: Public symbol drawable /month_view_bottom_shadow declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:286: error: Public symbol drawable /nav_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:159: error: Public symbol drawable /negative declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:160: error: Public symbol drawable /note_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:161: error: Public symbol drawable /note_bottom_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:162: error: Public symbol drawable /note_dotline declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:163: error: Public symbol drawable /note_icon1 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:164: error: Public symbol drawable /note_icon3 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:165: error: Public symbol drawable /note_icon4 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:166: error: Public symbol drawable /note_tabbg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:33: error: Public symbol drawable/ notice declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:167: error: Public symbol drawable /picker1 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:168: error: Public symbol drawable /picker3 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:169: error: Public symbol drawable /picker5 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:170: error: Public symbol drawable /picker_alarm_background declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:171: error: Public symbol drawable /picker_background declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:172: error: Public symbol drawable /picker_hover declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:173: error: Public symbol drawable /picker_negative declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:174: error: Public symbol drawable /picker_positive declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:175: error: Public symbol drawable /pop_bg_down declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:34: error: Public symbol drawable/ pop_panel_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:176: error: Public symbol drawable /positive declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:177: error: Public symbol drawable /repeat_type_pop_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:178: error: Public symbol drawable /repeat_week_time_pop_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:35: error: Public symbol drawable/ repeate_edit_text_shape declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:287: error: Public symbol drawable /right_arrow declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:36: error: Public symbol drawable/ rounded_shape declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:288: error: Public symbol drawable /rss declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:179: error: Public symbol drawable /rss_city_btn declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:289: error: Public symbol drawable /rss_city_btn_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:37: error: Public symbol drawable/ rss_city_btn_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:180: error: Public symbol drawable /rss_date_dialog_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:18: error: Public symbol drawable/ rss_date_dialog_line declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:290: error: Public symbol drawable /rss_default_image declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:181: error: Public symbol drawable /rss_directory declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:291: error: Public symbol drawable /rss_directory_child_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:182: error: Public symbol drawable /rss_directory_detail_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:183: error: Public symbol drawable /rss_expand_list_divider declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:184: error: Public symbol drawable /rss_expand_list_group_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:292: error: Public symbol drawable /rss_expand_list_group_icon_close declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:293: error: Public symbol drawable /rss_expand_list_group_icon_open declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:294: error: Public symbol drawable /rss_left_btn_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:38: error: Public symbol drawable/ rss_left_btn_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:295: error: Public symbol drawable /rss_like declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:19: error: Public symbol drawable/ rss_list_divider declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:296: error: Public symbol drawable /rss_list_item_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:297: error: Public symbol drawable /rss_list_item_like declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:298: error: Public symbol drawable /rss_right_btn_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:39: error: Public symbol drawable/ rss_right_btn_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:299: error: Public symbol drawable /rss_schedule declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:300: error: Public symbol drawable /rss_year_month_line declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:185: error: Public symbol drawable /schedule_edit_detail_button declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:186: error: Public symbol drawable /schedule_icon_alarm declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:187: error: Public symbol drawable /schedule_operation_dialog_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:40: error: Public symbol drawable/ scheduleshape declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:188: error: Public symbol drawable /search_bar_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:301: error: Public symbol drawable /search_list_line_bottom declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:302: error: Public symbol drawable /setup_bg_contact declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:189: error: Public symbol drawable /setup_bg_down_gray declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:41: error: Public symbol drawable/ setup_bg_down_gray_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:190: error: Public symbol drawable /setup_bg_down_hover declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:191: error: Public symbol drawable /setup_bg_down_white declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:42: error: Public symbol drawable/ setup_bg_down_white_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:192: error: Public symbol drawable /setup_bg_mid_gray declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:43: error: Public symbol drawable/ setup_bg_mid_gray_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:193: error: Public symbol drawable /setup_bg_mid_hover declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:194: error: Public symbol drawable /setup_bg_mid_white declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:44: error: Public symbol drawable/ setup_bg_mid_white_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:195: error: Public symbol drawable /setup_bg_single declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:196: error: Public symbol drawable /setup_bg_single_hover declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:45: error: Public symbol drawable/ setup_bg_single_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:197: error: Public symbol drawable /setup_bg_top declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:198: error: Public symbol drawable /setup_bg_top_hover declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:46: error: Public symbol drawable/ setup_bg_top_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:199: error: Public symbol drawable /setup_button_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:200: error: Public symbol drawable /setup_button_bg_h declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:201: error: Public symbol drawable /setup_edit_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:47: error: Public symbol drawable/ setup_feedback_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:48: error: Public symbol drawable/ setup_list_alarm_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:49: error: Public symbol drawable/ setup_list_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:202: error: Public symbol drawable /setup_title_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:203: error: Public symbol drawable /setup_widget_list_item_image_default declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:204: error: Public symbol drawable /star_check declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:205: error: Public symbol drawable /star_uncheck declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:206: error: Public symbol drawable /subscribed declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:50: error: Public symbol drawable/ textview_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:207: error: Public symbol drawable /theme_icon_0 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:208: error: Public symbol drawable /theme_icon_1 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:209: error: Public symbol drawable /theme_icon_2 declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:315: error: Public symbol drawable /time_in_day_flag declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:210: error: Public symbol drawable /title_edit_left declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:211: error: Public symbol drawable /title_edit_right declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:212: error: Public symbol drawable /title_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:303: error: Public symbol drawable /title_moredatebg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:213: error: Public symbol drawable /title_setup declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:214: error: Public symbol drawable /title_setup_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:51: error: Public symbol drawable/ title_setup_selector declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:215: error: Public symbol drawable /tool_almanac_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:216: error: Public symbol drawable /tool_almanac_query_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:217: error: Public symbol drawable /tool_calc_weekday_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:218: error: Public symbol drawable /tool_calculate_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:219: error: Public symbol drawable /tool_convert_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:220: error: Public symbol drawable /tool_day_count_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:221: error: Public symbol drawable /tool_import_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:222: error: Public symbol drawable /tool_search_icon declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:223: error: Public symbol drawable /tool_tab_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:224: error: Public symbol drawable /tool_tab_bg_current declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:225: error: Public symbol drawable /tool_tab_divider declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:226: error: Public symbol drawable /tool_tab_top_left declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:227: error: Public symbol drawable /tool_tab_top_right declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:228: error: Public symbol drawable /undone declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:229: error: Public symbol drawable /unsubscribed declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:304: error: Public symbol drawable /weather_refresh declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:230: error: Public symbol drawable /week_flag declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:231: error: Public symbol drawable /week_flag_selected declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:232: error: Public symbol drawable /week_left_arrow declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:233: error: Public symbol drawable /week_right_arrow declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:234: error: Public symbol drawable /welcome_page declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:235: error: Public symbol drawable /widget_mark declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:236: error: Public symbol drawable /widget_month_4x3_layout_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:305: error: Public symbol drawable /widget_month_4x3_layout_black declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:306: error: Public symbol drawable /widget_month_4x3_layout_white declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:237: error: Public symbol drawable /widget_month_add declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:238: error: Public symbol drawable /widget_month_left declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:239: error: Public symbol drawable /widget_month_right declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:240: error: Public symbol drawable /widget_month_week_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:307: error: Public symbol drawable /widget_month_week_black_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:308: error: Public symbol drawable /widget_month_week_white_bg declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:241: error: Public symbol drawable /widget_today declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:309: error: Public symbol drawable /widget_today_black declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:242: error: Public symbol drawable /widget_today_mark declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:310: error: Public symbol drawable /widget_today_mark_black declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:311: error: Public symbol drawable /widget_today_mark_white declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:312: error: Public symbol drawable /widget_today_white declared here is not defined. D:\Java\Android\365rili\res\values\public.xml:243: error: Public symbol drawable /year_month_layout_bg declared here is not defined. Exception in thread "main" brut.androlib.AndrolibException?: brut.common.BrutExce? ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ APKTOOL1222431643995566260.tmp, -I, C:\Documents and Settings\Administrator\apkt ool\framework\1.apk, -S, D:\Java\Android\365rili\res, -M, D:\Java\Android\365ril i\AndroidManifest?.xml]
a:193) Caused by: brut.common.BrutException?: could not exec command: [aapt, p, -F, C:\D OCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL1222431643995566260.tmp, -I, C:\Documents and Settings\Administrator\apktool\framework\1.apk, -S, D:\Java\Android\365rili\ res, -M, D:\Java\Android\365rili\AndroidManifest?.xml] a:191)where to place apk file if i want to do something to it? #newbie