EnforcePermissionFix: refactor for greater separation of concern and reuse

Move more logic for identifying/creating an instance of
EnforcePermissionFix from the related detector to the class itself.

These changes also make it easier to consume this code from experimental
projects.

This change also enables AndroidGlobalLintCheckerTest, and adds/fixes
test cases.  AndroidGlobalLintCheckerTest will now run as part of
presubmit.

Bug: 232058525
Bug: 240445172
Test: atest --host AndroidGlobalLintCheckerTest

Change-Id: Ice19df391e9a308f3d2a6ebf2b5ba2f8ad5bb00b
5 files changed