Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Emulator and Real Device for Installed applications?

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?

like image 330
Praveenkumar Avatar asked Oct 24 '22 21:10

Praveenkumar


2 Answers

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).

like image 73
Stephan Branczyk Avatar answered Oct 27 '22 02:10

Stephan Branczyk


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:

getApplicationContext().getFilesDir().getAbsolutePath().replaceFirst("/file.*$", "");
like image 23
Vito Gentile Avatar answered Oct 27 '22 02:10

Vito Gentile