summaryrefslogtreecommitdiff
path: root/services/java/com/android
diff options
context:
space:
mode:
authorAndrei Onea <andreionea@google.com>2019-07-17 19:03:10 +0100
committerAndrei-Valentin Onea <andreionea@google.com>2019-07-25 10:58:53 +0000
commitdf301b88872d00794cb3e7320ce664bf610fed96 (patch)
tree6e88e895285e9d00c8df23e1a3ffcaef6930d9a3 /services/java/com/android
parent121bafc53ea68dae5972c01ecccb2938fe594e5e (diff)
Make PlatformCompat a Binder class
This allows PlatformCompat to be called from anywhere in the platform. In follow-up CLs, we'll define permissions for each method and/or filtering rules to prevent abuse from apps. Test: m Bug: 137769727 Change-Id: I19e5fbfefcf59e0b53b197ea8e9e3cb78439b4c4 Merged-In: I19e5fbfefcf59e0b53b197ea8e9e3cb78439b4c4
Diffstat (limited to 'services/java/com/android')
-rw-r--r--services/java/com/android/server/SystemServer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index d99f3e4ef53e..1919f505f40a 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -87,6 +87,7 @@ import com.android.server.biometrics.iris.IrisService;
import com.android.server.broadcastradio.BroadcastRadioService;
import com.android.server.camera.CameraServiceProxy;
import com.android.server.clipboard.ClipboardService;
+import com.android.server.compat.PlatformCompat;
import com.android.server.connectivity.IpConnectivityMetrics;
import com.android.server.contentcapture.ContentCaptureManagerInternal;
import com.android.server.coverage.CoverageService;
@@ -1089,6 +1090,11 @@ public final class SystemServer {
traceBeginAndSlog("SignedConfigService");
SignedConfigService.registerUpdateReceiver(mSystemContext);
traceEnd();
+
+ traceBeginAndSlog("PlatformCompat");
+ ServiceManager.addService("platform_compat", new PlatformCompat(context));
+ traceEnd();
+
} catch (RuntimeException e) {
Slog.e("System", "******************************************");
Slog.e("System", "************ Failure starting core service", e);