Android 安装在 sdcard 上的应用程序的 .apk 位置在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10533030/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:04:41  来源:igfitidea点击:

where is .apk location for apps that are installed on sdcard?

androidlocationexternalapk

提问by rohitverma

I know that the location for system apps is '/system/app' and the location for user apps is '/data/app'. But I can't find the location of apk for the ones that I moved to/installed on sdcard.

我知道系统应用程序的位置是“/system/app”,用户应用程序的位置是“/data/app”。但是我找不到移动到/安装在 sdcard 上的 apk 的位置。

采纳答案by Robert

Apps installed on the SD-Card are stored within the directory ".android_secure".

安装在 SD 卡上的应用程序存储在目录“ .android_secure”中。

If I remember correctly you won't find the APK files directly in that folder because the content is encrypted. This is for preventing direct access to the APK file of paid apps.

如果我没记错的话,您不会直接在该文件夹中找到 APK 文件,因为内容是加密的。这是为了防止直接访问付费应用的 APK 文件。

The encrypted part is mounted somewhere else into the file system.

加密的部分安装在文件系统的其他地方。

回答by Eric Nemchik

For me at least using cyanogenmod9 on a Samsung galaxy s 2 i777 I found them in /mnt/asec/ This location works differently than /system/app/ and /data/app/ because the system is actually creating a mount for each app rather than just stuffing them in a folder. Make sure you take note of symbolic links.

对我来说,至少在三星 Galaxy s 2 i777 上使用 cyanogenmod9 我在 /mnt/asec/ 这个位置的工作方式与 /system/app/ 和 /data/app/ 不同,因为系统实际上是为每个应用程序创建一个安装而不是而不是把它们塞进一个文件夹。确保记下符号链接。

You will not be able to add to here like you can the other two, but you can extract an apk. A better solution would be MyAppSharer from the market.

您将无法像其他两个一样添加到此处,但您可以提取 apk。更好的解决方案是市场上的 MyAppSharer。

回答by Senthilkumar

It will be in mnt -> asec -> -> pkg.apk

它将在 mnt -> asec -> -> pkg.apk

回答by user1972814

On Android 5.0+ (Lollipop, Marshmallow) almost every installed non-system app will be placed in:

在 Android 5.0+(Lollipop、Marshmallow)上,几乎所有已安装的非系统应用程序都将放置在:

/data/app/

Access to /data requires root.

访问 /data 需要 root。

Use suwhen you are working with adb shellto gain root access, this of course requires your phone to be rooted in the first place.

在使用adb shell时使用su以获得 root 访问权限,这当然首先需要你的手机植根。

The directory contains a sub directory for every app. Each sub directory is named by his package, following Androids app naming convention:

该目录包含每个应用程序的子目录。每个子目录都以其包命名,遵循 Android 应用程序命名约定:

tld.author.appname-N

Where N represents a number greater or equal to 1

其中 N 表示大于或等于 1 的数字

e.g. for Firefox it will look something like:

例如对于 Firefox,它看起来像:

org.mozilla.firefox-1

Inside every app directory you will find a base.apkwhich is representing the installed app.

在每个应用程序目录中,您都会找到代表已安装应用程序的base.apk

So if you want Firefox simply download:

因此,如果您想要 Firefox,只需下载:

/data/app/org.mozilla.firefox-1/base.apk

using adb pull/scp or copy it to your sdcard and download it using MTP.

使用 adb pull/scp 或将其复制到您的 SD 卡并使用 MTP 下载。

Cheers

干杯

回答by Mikhail

On lineage 14, Android 7 , all sdcard apps are stored in /mnt/expand/ And apk in folder "app"

在 lineage 14, Android 7 上,所有 sdcard 应用程序都存储在 /mnt/expand/ 和文件夹“app”中的 apk

回答by Nikhil Lamba

it is in File Explorer--> mnt/sdcard

它在文件资源管理器中--> mnt/sdcard

回答by Nilesh

Install ES file explorer. Go to Home Page there will be link App...under that you will find all the apps installed on sd card or phone memory.. select app and share...enjoy...

安装ES 文件浏览器。转到主页,将有链接应用...在该链接下您将找到安装在 SD 卡或手机内存上的所有应用...选择应用并分享...享受...