android - Android系统的GID/UID是什么?

标签 android c linux uid

如何识别与文件关联的特定组的编号(整数值)?

ls -l
drwxr-x--x root     system              2014-11-26 10:59 xyz

我已经设法检查 root 的组 id 是否为 0系统对应的number of group id是多少?

我需要将我的文件组更改为系统。我如何使用 chown 来做到这一点? gid_t 内部是 int 类型。那么我应该传递什么值来让它成为系统呢?我怎么知道?

最佳答案

在 adb shell

su 1000

因为 1000 是系统 uid

id

返回

uid=1000(system) gid=1000(system)

所以系统的 gid 也是 1000

关于android - Android系统的GID/UID是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27167457/

相关文章:

c - MPI 超额认购

linux - 自动杀死进程 - linux

android - 在android中点击通知进入我的应用

HackerRank 网站中的 Clang 问题 "Small Triangles, Large Triangles"

android - 它与 emdebian 和 android 二进制兼容吗?

c - 从随机 id 中检索元素的最佳算法

linux - linux 中的 sem_post sem_wait 函数

c - 我如何检测目录何时使用 inotify 挂载?

android - 是否可以映射按钮和/或系统事件来启动 android 应用程序?

java - android.content.res.Resources$NotFoundException : String resource ID #0x1