diff options
author | Wei Wang <weiwa@google.com> | 2019-03-28 18:12:18 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2019-03-29 16:44:58 +0000 |
commit | 878d0b6b2407d698f9a9daddd2e827dc7d6536a0 (patch) | |
tree | f1d518e38486d4cacf7ec874cb7a70d389f8d68c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3e14606e68d59d6d68cdd32dc56dd8b4f668850f (diff) |
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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions