Initialize AppCompatCallbacks in system server
This ensures that any calls made (intentionally or not) in the system server using the Compatibility (in-app process) gating APIs will always return true, and log the gated feature. Bug: 143591326 Test: m Merged-In: I96792cf852f4167fc39d5055704f8617efaae25e Change-Id: I96792cf852f4167fc39d5055704f8617efaae25e
This commit is contained in:
committed by
Andrei-Valentin Onea
parent
1b90887629
commit
0611dbc7a6
@@ -24,6 +24,7 @@ import static android.view.Display.DEFAULT_DISPLAY;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.app.ActivityThread;
|
||||
import android.app.AppCompatCallbacks;
|
||||
import android.app.INotificationManager;
|
||||
import android.app.usage.UsageStatsManagerInternal;
|
||||
import android.content.ComponentName;
|
||||
@@ -644,6 +645,7 @@ public final class SystemServer {
|
||||
ServiceManager.addService(Context.PLATFORM_COMPAT_SERVICE, platformCompat);
|
||||
ServiceManager.addService(Context.PLATFORM_COMPAT_NATIVE_SERVICE,
|
||||
new PlatformCompatNative(platformCompat));
|
||||
AppCompatCallbacks.install(new long[0]);
|
||||
traceEnd();
|
||||
|
||||
// Wait for installd to finish starting up so that it has a chance to
|
||||
|
||||
Reference in New Issue
Block a user