Error 'Exception in thread "main" brut.androlib.AndrolibException: Multiple resources' #811

Closed
iBotPeaches opened this Issue Mar 18, 2015 · 6 comments

Comments

Projects
None yet
1 participant
@iBotPeaches
Owner

iBotPeaches commented Mar 18, 2015

Original issue 702 created by luosen1998 on 2014-11-13T17:55:39.000Z:

What steps will reproduce the problem?
apktool if framework-res.apk

What is the expected output?
Framework installed.

What do you see instead?
W: Config flags size > 32. Exceeding bytes: 0000D002000000000000000000000000.
W: Invalid config flags detected: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -3FFD0000000000000000000000000000.
W: Invalid config flags detected: dimen-v13-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01050001 dimen/thumbnail_height, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:185)
at brut.apktool.Main.main(Main.java:61)

What version of the product are you using? On what operating system?
apktool_2.0.0rc2 on Mac OS X 10.10 Yosemite

Please provide any additional information below.
None.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #1 originally posted by connor.tumbleson on 2014-11-19T23:35:03.000Z:

Please provide an APK.

Owner

iBotPeaches commented Mar 18, 2015

Comment #1 originally posted by connor.tumbleson on 2014-11-19T23:35:03.000Z:

Please provide an APK.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #2 originally posted by phhusson on 2014-12-29T10:39:33.000Z:

Hi,

I'm having the same error.
I'm not sure 100% it is the same bug, though it is the same error message, but I have no warning.
I hit the problem as soon as I import framework-res linked here (>10MB...)
https://drive.google.com/file/d/0B3fvaKsOMHzdOHJRd3ZnTGVRQk0/view?usp=sharing

Owner

iBotPeaches commented Mar 18, 2015

Comment #2 originally posted by phhusson on 2014-12-29T10:39:33.000Z:

Hi,

I'm having the same error.
I'm not sure 100% it is the same bug, though it is the same error message, but I have no warning.
I hit the problem as soon as I import framework-res linked here (>10MB...)
https://drive.google.com/file/d/0B3fvaKsOMHzdOHJRd3ZnTGVRQk0/view?usp=sharing

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #3 originally posted by connor.tumbleson on 2014-12-29T15:54:15.000Z:

Confirmed via file in comment 2.

Dump of configurations

large-v4
sw600dp-v13
sw720dp-v13
v17
xlarge-v4
port-mdpi-v4
ca
da
nb
de
bg
th
fi
hi
vi
sk
uk
el
nl
pl
sl
tl
km
in
ko
ro
ar
fr
hr
tr
cs
es
ms
it
lt
pt
hu
ru
lv
sv
iw
uk-UA
en-GB
in-ID
ar-EG
km-KH
th-TH
fi-FI
sl-SI
sk-SK
my-MM
zh-CN
hi-IN
vi-VN
ro-RO
hr-HR
en-US
es-US
de-AT
lt-LT
pt-PT
hu-HU
lv-LV
zh-TW
ms-MY
mcc204
mcc230
mcc232
mcc234
mcc260
mcc262
mcc450-ko
mcc208-mnc1
mcc214-mnc1
mcc340-mnc1
mcc425-mnc1
mcc505-mnc1
mcc214-mnc3
mcc268-mnc3
mcc202-mnc5
mcc425-mnc7
mcc208-mnc10
mcc222-mnc10
mcc234-mnc33
mcc334-mnc50
mcc311-mnc190
mcc302-mnc370
mcc302-mnc660
mcc302-mnc720
mcc302-mnc780
h720dp-v13
sw380dp-v13
sw600dp-w960dp-v13
sw720dp-w1280dp-v13
land
xlarge-land-v4
sw380dp-land-v13
sw600dp-land-v13
sw720dp-land-v13
de-DE
sv-SE
bg-BG
tl-PH
da-DK
iw-IL
nl-NL
pl-PL
nb-NO
pt-BR
fr-FR
el-GR
ko-KR
tr-TR
ca-ES
es-ES
it-IT
ru-RU
cs-CZ
mcc219
mcc220
mcc286
mcc404
mcc405
mcc520
mcc214-mnc4
mcc425-mnc8
mcc510-mnc8
mcc510-mnc21
mcc530-mnc24
mcc208-mnc26
mcc234-mnc30
mcc234-mnc31
mcc234-mnc32
mcc234-mnc34
mcc234-mnc86
mcc510-mnc89
mcc302-mnc610
mcc302-mnc640
nodpi-v4
sw600dp-nodpi-v13
sw720dp-nodpi-v13
mdpi-v4
sw600dp-mdpi-v13
land-mdpi-v4
hdpi-v4
sw600dp-hdpi-v13
land-hdpi-v4
xhdpi-v4
sw600dp-xhdpi-v13
land-xhdpi-v4
xxhdpi-v4
sw600dp-xxhdpi-v13
en-mdpi-v4
en-hdpi-v4
w600dp-v13
port
ldpi-v4
mcc460-mnc65535
w360dp-v13
w500dp-v13
sw600dp-port-v13
sw720dp-port-v13
mcc310
mcc460
mcc460-mnc2
mcc204-mnc4
mcc450-mnc5
mcc450-mnc6
mcc460-mnc7
mcc450-mnc8
mcc510-mnc11
mcc234-mnc20
mcc440-mnc20
mcc440-mnc50
mcc440-mnc54
mcc235-mnc94
mcc310-mnc120
mcc310-mnc260
mcc310-mnc410
en
ca-xlarge-v4
da-xlarge-v4
nb-xlarge-v4
de-xlarge-v4
bg-xlarge-v4
th-xlarge-v4
fi-xlarge-v4
hi-xlarge-v4
vi-xlarge-v4
sk-xlarge-v4
uk-xlarge-v4
el-xlarge-v4
nl-xlarge-v4
pl-xlarge-v4
sl-xlarge-v4
tl-xlarge-v4
ko-xlarge-v4
ro-xlarge-v4
ar-xlarge-v4
fr-xlarge-v4
hr-xlarge-v4
tr-xlarge-v4
cs-xlarge-v4
es-xlarge-v4
it-xlarge-v4
lt-xlarge-v4
pt-xlarge-v4
hu-xlarge-v4
ru-xlarge-v4
lv-xlarge-v4
sv-xlarge-v4
iw-xlarge-v4
en-GB-xlarge-v4
zh-CN-xlarge-v4
es-US-xlarge-v4
pt-PT-xlarge-v4
zh-TW-xlarge-v4
w480dp-v13
w720dp-v13
mcc311
mcc312
mcc313
mcc314
mcc315
mcc316
mcc440
mcc450

