Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8caa16cb authored by Grace Jia's avatar Grace Jia
Browse files

Fix IllegalStateException when creating context for work profile.

Currently, when we trying to create the work profile context to check
necessary permissions, we'll encounter IllegalStateException due to
com.android.phone won't be installed for secondary user. Change to use
AppOpsManager#checkPackage instead to check calling package to avoid
this exception.

Bug: 258316639
Test: atest PhoneSubInfoControllerTest, manually tested on device by
starting google play store in work profile
Change-Id: I57ccf58b285df10126fafb4945df144ad251b99d
parent ede5d6ad
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