Home
last modified time | relevance | path

Searched full:hap (Results 1 – 25 of 105) sorted by relevance

12345

/developtools/packing_tool/adapter/ohos/
DREADME16 use commands for package hap or app.
19 1.When the app depends on a hap, you need to wait the hap has been packaged,
22 For example: --mode hap --mode app
25 For example: --mode hap app
26 the mode value is hap.
31 7.After package a hap, files under resources/ will put into assets/entry/resources/ directory,
41 HAP USAGE:
46 HAP MODE OPTIONS:
47 --mode not null must be hap.
66 --out-path not null target hap binary path,must end with .hap.
[all …]
DUncompressEntrance.java34 * Parses and returns the hap list that supports the device type.
36 public static final String PARSE_MODE_HAPLIST = "hap-list";
39 * Parses and returns the information about the hap.
41 public static final String PARSE_MODE_HAPINFO = "hap-info";
44 …* Parses and returns the informations about the hap list that supports the device type and the hap…
90 private static final String HAP_SUFFIX = ".hap";
102 HAP_LIST(1, "hap-list"),
103 HAP_INFO(2, "hap-info");
136 …* @param unpackApk Indicates whether to decompress the apk file in the hap.The default value is {@…
173 * Unpack the hap.
[all …]
DShowHelp.java34 " --mode not null must be hap.\n" + in compressHelp()
51 " --out-path not null target hap binary path, must end with .hap.\n" + in compressHelp()
76 "java -jar hmos_app_packing_tool.jar --mode <options> --hap-path <option>\n" + in compressHelp()
81 " --hap-path not null 1.hap path must end with .hap,\n" + in compressHelp()
82 … " if has more than one hap, use comma(,) to separate;\n" + in compressHelp()
83 " 2.hap path also can be directory path.\n" + in compressHelp()
97 "java -jar hmos_app_unpacking_tool.jar --mode <options> --hap-path <option>\n" + in uncompressHelp()
100 " --mode not null must be hap.\n" + in uncompressHelp()
101 " --hap-path not null hap path.\n" + in uncompressHelp()
105 … " --unpackapk default false; if true, unpack apk files from hap\n" + in uncompressHelp()
[all …]
DHapZipInfo.java21 * Hap zip info
86 * Get hap file name.
88 * @return hap file name.
95 * Set hap file name.
97 * @param hapFileName Indicates the hap file name.
DUncompressVerify.java26 private static final String HAP_SUFFIX = ".hap";
73 * parse and check args if valid in hap mode.
76 * @return isVerifyValidInHapMode if verify valid in hap mode.
82 LOG.error("UncompressVerify::isArgsValidInHapMode hap-path must end with.hap!"); in hapCommandVerify()
108 * parse and check args if valid in hap mode.
111 * @return isVerifyValidInRpcidMode if verify valid in hap mode.
126 * @return isVerifyValidInHapMode if verify valid in hap mode.
190 * @return isVerifyValidInHapMode if verify valid in hap mode.
230 * @param hapName type indicates the hap name if the mode is HAP_INFO.
241 LOG.error("uncompressVerify hapName should not empty when parse mode is hap-info!"); in isParseAppModeValid()
DCompressEntrance.java29 private static final String HAP_SUFFIX = ".hap";
35 * @param hapPath Indicates the hap path.
78 * get sha-256 from hap path.
80 * @param hapPath Indicates the hap path.
81 * @return Returns the string of sha-256 for hap.
85 LOG.error("input file is not a hap."); in getHapSha256()
DConvertHapToBin.java22 * hap package to bin package tool main class.
26 private static final String HAP_PATH = "--hap-path";
34 * generate binary file from hap package
36 * @param hapPath: hap path
65 * generate binary file from hap project
DUncompress.java50 private static final String HAP_SUFFIX = ".hap";
61 private static final String HAP_SUFFIXI = ".hap";
76 private static final String HAP_PREFIX = "HAP";
141 * unpack hap.
371 * uncompress hap.
389 * uncompress hap by path, it can adapt stage module and fa module.
392 * @param hapPath indicates the hap path of hap.
412 * uncompress hap.
431 * uncompress hap by InputStream, it can adapt stage module and fa module.
434 * @param stream indicates the input stream of hap.
[all …]
DCompressor.java58 private static final String HAP_SUFFIX = ".hap";
245 * for hap: 1.config.json 2.lib 3.res 4.assets 5.*.so 6.*.dex 7.*.apk 8.resources.index
246 * for app: 1.certificate 2.signature 3.pack.info 4.hap (1 and 2 may not be used)
361 LOG.warning("Compress mode is hap, but module type is shared."); in compressHap()
365 LOG.warning("Compress mode is hap, but app type is shared."); in compressHap()
531 * get SHA256 of hap or hsp
533 * @param filePath the path of hap or hsp.
681 * compress in hap mode.
750 * compress in hap mode for module.json.
835 * compress in hap mode multiple path.
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DHapUtils.java18 import com.ohos.hapsigntool.hap.entity.Pair;
19 import com.ohos.hapsigntool.hap.entity.SigningBlock;
20 import com.ohos.hapsigntool.hap.exception.SignatureNotFoundException;
21 import com.ohos.hapsigntool.hap.sign.ContentDigestAlgorithm;
22 import com.ohos.hapsigntool.hap.sign.SignHap;
49 * Hap util, parse hap, find signature block.
57 * ID of hap signature blocks of version 1
62 * ID of hap proof of rotation block
108 * hap sign schema v2 signature block version
113 * hap sign schema v3 signature block version
[all …]
DParamConstants.java25 * error code of hap format error.
30 * error code of hap parse error.
35 * error code of hap signatures error.
40 * error code of hap signature block not found error.
130 * Hap-file's property, stored developer info
135 * Hap-file's capability profile
140 * Hap-file's proof-of-rotation
235 * The config params of resign hap
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
DSignHap.java16 package com.ohos.hapsigntool.hap.sign;
19 import com.ohos.hapsigntool.hap.config.SignerConfig;
20 import com.ohos.hapsigntool.hap.entity.Pair;
21 import com.ohos.hapsigntool.hap.entity.SigningBlock;
22 import com.ohos.hapsigntool.hap.exception.SignatureException;
44 * Hap Signature Scheme signer
67 * Get all entries' name from hap which is opened as a jar-file.
69 * @param hap input hap-file which is opened as a jar-file.
72 public static List<String> getEntryNamesFromHap(JarFile hap) { in getEntryNamesFromHap() argument
74 for (Enumeration<JarEntry> e = hap.entries(); e.hasMoreElements();) { in getEntryNamesFromHap()
[all …]
DSignBin.java16 package com.ohos.hapsigntool.hap.sign;
18 import com.ohos.hapsigntool.hap.config.SignerConfig;
19 import com.ohos.hapsigntool.hap.entity.HwBlockHead;
20 import com.ohos.hapsigntool.hap.entity.HwSignHead;
21 import com.ohos.hapsigntool.hap.entity.SignContentInfo;
22 import com.ohos.hapsigntool.hap.entity.SignatureBlockTags;
23 import com.ohos.hapsigntool.hap.entity.SignatureBlockTypes;
24 import com.ohos.hapsigntool.hap.exception.SignatureException;
199 LOGGER.error("Sign hap Lite failed.", e); in writeSignDataToOutputFile()
DPkcs7Generator.java16 package com.ohos.hapsigntool.hap.sign;
18 import com.ohos.hapsigntool.hap.config.SignerConfig;
19 import com.ohos.hapsigntool.hap.exception.SignatureException;
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DVerifyHap.java16 package com.ohos.hapsigntool.hap.verify;
19 import com.ohos.hapsigntool.hap.entity.Pair;
20 import com.ohos.hapsigntool.hap.entity.SigningBlock;
21 import com.ohos.hapsigntool.hap.exception.HapFormatException;
22 import com.ohos.hapsigntool.hap.exception.SignatureNotFoundException;
54 * Class of verify hap.
81 * @param options input parameters used to verify hap.
100 * verify hap file.
102 * @param options input parameters used to verify hap.
120 LOGGER.error("Check input signature hap false!"); in verify()
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Dconfig.yaml45 app: .hap
77 hap: system/internal
93 hap:
112 hap: system/internal
123 hap:
197 hap: app
214 hap:
/developtools/hapsigner/
DREADME.md5HAP signing tool - hapsigner. This tool can be used to generate key pairs, certificate signing req…
34 …3. Check that **hap-sign-tool.jar** (binary files) is generated in the **./hap_sign_tool/build/lib…
46 Signature tool: hap-sign-tool.jar
62 Command line signatures include profile signatures and HAP signatures.
68 java -jar hap-sign-tool.jar sign-profile -keyAlias "oh-profile1-key-v1" -signAlg "SHA256withECDSA"…
85 (2) Sign a HAP.
89hap-sign-tool.jar sign-app -keyAlias "oh-app1-key-v1" -signAlg "SHA256withECDSA" -mode "localSign"…
93 sign-app: Sign a HAP.
105 ├── -outFile # Signed HAP file to generate. It is mandatory.
123 2. Prepare **hap-sign-tool.jar**. For details, see section **Build**.
[all …]
DREADME_ZH.md44 3. 编译后得到二进制文件,目录为: ./hap_sign_tool/build/libs/hap-sign-tool.jar
56 签名工具:hap-sign-tool.jar
78 java -jar hap-sign-tool.jar sign-profile -keyAlias "oh-profile1-key-v1" -signAlg "SHA256withECDSA"…
99hap-sign-tool.jar sign-app -keyAlias "oh-app1-key-v1" -signAlg "SHA256withECDSA" -mode "localSign"…
133 2. 准备签名工具jar包:hap-sign-tool.jar(参照上文编译生成的产物)
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
DSignProvider.java16 package com.ohos.hapsigntool.hap.provider;
24 import com.ohos.hapsigntool.hap.config.SignerConfig;
25 import com.ohos.hapsigntool.hap.entity.SigningBlock;
26 import com.ohos.hapsigntool.hap.exception.InvalidParamsException;
27 import com.ohos.hapsigntool.hap.exception.MissingParamsException;
28 import com.ohos.hapsigntool.hap.exception.ProfileException;
29 import com.ohos.hapsigntool.hap.exception.SignatureException;
30 import com.ohos.hapsigntool.hap.exception.VerifyCertificateChainException;
31 import com.ohos.hapsigntool.hap.exception.HapFormatException;
32 import com.ohos.hapsigntool.hap.sign.SignBin;
[all …]
DRemoteSignProvider.java16 package com.ohos.hapsigntool.hap.provider;
19 import com.ohos.hapsigntool.hap.exception.InvalidParamsException;
20 import com.ohos.hapsigntool.hap.exception.MissingParamsException;
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/resources/base/element/
Dstring.json29 "value": "hap sample empty service"
33 "value": "hap sample empty service"
53 "value": "hap sample empty service"
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/config/
DSignerConfig.java16 package com.ohos.hapsigntool.hap.config;
20 import com.ohos.hapsigntool.hap.sign.SignatureAlgorithm;
42 * certificate chain used for sign hap
52 * Signature Algorithms used for sign hap
57 * parameters for sign hap
62 * Signer used for sign hap
/developtools/hapsigner/autosign/
DsignHap.config5 config.signtool=../hapsigntool/hap_sign_tool/build/libs/hap-sign-tool.jar
31 sign.app.inFile=app1-unsigned.hap
32 sign.app.outFile=app1-signed.hap
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/api/
DServiceApi.java91 * Sign for hap.
94 * @return Result indicating whether the HAP is signed.
99 * Verify hap.
102 * @return Result indicating whether the HAP is correct.
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/entity/
DSignatureBlockTypes.java16 package com.ohos.hapsigntool.hap.entity;
19 * Define class of hap signature block types
23 * type-value of hap signature block

12345