diff --git a/core/java/android/os/logcat/ILogcatManagerService.aidl b/core/java/android/os/logcat/ILogcatManagerService.aidl index 02db2749bbe8a..29b4570ac71ed 100644 --- a/core/java/android/os/logcat/ILogcatManagerService.aidl +++ b/core/java/android/os/logcat/ILogcatManagerService.aidl @@ -19,10 +19,54 @@ package android.os.logcat; /** * @hide */ -interface ILogcatManagerService { +oneway interface ILogcatManagerService { + /** + * The function is called by logd to notify LogcatManagerService + * that a client makes privileged log data access request. + * + * @param uid The UID of client who makes the request. + * @param gid The GID of client who makes the request. + * @param pid The PID of client who makes the request. + * @param fd The FD (Socket) of client who makes the request. + */ void startThread(in int uid, in int gid, in int pid, in int fd); + + + /** + * The function is called by logd to notify LogcatManagerService + * that a client finished the privileged log data access. + * + * @param uid The UID of client who makes the request. + * @param gid The GID of client who makes the request. + * @param pid The PID of client who makes the request. + * @param fd The FD (Socket) of client who makes the request. + */ void finishThread(in int uid, in int gid, in int pid, in int fd); + + + /** + * The function is called by UX component to notify + * LogcatManagerService that the user approved + * the privileged log data access. + * + * @param uid The UID of client who makes the request. + * @param gid The GID of client who makes the request. + * @param pid The PID of client who makes the request. + * @param fd The FD (Socket) of client who makes the request. + */ void approve(in int uid, in int gid, in int pid, in int fd); + + + /** + * The function is called by UX component to notify + * LogcatManagerService that the user declined + * the privileged log data access. + * + * @param uid The UID of client who makes the request. + * @param gid The GID of client who makes the request. + * @param pid The PID of client who makes the request. + * @param fd The FD (Socket) of client who makes the request. + */ void decline(in int uid, in int gid, in int pid, in int fd); }