Failed to execute shell command "getprop,dev.bootcomplete"" on device: error for Android

Failed to execute shell command "getprop,dev.bootcomplete"" on device: error for Android

I am getting the getprop,dev.bootcomplete error after building and deploying the new debug-apk file to the Android emulator through Ionic framework.

The emulator pops open to the home screen for Android but the app is not installed on the emulator and thus does not open on startup for the emulator.

I had looked at similar posts on this issue and tried the different steps in adb, deleting and creating new devices for the emulator and I have both the x86 and x86_64 images installed for the API level that I am testing in which is API 26. I am not sure of what else I can do. I don't believe that removing android from cordova and then adding it back in will solve the issue. The error log is below.

Edit:

Every post I have seen thus far on this issue has not resolved the issue. I still have yet to uninstall and reinstall Android Studio or any of the SDK tools, but I don't think I need to.

Something that may be causing the issue is that I had to revert my NDK version back to r16b instead of the more recent r17b because my app was not building correctly with ionic cordova. It is building correctly now but the emulator is still having this issue and wont install my app.

Error Log:

emulator: Requested console port 5584: Inferring adb port 5585.
HAX is working and emulator runs in fast virt mode.
(node:11468) UnhandledPromiseRejectionWarning: CordovaError: Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: C:\Users\noaht\AppData\Local\Android\sdk\platform-tools\adb.exe: Command failed with exit code 1 Error output:
error: device still connecting
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\lib\Adb.js:88:25
    at _rejected (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:864:24)
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:890:30
    at Promise.when (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:808:41)
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
(node:11468) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11468) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
emulator: S
aving state on exit with session uptime 4695 ms

This is a cordova-android bug because Google probably changed the error message when trying to run the app.

It has been fixed already and released in cordova-android 7.1.1 or newer. If you can't update to those versions do:

I think it would work if you apply this change yourself to yourAppName/platforms/android/cordova/lib/emulator.js

Change

if ((error && error.message && (error.message.indexOf('not found') > -1)) || (error.message.indexOf('device offline') > -1))

to

if ((error && error.message && (error.message.indexOf('not found') > -1)) || (error.message.indexOf('device offline') > -1) || (error.message.indexOf('device still connecting') > -1))

CordovaError: Failed to execute shell command "getprop,dev , When I run the command ionic cordova run android. I'm getting the following error audio: Failed to create voice `adc' (node:5976)  Another workaround is to start emulator from Android studio and then run cordova command to run app. This way cordova finds the emulator already running and it avoids the race condition. Thanks!


Another workaround is to start emulator from Android studio and then run cordova command to run app. This way cordova finds the emulator already running and it avoids the race condition. Thanks!

cordova run android gives "Failed to execute shell command cat , Failed to execute shell command "cat,/proc/cpuinfo"" on device: Error: D:\Android\​Sdk\platform-tools\adb.exe: Command failed with exit code  The command failed to execute Some email attachments will not open and have the message, "The command failed to execute." This happened this week when Microsoft downloaded several updates.


This was a solution for me in Ionic 3 version:

  1. Open Android studio, go to AVD Manager
  2. Create a new AVD device, click on "show advanced settings"
  3. Select "Cold boot". By default, the "Quick boot" is selected.

Try to run emulator again.

Deploy Cordova build to a emulate failed · Issue #14686 · ionic-team , (node:42564) UnhandledPromiseRejectionWarning: CordovaError: Failed to execute shell command "getprop,dev.bootcomplete"" on device:  To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Exchange Management Shell. Run the following command to identify the cmdlet and, optionally, one or more parameters on the cmdlet. Be sure to replace <Cmdlet> and optionally, <Parameter1>,<Parameter2>,


I was get the same error when working with the following command on my windows 10 machine,

cordova emulate android --target=N5Oreo

Windows 10 Corodva 7.1.0 Oreo based emulator

the issue was fixed temporarily with the answer by jcesarmobile (Failed to execute shell command "getprop,dev.bootcomplete"" on device: error for Android) but it kept on resurfacing.

When i execute the command, the emulator was launched but the error kept coming again and again. I restarted the machine and and then it worked for few days then it kicked in again.

I found that adb is a powerful tool. So instead of depending on cordova emulate android --target=N5Oreo to build and launch I used cordova build android and installed the resultant build by using adb install myApp.apk to the currently running emulator.

How to execute command, and if it fails, execute another command , Error: Failed to execute shell command "getprop, dev.bootcomplete". Navigation. 2. Comrades,. I'm having a problem while running "ionic  Running external command or shell command is a very popular Python developer. We can call Linux or Windows commands from python code or script and use output. Import os Module. We can use system() function in order to run a shell command in Linux and Windows operating systems. system() is provided by os Module. So we will load this module like


Error: Failed to execute shell command "getprop, dev.bootcomplete , Execute Shell Command Failing zippo By zippo Over 5 years ago 8. I recently upgraded our 8.0 VSA to 9.1 and now have a particular script failing that used to​  Sometimes, it’s big trouble to execute some Unix/shell commands in Perl script for the beginners, it’s difficult to decide which function would be specific to a condition. Therefore, this article is a guide for the execution of Unix/shell commands in Perl script.


Execute Shell Command Failing- Kaseya Connections Mobile, $? holds the exit code from the last command executed, and if you use this you can write your scripts quite flexible. This questions touches this topic a  If the command fails, you’ll see an error message instead. Execute a Single Remote Command To run a command on the remote system, use the  Invoke-Command  cmdlet using the following syntax: Invoke-Command -ComputerName COMPUTER -ScriptBlock { COMMAND } -credential USERNAME


Bash: run command2 if command1 fails, I don't want a Shell script to abort on failure; I want to run a Shell script When running bash, you can control the execution of your script on error Another way of not stopping on a failure is to add || true to your command or  If you want to run a script file on PowerShell, you have to change the execution policy on Windows 10. To change the execution policy to run PowerShell scripts, use these steps: Open Start. Search for PowerShell, right-click the top-result and click the Run as administrator option.