adb
How to start an application using Android ADB tools
adb shell am start -n com.package.name/com.package.name.ActivityName Or you can use this directly: adb shell am start -n com.package.name/com.package.name.ActivityName You can also specify actions to be filter by your intent-filters: am start -a com.example.ACTION_NAME -n com.package.name/com.package.name.ActivityName
Installing ADB on macOS [duplicate]
Note for zsh users: replace all references to ~/.bash_profile with ~/.zshrc. Option 1 – Using Homebrew This is the easiest way and will provide automatic updates. Install the homebrew package manager /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” Install adb brew install android-platform-tools Start using adb adb devices Option 2 – Manually (just the platform tools) This … Read more
How do I get an apk file from an Android device?
None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name. On more recent versions of Android (Oreo and Pie), an unpredictable random string is appended. The following sequence of commands is what worked for me on a non-rooted device: 1) … Read more
How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
Use the -s option BEFORE the command to specify the device, for example: adb -s 7f1c864e shell See also http://developer.android.com/tools/help/adb.html#directingcommands
Set up adb on Mac OS X
Note: this was originally written on Installing ADB on macOS but that question was closed as a duplicate of this one. Note for zsh users: replace all references to ~/.bash_profile with ~/.zshrc. Option 1 – Using Homebrew This is the easiest way and will provide automatic updates. Install homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” Install … Read more
How can I connect to Android with ADB over TCP? [closed]
Manual Process From your device, if it is rooted According to a post on xda-developers, you can enable ADB over Wi-Fi from the device with the commands: su setprop service.adb.tcp.port 5555 stop adbd start adbd And you can disable it and return ADB to listening on USB with setprop service.adb.tcp.port -1 stop adbd start adbd … Read more
Run/install/debug Android applications over Wi-Fi?
See forum post Any way to view Android screen remotely without root? – Post #9. Connect the device via USB and make sure debugging is working; adb tcpip 5555. This makes the device to start listening for connections on port 5555; Look up the device IP address with adb shell netcfg or adb shell ifconfig … Read more