export function toRealPath(sanboxPath: string) {
let bundleName = getContext().applicationInfo.name
return sanboxPath.replace("/data/storage/", "/data/app/")
.replace("/el2/", "/el2/100/")
.replace("/el1/bundle", `/el1/bundle/public/${bundleName}`)
.replace("/base/haps/", `/base/${bundleName}/haps/`)
}
3.2 大部分场景适用, 二级子hap未支持
[参考 应用文件目录与应用文件路径](OpenAtom OpenHarmony)