android Selinux 之 platform

简介: android Selinux 之 platform

概念:

平台签名:Android.mk 中,定义  LOCAL_CERTIFICATE := platform

system权限:AndroidManifest.xml 中声明 android:sharedUserId="android.uid.system"  ,同时是平台签名

分类:

  1. untrusted_app 第三方app,没有Android平台签名,没有system权限
  2. platform_app 有android平台签名,没有system权限
  3. system_app 有android平台签名和system权限
  4. priv_app 没有platform签名的app(肯定没有system权限), 但Android.mk 中 LOCAL_PRIVILEGED_MODULE := true, 在priv-app 目录下的

app查看:

备注:ps 只能查看正在运行的进程,如果需要查看指定的app,需要先运行该app


查看全部app 类型  adb shell ps -Z -e


过滤查看  adb shell ps -Z -e |grep xxx  或者  adb shell ps -Z -e |findstr xxx


第一列是SContext,第二列是UID,只要UID是system的基本都是system_app

部分输出如下

u:r:radio:s0                   radio         1369   329 4392688  75764 0                   0 S com.android.phone
u:r:system_app:s0              system        1393   329 4386960  79584 0                   0 S com.android.settings
u:r:platform_app:s0:c512,c768  u0_a5         1160   329 4529276 166492 0                   0 S com.android.systemui


目录
相关文章
|
8天前
|
Android开发
Android 11 添加Service服务SELinux问题
Android 11 添加Service服务SELinux问题
62 1
|
8天前
|
Android开发
Android Service Call /dev/xxx SELinux
Android Service Call /dev/xxx SELinux
17 1
|
8天前
|
编解码 缓存 安全
Android SELinux 参数语法介绍及基础分析
Android SELinux 参数语法介绍及基础分析
15 0
|
8天前
|
编解码 监控 API
Android HAL深入探索(6): HIDL 添加SELinux 完整调试过程
Android HAL深入探索(6): HIDL 添加SELinux 完整调试过程
130 0
|
安全 Shell Linux
Android11.0(R) MTK6771 user版本关闭 SELinux
Android11.0(R) MTK6771 user版本关闭 SELinux
639 0
|
编解码 Android开发
Android SELinux Enforcing 模式下问题及解决
Android SELinux Enforcing 模式下问题及解决
615 0
|
缓存 编解码 安全
|
Android开发
【Android 逆向】selinux 进程保护 ( selinux 进程保护 | 宽容模式 Permissive | 强制模式 Enforcing )
【Android 逆向】selinux 进程保护 ( selinux 进程保护 | 宽容模式 Permissive | 强制模式 Enforcing )
430 0
【Android 逆向】selinux 进程保护 ( selinux 进程保护 | 宽容模式 Permissive | 强制模式 Enforcing )
|
前端开发 Android开发
React Native之react-native bundle --platform android --dev false --entry-file index.js --bundle失败
React Native之react-native bundle --platform android --dev false --entry-file index.js --bundle失败
128 0
|
前端开发 移动开发
RN Exception: Failed to load http://localhost:8081/index.delta?platform=android&dev=true&minify=f...
异常 React Native调试时报如下错误 Failed to load http://localhost:8081/index.delta?platform=android&dev=true&minify=false: No 'Access-Co...
2817 0