The adb command exports the android application apk file installed on the phone

The adb command exports the apk file of the android application installed on the mobile phone and saves it to the PC

The prerequisite is that the mobile phone has been connected to the PC computer through adb.

(1) Obtain the names of all installed application packages on the current mobile phone through the adb shell command:

adb shell pm list package

 

(2) According to the package name printed above, find the application package name that you want to export the apk file. This package name can be found in various ways, or you can use some tools to find it. Assuming that you already know the package name of an application, Obtain the location where the app is installed on the phone according to the package name:

adb shell pm path com.xxx.xxx.xxx

This command will output the storage path (mobile phone) with the package name com.xxx.xxx.xxx

dfc261a6e7cd49a987c4646e18be7d9b.png

 

(3) Use the adb pull command to save the base.apk file to the specified location on the PC, followed by (2) the found package storage path package: after the adb pull command, pay attention to specify the path to save to the PC computer:

a9a863227d7f4d55b639f0966b10d89f.png

 

 

 

Android adb forward forwards TCP port connection data_zhangphil's blog-CSDN blog_adb forward tcp A command of Android adb: adb forward, this command forwards the port data on the PC computer to a port of the Android device. adb forward tcp:18000 tcp:19000 The command above is to forward the data of the TCP port 18000 on the PC computer to the TCP port 19000 of the Android device connected to the computer through adb. In other words, assuming that the PC is now bound to port 18000 and reads and writes data on this port, it will be forwarded to An... https://blog.csdn.net/zhangphil/article/details/89358894

 

Android ADB installation apk_zhangphil's blog-CSDN blog Android ADB installation apk command as shown in the figure: that is, adb install followed by the full path of apk, if the installation is successful, it will output Success. https://blog.csdn.net/zhangphil/article/details/81903323

 

https://blog.csdn.net/zhangphil/article/details/81869814 Android ADB debugging real device Android ADB (Andorid Debug Bridge), is a useful testing and debugging tool in Android development. Use Android ADB to debug the device, just enter the name adb directly in the Windows dos command window, as shown in the figure: Why is it like this after executing the adb command? The reason is that the ADB path has not been added to the Windows system path. It can also be addressed by adding the ADB path to the .bat batch file. ... https://blog.csdn.net/zhangphil/article/details/81869814

 

Guess you like

Origin blog.csdn.net/zhangphil/article/details/129160972