Owner

iBotPeaches commented Mar 18, 2015

Comment #3 originally posted by connor.tumbleson on 2014-12-29T15:54:15.000Z:

Confirmed via file in comment 2.

Dump of configurations

large-v4
sw600dp-v13
sw720dp-v13
v17
xlarge-v4
port-mdpi-v4
ca
da
nb
de
bg
th
fi
hi
vi
sk
uk
el
nl
pl
sl
tl
km
in
ko
ro
ar
fr
hr
tr
cs
es
ms
it
lt
pt
hu
ru
lv
sv
iw
uk-UA
en-GB
in-ID
ar-EG
km-KH
th-TH
fi-FI
sl-SI
sk-SK
my-MM
zh-CN
hi-IN
vi-VN
ro-RO
hr-HR
en-US
es-US
de-AT
lt-LT
pt-PT
hu-HU
lv-LV
zh-TW
ms-MY
mcc204
mcc230
mcc232
mcc234
mcc260
mcc262
mcc450-ko
mcc208-mnc1
mcc214-mnc1
mcc340-mnc1
mcc425-mnc1
mcc505-mnc1
mcc214-mnc3
mcc268-mnc3
mcc202-mnc5
mcc425-mnc7
mcc208-mnc10
mcc222-mnc10
mcc234-mnc33
mcc334-mnc50
mcc311-mnc190
mcc302-mnc370
mcc302-mnc660
mcc302-mnc720
mcc302-mnc780
h720dp-v13
sw380dp-v13
sw600dp-w960dp-v13
sw720dp-w1280dp-v13
land
xlarge-land-v4
sw380dp-land-v13
sw600dp-land-v13
sw720dp-land-v13
de-DE
sv-SE
bg-BG
tl-PH
da-DK
iw-IL
nl-NL
pl-PL
nb-NO
pt-BR
fr-FR
el-GR
ko-KR
tr-TR
ca-ES
es-ES
it-IT
ru-RU
cs-CZ
mcc219
mcc220
mcc286
mcc404
mcc405
mcc520
mcc214-mnc4
mcc425-mnc8
mcc510-mnc8
mcc510-mnc21
mcc530-mnc24
mcc208-mnc26
mcc234-mnc30
mcc234-mnc31
mcc234-mnc32
mcc234-mnc34
mcc234-mnc86
mcc510-mnc89
mcc302-mnc610
mcc302-mnc640
nodpi-v4
sw600dp-nodpi-v13
sw720dp-nodpi-v13
mdpi-v4
sw600dp-mdpi-v13
land-mdpi-v4
hdpi-v4
sw600dp-hdpi-v13
land-hdpi-v4
xhdpi-v4
sw600dp-xhdpi-v13
land-xhdpi-v4
xxhdpi-v4
sw600dp-xxhdpi-v13
en-mdpi-v4
en-hdpi-v4
w600dp-v13
port
ldpi-v4
mcc460-mnc65535
w360dp-v13
w500dp-v13
sw600dp-port-v13
sw720dp-port-v13
mcc310
mcc460
mcc460-mnc2
mcc204-mnc4
mcc450-mnc5
mcc450-mnc6
mcc460-mnc7
mcc450-mnc8
mcc510-mnc11
mcc234-mnc20
mcc440-mnc20
mcc440-mnc50
mcc440-mnc54
mcc235-mnc94
mcc310-mnc120
mcc310-mnc260
mcc310-mnc410
en
ca-xlarge-v4
da-xlarge-v4
nb-xlarge-v4
de-xlarge-v4
bg-xlarge-v4
th-xlarge-v4
fi-xlarge-v4
hi-xlarge-v4
vi-xlarge-v4
sk-xlarge-v4
uk-xlarge-v4
el-xlarge-v4
nl-xlarge-v4
pl-xlarge-v4
sl-xlarge-v4
tl-xlarge-v4
ko-xlarge-v4
ro-xlarge-v4
ar-xlarge-v4
fr-xlarge-v4
hr-xlarge-v4
tr-xlarge-v4
cs-xlarge-v4
es-xlarge-v4
it-xlarge-v4
lt-xlarge-v4
pt-xlarge-v4
hu-xlarge-v4
ru-xlarge-v4
lv-xlarge-v4
sv-xlarge-v4
iw-xlarge-v4
en-GB-xlarge-v4
zh-CN-xlarge-v4
es-US-xlarge-v4
pt-PT-xlarge-v4
zh-TW-xlarge-v4
w480dp-v13
w720dp-v13
mcc311
mcc312
mcc313
mcc314
mcc315
mcc316
mcc440
mcc450

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #4 originally posted by phhusson on 2014-12-30T08:05:46.000Z:

