The location of my package when debugging USB in eclipse

I searched all folders in DDMS many times, but I can’t find the folder location of my package in the file manager. I searched for it in storage/sdcard0 , but my package is not there either.

enter image description here

Take a look, I uploaded the photo. Are there any special settings for mobile devices? My version of Android phone is 4.4.2

please help me find.

UPDATE

I went through these steps.

And I will get to the My Database folder. Now what to do.

 adb shell run-as com.mypackage ls cd databases ls 

Now after that, what to do.

enter image description here

+5
source share
6 answers

How are you looking for a database. I used to copy the database file to any other place after updating it. (in my code) Then I use any sqlite viewer by phone or PC to view it.

+3
source

I think you need a rooted device as far as I know, files on sdcard / Android / data are not primary files for packages, these are only additional files (most likely not critical and large files) that are stored on external storage, which is an SD card .

main package files are stored in internal memory.

I think you can try this link. Http://developer.android.com/guide/topics/data/install-location.html you can change the installation location of the application.

Br

+2
source

You cannot see files in DDMS, but you can get a list of the locations of all files with the command:

 adb shell pm list packages -f 

(you can also add an optional additional parameter to restrict the listed files to those that correspond to your additional parameter).

Once you have the file location, you can execute a command, for example

 adb pull /system/app/GoogleEarth.apk 

to actually download the file from the device and to the PC.

None of this requires a rooted device.

+2
source

Since you are looking for the database of your application: unfortunately, there is no way to access /data/data/your.package.name/databases through DDMS on an untreated device, as Hussein Ali pointed out correctly. (By the way: data applications ( general prefs, databases ) will be there regardless of the installation location)

Something like this will not work due to Permission denied .

adb pull / data / data / your.package.name / databases / db.sl3

Fortunately, ICS (Android 4.0) has introduced the ability to back up your application data. This is a possible way to copy your database from your open source device to your computer. Please see fooobar.com/questions/1201299 / ... for what you need to do.

+2
source

copy the database file to the SD card so that you can use adb pull and get the database on your computer (you cannot extract files from personal folders, for example /data/data/... ).

I recommend using SQLite Expert to view the database on the desktop: http://www.sqliteexpert.com/

Also, if you still want to use sqlite3 on your device, check out this answer: fooobar.com/questions/42224 / ...

+1
source
Phone storage

considered as external storage in the location "sdcard", where you did not save anything, so nothing (a package with the name folder) is created ... your package will be in the application "private storage", which is in the root folder "data / data / pkg_name ", available only on the root device.

+1
source

Source: https://habr.com/ru/post/1201298/


All Articles