【问题标题】:Does the Android operating system have files like /etc/passwd, /etc/shadow, and /etc/group?Android 操作系统是否有 /etc/passwd、/etc/shadow 和 /etc/group 等文件?
【发布时间】:2011-02-28 16:04:23
【问题描述】:

如果不是,android如何判断用户是否属于某个组?

【问题讨论】:

标签: android shadow passwd


【解决方案1】:

这个帖子讨论了如何做到这一点:http://groups.google.com/group/android-ndk/browse_thread/thread/adddb27c1a5438e9

虽然它包含到 git 存储库的断开链接,但您可以在 https://android.googlesource.com/platform/system/core.git/+/master/include/private/android_filesystem_config.h 中找到名称和 ID 列表。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多