简体   繁体   中英

Change default 'Save as…' folder of Device File Explorer of Android Studio

Is there anyway to change the default 'Save as...' folder of Device File Explorer Android Studio 3.0 and above ?
I want to pick a file from my virtual device into my PC, but an error happens, I guess it relates to the permission.

Error saving file(s) to local file system: Cannot create directory C:\\Users\\ABC\\Documents\\AndroidStudio\\DeviceExplorer\\samsung-samsung_sm_n900a-127.0.0.1_6555\\data\\data\\moneymanager.app.com\\files

在此处输入图片说明

对于Google员工:由于使用了某些版本的Android Studio,因此可以在Settings - Tools - Device File Explorer - Download location更改设备文件资源管理器的默认保存Settings - Tools - Device File Explorer - Download location

I haven't found the option to change directory as such but to actually pull the file from the Device File Explorer I recommend the following steps:

  1. Change the folder permissions through adb shell.
  2. Pull the file using "adb pull". See example: 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 file pulled. 3.3 MB/s (24576 bytes in 0.007s)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM