You are on page 1of 17

Android Tools

• ADB • Android emulator


• dumpsys • Git
• top • Gerrit
• meminfo • Make
• ps • Android build system
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, and it provides
access to a Unix shell that you can use to run a variety
of commands on a device
ADB

It is a client-server program that includes three components:

• A client, which sends commands. The client runs on your


development machine. You can invoke a client from a command-
line terminal by issuing an adb command.

• A daemon (adbd), which runs commands on a device. The


daemon runs as a background process on each device.

• A server, which manages communication between the client and


the daemon. The server runs as a background process on your
development machine.
Enable adb debugging on your device

• To use adb with a device connected over USB, you must enable USB debugging
in the device system settings, under Developer options. Reffer below link
https://developer.android.com/studio/debug/dev-options
• On Android 4.2 and higher, the Developer options screen is hidden by default.
To make it visible, go to Settings > About phone and tap Build number seven
times. Return to the previous screen to find Developer options at the bottom.

• On some devices, the Developer options screen might be located or named


differently.

• You can now connect your device with USB. You can verify that your device is
connected by executing adb devices from the android_sdk/platform-tools/
directory. If connected, you'll see the device name listed as a "device."
Installing APP
• Reffer this for setings
https://
www.online-tech-tips.com/smartphones/how-to-install-apps-on-your-android-device-from-y
our-computer/

• adb install path_to_apk

• If multiple devices connected


$ adb devices
List of devices attached
emulator-5554 device
emulator-5555 device

$ adb -s emulator-5555 install helloWorld.apk


PS comand
top
meminfo
Gerrit
• Gerrit is a web-based code review system for projects that use Git

• Git
dumpsys
• dumpsys is a tool that runs on Android devices and provides
information about system services. You can call dumpsys from the
command line using the Android Debug Bridge (ADB) to get diagnostic
output for all system services running on a connected device.

•  command below provides system data for input components, such as


touchscreens or built-in keyboards
• adb shell dumpsys input
• adb shell dumpsys [-t timeout] [--help | -l | --skip services | service
[arguments] | -c | -h]
Android Emulator

• The Android Emulator simulates Android devices on your computer so


that you can test your application on a variety of devices and Android
API levels without needing to have each physical device.
Android build system
Make
References
• https://source.android.com/devices/tech/dalvik
• https://sites.google.com/site/io/dalvik-vm-internals/
• https://en.wikipedia.org/wiki/Linux_kernel#GPLv2_licensing_terms

Android Q : HAL : Android Studio for HAL development


• https://www.youtube.com/watch?v=3hg0kDRPrUE

• https://developer.android.com/studio/run/emulator
• https://developer.android.com/studio/command-line/dumpsys
• https://developer.android.com/studio/command-line/adb

• PS command:
• http://www.programmersought.com/article/4968882426/

You might also like