修复5.0.0r 64位版本浏览器和一些库找不到的问题
笔者在使用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"
{
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"
}, {
libnet_bundle_utils.z.so 库找不到
libnet_bundle_utils.z.so的实际路径在
搜索源码查找相关代码
修改foundation/communication/netstack/utils/common_utils/src/netstack_bundle_utils.cpp,改为实际路径
#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