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

Commit 76976fae authored by Jae Seo's avatar Jae Seo
Browse files

TIF: Build the list of available TV inputs as the current user

Bug: 21313985
Change-Id: I8aa881570915d14d63e4ac0b8034044f8736443b
parent eff64986
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -288,9 +288,10 @@ public final class TvInputManagerService extends SystemService {

        if (DEBUG) Slog.d(TAG, "buildTvInputList");
        PackageManager pm = mContext.getPackageManager();
        List<ResolveInfo> services = pm.queryIntentServices(
        List<ResolveInfo> services = pm.queryIntentServicesAsUser(
                new Intent(TvInputService.SERVICE_INTERFACE),
                PackageManager.GET_SERVICES | PackageManager.GET_META_DATA);
                PackageManager.GET_SERVICES | PackageManager.GET_META_DATA,
                userId);
        List<TvInputInfo> inputList = new ArrayList<TvInputInfo>();
        for (ResolveInfo ri : services) {
            ServiceInfo si = ri.serviceInfo;