| /developtools/packing_tool/adapter/ohos/ |
| D | README | 16 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 …]
|
| D | UncompressEntrance.java | 34 * 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 …]
|
| D | ShowHelp.java | 34 " --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 …]
|
| D | CompressEntrance.java | 34 private static final String HAP_SUFFIX = ".hap"; 40 * @param hapPath Indicates the hap path. 83 * get sha-256 from hap path. 85 * @param hapPath Indicates the hap path. 86 * @return Returns the string of sha-256 for hap. 90 LOG.error("input file is not a hap."); in getHapSha256()
|
| D | HapZipInfo.java | 24 * Hap zip info 89 * Get hap file name. 91 * @return hap file name. 98 * Set hap file name. 100 * @param hapFileName Indicates the hap file name.
|
| D | UncompressVerify.java | 26 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()
|
| D | ConvertHapToBin.java | 23 * hap package to bin package tool main class. 27 private static final String HAP_PATH = "--hap-path"; 35 * generate binary file from hap package 37 * @param hapPath: hap path 66 * generate binary file from hap project
|
| D | Uncompress.java | 51 private static final String HAP_SUFFIX = ".hap"; 63 private static final String HAP_SUFFIXI = ".hap"; 78 private static final String HAP_PREFIX = "HAP"; 142 * unpack hap. 369 * uncompress hap. 387 * uncompress hap by path, it can adapt stage module and fa module. 390 * @param hapPath indicates the hap path of hap. 410 * uncompress hap. 429 * uncompress hap by InputStream, it can adapt stage module and fa module. 432 * @param stream indicates the input stream of hap. [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
| D | HapUtils.java | 18 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 …]
|
| D | ParamConstants.java | 25 * 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/ |
| D | SignHap.java | 16 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 …]
|
| D | SignBin.java | 16 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()
|
| D | Pkcs7Generator.java | 16 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/ |
| D | VerifyHap.java | 16 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/hapsigner/ |
| D | README.md | 5 …HAP 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. 89 …hap-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 …]
|
| D | README_ZH.md | 44 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"… 99 …hap-sign-tool.jar sign-app -keyAlias "oh-app1-key-v1" -signAlg "SHA256withECDSA" -mode "localSign"… 133 2. 准备签名工具jar包:hap-sign-tool.jar(参照上文编译生成的产物)
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/resources/base/element/ |
| D | string.json | 29 "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/provider/ |
| D | SignProvider.java | 16 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 …]
|
| D | RemoteSignProvider.java | 16 package com.ohos.hapsigntool.hap.provider; 19 import com.ohos.hapsigntool.hap.exception.InvalidParamsException; 20 import com.ohos.hapsigntool.hap.exception.MissingParamsException;
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/config/ |
| D | SignerConfig.java | 16 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/ |
| D | signHap.config | 5 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/ |
| D | ServiceApi.java | 91 * 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/ |
| D | SignatureBlockTypes.java | 16 package com.ohos.hapsigntool.hap.entity; 19 * Define class of hap signature block types 23 * type-value of hap signature block
|
| /developtools/packing_tool/configcheck/ |
| D | configSchema_lite.json | 20 …"description": "Indicates the global configuration of an application. Different .hap files of the … 132 …HAP package, copy the device type configuration supported by the HAP package to the generated conf… 190 …tion": "Indicates the configuration of a .hap file. The module configuration is valid only for the… 212 …"description": "Describes the .hap file. The value can be a string or a resource index to descript… 232 …"description": "Indicates the description of the current .hap file.This label cannot be left blank… 248 …he .hap file is installed when the user installs the application.true: The .hap file is installed … 252 … "description": "Indicates the name of the current .hap file.This label cannot be left blank.", 257 …"description": "Indicates the type of the current .hap file. The value can be entry or feature.Thi… 472 …ecise matching during cloud distribution in the AppGallery and defines the HAP distribution policy…
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/exception/ |
| D | SignatureNotFoundException.java | 16 package com.ohos.hapsigntool.hap.exception; 19 * Exception that occurs when finding signature in the signed hap file.
|