Now run adb shell again and see if the command line prompt becomes #? The connection is successful. ADB sample shell script To run a script in Ubuntu, Create script.sh right click the file and add read/write permission and tick allow executing file as program. Use apndroid to close the connection, maybe the download will continue, not immediately. Currently, it does not support Unicode characters and fails. In addition to connecting the device and the computer via USB to use adb, you can also use a wireless connection-although there are steps to use USB during the connection process, your device can get rid of the limitation of the USB cable within a certain range after the connection is successful. Command (parameters are based on model Nexus 5, for example, swipe up gesture to unlock): The parameters 300 1000 300 500 respectively represent the start point x coordinate, the start point y coordinate, the end point x coordinate, and the end point y coordinate. This gets me: Code: We can use this command to move it to the new location: If instead of moving the file you wanted to copy, then you could have used the cp command instead: And after copying and moving the files, you can just delete them by using the rm command: As you may imagine, we can do much more with ADB. It helped me better understand my Android device. ssid is the name we see in the WLAN settings, psk is the password, and key_mgmt is the security encryption method. The basic syntax of the adb command is as follows: If there is only one device/emulator connected, you can omit the part [-d|-e|-s ] and use adb directly. At this time, you can execute commands after adb shell and then su, or you can let adbd execute with root privileges, which can execute high-privileged commands at will. ADB_Commands - GitHub That is, on the basis of adb shell pm list packages, you can add some parameters to filter and view different lists. If the battery is full, youll need to wait several hours before it is discharged. - the incident has nothing to do with me; can I use this this way? It should be the most thorough, and does not affect the apn settings. UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128), How to use ADB Shell when Multiple Devices are connected?