The Device Explorer lets you view, copy, and delete files on an Android device. It's useful when examining files your app creates or if you want to transfer files to and from a device.
To work with a device's file system, proceed as follows:
- To open the Device Explorer, select View > Tool Windows > Device Explorer or click the Device Explorer button in the tool window bar.
- Select a device from the drop-down list.
- Interact with the device content in the file explorer window:
- Right-click a file or directory to create a new file or directory.
- Save, upload, delete, or synchronize the selected file or directory to your machine.
- Double-click a file to open it in Android Studio.
Android Studio saves files you open in the Device Explorer in a temporary directory outside of your project. If you make modifications to a file opened using the Device Explorer and want to save your changes back to the device, you must manually upload the modified version of the file to the device.
When exploring a device's files, the following directories are particularly useful:
- Contains data files for your app stored on internal storage.
- Contains user files stored on external user storage (pictures, etc.).
Note: Not all files on a hardware device are
visible in the Device Explorer. For example, in the
directory, entries corresponding to apps on the device that are not debuggable
can't be expanded in the Device Explorer.