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

Commit ffa034d7 authored by Eric Laurent's avatar Eric Laurent
Browse files

ServiceUtilities: add comment on isAudioServerOrSystemServerUid()

Add reminder to also update the method of the same name in
SensorService.h when updating isAudioServerOrSystemServerUid()

Bug: 210803914
Test: make
Change-Id: I4b7f5d024de0f7c78fa88f9781f5d60e98792585
parent de8ce0ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ static inline bool isAudioServerOrRootUid(uid_t uid) {

// Used for calls that should come from system server or internal.
// Note: system server is multiprocess for multiple users.  audioserver is not.
// Note: if this method is modified, also update the same method in SensorService.h.
static inline bool isAudioServerOrSystemServerUid(uid_t uid) {
    return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER;
}