Revert "Replace remaining enforceXXX methods"

This reverts commit 2cc14d046eacce9816d4e1afba081ad625080fe0.

Reason for revert: Factory reset function can not work
This was caused by the method getCallerIdentityOptionalAdmin().
When the component name is null and no active admin is found,
getCallerIdentity() should be called instead of throwing a
security exception.

Bug: 170057677
Change-Id: I46f181a5be5bf6cff7be6ea0f8965c4cd7be1f01
(cherry picked from commit 25e26d905530af917717267aff234871ab0e6e7c)
1 file changed