desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Problems while compile framework files #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I decompile framework-res.apk(android framework) or com.htc.resources.apk(htc 
framework), but while i'll try to recompile the program write to me
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1522: err
or: Public symbol drawable/simlock_cancel_rest declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1523: err
or: Public symbol drawable/simlock_cancel_selected declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1524: err
or: Public symbol drawable/simlock_ok_press declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1525: err
or: Public symbol drawable/simlock_ok_rest declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1526: err
or: Public symbol drawable/simlock_ok_selected declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1527: err
or: Public symbol drawable/snooze_button_pressed declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1528: err
or: Public symbol drawable/snooze_button_rest declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1529: err
or: Public symbol drawable/snooze_button_selected declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1530: err
or: Public symbol drawable/snow declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1531: err
or: Public symbol drawable/snow_flurries declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1532: err
or: Public symbol drawable/snow_ice declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1533: err
or: Public symbol drawable/snow_sleet declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1534: err
or: Public symbol drawable/snowflake_fall declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:303: erro
r: Public symbol drawable/stat_notify_wifi_router_in_range declared here is not
defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1535: err
or: Public symbol drawable/stat_sys_5signal_0 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1536: err
or: Public symbol drawable/stat_sys_5signal_1 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1537: err
or: Public symbol drawable/stat_sys_5signal_2 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1538: err
or: Public symbol drawable/stat_sys_5signal_3 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1539: err
or: Public symbol drawable/stat_sys_5signal_4 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1540: err
or: Public symbol drawable/stat_sys_5signal_5 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1541: err
or: Public symbol drawable/stat_sys_5signal_null declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1542: err
or: Public symbol drawable/stat_sys_data_connected_3_5g_capability declared here
 is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1543: err
or: Public symbol drawable/stat_sys_data_connected_3g_capability declared here i
s not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1544: err
or: Public symbol drawable/stat_sys_data_connected_e_capability declared here is
 not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1545: err
or: Public symbol drawable/stat_sys_data_connected_g_capability declared here is
 not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1546: err
or: Public symbol drawable/stat_sys_r_5signal_0 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1547: err
or: Public symbol drawable/stat_sys_r_5signal_1 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1548: err
or: Public symbol drawable/stat_sys_r_5signal_2 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1549: err
or: Public symbol drawable/stat_sys_r_5signal_3 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1550: err
or: Public symbol drawable/stat_sys_r_5signal_4 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1551: err
or: Public symbol drawable/stat_sys_r_5signal_5 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1552: err
or: Public symbol drawable/stat_sys_r_signal_0 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1553: err
or: Public symbol drawable/stat_sys_r_signal_1 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1554: err
or: Public symbol drawable/stat_sys_r_signal_2 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1555: err
or: Public symbol drawable/stat_sys_r_signal_3 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1556: err
or: Public symbol drawable/stat_sys_r_signal_4 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1557: err
or: Public symbol drawable/stat_sys_signal_0 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1558: err
or: Public symbol drawable/stat_sys_signal_1 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1559: err
or: Public symbol drawable/stat_sys_signal_2 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1560: err
or: Public symbol drawable/stat_sys_signal_3 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1561: err
or: Public symbol drawable/stat_sys_signal_4 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1562: err
or: Public symbol drawable/stat_sys_signal_flightmode declared here is not defin
ed.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1563: err
or: Public symbol drawable/stat_sys_signal_null declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:304: erro
r: Public symbol drawable/Exception in thread "main" brut.androlib.AndrolibExcep
tion: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\
GooG2e\AppData\Local\Temp\APKTOOL8455296866204213442.tmp, -x, -I, C:\Users\GooG2
e\apktool\framework\1.apk, -S, C:\Users\GooG2e\Desktop\google\com.htc.resources\
res, -M, C:\Users\GooG2e\Desktop\google\com.htc.resources\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:\U
sers\GooG2e\AppData\Local\Temp\APKTOOL8455296866204213442.tmp, -x, -I, C:\Users\
GooG2e\apktool\framework\1.apk, -S, C:\Users\GooG2e\Desktop\google\com.htc.resou
rces\res, -M, C:\Users\GooG2e\Desktop\google\com.htc.resources\AndroidManifest.x
ml]
        at brut.util.OS.exec(Unknown Source)
        ... 7 more
