adb push/pull with progress bar

It looks like the latest adb has progress support. Android Debug Bridge version 1.0.32 device commands: adb push [-p] <local> <remote> – copy file/dir to device (‘-p’ to display the transfer progress) However, the other answers also work for adb install which do not have a progress option. I modified the first answer’s script to … Read more

ADB, Wifi and Eclipse: how I can configure?

First, run ‘adb connect ip:port’, like adb connect <phone-ip-address>, from console/terminal (with your IP address and port of cause). This makes adb service to connect to your device via network. Port 5555 is used by default if no port number is specified. Then check that device is correctly connected: run adb devices from console/terminal (make … Read more

Set date/time using ADB shell

To save storage space Android like many other embedded systems uses multi-call binaries to implement its basic command line tools like date. Android device may include either toolbox or toybox (or both) binary depending on the version. You can check which implementation of the date tool available on your device by running toolbox date and … Read more

How to run a specific Android app using Terminal? [duplicate]

Use the cmd activity start-activity (or the alternative am start) command, which is a command-line interface to the ActivityManager. Use am to start activities as shown in this help: $ adb shell am usage: am [start|instrument] am start [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] …] [-e <EXTRA_KEY> <EXTRA_VALUE> [-e <EXTRA_KEY> <EXTRA_VALUE> … Read more

Is there a way to get current activity’s layout and views via adb?

Use adb shell uiautomator dump command: Usage: uiautomator <subcommand> [options] Available subcommands: help: displays help message runtest: executes UI automation tests runtest <class spec> [options] <class spec>: <JARS> < -c <CLASSES> | -e class <CLASSES> > <JARS>: a list of jar files containing test classes and dependencies. If the path is relative, it’s assumed to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)