Bug 15555 - Mono runtime/other uploaded to device each deployment (Android 4.2)
Summary: Mono runtime/other uploaded to device each deployment (Android 4.2)
Status: RESOLVED DUPLICATE of bug 15553
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-10-21 14:13 UTC by Andrew
Modified: 2013-11-25 07:46 UTC (History)
3 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 DUPLICATE of bug 15553

Description Andrew 2013-10-21 14:13:10 UTC
Looks like something has changed with permissions in 4.2:

Mono.AndroidTools.AndroidLogger Verbose: 0 : -- Start GetPackages - 10/21/2013 21:03:47 (11.0006ms) --
Mono.AndroidTools.AndroidLogger Verbose: 0 : [INPUT] cat /data/system/packages.xml
Mono.AndroidTools.AndroidLogger Verbose: 0 : [OUTPUT]
/system/bin/sh: cat: /data/system/packages.xml: Permission denied
Mono.AndroidTools.AndroidLogger Verbose: 0 : -- End GetPackages --


Xamarin.Android   4.8.03015 (a25a31d0)
Samsung GT-s7272, Android 4.2.2


VS 2010 build log
======================================================================
Waiting for device..
Detecting installed packages
Detecting installed packages...
Removing old runtime
Removing old runtime: Mono.Android.DebugRuntime...



Installing shared runtime
Target device is armeabi-v7a.
Installing the Mono shared runtime (armeabi-v7a - 1381251540)...


Removing old runtimes
Removing old runtime: Mono.Android.DebugRuntime [2147483647]..
Removing old runtime: Mono.Android.Platform.ApiLevel_14 [2147483647]..

Installing shared runtime
Target device is armeabi-v7a.
Installing the Mono shared runtime (armeabi-v7a - 1381251540)...

Installing platform framework
Installing the API 14 platform framework..

Removing previous version of application
Removing previous version of application...

Installing application on device
Copying application to device...

========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Comment 2 Prashant manu 2013-11-22 00:48:31 UTC
@Andrew, I am not getting what the issue is, Could you please provide me steps or test project so that I can reproduce it at my end?
Comment 3 Andrew 2013-11-22 05:09:09 UTC
update: I already reported the same issue (with different logs) here: https://bugzilla.xamarin.com/show_bug.cgi?id=15553, please mark this as duplicate.

=====
All you need an empty (default) android application project, and a physical device with Android 4.2 (AFAIR the issue exists for 4.1 too).
- Build and deploy the project to device
- Notice that Mono Shared Runtime is deployed (build log)
- Run deployment second time
- Notice that Mono Shared Runtime deployed once again.


In case of the emulator, on the second deployment you won't see "Removing old runtimes"/"Installing the Mono shared" lines in the build log, it's much shorter:

====================================
Waiting for device..
Detecting installed packages
Detecting installed packages...

Getting installation path...
Synchronizing assemblies...
Synchronizing assemblies

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Comment 4 PJ 2013-11-25 07:46:46 UTC
Dupe of 15553 as per comment 3.

*** This bug has been marked as a duplicate of bug 15553 ***