Created
February 25, 2025 17:15
-
-
Save prolificcoder/ce45c88b34490dc989e74da88b42289c to your computer and use it in GitHub Desktop.
Installing certificate on an android emulator if you don't have adb or root perms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## After installing maestro run | |
| ## maestro test maestro_cert_install.yaml | |
| appId: com.android.settings | |
| --- | |
| - launchApp: com.android.settings | |
| - startRecording: cert_install | |
| ## This can change in future versions of android | |
| - scrollUntilVisible: | |
| element: "Security" | |
| direction: DOWN | |
| - tapOn: "Security" | |
| - tapOn: "More security settings" | |
| - scrollUntilVisible: | |
| element: | |
| text: "Encryption & credentials" | |
| direction: DOWN | |
| - tapOn: "Encryption & credentials" | |
| - scrollUntilVisible: | |
| element: | |
| text: "Install a certificate" | |
| direction: DOWN | |
| - tapOn: "Install a certificate" | |
| - tapOn: "CA certificate" | |
| - tapOn: "Install anyway" | |
| - runFlow: | |
| when: | |
| visible: "ZscalerRootCertificate-2048-SHA256.cer" | |
| commands: | |
| - tapOn: | |
| text: "ZscalerRootCertificate-2048-SHA256.cer" | |
| optional: true | |
| - tapOn: "Show roots" | |
| - tapOn: "sdk_gphone64_x86_64" | |
| - scrollUntilVisible: | |
| element: | |
| text: "Certificate.cer" | |
| direction: DOWN | |
| - tapOn: "Certificate.cer" | |
| - back | |
| - assertVisible: "Trusted credentials" | |
| - tapOn: "Trusted credentials" | |
| - tapOn: "USER" | |
| - assertVisible: *Inc. | |
| - stopRecording |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment