OSDN Git Service

RESTRICT AUTOMERGE: Added an app id security check in isAppForeground.
authorVarun Shah <varunshah@google.com>
Sat, 27 Oct 2018 00:03:23 +0000 (17:03 -0700)
committerAtanas Kirilov <akirilov@google.com>
Wed, 7 Nov 2018 23:37:18 +0000 (23:37 +0000)
commitad02e59ac2cd3e6180e02fd60e6dedd8177c7b6e
tree8bf51c2cc0213670b083911e02b63eb6b1f26e3d
parent77c1f6080171bd02efe84501365495e98cae0a50
RESTRICT AUTOMERGE: Added an app id security check in isAppForeground.

ActivityManagerService#isAppForeground now checks if the caller has the
permission to view if an app is in the foreground.

Bug: 115384617
Test: cts-tradefed run cts -m CtsSecurityTestCases -t android.security.cts.ActivityManagerTest#testIsAppInForegroundNormal
Test: cts-tradefed run cts -m CtsSecurityTestCases -t android.security.cts.ActivityManagerTest#testIsAppInForegroundMalicious
Change-Id: I9602c89b2d40036e525c38960a08326dc74c6682
core/java/android/os/UserHandle.java
services/core/java/com/android/server/am/ActivityManagerService.java