![](https://sebastiaanjanssens.nl/wp-content/uploads/2018/07/128px-Android_robot.svg_.png)
Android logo by Google.
It turns out to be rather straightforward to obtain command-line access to an Android phone, also when it is not rooted. Namely, one can use ADB – the Android Debug Bridge, a client-server tool that is part of the Android SDK Platform-Tools package. It requires a working Java runtime environment and is easy to use, following the clear instructions on the ADB homepage.