stat_sys_wifi_3g declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:305: erro
r: Public symbol drawable/stat_sys_wifi_4g declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:306: erro
r: Public symbol drawable/stat_sys_wifi_router declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1564: err
or: Public symbol drawable/stat_sys_wimax_signal_0 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1565: err
or: Public symbol drawable/stat_sys_wimax_signal_1 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1566: err
or: Public symbol drawable/stat_sys_wimax_signal_2 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1567: err
or: Public symbol drawable/stat_sys_wimax_signal_3 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1568: err
or: Public symbol drawable/stat_sys_wimax_signal_4 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1569: err
or: Public symbol drawable/stock_indicator_black declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1570: err
or: Public symbol drawable/sun declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1571: err
or: Public symbol drawable/sym_gpsone_0_sprint declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1572: err
or: Public symbol drawable/sym_gpsone_0_vzw declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1573: err
or: Public symbol drawable/sym_gpsone_3_sprint declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1574: err
or: Public symbol drawable/sym_gpsone_3_vzw declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:307: erro
r: Public symbol drawable/sym_gpsone_anim_sprint declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:308: erro
r: Public symbol drawable/sym_gpsone_anim_vzw declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1575: err
or: Public symbol drawable/sym_gpsone_none declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:309: erro
r: Public symbol drawable/taskbar_button_left declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:310: erro
r: Public symbol drawable/taskbar_button_right declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:311: erro
r: Public symbol drawable/taskbar_center declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1576: err
or: Public symbol drawable/timer_shadow01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1577: err
or: Public symbol drawable/timer_tumblers01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1578: err
or: Public symbol drawable/timer_tumblers_line01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1579: err
or: Public symbol drawable/timer_w_shadow01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1580: err
or: Public symbol drawable/timer_w_tumblers01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1581: err
or: Public symbol drawable/timer_w_tumblers_line01 declared here is not defined.

C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1582: err
or: Public symbol drawable/title_popup_btn_press declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1583: err
or: Public symbol drawable/title_popup_btn_rest declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1584: err
or: Public symbol drawable/title_popup_btn_selected declared here is not defined
.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:312: erro
r: Public symbol drawable/titlebar_control declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1585: err
or: Public symbol drawable/topround declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1586: err
or: Public symbol drawable/topround_v1 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1587: err
or: Public symbol drawable/topround_v2 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1588: err
or: Public symbol drawable/topround_v3 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1589: err
or: Public symbol drawable/tornado declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1590: err
or: Public symbol drawable/trans_4round declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1591: err
or: Public symbol drawable/trans_bottomround declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1592: err
or: Public symbol drawable/trans_list declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1593: err
or: Public symbol drawable/trans_topround declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:324: erro
r: Public entry identifier 0x202061f entry index is larger than available symbol
s (index 1567, total symbols 11).
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:324: erro
r: Public symbol drawable/translucent_background declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:325: erro
r: Public entry identifier 0x2020620 entry index is larger than available symbol
s (index 1568, total symbols 11).
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:325: erro
r: Public symbol drawable/transparent_background declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1594: err
or: Public symbol drawable/wave01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:313: erro
r: Public symbol drawable/widget_list_divider declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:314: erro
r: Public symbol drawable/widget_taskbar_button_left declared here is not define
d.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:315: erro
r: Public symbol drawable/widget_taskbar_button_right declared here is not defin
ed.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:316: erro
r: Public symbol drawable/widget_taskbar_center declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:317: erro
r: Public symbol drawable/window_background declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1595: err
or: Public symbol drawable/windy_01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1596: err
or: Public symbol drawable/windy_02 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1597: err
or: Public symbol drawable/windy_leaf_01 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1598: err
or: Public symbol drawable/windy_leaf_02 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1599: err
or: Public symbol drawable/windy_leaf_03 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1600: err
or: Public symbol drawable/windy_leaf_04 declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:1601: err
or: Public symbol drawable/windy_type declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:318: erro
r: Public symbol drawable/zoom_bar_base declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:319: erro
r: Public symbol drawable/zoom_bar_indicator declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:320: erro
r: Public symbol drawable/zoom_bar_indicator_base declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:321: erro
r: Public symbol drawable/zoom_bar_zoom_ball declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:322: erro
r: Public symbol drawable/zoom_bar_zoom_in declared here is not defined.
C:\Users\GooG2e\Desktop\google\com.htc.resources\res\values\public.xml:323: erro
r: Public symbol drawable/zoom_bar_zoom_out declared here is not defined.

Original issue reported on code.google.com by alex.wor...@gmail.com on 18 Nov 2010 at 7:04

GoogleCodeExporter commented 9 years ago
anyone???? I have the same issues.

Original comment by fadi...@gmail.com on 25 Jan 2011 at 10:55

GoogleCodeExporter commented 9 years ago
SOLUTION:
=========
I was having similar problems compiling a SKIN I modified. It was giving 
public.xml element not defined errors.

Well, my friends, you're about to benifit from 20hrs of debugging and messing 
around... :) 

I ended up finding the source of the error after having set up Eclipse and the 
Android SDK and learned how to use them.

- It has nothing to do with apktools - it's purely operator error. 
- In my case, the .9.png were miss drawn. The guides that go around the 
transparent frames (the ones that define the stretchable and text areas) were 
not perfectly black (take color picker in GIMP and if it doesn't register as 
000000, you need to fix it). This was throwing aapt into giving me public.xml 
undefined errors. 
- If you add an element in public.xml but don't put the right ID (ID larger 
then previous element but smaller then the following element) then you will get 
an error.
- Any file you take out of the res folder and forget to put back in, will give 
you this error.
- Any XML file that you edit badly and cannot compile, will give you this 
error. 

Well, that's it. Hope it helps!

Original comment by fadi...@gmail.com on 3 Feb 2011 at 4:19

GoogleCodeExporter commented 9 years ago
Did it decoded without any problems? Could you upload zipped dir with decoded 
app?

Original comment by Brut.alll on 3 May 2011 at 9:25

GoogleCodeExporter commented 9 years ago
No answer from a reporter. If you still have this problem then I will reopen an 
issue.

Original comment by Brut.alll on 15 May 2011 at 4:31

GoogleCodeExporter commented 9 years ago
I have the same problem. I decompile fine but when I try to export an apk in 
eclispe I get this error
'error: Public entry identifier 0x7f020132 entry index is larger than available 
symbols (index 306, total symbols 305).'

for 100 items!

Original comment by zra...@gmail.com on 22 Jul 2011 at 10:44

GoogleCodeExporter commented 9 years ago
I have the same problem (apktool 1.4.1)
I got the new SDK from google, and tried to decode the file with 
--keep-broken-res.

But to no avail.

Please find the application I tried to decompile (to test/provide translations).

By the way, would you consider releasing apktool 1.4.2. I saw it around, is it 
official ? Is it recommended to use it ?

Cheers,
Carl.

Original comment by name.is....@gmail.com on 12 Aug 2011 at 8:14

Attachments:

GoogleCodeExporter commented 9 years ago
In case someone stumbles across this issue now, I had the same problem. 
According to the first line of the log which went something like

libpng error: Not a PNG file
ERROR: Failure processing PNG image 
C:\Users\hula\Work\mygit\client\android\tools\paywall_wrapper\Blah\res\drawable-
hdpi\bg_2.png

Try increasing the buffer height of you command line to see exactly what it 
says on the first line, where the error occurs. 

Original comment by Dharmin...@gmail.com on 26 Jul 2013 at 6:36