desword / android-apktool

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

BrutException when rebuilding 3rd party app (Yelp) #540

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download app "Yelp" 
(https://play.google.com/store/apps/details?id=com.yelp.android&hl=en) on 
Android 4.3
2. java -jar apktool_2.0.0b7.jar d yelp.apk
3. java -jar apktool_2.0.0b7.jar b yelp

What is the expected output? What do you see instead?
Build of unmodified files fails with following error (truncated):

/home/mdop/apk/yelp/res/values/public.xml:531: error: Public symbol 
drawable/yellowish_background declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:532: error: Public symbol 
drawable/yelp_holo_underline declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:1096: error: Public symbol 
drawable/yelp_share_button declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:1097: error: Public symbol 
drawable/yelp_share_button_pressed declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:1098: error: Public symbol 
drawable/yelpus_maximus_small declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:533: error: Public symbol 
drawable/yloader_48 declared here is not defined.
/home/mdop/apk/yelp/res/values/public.xml:534: error: Public symbol 
drawable/yloader_76 declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [/tmp/brut_util_Jar_5130763717100478107.tmp, p, --forced-package-id, 
127, --min-sdk-version, 8, --target-sdk-version, 17, --version-code, 8011003, 
--version-name, 5.0.2, -F, /tmp/APKTOOL258479794275315966.tmp, -0, arsc, -I, 
/home/mdop/apktool/framework/1.apk, -S, /home/mdop/apk/yelp/res, -M, 
/home/mdop/apk/yelp/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: [/tmp/brut_util_Jar_5130763717100478107.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 17, 
--version-code, 8011003, --version-name, 5.0.2, -F, 
/tmp/APKTOOL258479794275315966.tmp, -0, arsc, -I, 
/home/mdop/apktool/framework/1.apk, -S, /home/mdop/apk/yelp/res, -M, 
/home/mdop/apk/yelp/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: 
[/tmp/brut_util_Jar_5130763717100478107.tmp, p, --forced-package-id, 127, 
--min-sdk-version, 8, --target-sdk-version, 17, --version-code, 8011003, 
--version-name, 5.0.2, -F, /tmp/APKTOOL258479794275315966.tmp, -0, arsc, -I, 
/home/mdop/apktool/framework/1.apk, -S, /home/mdop/apk/yelp/res, -M, 
/home/mdop/apk/yelp/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
    ... 6 more

What version of the product are you using? On what operating system?
I tested both latest stable 1.5.2 and beta 2.0.0b7 on both Windows (8.1 64-bit 
with 64-bit Java 7) and Linux (Xubuntu 32-bit with OpenJDK 7)

Please provide any additional information below.
It's regular 3rd party app, no system app. It's larger than 10 MB so I uploaded 
apk for reference here: http://smartmadsoft.com/temp/yelp.apk

Original issue reported on code.google.com by m...@rcel.cz on 31 Oct 2013 at 7:41

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 543 has been merged into this issue.

Original comment by connor.tumbleson on 5 Nov 2013 at 12:26

GoogleCodeExporter commented 9 years ago
WeChat 5.0.x and the latest 5.1 also has this issue.
Please check.

Original comment by bei...@163.com on 26 Dec 2013 at 7:12

GoogleCodeExporter commented 9 years ago
http://pastebin.com/WsQJTJgJ

Could not duplicate. 

Original comment by connor.tumbleson on 23 Jan 2014 at 3:08

GoogleCodeExporter commented 9 years ago
I confirm that it works fine with the latest version of Yelp. 

However I tried the few months old version and it still ends with the same 
exception (even beta 8). I remember I saw such exception with one or two apk's 
so I can try to think of what apps were they.

Original comment by m...@rcel.cz on 23 Jan 2014 at 5:49