OSDN Git Service

[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivit...
authorBryan Ferris <bferris@google.com>
Tue, 21 May 2019 19:38:19 +0000 (12:38 -0700)
committerBryan Ferris <bferris@google.com>
Tue, 25 Jun 2019 22:43:47 +0000 (22:43 +0000)
commitbab818fd4cfc3bd0138ce5180e32a5087b4e0280
tree9943c774564fca666722a8b7be90a25feebaa8b1
parentf951ac19a8a82882f515be187c269a9e32c1e428
[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

Previously startActivity would assume that the system was the calling user when
startActivityInPackage was called. Now the uid of the calling application is
forwarded by the system.

Test: manual; we added logging statements to check the value of realCallingUid
when launching the calendar app from the calendar widget and verified that it
was the calendar uid rather than the system uid.

Bug: 123013720
Change-Id: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e
Merged-In: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStarter.java