I would like to be able to get the Linux UID (user ID) of an installed Android application.

我希望能够获得已安装的Android应用程序的Linux UID(用户ID)。

Excerpt from Security and Permissions: "At install time, Android gives each package a distinct Linux user ID. The identity remains constant for the duration of the package's life on that device."

安全和权限摘录:“在安装时,Android为每个软件包提供了一个独特的Linux用户ID。在该软件包的生命周期内,该标识保持不变。”

Is there a way to retrieve this UID?

有没有办法检索这个UID?

4 个解决方案

#1


20

Use PackageManager and getApplicationInfo().

使用PackageManager和getApplicationInfo()。

更多相关文章

  1. 如何查找特定用户可执行的所有文件(不是最新的)
  2. 在linux 列出 超级用户 普通用户和 系统用户
  3. linux 用户和组操作
  4. Linux服务器权限管理实践——添加用户只访问某些文件目录
  5. 在Linux中使用PAM进行身份验证为什么它可能无法从某些用户运行?
  6. Ubuntu 安装XAMPP集成环境软件包 与 运行WordPress 的简单方法
  7. 关于使用samba用户的权限设置
  8. Shell脚本创建linux用户帐户但密码出错
  9. Linux 批量添加和删除用户

随机推荐

  1. VS2019学生版的下载安装并使用
  2. java 读取 application配置文件
  3. Centos8基础,Yum软件包管理
  4. 知乎千赞回答 | 为什么自学python看不进
  5. 一不小心,我爬取了100万条微博评论
  6. 15款好用到爆炸的Jupyter Lab插件
  7. Python地图可视化三大秘密武器
  8. 50个关于IPython的使用技巧,get起来!
  9. 类比MySQL,学习Tableau
  10. 关于虚拟机磁盘格式互转及合并,自带工具VM