Merge "Add WTF when a system server wrapper can't be found" into rvc-dev am: bea34c409f

Change-Id: I046320bca3c7faa63fb296ceb36f3c0e5559e765
This commit is contained in:
Makoto Onuki
2020-04-02 20:51:09 +00:00
committed by Automerger Merge Worker
2 changed files with 43 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ import android.annotation.StringRes;
import android.app.ActivityThread;
import android.app.AppCompatCallbacks;
import android.app.INotificationManager;
import android.app.SystemServiceRegistry;
import android.app.usage.UsageStatsManagerInternal;
import android.content.ContentResolver;
import android.content.Context;
@@ -507,6 +508,8 @@ public final class SystemServer {
Looper.getMainLooper().setSlowLogThresholdMs(
SLOW_DISPATCH_THRESHOLD_MS, SLOW_DELIVERY_THRESHOLD_MS);
SystemServiceRegistry.sEnableServiceNotFoundWtf = true;
// Initialize native services.
System.loadLibrary("android_servers");