Android 应用程序安装在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11571223/
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 08:04:49  来源:igfitidea点击:

Where are Android apps installed?

androidapk

提问by KevinOrr

What is the actual directory where. APKs are installed? The only directory I could find that somewhat resembles this is

什么是实际目录在哪里。安装了 APK?我能找到的唯一与此类似的目录是

sdcard/Android/data/

but it doesn't contain all my apps.

但它不包含我所有的应用程序。

采纳答案by Erol

It depends.

这取决于。

Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an optional feature you can declare for your application with the android:installLocation manifest attribute. If you do not declare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage.

从 API 级别 8 开始,您可以允许将应用程序安装在外部存储(例如,设备的 SD 卡)上。这是一个可选功能,您可以使用 android:installLocation 清单属性为您的应用程序声明。如果不声明此属性,您的应用程序将仅安装在内部存储上,无法移动到外部存储上。

Internal location is /data/app/yourapplicationnname.

内部位置是/data/app/yourapplicationnname