commit | 2c8c30ac3cbd899cefc9b963669f3a18df08b425 | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Mon Jun 01 09:48:36 2015 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Mon Jun 01 11:37:57 2015 -0700 |
tree | 3703b2396672c9410940a117757d11ed871c9e73 | |
parent | 55b4b2d5a82ef7999a32b8163340a15085b2df38 [diff] |
Allow app to stop lockTaskMode if started by manifest attribute It is possible lockTaskMode was started by the system process because android:lockTaskMode is set to a locking value in the application's manifest instead of the app calling startLockTaskMode. In this case TaskRecord.mLockTaskUid will be 0, so we compare the callingUid to the TaskRecord.effectiveUid instead so the app can exit lockTaskMode. Bug: 21464182 Change-Id: Ibca6de8e4b17051d5fcbb05cde9c8aefed7216f2