Android - Different bytecode of text file for release build

122 Views Asked by At

I am having problem with different byte representation of my file in assets folder for release build. Some library that I am using is providing licence file that i have included to assets. In debug build the library accepts the licence file but for release build the exception is raised.

When I export that file from release apk and look at text representation, no difference is there but when I look at hex representation it differs. Here is a few bytes for comparision:

Original

0d23 230a 4420 204f 4e5f 544f 205f 4f4d
4944 5946 5420 4948 2053 4946 454c 0d21
230a 0a0d 2023 754d 6966 206e 6d47 4862

Release

0a23 2023 4f44 5f20 4f4e 5f54 4d20 444f
4649 2059 4854 5349 4620 4c49 2145 230a
230a 4d20 6675 6e69 4720 626d 2048 694c
0

There are 0 best solutions below