Debug KeyStore
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- Execute following command in terminal to make sure adb identify/list gets connected with the device.
$adb devices
- Change adb mode from USB to tcpip using following command.
$adb tcpip 5555
// Restarting in TCP mode port: 5555
- Now, adb is running over TCP/IP mode, Let’s find IP address of Android device. Go to Settings in Android device -> About -> Status -> IP address. note down the IP address of connected Android Device.
- Use following command to connect ADB with IP address
$adb connect #.#.#.#
// Connected to #.#.#.#:5555
- Now adb is working over Wi-fi, You can remove USB cable from Android device.
- To confirm adb is working over Wi-fi and your device is still connect. you can use following command
$adb devices
#.#.#.#:5555 device
You’re now ready to go!, Enjoy ADB over Wi-fi. Use following command to change ADB mode to USB
$adb usb
The Monkey is a program that runs on your emulator or device and generates pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events. You can use the Monkey to stress-test applications that you are developing, in a random yet repeatable manner.
adb shell monkey [options] <event-count>
// Basic, make 500 random actions
adb shell monkey -p your.package.name -v 500
Complete information at http://developer.android.com/tools/help/monkey.html