Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot kill task #38

Open
cryptax opened this issue Jan 18, 2021 · 1 comment
Open

Cannot kill task #38

cryptax opened this issue Jan 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cryptax
Copy link
Contributor

cryptax commented Jan 18, 2021

The terminal shows this log when I try to kill the app from the "Hooks" panel:

Execute command request : /home/axelle/dexcaliburWS/.dxc/bin/platform-tools/adb -s emulator-5554 shell su -c "kill 21264"
su: invalid uid/gid '-c'

Indeed -c does not exist in my emulator's shell.

Desktop (please complete the following information):

  • OS: Linux
  • Node JS version: 12.20
  • Dexcalibur version (see 'package.json' or output) : 0.7.3

This is not a showstopper, only a minor bug.

@cryptax cryptax added the bug Something isn't working label Jan 18, 2021
@cryptax
Copy link
Contributor Author

cryptax commented Feb 5, 2021

Note: still occurs in 0.7.5

Further logs:

[INFO] [REST] /api/hook/frida/kill POST
Execute command request : /home/axelle/dexcaliburWS/.dxc/bin/platform-tools/adb -s emulator-5554 shell su -c "kill 12499"
su: invalid uid/gid '-c'
(node:309918) UnhandledPromiseRejectionWarning: Error: Command failed: /home/axelle/dexcaliburWS/.dxc/bin/platform-tools/adb -s emulator-5554 shell su -c "kill 12499"
su: invalid uid/gid '-c'

    at checkExecSyncError (child_process.js:635:11)
    at Object.execSync (child_process.js:671:15)
    at Object.execSync (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/src/Utils.js:204:27)
    at AdbWrapper.privilegedShell (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/src/AdbWrapper.js:775:23)
    at Device.privilegedExecSync (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/src/Device.js:459:38)
    at /home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/src/WebServer.js:1199:57
    at Layer.handle [as handle_request] (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/axelle/.nvm/versions/node/v12.20.0/lib/node_modules/dexcalibur/node_modules/express/lib/router/layer.js:95:5)
(node:309918) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:309918) [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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants