diff options
author | Zhen Zhang <zzhen@google.com> | 2021-04-29 15:50:25 -0700 |
---|---|---|
committer | Zhen Zhang <zzhen@google.com> | 2021-04-29 16:58:56 -0700 |
commit | 9ac468fc359a1b548455c35f9b85919968b2d5b6 (patch) | |
tree | c33de96cf2c5863c0b152d0399f417e79bdac7ca /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions