diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index f31130f8645d7..ab2cf86fab299 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -551,6 +551,20 @@ public class Binder implements IBinder { return false; } + /** + * Resolves a transaction code to a human readable name. + * + *
Default implementation is a stub that returns null. + *
AIDL generated code will return the original method name. + * + * @param transactionCode The code to resolve. + * @return A human readable name. + * @hide + */ + public @Nullable String getTransactionName(int transactionCode) { + return null; + } + /** * Implemented to call the more convenient version * {@link #dump(FileDescriptor, PrintWriter, String[])}.