Android Studio DDMS cannot open / data folder in emulator phone

I recently created an emulator device with Android Studio ,, but found that I could not open the / data / data folder to get the sqlite db file. The folder just does not open, I tried to use scirpt to chmod the / data directory, but it says that the su command was not found.

Emulator

I can not open!

Does anyone have the same problem? Or should I root the emulator? But this is an emulator! I just think it’s inconvenient to root the emulator!

+7
source share
7 answers

DDMS . , . - Android DDMS.

Android-

0

, Android Studio 3.0 , AS 3. 3+, , Device File Explorer, .


, , , SDK.

cmd C:\Users\{}\AppData\Local\Android\Sdk\platform-tools cmd .

open cmd on the current folder

, $:

C:\{User}\...\platform-tools>adb shell
generic_x86:/ $ exit

su/root, adb root :

C:\{User}\...\platform-tools>adb root
generic_x86:/ # exit

Android Device Monitor, .

root adb unroot.

+10

Android Studio , /, API 23 .

+2

Android Studio 3.1.2 DDMS . Android Studio "Device File Explorer", ( , ).

"Device File Explorer" Android, . , , USB AVD.

, .

  1. adb ( chmod)
  2. , "adb pull". :

C:\Users\B\AppData\Local\Android\sdk\platform-tools> adb pull/data/data/com.example.b.expensewatcher/databases/myexpenses.db

/data/data/com.example.b.expensewatcher/databases/myexpenses.db: 1 . 3,3 / (24576 0,007 )

. : https://www.dev2qa.com/android-device-monitor-cannot-open-data-folder-resolve-method/.

+1

, Android, Android Studio, " ", IDE. "data> data> packagename> database", , . .

SQLite " ".

Android " ". , , .. . ,

C:\Users\\Documents\AndroidStudio\DeviceExplorer\Xiaomi-redmi_note_4-164594b\Data\Data\com.android.packagename\

.

, !

0

!!!!

-1

adb, . , data\data​​p >

adb shell
su

adb "\\AppData\Local\Android\sdk1\platform-tools

cmd, . Android- ( )

-2

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


All Articles