| /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 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() 98 "java -jar app_unpacking_tool.jar --mode <options> --hap-path <option>\n" + in uncompressHelp() 101 " --mode not null must be hap.\n" + in uncompressHelp() 102 " --hap-path not null hap path.\n" + in uncompressHelp() 106 … " --unpackapk default false; if true, unpack apk files from hap\n" + in uncompressHelp() [all …]
|
| D | HapZipInfo.java | 21 * 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.
|
| 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 | CompressEntrance.java | 29 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()
|
| D | ConvertHapToBin.java | 22 * 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
|
| D | ScanErrorEnum.java | 49 SCAN_UNPACK_ERROR(9131206, "unpack hap failed IOException "), 50 SCAN_UNPACK_STREAM_ERROR(9131207, "unpack hap FileOutputStream failed IOException "), 54 SUFFIX_UNPACK_ERROR(9131501, "unpack hap failed IOException "), 55 SUFFIX_UNPACK_STREAM_ERROR(9131502, "unpack hap FileOutputStream failed IOException ");
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/ |
| D | HapUtils.java | 16 package com.ohos.hapsigntool.hap.utils; 19 import com.ohos.hapsigntool.hap.entity.SigningBlock; 48 * Hap util, parse hap, find signature block. 56 * ID of hap signature blocks of version 1 61 * ID of hap proof of rotation block 112 * hap sign schema v2 signature block version 117 * hap sign schema v3 signature block version 142 * Size of hap signature block header 147 * The min size of hap signature block 152 * hap block size [all …]
|
| /developtools/hapsigner/tools/ |
| D | commands.config | 89 …1-profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_pass.jks" -outFile "app1-sig… 90 …-profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_pass.jks" -outFile "app1-unsi… 91 …1-profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_pass.jks" -outFile "app1-sig… 92 …-profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_nopass.jks" -outFile "app1-si… 93 …profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_nopass.jks" -outFile "app1-uns… 94 …-profile.p7b" -inFile "test/app1-unsigned.hap" -keystoreFile "ohtest_nopass.jks" -outFile "app1-si… 95 …e "profile.json" -keystoreFile "ohtest_pass.jks" -outFile "app1-signedcode.hap" -keyPwd "123456" -… 96 …e "profile.json" -keystoreFile "ohtest_pass.jks" -outFile "app1-signedcode.hap" -keyPwd "123456" -… 97 …e "profile.json" -keystoreFile "ohtest_pass.jks" -outFile "app1-signedcode.hap" -keyPwd "123456" -… 98 …"profile.json" -keystoreFile "ohtest_pass.jks" -outFile "app1-unsignedcode.hap" -keyPwd "123456" -… [all …]
|
| /developtools/hapsigner/ |
| D | README.md | 7 … (CSR), or a certificate, and signing a profile, a Harmony Ability Package (HAP), or a binary tool. 10 …t as required. Currently, hapsigner supports code signing only for apps in hap format and binary t… 40 …3. Check that **hap-sign-tool.jar** (binary files) is generated in the **./hap_sign_tool/target** … 52 Signing tool: hap-sign-tool.jar 68 You can use commands to sign a profile and a HAP or binary tool. 74 java -jar hap-sign-tool.jar sign-profile -keyAlias "oh-profile1-key-v1" -signAlg "SHA256withECDSA"… 91 2. Sign a HAP or binary tool. 95 …hap-sign-tool.jar sign-app -keyAlias "oh-app1-key-v1" -signAlg "SHA256withECDSA" -mode "localSign"… 99 sign-app: sign a HAP or binary tool 104 …gned provisioning profile in p7b format. This parameter is mandatory for a HAP and optional for a … [all …]
|
| /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; 23 import com.ohos.hapsigntool.hap.entity.SigningBlock; 28 import com.ohos.hapsigntool.hap.utils.HapUtils; 65 * Class of verify hap. 109 * @param options input parameters used to verify hap. 128 * verify hap file. 130 * @param options input parameters used to verify hap. 147 LOGGER.error("Check input signature hap false!"); in verify() 236 * Verify hap file. 238 * @param hapFilePath path of hap file. [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/entity/ |
| 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 * json type content of Hap-file's capability profile 145 * Hap-file's proof-of-rotation 240 * The config params of resign hap 250 * The code sign params of resign hap
|
| /developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/ |
| D | config.yaml | 45 app: .hap 77 hap: system/internal 93 hap: 112 hap: system/internal 123 hap: 197 hap: app 214 hap:
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/ |
| D | CodeSigning.java | 33 import com.ohos.hapsigntool.hap.config.SignerConfig; 66 * Only hap and hsp, hqf bundle supports code signing 68 public static final String[] SUPPORT_FILE_FORM = {"hap", "hsp", "hqf"}; 76 * Defined entry name of hap file 78 public static final String HAP_SIGNATURE_ENTRY_NAME = "Hap"; 91 * provide code sign functions to sign a hap 152 * Sign the given hap file, and pack all signature into output file 157 * @param profileContent profile of the hap 162 * @throws HapFormatException hap format invalid 164 * @throws ProfileException profile of the hap error [all …]
|
| /developtools/packing_tool/adapter/scanner/ |
| D | README_zh.md | 47 "/application-entry-default.hap/libs/armeabi-v7a/example.so", 48 "/entry-default.hap/libs/armeabi-v7a/example.so" 91 <td>/application-entry-default.hap/libs/armeabi-v7a/example.so</td> 94 <td>/entry-default.hap/libs/armeabi-v7a/example.so</td> 144 "file":"/application-entry-default.hap/libs/x86_64/example.so", 180 <td>/application-entry-default.hap/libs/x86_64/example.so</td> 230 "test.app/application-entry-default.hap", 231 "test.app/entry-default.hap" 238 "file":"/application-entry-default.hap/libs/x86_64/example.so", 246 "file":"/application-entry-default.hap/ets/modules.abc", [all …]
|
| /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/sign/ |
| D | SignHap.java | 16 package com.ohos.hapsigntool.hap.sign; 21 import com.ohos.hapsigntool.hap.config.SignerConfig; 23 import com.ohos.hapsigntool.hap.entity.SigningBlock; 27 import com.ohos.hapsigntool.hap.utils.HapUtils; 49 * Hap Signature Scheme signer 69 * @param in input hap-file which is opened as a jar-file. 74 * @throws HapFormatException hap format error. 119 throw new HapFormatException("Hap format is error, file missing"); in copyFiles() 260 * Compute digests of Hap contents in getHapSigningBlock() 261 * Sign the digests and wrap the signature and signer info into the Hap Signing Block in getHapSigningBlock() [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; 200 LOGGER.error("Sign hap Lite failed.", e); in writeSignDataToOutputFile()
|
| /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/hap/provider/ |
| D | SignProvider.java | 16 package com.ohos.hapsigntool.hap.provider; 28 import com.ohos.hapsigntool.hap.config.SignerConfig; 29 import com.ohos.hapsigntool.hap.entity.SigningBlock; 36 import com.ohos.hapsigntool.hap.sign.SignBin; 37 import com.ohos.hapsigntool.hap.sign.SignElf; 38 import com.ohos.hapsigntool.hap.sign.SignHap; 40 import com.ohos.hapsigntool.hap.verify.VerifyUtils; 45 import com.ohos.hapsigntool.hap.utils.HapUtils; 120 * list of hap signature optional blocks 265 LOGGER.error("hap-sign-tool: error: Sign bin internal failed."); in signBin() [all …]
|
| /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 25 * type-value of hap signature block
|
| /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; 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/packing_tool/ |
| D | OAT.xml | 62 …me="jar/app_packing_tool.jar" desc="the jar file for packing pre-installed hap, the file is self-d… 63 …lepath" name="jar/app_unpacking_tool.jar" desc="the jar file for unpacking hap, the file is self-d… 64 …type="filepath" name="jar/app_check_tool.jar" desc="the jar file for check hap, the file is self-d… 65 … type="filepath" name="jar/haptobin_tool.jar" desc="the jar file for hap to bin hap, the file is s…
|