0

Setting deamon user and group done on myservice.rc file:

service myservice /vendor/bin/myservice
    class core
    user system
    group system

Resulting:

adb shell ps -A | grep myservice
system         346     1   10853048  10228 0                   0 S myservice

Still:

adb shell ls -l /vendor/bin/myservice
-rwxr-xr-x 1 root shell 18088968 2025-06-12 06:18 /vendor/bin/myservice

Any advice is more than welcome

1 Answer 1

1

Resolved by setting config.fs file on device.mk
TARGET_FS_CONFIG_GEN += path/to/my_config.fs

And setting my_config.fs

[system/bin/foo_service]
mode: 0555
user: AID_VENDOR_FOO
group: AID_SYSTEM
caps: SYS_ADMIN | SYS_NICE

Reference https://source.android.com/docs/core/permissions/filesystem

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.