commit | 9ac468fc359a1b548455c35f9b85919968b2d5b6 | [log] [tgz] |
---|---|---|
author | Zhen Zhang <zzhen@google.com> | Thu Apr 29 15:50:25 2021 -0700 |
committer | Zhen Zhang <zzhen@google.com> | Thu Apr 29 16:58:56 2021 -0700 |
tree | c33de96cf2c5863c0b152d0399f417e79bdac7ca | |
parent | 41a4d6741eb05226994250fb9a0022b26a0ceb06 [diff] |
Clear calling identity before calling into AMS Clear calling identity before calling into AMS in unhibernatePackageForUser() to make sure we are calling as system user and avoid security exception Bug: 186701008 Test: built and flashed to wembley device, then run adb shell cmd app_hibernation set-state PACKAGE_NAME false. No exceptions found. Test: atest AppHibernationServiceTest Change-Id: Icf0c72b85f4c611c84129a6fb9425f4344b4681b