/ohos5.0/base/startup/appspawn/service/hnp/ |
H A D | README_zh.md | 10 * 将Native软件包源文件打包成hnp包。 11 * 将hnp包打入hap包。 25 2. Hap工程根目录下新增hnp根目录,在hap打包命令中用--hnp-path指定hnp根目录。hnp根目录下根据设备的操作系统ABI名称(例如arm64-v8a)创建文件夹,文件目录格式如下: 31 |______python.hnp 33 |________test.hnp 55 1. 公有hnp包安装后应用进程沙箱路径为/data/service/hnp/xxx.org/xxx_yyy,私有hnp包安装后应用进程沙箱路径为/data/app/bundleName/xxx.o… 56 …hnp包根路径的环境变量HNP_PUBLIC_HOME=/data/service/hnp,私有hnp包根路径的环境变量HNP_PRIVATE_HOME=/data/app。HNP_PRIVATE… 57 3. 公有hnp包可以被所有应用访问,私有hnp包只允许被安装该hnp包的hap应用访问。 58 4. 卸载hap应用会同步卸载该hap应用安装的所有hnp包,如果该hnp包中二进制正在被其他应用使用,则会导致hap应用卸载失败。 59 5. Hap应用A和B安装相同公有hnp包(hnp.json文件中"name"和"version"字段相同)。后安装的应用会跳过该hnp包的安装。仅当hap应用A和B都被卸载时,该公有hnp包会被卸… [all …]
|
H A D | BUILD.gn | 17 ohos_executable("hnp") { 23 "${appspawn_path}/service/hnp/base/hnp_file.c", 24 "${appspawn_path}/service/hnp/base/hnp_json.c", 25 "${appspawn_path}/service/hnp/base/hnp_log.c", 26 "${appspawn_path}/service/hnp/base/hnp_sal.c", 27 "${appspawn_path}/service/hnp/base/hnp_zip.c", 28 "${appspawn_path}/service/hnp/hnp_main.c", 57 "${appspawn_path}/service/hnp/base/hnp_file.c", 59 "${appspawn_path}/service/hnp/base/hnp_log.c", 60 "${appspawn_path}/service/hnp/base/hnp_zip.c", [all …]
|
/ohos5.0/base/startup/appspawn/service/hnp/installer/ |
H A D | README_zh.md | 21 Native软件包安装就是将从应用市场下载解压出来的hnp包安装到鸿蒙PC设备上。当前提供接口调用以及hnp命令行两种方式进行安装。 23 1) hnp帮助命令 hnp -h 47 2) hnp命令行安装: 49 hnp install -u [系统用户ID] -p [hap包名] <-i [hnp安装包所在路径]> <-f> 61 hnp安装包路径 63 |____xxx.hnp 65 |____xxx.hnp 67 |______yyy.hnp 87 "hnp":[ #hnp安装信息 175 1) hnp命令行卸载: [all …]
|
H A D | errorcode-hnp.md | 606 检查传入的参数个数是否正确。可通过命令hnp help查询正确的参数格式 637 1. 传入的hnp包所在路径非法 647 Get hnp file name failed. 651 获取不到hnp文件的名字信息 655 文件名不是.hnp结尾的名字 659 检查目录下是否存在非.hnp后缀名的文件 694 检查传入的参数个数是否正确。可通过命令hnp help查询正确的参数格式 750 Num of hnp file over limit.
|
H A D | api_hnp.md | 42 hnpRootPath:hnp安装包存放路径;
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/startup/appspawn/public/ |
H A D | hnp.te | 14 type hnp, native_system_domain, domain; 21 allow hnp data_app_file:dir { search }; 53 …c: denied { dac_override } for pid=8158 comm="hnp" capability=1 scontext=u:r:hnp:s0 tcontext=u… 54 allow hnp hnp:capability { dac_override }; 71 # avc: denied { create } for pid=7556 comm="hnp" name="hnp.json" scontext=u:r:hnp:s0 tcontext=u:… 73 … avc: denied { setattr } for pid=7556 comm="hnp" name="hnp.json" dev="sdd78" ino=12155 scontext… 117 allow hnp proc_file:file { getattr }; 195 allow hnp hnp:capability { dac_read_search }; 228 allow hnp data_file:dir { search }; 236 … avc: denied { use } for pid=12202 comm="hnp" path="/system/bin/hnp" dev="sdd74" ino=531 sconte… [all …]
|
H A D | installs.te | 14 ## add hnp exec type 19 domain_auto_transition_pattern(installs, hnp_exec, hnp);
|
H A D | file_contexts | 14 /system/bin/hnp u:object_r:hnp_exec:s0
|
/ohos5.0/base/startup/appspawn/service/hnp/pack/ |
H A D | README_zh.md | 1 # Native软件打hnp包功能开发指导 21 hnp.json #hnp配置文件 24 其中hnp.json为hnp打包配置文件,需要放在软件包的外层目录,只能命名为hnp.json,内容要满足json文件的格式要求,该文件支持对可执行二进制进行软链接配置,具体的配置格式如下: 27 "type":"hnp-config", #固定标识符“hnp-config” 52 …5. hnp安装之后,用户通常以others权限运行。在windows上打包hnp包,安装后文件默认赋予others可执行权限。在linux、mac、ohos操作系统上打包hnp包,安装后文件继承… 67 配置文件hnp.json内容如下: 69 "type":"hnp-config", 109 一种是软件包里有hnp.json的打包命令: 116 另一种是软件包里没有hnp.json的打包方式: 120 1. 打包路径下没有hnp.json配置文件,则需要用户传入-n和-v参数,否则打包失败(打包软件会根据入参在压缩文件根目录中主动生成hnp.json)。 [all …]
|
/ohos5.0/base/startup/appspawn/test/unittest/hnp_test/ |
H A D | BUILD.gn | 32 "${appspawn_path}/service/hnp/base", 33 "${appspawn_path}/service/hnp/pack/include", 34 "${appspawn_path}/service/hnp/installer/include", 35 "${appspawn_path}/interfaces/innerkits/hnp/include", 40 "${appspawn_path}/interfaces/innerkits/hnp/src/hnp_api.c", 41 "${appspawn_path}/service/hnp/base/hnp_file.c", 42 "${appspawn_path}/service/hnp/base/hnp_json.c", 43 "${appspawn_path}/service/hnp/base/hnp_log.c", 44 "${appspawn_path}/service/hnp/base/hnp_sal.c", 45 "${appspawn_path}/service/hnp/base/hnp_zip.c", [all …]
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/startup/appspawn/system/ |
H A D | hnp.te | 15 …{ getattr } for pid=12202 comm="hnp" path="/system/lib64/libcode_sign_utils.z.so" dev="sdd74" ino… 16 …ed { map } for pid=12202 comm="hnp" path="/system/lib64/libcode_sign_utils.z.so" dev="sdd74" ino… 17 …d execute } for pid=12202 comm="hnp" path="/system/lib64/libcode_sign_utils.z.so" dev="sdd74" ino… 18 …read open } for pid=12202 comm="hnp" path="/system/lib64/libcode_sign_utils.z.so" dev="sdd74" ino… 19 …d { read } for pid=12202 comm="hnp" path="/system/lib64/libcode_sign_utils.z.so" dev="sdd74" ino… 20 allow hnp code_sign_utils:file { getattr map read execute read open read }; 22 allow hnp key_enable:key { search };
|
/ohos5.0/base/startup/appspawn/interfaces/innerkits/hnp/ |
H A D | BUILD.gn | 20 [ "//base/startup/appspawn/interfaces/innerkits/hnp/include" ] 24 include_dirs = [ "${appspawn_path}/interfaces/innerkits/hnp/include" ] 25 sources = [ "${appspawn_path}/interfaces/innerkits/hnp/src/hnp_api.c" ]
|
/ohos5.0/base/security/selinux_adapter/sepolicy/base/system/ |
H A D | system_domain.te | 63 …-hap_domain -render_service developer_only(`-hnp') -rgm_violator_ohos_vendor_etc_dir_search } vend… 74 …n -init -telephony_sa -vendor_etc_file_violator_file_open developer_only(`-hnp') -rgm_violator_oho… 77 …n -init -telephony_sa -vendor_etc_file_violator_file_read developer_only(`-hnp') -rgm_violator_oho… 80 … -cjappspawn -init -vendor_etc_file_violator_file_getattr developer_only(`-hnp') -rgm_violator_oho…
|
/ohos5.0/base/startup/appspawn/ |
H A D | BUILD.gn | 78 deps += [ "service/hnp:hnp" ]
|
/ohos5.0/base/startup/appspawn/test/moduletest/hnp_sample/out/hnpsample/cfg/ |
H A D | hnpsample.cfg | 1 This is hnp sample config file.
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/security/code_signature/system/ |
H A D | code_sign_utils.te | 16 neverallow {domain -installs -ark_aot_compiler developer_only(`-hnp')} code_sign_utils:file { execu…
|
/ohos5.0/docs/zh-cn/application-dev/tools/ |
H A D | packing-tool.md | 21 …out-path <path> [--force true] [--compress-level 5] [--pkg-context-path <path>] [--hnp-path <path>] 55 | --hnp-path | 否 | NA | 指定native软件包文件路径,将native软件包打入HAP包内。 | NA |
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | application_info.cpp | 481 std::unique_ptr<HnpPackage> hnp(parcel.ReadParcelable<HnpPackage>()); in ReadFromParcel() local 482 if (!hnp) { in ReadFromParcel() 486 hnpPackages[key].emplace_back(*hnp); in ReadFromParcel() 698 for (auto &hnp : item.second) { in Marshalling() local 699 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Parcelable, parcel, &hnp); in Marshalling()
|
/ohos5.0/base/security/selinux_adapter/sepolicy/base/public/ |
H A D | domain.te | 276 neverallow { domain developer_only(`-wukong -SP_daemon -aa -hdcd -sh -hnp -hnp_hap_domain_attr') -i… 293 …-storage_daemon -usb_host -cap_violator_dacoverride developer_only(`-hnp') -rgm_violator_ohos_capa… 294 …_dacreadsearch updater_only(`-updater') -wifi_host developer_only(`-hdcd -hnp') -distributedfiled…
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | module-configuration-file.md | 96 "package": "hnpsample.hnp", 1096 "package": "hnpsample.hnp",
|
/ohos5.0/docs/zh-cn/release-notes/ |
H A D | OpenHarmony-v5.0-beta1.md | 515 - 签名工具支持应用包内Native包(.hnp)代码签名。
|
/ohos5.0/docs/en/application-dev/tools/ |
H A D | packing-tool.md | 21 …out-path <path> [--force true] [--compress-level 5] [--pkg-context-path <path>] [--hnp-path <path>] 55 | --hnp-path | No| NA | Path of the native software package to be packed into the HAP file.| NA |
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/bundlemanager/bundle_framework/system/ |
H A D | installs.te | 14 neverallow { domain -installs debug_only(` -aa ') -bundle_data_app_el1_file developer_only(`-hnp') …
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | module-configuration-file.md | 96 "package": "hnpsample.hnp", 1096 "package": "hnpsample.hnp",
|
/ohos5.0/docs/en/release-notes/ |
H A D | OpenHarmony-v5.0-beta1.md | 515 - The signing tool supports the signing of native package (.hnp) code in the application package.
|