Here is the list of values containing mcc460:
res/res/values-mcc460/config.xml
res/res/values-mcc460-mnc00/config.xml
res/res/values-mcc460-mnc02/config.xml
res/res/values-mcc460-mnc07/config.xml

Here is the full list of files:
http://pastebin.com/RDmZh5gU

Owner

iBotPeaches commented Mar 18, 2015

Comment #4 originally posted by phhusson on 2014-12-30T08:05:46.000Z:

Here is the list of values containing mcc460:
res/res/values-mcc460/config.xml
res/res/values-mcc460-mnc00/config.xml
res/res/values-mcc460-mnc02/config.xml
res/res/values-mcc460-mnc07/config.xml

Here is the full list of files:
http://pastebin.com/RDmZh5gU

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #5 originally posted by connor.tumbleson on 2014-12-30T11:25:57.000Z:

So here are the ones we decoded.

mcc460-mnc65535
mcc460
mcc460-mnc02
mcc460-mnc07

As you can see. mcc460-mnc00 is improperly decoded. I will try and get a patch written today.

Owner

iBotPeaches commented Mar 18, 2015

Comment #5 originally posted by connor.tumbleson on 2014-12-30T11:25:57.000Z:

So here are the ones we decoded.

mcc460-mnc65535
mcc460
mcc460-mnc02
mcc460-mnc07

As you can see. mcc460-mnc00 is improperly decoded. I will try and get a patch written today.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #6 originally posted by connor.tumbleson on 2014-12-30T12:09:21.000Z:

ibotpeaches@raganok:/Downloads/Apktool/Bug702$ apktool d framework-res-50che.apk -f
I: Using Apktool 2.0.0-2bd1e5-SNAPSHOT on framework-res-50che.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:
/Downloads/Apktool/Bug702$

Fixed :)

20504d1

(Will be in next build)

Owner

iBotPeaches commented Mar 18, 2015

Comment #6 originally posted by connor.tumbleson on 2014-12-30T12:09:21.000Z:

ibotpeaches@raganok:/Downloads/Apktool/Bug702$ apktool d framework-res-50che.apk -f
I: Using Apktool 2.0.0-2bd1e5-SNAPSHOT on framework-res-50che.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:
/Downloads/Apktool/Bug702$

Fixed :)

20504d1

(Will be in next build)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment