Miyaku / apktool

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

Recompile Error #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Decompiled Mms.apk
2. Modified smiley codes in res/values/arrays.xml
3.

What is the expected output? What do you see instead?
/sdcard/Decompiler/Mms_src/res/values/arrays.xml:13: error: Error parsing XML: 
not well-formed (invalid token)
/sdcard/Decompiler/Mms_src/res/values/public.xml:609: error: Public symbol 
array/dial_locale_names declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:611: error: Public symbol 
array/dial_locale_names_exp declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:636: error: Public entry 
identifier 0x7f08001e entry index is larger than available symbols (index 30, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:636: error: Public symbol 
array/email_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:637: error: Public entry 
identifier 0x7f08001f entry index is larger than available symbols (index 31, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:637: error: Public symbol 
array/emailexit_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:631: error: Public entry 
identifier 0x7f080019 entry index is larger than available symbols (index 25, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:631: error: Public symbol 
array/insert_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:610: error: Public symbol 
array/iso3_languages declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:622: error: Public symbol 
array/phiz_tag declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:643: error: Public entry 
identifier 0x7f080025 entry index is larger than available symbols (index 37, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:643: error: Public symbol 
array/prefEntries_choose_message declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:627: error: Public symbol 
array/prefEntries_mms_size declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:641: error: Public entry 
identifier 0x7f080023 entry index is larger than available symbols (index 35, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:641: error: Public symbol 
array/prefEntries_mms_validity declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:639: error: Public entry 
identifier 0x7f080021 entry index is larger than available symbols (index 33, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:639: error: Public symbol 
array/prefEntries_sms_validity declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:644: error: Public entry 
identifier 0x7f080026 entry index is larger than available symbols (index 38, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:644: error: Public symbol 
array/prefValues_choose_message declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:628: error: Public symbol 
array/prefValues_mms_size declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:642: error: Public entry 
identifier 0x7f080024 entry index is larger than available symbols (index 36, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:642: error: Public symbol 
array/prefValues_mms_validity declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:640: error: Public entry 
identifier 0x7f080022 entry index is larger than available symbols (index 34, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:640: error: Public symbol 
array/prefValues_sms_validity declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:630: error: Public symbol 
array/prefValues_vibrateWhen declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:621: error: Public symbol 
array/pref_sms_save_location_values declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:615: error: Public symbol 
array/sms_memo_day declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:616: error: Public symbol 
array/sms_memo_day_hour declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:618: error: Public symbol 
array/sms_memo_week declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:619: error: Public symbol 
array/sms_memo_week_day_cn declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:617: error: Public symbol 
array/sms_memo_week_loop declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:612: error: Public symbol 
array/special_locale_box declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:608: error: Public symbol 
array/special_locale_names declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:635: error: Public entry 
identifier 0x7f08001d entry index is larger than available symbols (index 29, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:635: error: Public symbol 
array/use_unsaved_telephone_number declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:633: error: Public entry 
identifier 0x7f08001b entry index is larger than available symbols (index 27, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:633: error: Public symbol 
array/usemainnum_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:632: error: Public entry 
identifier 0x7f08001a entry index is larger than available symbols (index 26, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:632: error: Public symbol 
array/usemainnumexist_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:634: error: Public entry 
identifier 0x7f08001c entry index is larger than available symbols (index 28, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:634: error: Public symbol 
array/usesubnum_dialog_items declared here is not defined.
/sdcard/Decompiler/Mms_src/res/values/public.xml:638: error: Public entry 
identifier 0x7f080020 entry index is larger than available symbols (index 32, 
total symbols 24).
/sdcard/Decompiler/Mms_src/res/values/public.xml:638: error: Public symbol 
array/web_dialog_items declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 15, 
--version-code, 10107, --version-name, V1.02, -F, 
/data/data/per.pqy.apktool/APKTOOL5493642533288046672.tmp, -0, arsc, -I, 
?/apktool/framework/1.apk, -I, ?/apktool/framework/12.apk, -S, 
/sdcard/Decompiler/Mms_src/res, -M, 
/sdcard/Decompiler/Mms_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, 
--min-sdk-version, 15, --version-code, 10107, --version-name, V1.02, -F, 
/data/data/per.pqy.apktool/APKTOOL5493642533288046672.tmp, -0, arsc, -I, 
?/apktool/framework/1.apk, -I, ?/apktool/framework/12.apk, -S, 
/sdcard/Decompiler/Mms_src/res, -M, 
/sdcard/Decompiler/Mms_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 15, 
--version-code, 10107, --version-name, V1.02, -F, 
/data/data/per.pqy.apktool/APKTOOL5493642533288046672.tmp, -0, arsc, -I, 
?/apktool/framework/1.apk, -I, ?/apktool/framework/12.apk, -S, 
/sdcard/Decompiler/Mms_src/res, -M, 
/sdcard/Decompiler/Mms_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
... 6 more
I: Using Apktool 2.0.0-Beta7 on Mms_src
I: Copying classes.dex file...
I: Building resources...

What version of the product are you using? On what operating system?
 apktool4.4.1, Im on Andriod 4.2.2

Please provide any additional information below.
 Am using a ported Oppo Find 5 ROM on my Galaxy S4 i9500

Original issue reported on code.google.com by jongl...@gmail.com on 8 Jan 2014 at 3:21

GoogleCodeExporter commented 8 years ago
I am on cm11 with latest 4.4 apktool build. I try to decompile resource of mx 
player pro and output successfully executed. I change some color code and 
recompile but I always get an error while recompiling. Even without any changes 
I get a error.
Here is a error output from apktool. 
error/sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/AndroidManifest.xml:2: error: Error parsing 
XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, -F, 
/data/data/per.pqy.apktool/APKTOOL5192611651862354921.tmp, -x, -0, arsc, -I, 
?/apktool/framework/1.apk, -S, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/res, -M, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
    at brut.androlib.Androlib.buildResources(Androlib.java:362)
    at brut.androlib.Androlib.build(Androlib.java:285)
    at brut.androlib.Androlib.build(Androlib.java:258)
    at brut.apktool.Main.cmdBuild(Main.java:233)
    at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, -F, 
/data/data/per.pqy.apktool/APKTOOL5192611651862354921.tmp, -x, -0, arsc, -I, 
?/apktool/framework/1.apk, -S, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/res, -M, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[/data/data/per.pqy.apktool/lix/aapt4.4, p, -F, 
/data/data/per.pqy.apktool/APKTOOL5192611651862354921.tmp, -x, -0, arsc, -I, 
?/apktool/framework/1.apk, -S, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/res, -M, /sdcard/backups/apps/MX Player 
Pro_1.7.32.nightly.20140914_src/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
    ... 6 more
I: Using Apktool 2.0.0-Beta7 on MX Player Pro_1.7.32.nightly.20140914_src
I: Copying classes.dex file...
I: Building resources...

Original comment by sumanta...@gmail.com on 26 Sep 2014 at 11:50

GoogleCodeExporter commented 8 years ago
I have the same problem. Are there any solutions?

Original comment by zhangshi...@gmail.com on 26 May 2015 at 2:12