- Android 11 or later (+)
- API level 31 or later (+)
- A PC / Laptop with Windows 7 or later (+)
- Windows: platform-tools_r34.0.5-windows.zip
- MacOS: platform-tools_r34.0.5-darwin.zip
- Linux: platform-tools_r34.0.5-linux.zip
- First open:
Settings > Search on top > About Phone / About your Phone > Tap on Build (eg. MIUI) version for 7-8 times. And you will become a developer.
- Go back and search
Developer options
or Scroll down and tap on Additional settings > Developer options - Click on it and scroll down to turn on
USB debugging
not theUSB debugging (Security settings)
- Check all things and turn it on.
- And also turn on
Install via USB
(optional) - Connect your mobile with PC. (Here, I am telling about Windows)
- Download the Platform Tools file from website here.
- Extract it and open the folder
- Now follow this
Video.mp4
- Type this
adb devices
- If it shows some Alphabets and numbers under 'List' (like AFG485GT..) then your phone is sucessfully connected to PC already.
- Finally you can run any command. Which you want to run.
In Android 12
version, [Specifically, POCO phones] have a green coloured icon of camera & mic on Status Bar at the top of screen whenever you use your mic/camera. Which looks nice at first but not forever. here's an img where the camera is being used and this icon occurs:
- To remove the green icon, you can run this
Android 12
:
adb shell cmd device_config put privacy camera_mic_icons_enabled false default
- To revert back [Enable it again]:
adb shell cmd device_config put privacy camera_mic_icons_enabled true default