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

Skip to content
Commit 551a15b0 authored by rambowang's avatar rambowang Committed by Rambo Wang
Browse files

Support SubscriptionManager.canManagerSubscription for HSUM

SM.canManageSubscription depends on the user context created from the
SubscriptionManager object to query packages. The user context was
system user within EuiccController and SubscriptionManagerService and
thus only system user was supported.

The change supports secondary users (e.g. Main User in HSUM) by creating
a current user context before getting the SubscriptionManager object.

Bug: 371452139
Test: atest SubscriptionManagerTest FrameworksTelephonyTests
Flag: com.android.internal.telephony.flags.hsum_package_manager
Change-Id: I53a16b108a715e7f5e8528e7671be4be1cd0a69f
parent 25733b2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment