mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
ContentProvider: don't start content providers which are supposed to be started as separate processes
This commit is contained in:
parent
ebbbc517a8
commit
ea45182cca
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,14 @@ public abstract class ContentProvider {
|
||||||
|
|
||||||
static void createContentProviders() {
|
static void createContentProviders() {
|
||||||
for (PackageParser.Provider provider_parsed : Context.pkg.providers) {
|
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 {
|
try {
|
||||||
String providerName = provider_parsed.className;
|
String providerName = provider_parsed.className;
|
||||||
System.out.println("creating " + providerName);
|
System.out.println("creating " + providerName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue