summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-07-23 21:22:18 +0000
committerSteven Moreland <smoreland@google.com>2020-07-24 18:12:19 +0000
commita7fb8cb669bf9d889d55c25564e8af2dc2f3400d (patch)
tree7725bb55ebdb6beef5645a46adb71e0baaeda4da /core/java/android
parent83cbf59a7037698c250959f856be720d95b8a479 (diff)
Allow module libs to use VINTF AIDL.
Currently a native APEX can get and use a VINTF AIDL. However, this can't be passed over JNI to be used by Java code. This does not open VINTF AIDLs to any type of apps, where AIDL as an API is completely disallowed. Also, no Java ServiceManager APIs are available, and they couldn't be until b/139325468 is fixed. Bug: 161501127 Test: atest binderVendorDoubleLoadTest Change-Id: I1ab977248b1c39a7d08e0ca34389a7ba168c05b0 Merged-In: I1ab977248b1c39a7d08e0ca34389a7ba168c05b0
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/Binder.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index f2cf4e3981d3..bf6284347e93 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -505,15 +505,17 @@ public class Binder implements IBinder {
/**
* Mark as being built with VINTF-level stability promise. This API should
- * only ever be invoked by the build system. It means that the interface
- * represented by this binder is guaranteed to be kept stable for several
- * years, and the build system also keeps snapshots of these APIs and
- * invokes the AIDL compiler to make sure that these snapshots are
- * backwards compatible. Instead of using this API, use an @VintfStability
- * interface.
+ * only ever be invoked by generated code from the aidl compiler. It means
+ * that the interface represented by this binder is guaranteed to be kept
+ * stable for several years, according to the VINTF compatibility lifecycle,
+ * and the build system also keeps snapshots of these APIs and invokes the
+ * AIDL compiler to make sure that these snapshots are backwards compatible.
+ * Instead of using this API, use the @VintfStability annotation on your
+ * AIDL interface.
*
* @hide
*/
+ @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final native void markVintfStability();
/**