From 38cb94d32affa11bb4d4bb6abead8e0821c72580 Mon Sep 17 00:00:00 2001 From: Yu-Ting Tseng Date: Tue, 21 Nov 2023 09:32:33 -0800 Subject: [PATCH] Add AID_UPROBESTATS and set up its config dir. Test: m, flash and reboot Bug: 296108553 Change-Id: Ied5e688db8e93874ad66610c4d98c39d892d268b --- libcutils/include/private/android_filesystem_config.h | 1 + rootdir/init.rc | 1 + 2 files changed, 2 insertions(+) diff --git a/libcutils/include/private/android_filesystem_config.h b/libcutils/include/private/android_filesystem_config.h index 1e035bbca..8c6e54866 100644 --- a/libcutils/include/private/android_filesystem_config.h +++ b/libcutils/include/private/android_filesystem_config.h @@ -141,6 +141,7 @@ #define AID_SDK_SANDBOX 1090 /* SDK sandbox virtual UID */ #define AID_SECURITY_LOG_WRITER 1091 /* write to security log */ #define AID_PRNG_SEEDER 1092 /* PRNG seeder daemon */ +#define AID_UPROBESTATS 1093 /* uid for uprobestats */ /* Changes to this file must be made in AOSP, *not* in internal branches. */ #define AID_SHELL 2000 /* adb and debug shell user */ diff --git a/rootdir/init.rc b/rootdir/init.rc index fb6473666..b45505816 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -808,6 +808,7 @@ on post-fs-data mkdir /data/misc/apexdata 0711 root root mkdir /data/misc/apexrollback 0700 root root mkdir /data/misc/appcompat/ 0700 system system + mkdir /data/misc/uprobestats-configs/ 0777 uprobestats uprobestats mkdir /data/misc/snapshotctl_log 0755 root root # create location to store pre-reboot information mkdir /data/misc/prereboot 0700 system system