Stay organized with collections
Save and categorize content based on your preferences.
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.
Figure 1. The Device Explorer tool window.
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:
Note: Not all files on a hardware device are
visible in the Device Explorer. For example, in the data/data/
directory, entries corresponding to apps on the device that are not debuggable
can't be expanded in the Device Explorer.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-07-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-25 UTC."],[],[],null,["# View on-device files with Device Explorer\n\nThe Device Explorer lets you view, copy, and delete files on an\nAndroid device. It's useful when examining files your app creates\nor if you want to transfer files to and from a device.\n| **Note:** Most device data is not visible unless you are using a rooted device or an emulator with a standard Android (AOSP) system image, not one of the Google APIs or Google Play system images. When using a connected device, be sure to [enable USB debugging](/studio/debug/dev-options#enable).\n\nTo work with a device's file system, proceed as follows:\n\n1. To open the Device Explorer, select **View \\\u003e Tool Windows \\\u003e Device\n Explorer** or click the **Device Explorer** button in the tool window bar.\n2. Select a device from the drop-down list.\n3. Interact with the device content in the file explorer window:\n - Right-click a file or directory to create a new file or directory.\n - Save, upload, delete, or synchronize the selected file or directory to your machine.\n - Double-click a file to open it in Android Studio.\n\n\n**Figure 1.** The Device Explorer tool window.\n\nAndroid Studio saves files you open in the Device Explorer in a temporary\ndirectory outside of your project. If you make modifications to a file\nopened using the Device Explorer and want to save your changes back\nto the device, you must manually upload the modified version of the file to the\ndevice.\n\nWhen exploring a device's files, the following directories are particularly\nuseful:\n\n`data/data/`\u003cvar translate=\"no\"\u003eapp_name\u003c/var\u003e`/`\n: Contains data files for your app stored on\n [internal storage](/training/data-storage#categories-locations).\n\n`sdcard/`\n: Contains user files stored on\n [external user\n storage](/training/data-storage#categories-locations) (pictures, etc.).\n\n**Note:** Not all files on a hardware device are\nvisible in the Device Explorer. For example, in the `data/data/`\ndirectory, entries corresponding to apps on the device that are not debuggable\ncan't be expanded in the Device Explorer."]]