sky201503 / android-apktool-1

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

EmailGoogle.apk (ICS 4.03) won't recompile #294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.recompiling

What is the expected output? What do you see instead?
I get the following from the log:
(content is shortened as it was very long..)

-----------------------------------------------------
[*] EmailGoogle.apk
-----------------------------------------------------
Recompiling EmailGoogle.apk folder...
I: Smaling...
I: Building resources...
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
W/ResourceType( 5252): Bad XML block: header size 732 or total size 0 is larger 
than data size 0
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\values\ids.xml:238: error: Error 
parsing XML: not well-formed (invalid token)
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\values\public.xml:1168: error: Error 
parsing XML: not well-formed (invalid token)
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout\account_settings.xml:4: error: 
Error: No resource found that matches the given name (at 'id' with value 
'@id/settings_fragment').
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout\account_settings_buttons.xml:4:
 error: Error: No resource found that matches the given name (at 'id' with 
value '@id/cancel').
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout\account_settings_buttons.xml:5:
 error: Error: No resource found that matches the given name (at 'id' with 
value '@id/done').
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout-sw600dp\account_settings_button
s.xml:4: error: Error: No resource found that matches the given name (at 'id' 
with value '@id/cancel').
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout-sw600dp\account_settings_button
s.xml:5: error: Error: No resource found that matches the given name (at 'id' 
with value '@id/done').
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res\layout\account_settings_edit_quick_res
ponses_fragment.xml:4: error: Error: No resource found that matches the given 
name (at 'id' with value '@id/account_settings_quick_responses_list').
............
.............
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\Users\Dan\AppData\Local\Temp\APKTOOL6914290968104059702.tmp, -I, 
C:\Users\Dan\apktool\framework\1.apk, -S, 
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res, -M, 
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
    at brut.androlib.Androlib.buildResources(Androlib.java:248)
    at brut.androlib.Androlib.build(Androlib.java:171)
    at brut.androlib.Androlib.build(Androlib.java:154)
    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\Dan\AppData\Local\Temp\APKTOOL6914290968104059702.tmp, -I, 
C:\Users\Dan\apktool\framework\1.apk, -S, 
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\res, -M, 
D:\AutoTool_v3\_INPUT_APK\EmailGoogle\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:83)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
    ... 6 more
Done!

What version of the product are you using? On what operating system?
apktool 1.4.3 + newest aapt. Windows 7 64bit.

Please provide any additional information below.
I'm trying to modify the EmailGoogle.apk from the rom MIUI-Au ICS 2.1.20.
I can recompile other ics 4.03 apks fine, but this one just won't, i'm only 
adding language translations to the apk and i double checked for string errors.
Same problem appears if i don't change anything at all.

Original issue reported on code.google.com by Danstran...@gmail.com on 24 Jan 2012 at 3:35

Attachments:

GoogleCodeExporter commented 9 years ago
Solved issue by following link in issue 277, thus manually fixing the problem.

But still, i tend to think it's a bug in the tool, or am i wrong?

Original comment by Danstran...@gmail.com on 24 Jan 2012 at 5:07

GoogleCodeExporter commented 9 years ago
tis was. Fixed now.

Original comment by connor.tumbleson on 17 Nov 2012 at 6:25