Open StephanStanisic opened 5 years ago
Getting below error on Redmi note 7 Pro - Please help .........
[W3C] Encountered internal error running command: Error executing adbExec. Original error: 'Command 'C\:\Users\priyanka.pundir\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s fcbca55 shell pm install -g /data/local/tmp/appium_cache/728413456b86856a2003edeb524d6bd577ca6418.apk' exited with code 1'; Stderr: ''; Code: '1' [W3C] Error: Command 'C\:\Users\priyanka.pundir\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s fcbca55 shell pm install -g /data/local/tmp/appium_cache/728413456b86856a2003edeb524d6bd577ca6418.apk' exited with code 1 [W3C] at ChildProcess.proc.on.code (C:\Users\priyanka.pundir\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\teen_process\lib\exec.js:94:19) [W3C] at ChildProcess.emit (events.js:182:13) [W3C] at maybeClose (internal/child_process.js:961:16) [W3C] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) [HTTP] <-- POST /wd/hub/session 500 4017 ms - 1316 [HTTP]
I'm just going to link a issue that helped me to set the android.permission.WRITE_SECURE_SETTINGS on a MIUI device.
https://github.com/Genymobile/gnirehtet/issues/5#issuecomment-297045539
After enableing the USB debugging (Security Settings) option, a few timed dialoges have to be accepted.
Don't forget to disable the option after you've set the permission!
Hopefully this will help someone.