无法使用adb从Android设备中提取APK [英] Cannot pull APK from Android device with adb

查看:339
本文介绍了无法使用adb从Android设备中提取APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从设备中获取已安装应用程序的APK。我正在按照此答案中的说明进行操作,但是在将其提取时,adb表示APK不存在。这是确切的步骤:

I'm trying to get the APK of an installed application from my device. I'm following the instructions in this answer but when pulling it, adb says the APK doesn't exist. This are the exact steps:

$ adb shell pm list packages
...
(whole list of packages)
...

$ adb shell pm path com.google.android.apps.books
package:/data/app/com.google.android.apps.books-1/base.apk

$ adb pull /data/app/com.google.android.apps.books-1/base.apk
adb: error: remote object '/data/app/com.google.android.apps.books-1/base.apk' does not exist

如何将这个文件拉到本地驱动器上?

How can I pull this file to my local drive?

推荐答案

尝试一下:

$ adb shell cp /data/app/com.google.android.apps.books-1/base.apk /storage/emulated/0/Download/base.apk

然后

$ adb pull /storage/emulated/0/Download/base.apk

这篇关于无法使用adb从Android设备中提取APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