参考的这篇文档
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/app-sandbox-directory-V5
使用devstudio的图形化界面,直接upload也是不行
1、命令行像系统沙盒里推文件,会遇到permission denied
向cache目录推送
hdc file send hello_cube@1_0_0_0.zip /data/app/el2/100/base/com.mpaas.myapplication/cache
[Fail]Error opening file: permission denied, path:/data/app/el2/100/base/com.mpaas.myapplication/cache/hello_cube@1_0_0_0.zip
向安装包目录推送
hdc file send hello_cube@1_0_0_0.zip /data/app/el1/bundle/public/com.mpaas.myapplication/
[Fail]Error opening file: permission denied, path:/data/app/el1/bundle/public/com.mpaas.myapplication/a
2、使用devstudio的图形化界面,直接upload也是不行
当前已有新方案像公共路径以及沙箱路径中推文件,请参考:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-device-file-explorer-0000001558037338-V5\#section1689165819228