summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author rambowang <rambowang@google.com> 2024-10-11 14:16:49 -0500
committer rambowang <rambowang@google.com> 2024-10-11 14:16:49 -0500
commit29a6bb7fdb3e4cc32ef9931317e06b07c3047dd1 (patch)
tree3df2b3d8c76aac954c600e97f674387847ef4578 /libs/androidfw/ResourceTimer.cpp
parente8b7d81f1e292d1c1595be80df693083238b161c (diff)
Introduce utility method SubscripitonManager.canManageSubscriptionAsUser
SubscriptionManager.canManageSubscription always uses the user context created from SubscriptionManager to query packages. It is usually the system user in phone process services. When the carrier app is installed on secondary users (e.g. main user in HSUM) only, the query will fail. The new utility method allows phone process components to query packages as designed user and avoid duplicated logic in services side. Bug: 371452139 Test: FrameworksTelephonyTests Flag: com.android.internal.telephony.flags.hsum_package_manager Change-Id: Icc1376744de356e2bb3dcf2e7bf68d89b97c16ad
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions