[core] Extend modules' scope for themselves to all users
This commit is contained in:
parent
9d417fa6cf
commit
3600359b33
|
|
@ -414,8 +414,16 @@ public class ConfigManager {
|
||||||
obsoletePackages.add(app);
|
obsoletePackages.add(app);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (ProcessScope processScope : processesScope)
|
for (ProcessScope processScope : processesScope) {
|
||||||
cachedScope.computeIfAbsent(processScope, ignored -> new HashMap<>()).put(module_pkg, apk_path);
|
cachedScope.computeIfAbsent(processScope, ignored -> new HashMap<>()).put(module_pkg, apk_path);
|
||||||
|
if (module_pkg.equals(app.packageName)) {
|
||||||
|
var appId = processScope.uid % PER_USER_RANGE;
|
||||||
|
for (var user : UserService.getUsers()) {
|
||||||
|
cachedScope.computeIfAbsent(new ProcessScope(processScope.processName, user * PER_USER_RANGE + appId),
|
||||||
|
ignored -> new HashMap<>()).put(module_pkg, apk_path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, Log.getStackTraceString(e));
|
Log.e(TAG, Log.getStackTraceString(e));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue