dexcalibur
dexcalibur copied to clipboard
Cannot kill task
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.
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.