I’m trying to automate setting up a Trusted CA in an emulator. I know I could use

adb shell input tap

commands, but I’d rather leave that to a human. I just want to get the human as close to the

Settings -> Security & privacy -> More security & privacy -> Encryption & credentials

screen as possible. I’ve found the following intent that at least gets me to Security & privacy:

adb shell am start -a android.settings.SECURITY_SETTINGS

Are there more specialized intents to get me deeper, or how I might discover more specialized intents more generally? Can I somehow dump the AndroidManifest.xml from the Settings app?

2 Replies 2

This is what I've used as well adb shell am start 'com.android.settings/.Settings\$MoreSecurityPrivacySettingsActivity'

I used some app to inspect activities in the Settings app across my Samsung and Pixel devices and this seemed to be the highest common Activity to get into for installing a certificate

Can I somehow dump the AndroidManifest.xml from the Settings app?

To inspect a manifest of an installed app, I use this open source app.

Are there more specialized intents to get me deeper

Possibly. The details will vary by Android OS version (and, in the case of hardware, the device model).

Your Reply

By clicking “Post Your Reply”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.