ContentProvider: don't start content providers which are supposed to be started as separate processes

This commit is contained in:
Mis012 2025-03-26 20:24:17 +01:00
parent ebbbc517a8
commit ea45182cca

View file

@ -16,6 +16,14 @@ public abstract class ContentProvider {
static void createContentProviders() {
for (PackageParser.Provider provider_parsed : Context.pkg.providers) {
String process_name = provider_parsed.info.processName;
if(process_name != null && process_name.contains(":")) {
/* NOTE: even if it doesn't contain `:`, if it's not null we probably
* need to check what it's requesting; `:` means it wants us to spawn
* a new process, which we currently don't support */
System.out.println("not creating provider " + provider_parsed.className + ", it wants to be started in a new process (" + process_name + ")");
continue;
}
try {
String providerName = provider_parsed.className;
System.out.println("creating " + providerName);