Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0818b031 authored by Wenhao Wang's avatar Wenhao Wang Committed by Android (Google) Code Review
Browse files

Merge "LogcatManagerService: Update AIDL file"

parents a602e0e7 31603e39
Loading
Loading
Loading
Loading
+45 −1
Original line number Diff line number Diff line
@@ -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);
}