appops: checkOp uid mode fgd translation

checkOp (non-raw) currently evaluates the foreground mode in most cases, except if the default mode is MODE_FOREGROUND.

While this is generally not an issue, since this mode is mainly used
with runtime permissions, remove this inconsistency since we are moving
some appops to default mode MODE_FOREGROUND.

Test: CtsAppOpsTestCases
Flag: EXEMPT bugfix
Bug: 294609684
Change-Id: Ic5139358bd5b9e37871decc022cd90bb654a8424
1 file changed