Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

like image 200
Think Twice Code Once Avatar asked Dec 24 '22 09:12

Think Twice Code Once


2 Answers

For Googlers: Since some version of Android Studio, Device File Explorer's default saving location can be changed in Settings - Tools - Device File Explorer - Download location.

like image 62
Perqin Avatar answered Jan 17 '23 13:01

Perqin


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/

like image 38
Bruke Avatar answered Jan 17 '23 12:01

Bruke