From 04a6a74682c81bf7e6139a827833bd7de8649cfd Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 25 Oct 2022 00:20:36 +0000 Subject: [PATCH] markVintfStability for priv-apps Any AIDL interface that has @VintfStabilty should be able to be used everywhere. Bug: 254476191 Test: aidl_integration_test Change-Id: I3138a6e4dbfdfb972d87e7c4eb9b591be40b6d39 --- core/api/module-lib-current.txt | 4 ---- core/api/system-current.txt | 1 + core/java/android/os/Binder.java | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index d3fc379edf731..563ab8149bd18 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -300,10 +300,6 @@ package android.os { method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void reportNetworkInterfaceForTransports(@NonNull String, @NonNull int[]) throws java.lang.RuntimeException; } - public class Binder implements android.os.IBinder { - method public final void markVintfStability(); - } - public class BluetoothServiceManager { method @NonNull public android.os.BluetoothServiceManager.ServiceRegisterer getBluetoothManagerServiceRegisterer(); } diff --git a/core/api/system-current.txt b/core/api/system-current.txt index bb14dc008a574..e6555ddfa0cf3 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -9239,6 +9239,7 @@ package android.os { public class Binder implements android.os.IBinder { method public int handleShellCommand(@NonNull android.os.ParcelFileDescriptor, @NonNull android.os.ParcelFileDescriptor, @NonNull android.os.ParcelFileDescriptor, @NonNull String[]); + method public final void markVintfStability(); method public static void setProxyTransactListener(@Nullable android.os.Binder.ProxyTransactListener); } diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index 2f4b2c411c1d6..da18e19d6812d 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -562,7 +562,7 @@ public class Binder implements IBinder { * * @hide */ - @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) + @SystemApi(client = SystemApi.Client.PRIVILEGED_APPS) public final native void markVintfStability(); /**