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

Commit f9a46bc2 authored by Steven Ng's avatar Steven Ng
Browse files

Fix calling identity ID in AppWidgetServiceImpl

Test: cts-tradefed run cts-instant -m CtsAppWidgetTestCases
Fix: 189811675
Change-Id: If584ba9ffdafa2e372a6fee25448b07662ffa681
parent 3ff294cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3705,7 +3705,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
                final String[] uidPackages = mPackageManager.getPackagesForUid(callingUid);
                final String[] uidPackages = mPackageManager.getPackagesForUid(callingUid);
                if (!ArrayUtils.isEmpty(uidPackages)) {
                if (!ArrayUtils.isEmpty(uidPackages)) {
                    return mPackageManager.isInstantApp(uidPackages[0],
                    return mPackageManager.isInstantApp(uidPackages[0],
                            UserHandle.getCallingUserId());
                            UserHandle.getUserId(callingUid));
                }
                }
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                /* ignore - same process */
                /* ignore - same process */