How To Delete User Installed Certificate Programmatically?
I had installed a certificate programmatically. I am able to uninstall it manually by going Settings -> Security -> Trusted Credentials -> User -> Choose the certificat
Solution 1:
Looks like that implementation of the KeyStoreSpi interface just doesn't support removal:
@Override
public void engineDeleteEntry(String alias) {
throw new UnsupportedOperationException();
}
Solution 2:
You can do this in Android 5.x with a device owner using the uninstallCaCert()
method. A device owner can be installed only before the device is provisioned though.
Post a Comment for "How To Delete User Installed Certificate Programmatically?"