adb gets the apk file installed on the Android device

Preface

Today I discovered that an application on my phone could no longer be found in the app store. I wanted to recommend it to my friends, but I found that I didn’t know where to find the original apk installation file. Please record it.

How to extract apk

Two methods

MT manager export

You can useMT管理器(Android Platform reverse engineering tool), it has 安装包提取 The function allows you to view and export application package names conveniently and quickly. MT Manager official download address, it looks like this
Insert image description here

Using adb with a computer

Insert image description here

Take it in three steps:

1. View package name

adb shell pm list package # 若只需要查看第三方包可以添加 -3 参数

If you don’t know the application package name, it generally cannot correspond to the application and package names, which is not clear enough. You can also use MT管理器 to view the package name.

2. Check the specific location of the apk corresponding to the package name on the Android device

adb shell pm path 【包名】

3. adb pull to get files from Android device

adb pull 【Android地址】 【电脑地址】

Introduction to Android Debug Bridge (adb)

  • Client: is used to send commands. The client runs on the development computer. You can invoke the client from the command line terminal by issuing the adb command.
  • Daemon (adbd): Runs commands on the device. The daemon runs as a background process on each device.
  • Server: Manages communication between clients and daemons. The server runs as a background process on the development machine.

When starting a adb client, the client will first check whether there is a adb server process running. If not, it starts the server process. After starting, the server will bind to the localTCP port5037 and listen for commands issued by theadb client - all The server then establishes connections with all running devices. . server through port adb Clients all communicate with the 5037adb

other

おすすめ

転載: blog.csdn.net/DisMisPres/article/details/133952079