openharmony内置Browser应用

  • Post author:
  • Post category:其他


https://gitee.com/openharmony/applications_app_samples#/openharmony/applications_app_samples/blob/master/code/BasicFeature/Web/Browser在此链接中找到并下载Browser源码,导入DevEco Studio,并打包出一个hap,

  1. 将Browser.hap放到目录applications\standard\hap 下面
  2. 修改BUILD.gn,添加
ohos_prebuilt_etc("browser_hap") {
  source = "Browser.hap"
  module_install_dir = "app/ohos.samples.browser1"
  part_name = "prebuilt_hap"
  subsystem_name = "applications"
}
"//applications/standard/hap:browser_hap",

3.再修改文件 vendor\hihope\rk3568\preinstall-config\install_list.json按规则添加

        {
            "app_dir": "/system/app/ohos.samples.browser1",
            "removable": false
        }

4.再使用./build.sh –product-name rk3568 –ccache 烧录就好了



版权声明:本文为peachs885090原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。