Difference between adb shell [command] and interactive adb shell
Mystic last edited by
I am wondering if the interactive shell
adb shellruns in a different context then when invoking a command via
adb shell [command]?
The background to this question is, that I am running
diniton an Android powered board.
dinitis started in user mode just for service management. When I run
dinitctl -u listfrom the interactive shell I get the expected output (enabled services and their current state), but when I run it via
adb shell dinitctl -u listI just get an error about the socket not being found (as if
dinititself was not running).
It turns out that running
adb shell [command]does not source
/etc/mkshrc. Setting the required env variables before the command solves my issue.