Scenario.
Settings application’s interface, pulling up Dialer’s interface reports an error.
Error Messages:
//Fail log:Settings->ApnEditorActivity
01-11 16:46:07.938 1044 6380 W ActivityTaskManager: Permission Denial: package=com.android.settings does not belong to uid=1001
//Pass log: Settings->ApnSettingsActivity
01-11 16:46:03.997 1044 1694 I ActivityTaskManager: START u0 {act=android.intent.action.CALL_BUTTON flg=0x10000000 cmp=com.android.dialer/.app.DialpadActivity} from uid 1000
UI corresponding process configuration
<!--AndroidManifest.xml-->
<activity android:name="Settings$ApnEditorActivity"
android:process="com.android.phone">
Cause analysis:
UI on COM android. Settings, Android: process = “com. Android. Phone” is configured, and they are in different processes.
Source code reference: XRef:/packages/apps/settings/androidmanifest xml (revision 939136b)
<!--xref: /packages/apps/Settings/AndroidManifest.xml (revision 939136b3)-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
package="com.android.settings"
coreApp="true"
android:sharedUserId="android.uid.system">
The settings application is in system and the phone belongs to radio
adb shell
top # Check the progress
// top
PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS
6558 system 20 0 1.0G 137M 110M S 0.0 15.6 0:06.92 com.android.settings
6138 radio 20 0 1.1G 113M 98M S 0.3 12.9 1:19.43 com.android.phone
Solution:
According to the log ActivityTaskManager: Permission Denial: package=com.android.settings does not belong to uid=1001, it should be a package and process mismatch. Remove the configuration of android:process=”com.android.phone”.
Read More:
- [Solved] XxlJob Error: XxlJobFileAppender [101] -| Permission denied
- [Solved] Rocketmq Root Account Startup Error: Permission denied
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- Customize the jump address after Shiro logout
- Kotlin activity Startup and Compile Error [How to Solve]
- [Solved] fragment error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}…
- Android activity Fail to Switch to androidx AppCompatActivity Error
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- [Solved] java.security.AccessControlException: Access Denied Error
- CreateProcess error = 5, access denied. [How to Solve]
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- Redis: DENIED Redis is running in protected mode [How to Solve]
- [Solved] failed on connection exception: java.net.ConnectException: Connection denied
- [Solved] socket failed: EPERM (Operation not permitted)
- [Solved] android Execution failed for task ‘:app:processDebugManifest‘
- Android studio compilation failed: java.util.concurrent.ExecutionException: com.android.ide.common.process.Process
- Android startup page (solve the problem of starting black and white screen)
- How to Solve SSM JSON Chinese Messy Code Issue
- Continuous Error 404 in servlet operation [How to Solve]
- Spring Error: Transaction synchronization is not active