summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Bookatz <bookatz@google.com>2020-02-05 12:13:40 -0800
committerAdam Bookatz <bookatz@google.com>2020-02-25 17:09:48 +0000
commit38767932a2a548fdf2e53f88a438d260ff85ade9 (patch)
treed9adff033c6c6f2003beb137df32fd0f03803b01 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcb2d2ec786140c9ff001868308d5ffb1c0456d2a (diff)
Atom for when fgs accesses appop
statsd logs when an sensitive appop is accessed while a foreground service is held. These appops include OP_FINE_LOCATION OP_COARSE_LOCATION OP_RECORD_AUDIO OP_CAMERA It logs the number of times each of these appops is requested per session during which the uid holds any foreground service. Appops requested while the app's process state is TOP are ignored. Also, the pre-existing ForegroundServiceStateChanged atom has an additional field that logs whether the fgs is considered 'in-use' in the context of being allowed while-in-use permissions. Bug: 149497535 Test: atest UidAtomTests#testForegroundServiceState UidAtomTests#testForegroundServiceAccessAppOp Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd : {" | egrep '\((60|256)\)' Change-Id: I991a427dc2ab00399188b10b266ab2d9aa92696d Merged-In: I991a427dc2ab00399188b10b266ab2d9aa92696d (cherry picked from commit 0c8637c06766828b524c56c538f342931ea72d98)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions