Bug 24725 - Xamarin.UITest always clears app data for Android Apps (local)
Summary: Xamarin.UITest always clears app data for Android Apps (local)
Status: NEW
Alias: None
Product: TestCloud
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-11-21 10:12 UTC by Johannes Rudolph
Modified: 2018-02-09 11:19 UTC (History)
3 users (show)

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 for Bug 24725 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Johannes Rudolph 2014-11-21 10:12:43 UTC
Xamarin UITest always clears app data when launching an App via: 

    var app = ConfigureApp.Android.ApkFile( apk );
    return app.StartApp();

(It issues an adb shell pm -s ... clear command to the local emulator)

This is inconsistent with iOS behavior (which never clears App data). 

Arguably, both platforms should make available a configuration setting whether cleansing of app data is desired or not. The current behavior creates huge problems for testing things like first time run experiences of an App.
Comment 1 Johannes Rudolph 2014-12-22 03:37:44 UTC
This bug has been open for one month without any response - any expectation for a fix? If Xamarin.UITest were open source I'd submit a PR, but since it's not....
Comment 2 Green Wood 2018-02-09 11:19:44 UTC
This can be done manually in Settings/Applications/Manage Applications/[My App]/Clear data.https://babasupport.org/routers/zte-router-customer-service/657

[adb shell pm clear my.wonderful.app.package}