Android APK Signing
info
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
A set of capabilities which allow you to config a custom keystore which will be used for signing the application APK file.
Name | Possible Values |
---|---|
useKeystore | true / false Default: false |
keystorePath | Default: ~/.android/debug.keystore |
keystorePassword | Password for custom keystore |
keyAlias | Alias for key |
keyPassword | Password for key |
For enabling the usage of custom keystore the "instrumentApp" = true capability must be set.
Example (Java)
AndroidDriver<AndroidElement> driver = null;
@Before
public void setup() throws MalformedURLException {
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability("app", "C://apps//android//com.experitest.ExperiBank.LoginActivity.2.apk");
dc.setCapability("useKeystore", true);
dc.setCapability("keystorePath", "C://keys//experitest.keystore");
dc.setCapability("keystorePassword", "123456");
dc.setCapability("keyAlias", "myAlias");
dc.setCapability("keyPassword", "654321");
dc.setCapability("instrumentApp", true);
try {
driver = new AndroidDriver<>(new URL(SERVER_URL), dc);
} finally {
driver.quit();
}
}