What is developer options?

Android provide some hidden features for developers to investigate certain things. This hidden features allow developer to have a better interaction with android OS. In another word, You can do a lot with Android from the device itself. But developers need more options. It would be a huge pain to manually move files between devices, run commands, and perform similar tasks all on the phone while developing. Instead, they use tools built into Android Studio and the Android SDK to streamline these processes.

How to enable developer options?

Settings β€”> About Phone β€”> Build Number β€”> Press 8 times

What I get if enable USB Debugging?

Enabling USB debugging grant us many options. For example:

USB Debugging Features

Screen Share

if you want to share screen of your device to your computer. For this we can use scrcpy which used ADB to share screen.

# In macOS
brew install scrcpy

# In linux
apt update && apt install scrcpy

<aside> πŸ’‘ In some device beside of enabling USB debugging you should allow file transfer tool

</aside>

Creating Macro via ADB

If you open adb shell command you will getting a shell from your phone. In this state enter input and press Enter key.

Untitled

To click on a point for example click on a coordinate to open call app, you can do this:

input touchscreen tap [x] [y]