How com.android.phone run in radio UID

http://androidxref.com/7.0.0_r1/xref/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java#2236

If your phone app signed with the same key as /system/framework/framework-res.apk and setting share uid in AndroidManifest.xml, then your phone app will run at radio uid

mSettings.addSharedUserLPw("android.uid.system", Process.SYSTEM_UID,
ApplicationInfo.FLAG_SYSTEM, ApplicationInfo.PRIVATE_FLAG_PRIVILEGED);

 

 

AndroidManifest.xml as below

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.providers.telephony"
coreApp="true"
android:sharedUserId="android.uid.phone">

發表留言