Fix calling identity ID in AppWidgetServiceImpl
Test: cts-tradefed run cts-instant -m CtsAppWidgetTestCases Fix: 189811675 Change-Id: If584ba9ffdafa2e372a6fee25448b07662ffa681
This commit is contained in:
@@ -3705,7 +3705,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
|
||||
final String[] uidPackages = mPackageManager.getPackagesForUid(callingUid);
|
||||
if (!ArrayUtils.isEmpty(uidPackages)) {
|
||||
return mPackageManager.isInstantApp(uidPackages[0],
|
||||
UserHandle.getCallingUserId());
|
||||
UserHandle.getUserId(callingUid));
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
/* ignore - same process */
|
||||
|
||||
Reference in New Issue
Block a user