Skip to content

Cannot Recompile Phone.apk with no changes #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iBotPeaches opened this issue Mar 18, 2015 · 3 comments
Closed

Cannot Recompile Phone.apk with no changes #565

iBotPeaches opened this issue Mar 18, 2015 · 3 comments

Comments

@iBotPeaches
Copy link
Owner

Original issue 454 created by Love2Shred on 2013-05-05T06:06:46.000Z:

What steps will reproduce the problem?

  1. apktool if all 3 .apk framework files (link below)
  2. apktool d Phone.apk (make no changes)
  3. apktool b Phone

What is the expected output? What do you see instead?
I see this on decompile:

C:\Users\Derek\Downloads\Android\apktool>apktool d Phone-one.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-mdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-mdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-mdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR11
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Derek\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Derek\apktool\framework\2.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-hdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR46
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR47
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR48
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR49
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR50
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR51
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR52
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR53
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR54
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR55
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR56
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR57
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR58
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR59
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR60
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR61
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR62
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR63
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR64
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR65
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR66
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR67
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR68
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR69
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR70
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR71
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR72
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR73
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR74
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-hdpi-ERR75
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xhdpi-ERR76
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xhdpi-ERR77
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xhdpi-ERR78
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xhdpi-ERR79
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xxhdpi-ERR80
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xxhdpi-ERR81
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xxhdpi-ERR82
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xxhdpi-ERR83
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Done.
I: Copying assets and libs...

On recompile:

C:\Users\Derek\Downloads\Android\apktool>apktool b Phone-one
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-da\strings.xml:728
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-da\strings.xml:729
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-es\strings.xml:733
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-es\strings.xml:734
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-es-rUS\strings.xml
:739: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-es-rUS\strings.xml
:740: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-it\strings.xml:732
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-it\strings.xml:733
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-nb\strings.xml:728
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-nb\strings.xml:729
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-ru\strings.xml:733
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-ru\strings.xml:734
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-sv\strings.xml:728
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-sv\strings.xml:729
: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-zh-rHK\strings.xml
:729: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-zh-rHK\strings.xml
:729: error: Unexpected end tag string
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-zh-rTW\strings.xml
:735: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Users\Derek\Downloads\Android\apktool\Phone-one\res\values-zh-rTW\strings.xml
:735: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\Derek\AppData\Local\Temp\APKTOOL381440745218709894
0.tmp, -0, arsc, -I, C:\Users\Derek\apktool\framework\1.apk, -I, C:\Users\Derek
apktool\framework\2.apk, -S, C:\Users\Derek\Downloads\Android\apktool\Phone-one
res, -M, C:\Users\Derek\Downloads\Android\apktool\Phone-one\AndroidManifest.xml]

    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
    at brut.androlib.Androlib.buildResources(Androlib.java:283)
    at brut.androlib.Androlib.build(Androlib.java:206)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\Derek\AppData\Local
\Temp\APKTOOL3814407452187098940.tmp, -0, arsc, -I, C:\Users\Derek\apktool\frame
work\1.apk, -I, C:\Users\Derek\apktool\framework\2.apk, -S, C:\Users\Derek\Downl
oads\Android\apktool\Phone-one\res, -M, C:\Users\Derek\Downloads\Android\apktool
\Phone-one\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, -F, C:\Users\Derek\AppData\Local\Temp\APKTOOL3814407452187098940.
tmp, -0, arsc, -I, C:\Users\Derek\apktool\framework\1.apk, -I, C:\Users\Derek\ap
ktool\framework\2.apk, -S, C:\Users\Derek\Downloads\Android\apktool\Phone-one\re
s, -M, C:\Users\Derek\Downloads\Android\apktool\Phone-one\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

What version of the product are you using? On what operating system?
On latest apktool (1.5.2), Win 8

Please provide any additional information below.
Here are the framework files: https://dl.dropboxusercontent.com/u/6621763/sprint_htc_one_frameworks.zip

And the Phone.apk I'm trying to decompile: https://dl.dropboxusercontent.com/u/6621763/Phone.apk

Updated to latest aapt via SDK Manager and had the same issue. Let me know if I can help further. Thanks!

@iBotPeaches
Copy link
Owner Author

Comment #1 originally posted by connor.tumbleson on 2013-05-05T13:18:06.000Z:

Duplicated :/

ibotpeaches@raganok:~/Downloads/Apktool/Bug454$ apktool d -t bug454 Phone.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0d005e dimen/call_card_person_info_name_font_size, config=-mdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)

@iBotPeaches
Copy link
Owner Author

Comment #2 originally posted by connor.tumbleson on 2013-05-26T14:40:18.000Z:

Issue 461 has been merged into this issue.

@iBotPeaches
Copy link
Owner Author

Comment #3 originally posted by connor.tumbleson on 2014-02-16T17:22:36.000Z:

Found as same problem as the dreaded HTC one when investigating. Moving into one bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant