OSDN Git Service

DO NOT MERGE Restore calling identity before checking permission
authorTodd Kennedy <toddke@google.com>
Wed, 14 Jan 2015 23:40:46 +0000 (15:40 -0800)
committerTodd Kennedy <toddke@google.com>
Wed, 14 Jan 2015 23:40:46 +0000 (15:40 -0800)
commit8719f683d2e601501487c03cc5866b29925ddc0b
tree912b8a04b3a3bfd5d00fe50e30ddc3fb86bd4e02
parentced2f74ac170439231f189e31538b9f403909966
DO NOT MERGE Restore calling identity before checking permission

Using the system service identity to check the CHANGE_CONFIGURATION
permission isn't likely to catch a security violation. Changing
back to the original caller and then checking permissions is
preferred.

Cherry picked from lmp. Fixes bug 15989465.

Change-Id: Iff08d04422bcc052a487194154f1fd0d727d38f4
services/java/com/android/server/am/ActivityStackSupervisor.java