Skip to content
Commit 9ac468fc authored by Zhen Zhang's avatar Zhen Zhang
Browse files

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
parent 41a4d674
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment