summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Chris Göllner <chrisgollner@google.com> 2023-10-23 10:49:19 +0100
committer Chris Göllner <chrisgollner@google.com> 2023-10-23 10:05:53 +0000
commite41e441ed0831ee3f36bc633519aa757ff4ddd72 (patch)
tree9cc304384a94285c3f39f9c6f47662d96661ed29 /libs/androidfw/FileStream.cpp
parent794b62532f38a1895ec25ad41aac59e4bdbf51e4 (diff)
[Media Projection] Fix LAST_ACTIVE_SESSION having the wrong timestamp
It can happen that stop is called before the session was initiated, when apps wrongly reuse the token. The fix here is to only register the last active session, when there actually was an active session ongoing. Test: atest FrameworksServicesTests:MediaProjectionMetricsLoggerTest Fixes: 307223500 Change-Id: I1dc5a08fd6d7e0d9cc42c7c7ce7b33284309b7c5
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions