平台签名:Android.mk 中,定义 LOCAL_CERTIFICATE := platform
system权限:AndroidManifest.xml 中声明 android:sharedUserId="android.uid.system" ,同时是平台签名
备注:ps 只能查看正在运行的进程,如果需要查看指定的app,需要先运行该app
过滤查看 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