[Xperia Z1 Compact Android Development] munjeni:
I'm folowing readme file in system/core about android_filesystem_config.h and I have implemented this into devicetree:

android_filesystem_config.h:

#include <private/android_filesystem_config.h>

[COLOR="Red"]#define AID_IDD 2987	/* SONY idd */
#define AID_UPDATEMISCTA 2991	/* SONY updatemiscta */
#define AID_TRIMAREA 2993	/* SONY trimarea */
#define AID_CREDMGR_CLIENT 2996	/* SONY credmgr_client */
#define AID_TAD 2997	/* SONY tad */
#define AID_TA_QMI 2998	/* SONY ta_qmi */[/COLOR]

static const struct fs_path_config android_device_dirs[] = {
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "firmware" },
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "bt_firmware" },
{ 00771, AID_MEDIA, AID_MEDIA, 0, "dsp" },
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "persist" },
{ 00755, AID_ROOT, AID_SHELL, 0, "vendor" },
};

/* Rules for files.
** These rules are applied based on "first match", so they
** should start with the most specific path and work their
** way up to the root. Prefixes ending in * denotes wildcard
** and will allow partial matches.
*/
static const struct fs_path_config android_device_files[] = {
{ 00700, AID_RADIO, AID_SHELL, (1ULL << CAP_BLOCK_SUSPEND), "vendor/bin/qmuxd" },
{ 00700, AID_CAMERA, AID_SHELL, (1ULL << CAP_SYS_NICE), "vendor/bin/mm-qcamera-daemon" },
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "vendor/bin/pm-service" },
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "vendor/bin/cnss-daemon"},
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_SYS_NICE) | (1ULL << CAP_BLOCK_SUSPEND), "vendor/bin/wcnss_filter"},
{ 00755, AID_ROOT, AID_SHELL, 0, "vendor/bin/*"},
#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
{ 00000, AID_ROOT, AID_ROOT, 0, "system/etc/fs_config_dirs" },
#endif
};

and also this in BoardConfig.mk:

TARGET_ANDROID_FILESYSTEM_CONFIG_H := device/sony/amami/android_filesystem_config.h

But when I type trought adb shell something like: id credmgr_client

I'm getting unknown user credmgr_client :(

Do you guys have idea how to implement this right? How to implement these sony specific aid? On lineage 14 android ids can be defined like this: https://github.com/SuperLamic/andro...lude/private/android_filesystem_config.h#L170

but on lineage 15 android_id_info is removed and now it is:

/*
* android_ids has moved to pwd/grp functionality.
* If you need to add one, the structure is now
* auto-generated based on the AID_ constraints
* documented at the top of this header file.
* Also see build/tools/fs_config for more details.
*/

So its generated now with this:

* This file is consumed by build/tools/fs_config and is used
* for generating various files. Anything #define AID_<name>
* becomes the mapping for getpwnam/getpwuid, etc. The <name>
* field is lowercased.
* For example:
* #define AID_FOO_BAR 6666 becomes a friendly name of "foo_bar"
*
* The above holds true with the exception of:
* mediacodec
* mediaex
* mediadrm
* Whose friendly names do not match the #define statements.
*
* Additionally, AID_OEM_RESERVED_START and AID_OEM_RESERVED_END
* can be used to define reserved OEM ranges used for sanity checks
* during the build process. The rules are, they must end with START/END
* The proper convention is incrementing a number like so:
* AID_OEM_RESERVED_START
* AID_OEM_RESERVED_1_START

But it seems not functioning, I didn't get iddd, tad, updatemiscta... etc as per red part of the our post :( Do you have idea? Am I missing something for that things? For example when I chown an folder like this: chown root.2998 examplefolder, and its succed, group 2998 is sucesfully aplied, but when I list folder e.g. ls -l examplefolder group of the folder is something like oem_2998 instead of the group ta_qmi . What is going on with this?

amami:/ # id oem_2998
id oem_2998
uid=2998(oem_2998) gid=2998(oem_2998) groups=2998(oem_2998), context=u:r:su:s0

amami:/ # id ta_qmi
id ta_qmi
id: user 'ta_qmi': No such file or directory

I'm so close to get Oreo but credmgr and things cause bootloop because I'm unable to implement specific users and groups :(