Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fee45aa4 authored by atrost's avatar atrost
Browse files

Move IPlatformCompat.aidl definition to framework.jar

There are non-app process usecases in framework code that need to have
access to this API.
Created a new package android.compat in frameworks/base/core following
previous definition of android.compat.Compatibility for app processes
(http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java).

Bug: 137769727
Test: m
Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
parent c64c204f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -342,6 +342,7 @@ java_defaults {
        "core/java/android/companion/ICompanionDeviceDiscoveryService.aidl",
        "core/java/android/companion/ICompanionDeviceDiscoveryServiceCallback.aidl",
        "core/java/android/companion/IFindDeviceCallback.aidl",
        "core/java/android/compat/IPlatformCompat.aidl",
        "core/java/android/service/dreams/IDreamManager.aidl",
        "core/java/android/service/dreams/IDreamService.aidl",
        "core/java/android/service/oemlock/IOemLockService.aidl",
+6 −2
Original line number Diff line number Diff line
@@ -14,12 +14,16 @@
 * limitations under the License.
 */

package com.android.server.compat;
package android.compat;

import android.content.pm.ApplicationInfo;

/**
 * System private API for talking with the PlatformCompat service.
 * Platform private API for talking with the PlatformCompat service.
 *
 * <p> Should be used for gating and logging from non-app processes.
 * For app processes please use android.compat.Compatibility API.
 *
 * {@hide}
 */
interface IPlatformCompat
+0 −9
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ java_library_static {
    },
    srcs: [
        "java/**/*.java",
        ":platformcompat_aidl",
        ":dumpstate_aidl",
        ":idmap2_aidl",
        ":installd_aidl",
@@ -82,11 +81,3 @@ prebuilt_etc {
    name: "gps_debug.conf",
    src: "java/com/android/server/location/gps_debug.conf",
}

filegroup {
    name: "platformcompat_aidl",
    srcs: [
        "java/com/android/server/compat/IPlatformCompat.aidl",
    ],
    path: "java",
}
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.server.compat;

import android.compat.IPlatformCompat;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.util.Slog;