diff options
author | Wei Wang <weiwa@google.com> | 2019-03-28 18:12:18 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2019-04-04 20:22:05 +0000 |
commit | e1f864e5448d6906d1c27c3c913ab06c082b6fd4 (patch) | |
tree | 2ada679aa7507089088c1f579dd39068c98ad7d4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | dd07ae579c291a2b6ffe09bd576fd908eb9e5ddd (diff) |
DO NOT MERGE: Fix a few issues with foreground service location accesses.
Location access should be allowed only when the UID state is higher than
UID_STATE_FOREGROUND_SERVICE_LOCATION. UID_STATE_FOREGROUND_SERVICE
should not have location access.
Also fixed an issue where MONITOR_LOCATION is allowed for location access
from foreground services.
Since UID_STATE_FOREGROUND_SERVICE is considered as background for
location, and foreground for other ops, we cannot simply use UID state
to check the foreground status of an app. Instead, the uid_state <-> op
pair needs to be evaluated together.
Bug: 128520624
Test: Manually run GNSS logger app to verify
Change-Id: I9413e9c6009e38e3d9db57a02e8f0a275119b063
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions