How to force appium to use pre-installed apps and not try to push em again

Hey guys, I came here with simple question as I was not able to find answer.

So My Test is running its APP from the phone pre-installed apps.
desiredCapabilities: {
platformName: “Android”,
platformVersion:“6.0”,
deviceName: “Android”,
appPackage:“packagename”,
appActivity:“com.unity3d.player.UnityPlayerActivity”,
automationName: “uiautomator2”,
udid:“cd21ccc5” //cd21ccc5 emulator-5554
}

It works ok. :slight_smile:

The thing is when i go over the appium logs I can still find some installing and pushing.

Pushing settings apk to device…
[debug] [ADB] Uninstalling and re-installing ‘io.appium.settings’
[debug] [ADB] Uninstalling io.appium.settings
[debug] [ADB] Getting install status for io.appium.settings
[ADB] io.appium.settings was successfully uninstalled
C:\Users\matus\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk’ not installed. Installing

and another one

[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘packagename/com.unity3d.player.UnityPlayerActivity’. Starting it ourselves

here is a full log https://pastebin.com/hrjXmFjT

Thanks for you help guys :slight_smile:

What language are you using?

In java, you can do

dc.setCapability(MobileCapabilityType.NO_RESET, true);
dc.setCapability(MobileCapabilityType.FULL_RESET, false);

If it’s python or something like that, just use the string:
NO_RESET would be noReset
FULL_RESET would fullReset

Thanks for you answer :slight_smile:

I am still experiencing slow loading time god knows why …it takes 1min just to load app