Check the return values after updating Recoverable KeyStore Database.

Add exception/ logs for Database failures.
Low impact updates (like setShouldCreateSnapshot) are skipped.
Downgraded some Log.wtf logs to Log.e to prevent some unlikely Framework build
crashes.
Command to enable .wtf crash: adb shell settings put global wtf_is_fatal 1

Bug: 78366791
Test: apct
Change-Id: I2e6fd22602024cedb9f16ca68175a1c614b915e9
6 files changed