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

Commit ffb1ffdd authored by Mayank Garg's avatar Mayank Garg
Browse files

Added DISABLED flag to users flag for HAL

Bug: 158681378
Test: m (successful build)
Change-Id: I46af767c2cb4716bfbe45f51f59f9c670d6c0a0b
parent ad15d6c0
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -4280,6 +4280,16 @@ enum UserFlags: int32_t {
     * Admin users have additional privileges such as permission to create other users.
     */
    ADMIN = 0x08,

    /**
     * Disabled users are marked for deletion.
     */
    DISABLED = 0x10,

     /**
     * Profile user is a profile of another user.
     */
    PROFILE = 0x20,
};

/**
@@ -4294,10 +4304,16 @@ struct UsersInfo {
    /** The current foreground user. */
    UserInfo currentUser;

    /** Number of existing users (includes the current user). */
    /**
     * Number of existing users; includes the current user, recently removed users (with DISABLED
     * flag), and profile users (with PROFILE flag).
     */
    int32_t numberUsers;

    /** List of existing users (includes the current user). */
    /**
     * List of existing users; includes the current user, recently removed users (with DISABLED
     * flag), and profile users (with PROFILE flag).
     */
    vec<UserInfo> existingUsers;
 };