How do I get the apk file from an android device? Or how do I transfer the apk file from device to system?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Yet another bash script (i.e. will work for most unix-based systems). Based on the answer by Pedro Rodrigues, but is slightly easier to use.
Improvements over Pedro's version:
adb pull
kept complaining aboutno such file or directory
whileadb shell
could access the file. Hence I used different approach, with temporary file.Save this to an executable file:
I haven't used code to pull .apk file from mobile but i have been using software to extract .apk file from mobile and software i have used are below with google play link:
Hope it helps You.
No Root and no ADB tools required method. Install MyAppSharer app from the play store.
Get the currently opened app with:
Get the path to the package name
4.Copy the path you got to the sdcard directory
5.Pull the apk
Completing @Yojimbo 's answer, this is what I did (Linux/Mac only, will not work out of the box on Windows... maybe in git's bash shell):
This is ugly bash, but works :)
EDIT: It no longer works on AndroidM: all files are named "base.apk" under another dir. Should be "trivial" to fix.
One liner which works for all Android versions: