Log certificate-related events

Conditionally log more information about certificates being installed,
removed and used.

This should help troubleshoot certificate issues in customer
environments, which the team had to do on multiple occasions.

Bug: 157537365
Test: adb shell setprop log.tag.KeyChain DEBUG ; atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
Change-Id: I33066b8e13938219be7827888594f989d9eef32e
Merged-In: I33066b8e13938219be7827888594f989d9eef32e
2 files changed