“
RUMI
You are not a drop in the ocean. You are the entire ocean, in a drop “
In my previous article, I talked about the virtual environment setup. I will talk about Android Debug Bridge (ADB).
"Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps. adb provides access to a Unix shell that you can use to run a variety of commands on a device. It is a client-server program that includes three components."https://developer.android.com/

Client: A client which sends commands. You can use powershell, cmd…
Server: which manages communication between the client and the daemon. The server runs as a background process on your development machine.
ADB Daemon: which runs commands on a device. We use Andorid Image in VMWare.
How can setup ADB?
Step 1:
You have to install platform-tools
Step 2:
You can connect android devices with adb. You need to find the IP address of the virtual android machine:

After that you can use this command:

Step 3:
now we can access the shell of the virtual android machine:


Some ADB Commands
adb install X.apk

Command | Description |
adb devices | Displays information about devices connected to the PC and their serial numbers |
adb reboot | Android reboot |
adb logcat | Compiles and shows logs on the device. The logs are displayed in a command prompt |
adb push C:\Users\user\Documents\temp.txt /sdcard | Allows transferring files from PC to mobile device. For this, you have to write address for moving file and a place where it’ll be stored on the phone |
adb logcat -d > ~/test.log | Compiles logs from the phone and records them in another file |
adb shell screenrecord /sdcard/test.mp4 | Records a video from the screen of a mobile device mentioning the file location, name, and extension |
adb install C:\test.apk | Installs a program on a device. You just have to write a path to the utility |
adb shell screencap /sdcard/test.png | Takes a screenshot of the mobile device mentioning the file location, name, and extension |
When I come to the end of my post;
Stand With Türkiye! Stand With Syria!
Donation to the KIZILAY for Earthquake:
Write "BAĞIŞ" and Send 2868
Donation to the AFAD for Earthquake:
Write "DEPREM" and Send 1866
Donation to the AHBAP for Earthquake:
https://bagis.ahbap.org/bagis
Leave a Reply