Skip to content
Snippets Groups Projects
Commit b18da3ca 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 161814ff
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,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",
......
......@@ -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
......
......@@ -12,7 +12,6 @@ java_library_static {
},
srcs: [
"java/**/*.java",
":platformcompat_aidl",
":dumpstate_aidl",
":installd_aidl",
":storaged_aidl",
......@@ -79,12 +78,4 @@ java_library {
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",
}
\ No newline at end of file
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment