OSDN Git Service

DO NOT MERGE Restore calling identity before checking permission
authorTodd Kennedy <toddke@google.com>
Wed, 14 Jan 2015 23:25:13 +0000 (15:25 -0800)
committerTodd Kennedy <toddke@google.com>
Wed, 14 Jan 2015 23:33:21 +0000 (15:33 -0800)
commit7dba93c0874a96ddeb617c93ad2ca454626acd34
tree204c2e5793bb3102d1902a08bb3fd8e4c4cf92d6
parent1c2b0d52144dc94a7d1dcefb7e4fbd7fb29f5202
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/ActivityStack.java