笔者在使用5.0.0r版本64位时踩过不少坑,先将相关修复方法分享

浏览器无法使用

base/startup/appspawn/appdata-sandbox64.json添加沙箱配置

相关修复pr:https://gitee.com/openharmony/startup_appspawn/pulls/1854/files

                {
                    "src-path" : "/system/lib64",
                    "sandbox-path" : "/system/lib64",
                    "sandbox-flags" : [ "bind", "rec" ],
                    "check-action-status": "false"
                {

img

http 等依赖的库找不到,导致api无法正常使用

base/startup/appspawn/appdata-sandbox64.json添加沙箱配置

相关修复pr:https://gitee.com/openharmony/startup_appspawn/pulls/1854/files

                }, {
                    "src-path" : "/system/lib64",
                    "sandbox-path" : "/system/lib64",
                    "sandbox-flags" : [ "bind", "rec" ],
                    "check-action-status": "false"
                }, {

img

libnet_bundle_utils.z.so 库找不到

img

libnet_bundle_utils.z.so的实际路径在

img

搜索源码查找相关代码

修改foundation/communication/netstack/utils/common_utils/src/netstack_bundle_utils.cpp,改为实际路径

img

#ifdef __LP64__
    const std::string LIB_NET_BUNDL_UTILS_SO_PATH = "/system/lib64/platformsdk/libnet_bundle_utils.z.so";
#else
    const std::string LIB_NET_BUNDL_UTILS_SO_PATH = "/system/lib/platformsdk/libnet_bundle_utils.z.so";
#endif
Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