Skip to main content

Useful ADB commands list

Hi everyone, have a nice day. Sometimes we forget about what terminals can do, but terminals is much better than UI views. It's much faster than the UI prompting. In android, they are so much ADB commands are there, but I don't like to confuse. Just represents important commands in ADB,

Adb path: C:\Users\Username\AppData\Local\Android\Sdk\platform-tools

Wifi debug
adb tcp ip portnumber(Ex: 5555)

adb connect ip address portnumber (Ex: adb connect

adb devices -> list the devices.

adb kill-server -> Terminate the adb server process.

adb install test.apk -> Install the apk.

adb install -l test.apk -> forward lock application.

adb install -r test.apk -> replace existing application.

adb install -t test.apk -> allow test packages.

adb install -s test.apk -> install application on sdcard.

adb install -d test.apk -> allow version code downgrade.

adb install -p test.apk -> partial application install.

adb uninstall -> Uninstall the application.

adb uninstall -k -> Keep the data and cache directories around after package removal.

adb shell pm clear -> Clearing app data and cache.

adb pull /sdcard/music.mp4 -> download the file from sdcard

adb pull /sdcard/music.mp4 d:\ -> download the file from sdcard to D: drive

adb logcat *:V -> lowest priority, filter to only show Verbose level

adb logcat *:D -> filter to only show Debug level

adb logcat *:I -> filter to only show Info level

adb logcat *:W -> filter to only show Warning level

adb logcat *:E -> filter to only show Error level

adb logcat *:F -> filter to only show Fatal level

adb logcat *:S -> Silent, highest priority, on which nothing is ever printed

adb logcat -b radio -> View the buffer that contains radio/telephony related messages.

adb logcat -b event -> View the buffer containing events-related messages.

adb logcat -b main  -> default

adb logcat -c Clears-> the entire log and exits.

adb logcat -d Dumps -> the log to the screen and exits.

adb logcat -f test.logs Writes log message output to test.logs.

adb logcat -g Prints the size of the specified log buffer and exits.

adb logcat -n <count> Sets the maximum number of rotated logs to <count>.

adb shell screencap /sdcard/screen.png  -> Screenshot of a device display.

adb pull /sdcard/screen.png -> Download the screenshot from device.

adb shell screenrecord /sdcard/demo.mp4 -> Record the screen, Support only 4.4+

adb pull /sdcard/demo.mp4 -> Download screenshot from device.

adb shell screenrecord --size <WIDTHxHEIGHT> -> Set video size (Ex: 1280x720)

adb shell screenrecord --bit-rate <RATE> -> Set the bit rate of video-calling

adb shell screenrecord --time-limit <TIME> -> Set the maximum time of video record, default and maximum is 180 seconds.

adb shell screenrecord --rotate -> Rotate the screen

adb shell screenrecord --verbose -> Display the log information on the command-line screen. If you do not set this option, the utility does not display any information while running.

adb shell ->1

netstat -> to show the network statistics

netcfg  -> configure and manage network connections via profiles

ip -f inet addr show wlan0 -> show WiFi IP Address


Popular posts from this blog

Clear the app data programmatically in android

Clear the App Data Programmatically in Android

Application data has been created due to use shared preference data, databases and network caches data. This data has been manually clear on Settings -- > Apps (or) Application Manager --> Select the app you want to clear the data. --> Then click button clear data to erase the app from the Phone and SDCARD.

Applications like facebook, google+, gmail and some games captures more data on phone and SDCARD.

Once you clear the data of your app, all passwords and saved settings in app has been lost. So carefull to use this method.

Create the Class MyApplication

public class MyApplication extends Application {
 private static MyApplication instance;
 public void onCreate() {
  instance = this;
 public static MyApplication getInstance(){
  return instance;
 public void clearApplicationData() {
  File cache = getCacheDir();
  File appDir = new File(cache.getParent());
   String[] children = app…

Sort the numbers using If, Else and Loop.

This is very interesting. You need to sort the numbers, but not using the SORT functions. You can use the If, Else or Loop to do the functions.

See the solution:

import java.util.Scanner;
public class OrderNumbers {
    public static void main(String[] args) {         Scanner in = new Scanner(;         System.out.println("Enter the size of an Array");         int num = in.nextInt();         int [] numbers = new int[num];         for (int i = 0; i < numbers.length; i++) {             System.out.println("Enter the number "+(i+1)+" : ");             numbers[i] = in.nextInt();         }         sortNumbers(numbers);     }     static void sortNumbers(int[] numbers){         for (int i = 0; i < numbers.length; i++) {             int newValue;             for (int j = 0; j < numbers.length; j++) {                 if (numbers[i] < numbers[j]) {                     newValue = numbers[j];                     numbers[j] = numbers[i];                     numbers[i]…

Record the mobile screens through MyMobiler

Dedicate to all android developers, MyMobiler is very useful for android app developers.


Records the mobile screens.
Screen Capture.
Control your mobile device from the desktop.
Transfer the file between desktop/device
USB/Wifi Connection
Supports from Android OS 2.2 version.

Download the desktop application.

Download the mobile application.

Watch the tutorials about connecting the device and desktop in YouTube: