已安装应用程序的模拟器和真实设备之间的区别?
设备和模拟器中已安装应用程序的列表有什么区别?在模拟器中,我可以在 /data/app
位置看到已安装的应用程序,
但是,我在真实设备上看不到已安装的应用程序。它存储在哪里。我可以从这里看到默认应用程序 /system/app
但我看不到我下载的已安装应用程序和我自己的应用程序。有人指导我吗?
What is the difference for installed application's list in device and emulator. In emulator i can see the installed apps in location of /data/app
But, i can't see the installed application on my real device. Where it is stored. I can see the default application from here /system/app
But i can't see installed application whatever i downloaded and my own application. Anyone guide me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在模拟器上,您具有 root 访问权限。
在您的手机上,您没有 root 访问权限(除非您 root)。每个应用程序都有自己的私有文件夹和自己的 Linux 用户 ID,这样一个应用程序就无法查看另一个应用程序的文件夹。这只是 Android 安全模型的一方面。还有更多。
您是否在这些文件夹中寻找特定的内容?如果是这样,有一些解决方法。例如,如果您尝试查看 sqlite.db 文件,一种解决方法是让您自己的应用程序(因为它有权这样做)以编程方式读取数据库文件并在 SD 卡上重新构建它(每次你想手动检查它)。
On the emulator, you have root access.
On your phone, you do not have root access (unless you root it). And each application gets its own private folder with its own linux userid, so that one application can not look into the folder of another application. This is but only one aspect of the Android security model. There are many more.
Are you looking for anything in particular in those folders? If so, there are workarounds. For instance, if you're trying to look at your sqlite.db file, one workaround is to have your own application (since it has the permission to do so) programmatically read the database file and reconstitute it on the SD card (every time you want to manually check it).
在我的设备(Samsung Galaxy Tab 10.1、Android 3.1)中,安装的应用程序位于
/data/data
中。编辑:如果你想在运行时获取目录的绝对路径,你可以使用这个技巧:
In my device (Samsung Galaxy Tab 10.1, Android 3.1) installed apps are in
/data/data
.EDIT: If you want to get absolute path of your directory at runtime, you can use this trick: