Bug 21706 - All packaged files are modified when making a signed apk
Summary: All packaged files are modified when making a signed apk
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 4.14.0
Hardware: PC Windows
: Normal enhancement
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2014-07-30 13:06 UTC by Jon Douglas [MSFT]
Modified: 2017-06-27 22:01 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Jon Douglas [MSFT] 2014-07-30 13:06:44 UTC
When building an Android project in Visual Studio and then packaging into a signed apk, all files seem to be touched in the process. As a consequence, the last
modified date is updated to all.

I went on to install Eclipse and
built up a sample project to further investigate the packaging process.

1. xml files are indeed touched. They go through a "compilation" process so
it's a new file every time. If we do a file comparison between two versions
however, their content will be the same.

2. images are not touched by Eclipse. Xamarin however is changing the
modified date every time. I can go around this by doing a file comparison
between two versions because like the xml files, their content will be the
same.

3. Xamarin packages include extra files that Eclipse doesn't, which are the
assemblies. They obviously need to be there, however, their contents seem
to be different between versions.
Comment 2 Goncalo Oliveira 2014-07-30 13:43:29 UTC
Just a few notes on this. The reason for the assemblies to differ every time is due to the linking process - I had totally forgot about this. In order to reduce the size of the assemblies, the linker strips down everything that is not used, so the resulting assemblies are always different. If I turn off the linker, I manage to get a differential package with only the main assembly and the meta info files. The only issue is that instead of having an APK file with 15mb I now have one with 36mb.

Maybe there's something that can be done to optimize the linking process?
Comment 3 Jon Douglas [MSFT] 2017-06-27 22:01:49 UTC
I am closing this issue due to age and user impact.

If you are still encountering this issue, please reopen the ticket with further information regarding why this should be re-looked at. Thanks!