kuter007 / android-apktool

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

Uncompressed unknown files becomes compressed. #769

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. decompile apk that contains assemblies/*.dll files
2. build apk from decompiled sources
3. unzip -vl new.apk

What is the expected output? What do you see instead?
...
  950272  Stored   950272   0%  02-26-15 15:49  5559ccd7  assemblies/Mono.Android.dll
...

What version of the product are you using? On what operating system?
...
 950272  Defl:N   242950  74%  02-26-15 15:53  5559ccd7  assemblies/Mono.Android.dll
...

Please provide any additional information below.
File was "Stored" in original apk and becomes "Defl:N".
It prevents apk from functioning at all.
dll files are treated as "Unknown"

From apktool.yml:

unknownFiles:
...
  assemblies/Mono.Android.dll: '0'

Original issue reported on code.google.com by canab...@gmail.com on 26 Feb 2015 at 2:23

GoogleCodeExporter commented 9 years ago
I wondered when this would get reported. I log stored vs deflated as you can 
see via the apktool.yml, but its entirely ignored.

This was because of a bug or something that I can't remember with Java NIO. 

I'll take another peek.

-- note to me
https://github.com/iBotPeaches/Apktool/blob/master/brut.apktool/apktool-lib/src/
main/java/brut/androlib/Androlib.java#L581

Original comment by connor.tumbleson on 26 Feb 2015 at 2:30

GoogleCodeExporter commented 9 years ago
Additional info:

ApkTool version: 2.0.0 RC4

OS: Mac OSX 10.10

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Original comment by canab...@gmail.com on 26 Feb 2015 at 2:56