Merge "Filter instant apps with different names" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
adcc94f160
@@ -7207,12 +7207,15 @@ public class PackageManagerService extends IPackageManager.Stub
|
|||||||
// load resources from the correct package
|
// load resources from the correct package
|
||||||
installerInfo.resolvePackageName = info.getComponentInfo().packageName;
|
installerInfo.resolvePackageName = info.getComponentInfo().packageName;
|
||||||
resolveInfos.set(i, installerInfo);
|
resolveInfos.set(i, installerInfo);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
// caller is a full app, don't need to apply any other filtering
|
// caller is a full app, don't need to apply any other filtering
|
||||||
if (ephemeralPkgName == null) {
|
if (ephemeralPkgName == null) {
|
||||||
continue;
|
continue;
|
||||||
|
} else if (ephemeralPkgName.equals(info.activityInfo.packageName)) {
|
||||||
|
// caller is same app; don't need to apply any other filtering
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
// allow activities that have been explicitly exposed to ephemeral apps
|
// allow activities that have been explicitly exposed to ephemeral apps
|
||||||
if (!isEphemeralApp
|
if (!isEphemeralApp
|
||||||
|
|||||||
Reference in New Issue
Block a user