From 851c9c825fc417ad7df865da262b9249e4ca9649 Mon Sep 17 00:00:00 2001 From: David Dai Date: Thu, 1 Feb 2024 14:50:50 -0800 Subject: [PATCH] Add AID for Virtual Machines Add a new AID for Virtual Machines so we can grant capabilities such as CAP_SYS_NICE. Bug: 322197421 Test: Build and boots, and verified capabilities Change-Id: Ie893ba8ed6956a554bccfbd00e4e6fe9212ea77d Signed-off-by: David Dai --- libcutils/include/private/android_filesystem_config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libcutils/include/private/android_filesystem_config.h b/libcutils/include/private/android_filesystem_config.h index 8c6e54866..ea61cc2a7 100644 --- a/libcutils/include/private/android_filesystem_config.h +++ b/libcutils/include/private/android_filesystem_config.h @@ -170,6 +170,7 @@ #define AID_WAKELOCK 3010 /* Allow system wakelock read/write access */ #define AID_UHID 3011 /* Allow read/write to /dev/uhid node */ #define AID_READTRACEFS 3012 /* Allow tracefs read */ +#define AID_VIRTUALMACHINE 3013 /* Allows VMs to tune for performance*/ /* The range 5000-5999 is also reserved for vendor partition. */ #define AID_OEM_RESERVED_2_START 5000