diff options
| author | 2022-02-16 11:57:41 -0800 | |
|---|---|---|
| committer | 2022-02-16 12:14:51 -0800 | |
| commit | 31603e398fe938ecede1365f3d2b5eb7c5ec4c42 (patch) | |
| tree | 57f76492807547acaa5bd06f84137fdbd9d1e536 | |
| parent | 6448d2470e96a4e9950109ecf074b7bef6a0f1f1 (diff) | |
LogcatManagerService: Update AIDL file
1. add comments
2. add "oneway" modifier.
Bug: 197901557
Test: manually
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: I7a0217d76183ebc7609ab776cc8b8dcc1cd0d2ee
| -rw-r--r-- | core/java/android/os/logcat/ILogcatManagerService.aidl | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/core/java/android/os/logcat/ILogcatManagerService.aidl b/core/java/android/os/logcat/ILogcatManagerService.aidl index 02db2749bbe8..29b4570ac71e 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); } |