1# Sending Files to an Application Sandbox 2 3During the development and debugging process of an application, you may need to place some files to the application sandbox for intra-application access or for testing purposes. In this case, you can use either of the following methods: 4 51. Use DevEco Studio to place the files to the application installation directory. For details, see [Application Installation Resource Access](../quick-start/resource-categories-and-access.md# resource-access). 6 72. Use the hdc tool to send files to the application sandbox directory on the device. This section describes the second method. 8 9However, the file directories visible to the debugged process in the hdc shell are different from the application sandbox directories visible to the application. You need to understand the mappings between the application sandbox directories and the physical (real) directories. 10 11## Mappings Between Application Sandbox Directories and Physical Directories 12 13The read and write operations performed based on the application sandbox paths via APIs are performed on the files in the physical directories after address conversion. The following table lists the mappings between application sandbox paths and physical paths. 14 15**Table 1** Mapping between application sandbox paths and physical paths 16 17| Application Sandbox Path| Physical Path in hdc| Description| 18| -------- | -------- | -------- | 19| /data/storage/el1/bundle | /data/app/el1/bundle/public/<PACKAGENAME> | Application installation package directory.| 20| /data/storage/el1/base | /data/app/el1/<USERID>/base/<PACKAGENAME> | Application directory of encryption level (el) 1.| 21| /data/storage/el2/base | /data/app/el2/<USERID>/base/<PACKAGENAME> | Application directory of el 2.| 22| /data/storage/el1/database | /data/app/el1/<USERID>/database/<PACKAGENAME> | Database directory of the application under **el1/**.| 23| /data/storage/el2/database | /data/app/el2/<USERID>/database/<PACKAGENAME> | Database directory of the application under **el2/**.| 24| /data/storage/el2/distributedfiles | /mnt/hmdfs/<USERID>/account/merge_view/data/<PACKAGENAME> | Distributed data directory of the application under **el2/**.| 25 26## Development Example 27 28The following uses the application bundle **com.ohos.example** as an example. If the application sandbox path is **/data/storage/el1/bundle**, the physical path is **/data/app/el1/bundle/public/<PACKAGENAME>**, that is, **/data/app/el1/bundle/public/com.ohos.example**. 29 30Run the following command to send the file: 31 32``` 33hdc file send ${Path of the local file to send} /data/app/el1/bundle/public/com.ohos.example/ 34``` 35 36## Switching to the Application View 37 38During the debugging process, if you do not have the permission or the file does not exist, you need to switch from the process view to the application view and further analyze permission and directory problems. To switch to the application view, run the following commands: 39 40``` 41hdc shell // Switch to shell. 42ps -ef|grep [hapName] // Obtain the process identifier (PID) of the application. 43nsenter -t [hapPid] -m /bin/sh // Enter the application sandbox environment based on the PID. 44``` 45 46The application view is in use, and the path you see is the application sandbox path. 47