Appium-desktop: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings

Created on 10 Mar 2020  Â·  19Comments  Â·  Source: appium/appium-desktop

Appium or Appium Desktop?

Please ask for help. Does anyone have this problem?

image

Error log:

[info] [Appium] Welcome to Appium v1.15.1
[info] [Appium] Non-default server args:
[info] [Appium] allowInsecure: {
[info] [Appium] }
[info] [Appium] denyInsecure: {
[info] [Appium] }
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1583809860969 (11:11:00 GMT+0800 (CST))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The 'automationName' capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the
[warn] [Appium] UiAutomator2 Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] 'automationName' capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] In previous versions (Appium <= 1.13.x), the default was
[warn] [Appium] 'automationName=UiAutomator1'
[warn] [Appium]
[warn] [Appium] If you wish to use that automation instead of UiAutomator2, please
[warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] 'Drivers' menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "appActivity": "com.tencent.mobileqq.activity.LoginActivity",
[debug] [BaseDriver] "appPackage": "com.tencent.mobileqq",
[debug] [BaseDriver] "automationName": "Appium",
[debug] [BaseDriver] "deviceName": "12d63ed3",
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "platformVersion": "9",
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver] connectHardwareKeyboard
[info] [BaseDriver] Session created with session id: 67e91ec2-f059-41b3-8e0c-791067727417
[info] [UiAutomator2] Starting 'com.tencent.mobileqq' directly on the device[info] [ADB] Found 2 'build-tools' folders under '/Users/liuchengxu/Library/Android/sdk' (newest first):
[info] [ADB] /Users/liuchengxu/Library/Android/sdk/build-tools/29.0.2
[info] [ADB] /Users/liuchengxu/Library/Android/sdk/build-tools/28.0.3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...[debug] [ADB] Connected devices: [{"udid":"12d63ed3","state":"device"}]
[info] [AndroidDriver] Looking for a device with Android '9'
[debug] [ADB] Setting device id to 12d63ed3
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[info] [AndroidDriver] Using device: 12d63ed3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 12d63ed3
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell am force-stop com.tencent.mobileqq'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200'
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps'[debug] [BaseDriver] Event 'newSessionStarted' logged at 1583809864710 (11:11:04 GMT+0800 (CST))
[debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP]
[debug] [MJSONWP] java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
[debug] [MJSONWP] at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
[debug] [MJSONWP] at android.os.ShellCommand.exec(ShellCommand.java:103)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [MJSONWP] at android.os.Binder.shellCommand(Binder.java:634)
[debug] [MJSONWP] at android.os.Binder.onTransact(Binder.java:532)
[debug] [MJSONWP] at android.os.Binder.execTransact(Binder.java:733)'; Code: '255'
[debug] [MJSONWP] Error: Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [MJSONWP] at ChildProcess.emit (events.js:182:13)
[debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16)
[debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [HTTP] <-- POST /wd/hub/session 500 3747 ms - 1600
[info] [HTTP] 
[info] [HTTP] --> DELETE /wd/hub/session
[info] [HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[info] [HTTP] <-- DELETE /wd/hub/session 404 4 ms - 57
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1583811424903 (11:37:04 GMT+0800 (CST))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The 'automationName' capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the
[warn] [Appium] UiAutomator2 Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] 'automationName' capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] In previous versions (Appium <= 1.13.x), the default was
[warn] [Appium] 'automationName=UiAutomator1'
[warn] [Appium]
[warn] [Appium] If you wish to use that automation instead of UiAutomator2, please
[warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] 'Drivers' menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "appActivity": "com.tencent.mobileqq.activity.LoginActivity",
[debug] [BaseDriver] "appPackage": "com.tencent.mobileqq",
[debug] [BaseDriver] "automationName": "Appium",
[debug] [BaseDriver] "deviceName": "12d63ed3",
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "platformVersion": "9",
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver] connectHardwareKeyboard
[info] [BaseDriver] Session created with session id: 3522cb8d-17eb-4ed2-bb0b-689f30521dd4
[info] [UiAutomator2] Starting 'com.tencent.mobileqq' directly on the device
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"12d63ed3","state":"device"}]
[info] [AndroidDriver] Looking for a device with Android '9'
[debug] [ADB] Setting device id to 12d63ed3
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[info] [AndroidDriver] Using device: 12d63ed3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 12d63ed3
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings put global hidden_api_policy_pre_p_apps 1'[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell am force-stop com.tencent.mobileqq'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200'
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1583811425280 (11:37:05 GMT+0800 (CST))
[debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP]
[debug] [MJSONWP] java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
[debug] [MJSONWP] at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
[debug] [MJSONWP] at android.os.ShellCommand.exec(ShellCommand.java:103)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [MJSONWP] at android.os.Binder.shellCommand(Binder.java:634)
[debug] [MJSONWP] at android.os.Binder.onTransact(Binder.java:532)
[debug] [MJSONWP] at android.os.Binder.execTransact(Binder.java:733)'; Code: '255'
[debug] [MJSONWP] Error: Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [MJSONWP] at ChildProcess.emit (events.js:182:13)
[debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16)
[debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [HTTP] <-- POST /wd/hub/session 500 382 ms - 1600
[info] [HTTP] 
[info] [HTTP] --> DELETE /wd/hub/session
[info] [HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[info] [HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1583812014048 (11:46:54 GMT+0800 (CST))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The 'automationName' capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the
[warn] [Appium] UiAutomator2 Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] 'automationName' capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] In previous versions (Appium <= 1.13.x), the default was
[warn] [Appium] 'automationName=UiAutomator1'
[warn] [Appium]
[warn] [Appium] If you wish to use that automation instead of UiAutomator2, please
[warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] 'Drivers' menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "appActivity": "com.tencent.mobileqq.activity.LoginActivity",
[debug] [BaseDriver] "appPackage": "com.tencent.mobileqq",
[debug] [BaseDriver] "automationName": "Appium",
[debug] [BaseDriver] "deviceName": "12d63ed3",
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "platformVersion": "9",
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver] connectHardwareKeyboard
[info] [BaseDriver] Session created with session id: c3001e3a-eae0-424b-a844-9a115fc53a0d
[info] [UiAutomator2] Starting 'com.tencent.mobileqq' directly on the device
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"12d63ed3","state":"device"}]
[info] [AndroidDriver] Looking for a device with Android '9'
[debug] [ADB] Setting device id to 12d63ed3
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9
[info] [AndroidDriver] Using device: 12d63ed3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 12d63ed3
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell am force-stop com.tencent.mobileqq'[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200'
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1583812014561 (11:46:54 GMT+0800 (CST))
[debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP]
[debug] [MJSONWP] java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
[debug] [MJSONWP] at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
[debug] [MJSONWP] at android.os.ShellCommand.exec(ShellCommand.java:103)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [MJSONWP] at android.os.Binder.shellCommand(Binder.java:634)
[debug] [MJSONWP] at android.os.Binder.onTransact(Binder.java:532)
[debug] [MJSONWP] at android.os.Binder.execTransact(Binder.java:733)'; Code: '255'
[debug] [MJSONWP] Error: Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [MJSONWP] at ChildProcess.emit (events.js:182:13)
[debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16)
[debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [HTTP] <-- POST /wd/hub/session 500 517 ms - 1600
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.tencent.mobileqq.activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1583812049858 (11:47:29 GMT+0800 (CST))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The 'automationName' capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the
[warn] [Appium] UiAutomator2 Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] 'automationName' capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] In previous versions (Appium <= 1.13.x), the default was
[warn] [Appium] 'automationName=UiAutomator1'
[warn] [Appium]
[warn] [Appium] If you wish to use that automation instead of UiAutomator2, please
[warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] 'Drivers' menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "appActivity": "com.tencent.mobileqq.activity.LoginActivity",
[debug] [BaseDriver] "appPackage": "com.tencent.mobileqq",
[debug] [BaseDriver] "automationName": "Appium",
[debug] [BaseDriver] "deviceName": "12d63ed3",
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "platformVersion": "9",
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver] connectHardwareKeyboard
[info] [BaseDriver] Session created with session id: fd673dd4-a096-4986-8654-a1cfdb33ec94
[info] [UiAutomator2] Starting 'com.tencent.mobileqq' directly on the device
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"12d63ed3","state":"device"}]
[info] [AndroidDriver] Looking for a device with Android '9'
[debug] [ADB] Setting device id to 12d63ed3
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[info] [AndroidDriver] Using device: 12d63ed3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 12d63ed3
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell am force-stop com.tencent.mobileqq'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200'
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps'[debug] [BaseDriver] Event 'newSessionStarted' logged at 1583812050257 (11:47:30 GMT+0800 (CST))
[debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP]
[debug] [MJSONWP] java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
[debug] [MJSONWP] at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
[debug] [MJSONWP] at android.os.ShellCommand.exec(ShellCommand.java:103)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [MJSONWP] at android.os.Binder.shellCommand(Binder.java:634)
[debug] [MJSONWP] at android.os.Binder.onTransact(Binder.java:532)
[debug] [MJSONWP] at android.os.Binder.execTransact(Binder.java:733)'; Code: '255'
[debug] [MJSONWP] Error: Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [MJSONWP] at ChildProcess.emit (events.js:182:13)
[debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16)
[debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [HTTP] <-- POST /wd/hub/session 500 402 ms - 1600
[info] [HTTP] 
[info] [HTTP] --> DELETE /wd/hub/session
[info] [HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[info] [HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"appActivity":".activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":".activity.LoginActivity","appPackage":"com.tencent.mobileqq","automationName":"Appium","deviceName":"12d63ed3","platformName":"android","platformVersion":"9","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1583812325968 (11:52:05 GMT+0800 (CST))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The 'automationName' capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the
[warn] [Appium] UiAutomator2 Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] 'automationName' capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] In previous versions (Appium <= 1.13.x), the default was
[warn] [Appium] 'automationName=UiAutomator1'
[warn] [Appium]
[warn] [Appium] If you wish to use that automation instead of UiAutomator2, please
[warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] 'Drivers' menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "appActivity": ".activity.LoginActivity",
[debug] [BaseDriver] "appPackage": "com.tencent.mobileqq",
[debug] [BaseDriver] "automationName": "Appium",
[debug] [BaseDriver] "deviceName": "12d63ed3",
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "platformVersion": "9",
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver] connectHardwareKeyboard
[info] [BaseDriver] Session created with session id: 0e99b3a2-64c8-4558-8d10-af13e59f14e2
[info] [UiAutomator2] Starting 'com.tencent.mobileqq' directly on the device
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"12d63ed3","state":"device"}]
[info] [AndroidDriver] Looking for a device with Android '9'
[debug] [ADB] Setting device id to 12d63ed3
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9
[info] [AndroidDriver] Using device: 12d63ed3
[info] [ADB] Using 'adb' from '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 12d63ed3
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell am force-stop com.tencent.mobileqq'[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200'
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1583812326354 (11:52:06 GMT+0800 (CST))
[debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP]
[debug] [MJSONWP] java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
[debug] [MJSONWP] at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
[debug] [MJSONWP] at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
[debug] [MJSONWP] at android.os.ShellCommand.exec(ShellCommand.java:103)
[debug] [MJSONWP] at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [MJSONWP] at android.os.Binder.shellCommand(Binder.java:634)
[debug] [MJSONWP] at android.os.Binder.onTransact(Binder.java:532)
[debug] [MJSONWP] at android.os.Binder.execTransact(Binder.java:733)'; Code: '255'
[debug] [MJSONWP] Error: Command '/Users/liuchengxu/Library/Android/sdk/platform-tools/adb -P 5037 -s 12d63ed3 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [MJSONWP] at ChildProcess.emit (events.js:182:13)
[debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16)
[debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [HTTP] <-- POST /wd/hub/session 500 391 ms - 1600
[info] [HTTP] 
[info] [HTTP] --> DELETE /wd/hub/session
[info] [HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[info] [HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
[info] [HTTP] 

Most helpful comment

I have the same error, with my phone (Realme C3), I solved with the following way:
First Enable Developer Option second step enable USB Debugging
And very important Step:
Step 3. Search for "Disable Permission Monitoring" and Enable it.

All 19 comments

What device did you use?

您使用什么设备?

mac book

No, the device under test.

I assume the cause is the manufacture's security customisation.
We can ignore it ( https://github.com/appium/appium-adb/pull/507 ), but I'd like to know what manufacture set such restriction.

No, the device under test.

I assume the cause is the manufacture's security customisation.
We can ignore it ( appium/appium-adb#507 ), but I'd like to know what manufacture set such restriction.

Thank you for answering my question

appium@@beta has ignoreHiddenApiPolicyError capability. It can ignore the security error.
You can use the beta CLI appium as https://github.com/appium/appium-desktop#connect-to-local-appium-server

I am also unable to start appium because of such issue, with Opp F7,
Please help me on this.
Is this fixed on 1.17.1?

No, it is only available appium beta. You can try it out as https://github.com/appium/appium-desktop/issues/1265#issuecomment-599078977

image

Thank you for looking into it but it is also throwing error

Did you add ignoreHiddenApiPolicyError: true as the capability?

No previously it was not added but later I add it but still this error persist

image

Could you share the full server side log as GIST?

appium-server-logs.txt

Please find the attachment for the details.

[info] [Appium] Welcome to Appium v1.17.1

It seems Appium 1.17.1.

As my previous comment, only appium@beta has it for now.

No, it is only available appium beta. You can try it out as #1265 (comment)
appium@beta has ignoreHiddenApiPolicyError capability. It can ignore the security error.
You can use the beta CLI appium as https://github.com/appium/appium-desktop#connect-to-local-appium-server

Thank you @KazuCocoa

My OPPO PACM00 Android 9, API 28,use 1.18.0-beta.0, but it is also throwing error.

{ "platformName": "Android", "deviceName": "OPPO PACM00", "platformVersion": "9", "appPackage": "com.xxx.xxx", "ignoreHiddenApiPolicyError": false, "appActivity": "com.xxx.xxx.activity.SplashActivity" }

An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/Users/hansion/Library/Android/sdk/platform-tools/adb -P 5037 -s 4T5LSWVGAYJB5DUW shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2041) at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1104) at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1087) at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:669) at android.content.ContentProvider$Transport.delete(ContentProvider.java:404) at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406) at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289) at android.os.ShellCommand.exec(ShellCommand.java:103) at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51) at android.os.Binder.shellCommand(Binder.java:634) at android.os.Binder.onTransact(Binder.java:532) at android.os.Binder.execTransact(Binder.java:731)'; Code: '255'

It should be "ignoreHiddenApiPolicyError": true to ignore it instead of false (default)

I have the same error, with my phone (Realme C3), I solved with the following way:
First Enable Developer Option second step enable USB Debugging
And very important Step:
Step 3. Search for "Disable Permission Monitoring" and Enable it.

@JuanEstrellaM
Thanx a lot man!!
Its a great help.

And very important Step:
Step 3. Search for "Disable Permission Monitoring" and Enable it.

The above step helped a lot..

@JuanEstrellaM,

I have the same error, with my phone (Realme C3), I solved with the following way:
First Enable Developer Option second step enable USB Debugging
And very important Step:
Step 3. Search for "Disable Permission Monitoring" and Enable it.

' It worked! :)

Was this page helpful?
0 / 5 - 0 ratings