Search code examples
androidadb

How to get list of all user CA certificates installed in an Android Device?


Need to get a list of all the user CA certificates installed on the device. We can get System certs by running

adb shell cat /system/etc/security/cacerts/* | grep Issuer:

Is there a similar way to get user certs as well. If it is not possible, can we alteast open the Activity which shows the install CA certs in the device.


Solution

  • The activity which shows user added certificates is com.android.settings.TRUSTED_CREDENTIALS_USER.

    The certificates are stored in the /data/misc/keychain/cacerts-added folder