When I run a python script with the following code structure.
from appium import webdriver
desired_capabilities = {
"appium:deviceName": "Android Emulator",
"platformName": "Android",
"appium:appPackage": "za.co.app",
"appium:appWaitPackage": "za.co.app",
"appium:appWaitActivity": "za.co.app.SplashActivity",
"appium:appActivity": "za.co.app.SplashActivity",
"appium:app": "C:\\Development\\AppiumDev\\myapp.apk"
}
driver = webdriver.Remote("http://localhost:4723/wd/hub", desired_capabilities)
What happens is that Appium wraps the myapp.apk and installs a wrapped version on my device.
Is there a way to prevent appium from wrapping the apk to just installing the actual myapp.apk? Similar to TestProject, when running tests,TestProject works on the actual apk & does not wrap the APK to install a wrapped version of the APK.
Thanks!
Disable App Signing
For the latest Appium version (1.22),
UIAutomator2used for Android ifautomationNamecapability was not specified.By default, all apps are always signed with the default Appium debug signature if they don't have any.
To cancel all the signing checks and make the driver to use the application package as is set
appium:noSign=true:One more option here:
Disable Appium App Install
Appium is able to work with already pre-installed apps.
Just remove
appium:appcapability, and install the app before tests yourself, e.g. with adb.References