Home
last modified time | relevance | path

Searched refs:entryName (Results 1 - 10 of 10) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
H A DVerifyCodeSignature.java217 String entryName = csb.getSoInfoSegment().getFileNameList().get(i); in verifyLibs()
219 if (entryName.contains("!/")) { in verifyLibs()
220 String[] filePath = entryName.split("!/"); in verifyLibs()
222 hnpLibSignInfoMap.put(entryName, signInfo); in verifyLibs()
224 LOGGER.info("verify lib: {}", entryName); in verifyLibs()
225 verifyHapLib(inputJar, entryName, signInfo, pairResult); in verifyLibs()
240 private static void verifyHapLib(JarFile inputJar, String entryName, SignInfo signInfo, in verifyHapLib() argument
244 JarEntry entry = inputJar.getJarEntry(entryName); in verifyHapLib()
247 String.format(Locale.ROOT, "Invalid dataSize of native lib %s", entryName)); in verifyHapLib()
H A DCodeSigning.java269 String entryName = entry.getName(); in signNativeHnps()
270 if (entry.isDirectory() || !entryName.startsWith("hnp/") || !entryName.toLowerCase(Locale.ROOT) in signNativeHnps()
274 String hnpFileName = HapUtils.parseHnpPath(entryName); in signNativeHnps()
278 LOGGER.debug("Sign hnp name = {}", entryName); in signNativeHnps()
380 * @param entryName the name of entry
383 private boolean isNativeFile(String entryName) { in isNativeFile() argument
384 if (StringUtils.isEmpty(entryName)) { in isNativeFile()
387 if (entryName.endsWith(FileUtils.NATIVE_LIB_AN_SUFFIX)) { in isNativeFile()
390 if (entryName in isNativeFile()
[all...]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
H A DSignHap.java87 String entryName = inEntry.getName(); in copyFiles()
88 if (!FileUtils.isRunnableFile(entryName)) { in copyFiles()
89 lastAlignmentEntryName = entryName; in copyFiles()
234 * @param entryName name of entry
239 private static int getStoredEntryDataAlignment(String entryName, int defaultAlignment, in getStoredEntryDataAlignment() argument
244 if (!StringUtils.isEmpty(lastAlignmentEntryName) && entryName.equals(lastAlignmentEntryName)) { in getStoredEntryDataAlignment()
247 if (FileUtils.isRunnableFile(entryName)) { in getStoredEntryDataAlignment()
/developtools/packing_tool/adapter/ohos/
H A DPackageUtil.java237 private static String getZipEntryContent(Path zipPath, String entryName) { in getZipEntryContent() argument
243 ZipArchiveEntry zipEntry = zipFile.getEntry(entryName); in getZipEntryContent()
528 String entryName = (baseDir + file.getName() + File.separator) in addArchiveEntry()
530 ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName); in addArchiveEntry()
541 String entryName = (baseDir + file.getName()).replace(File.separator, Constants.SLASH); in addArchiveEntry()
542 ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName); in addArchiveEntry()
550 return getInputStream(entryName, file); in addArchiveEntry()
560 private static InputStream getInputStream(String entryName, File file) throws IOException { in getInputStream() argument
561 if (!entryName.contains(Constants.RAW_FILE_PATH) && !entryName in getInputStream()
[all...]
H A DPackageNormalize.java208 private static void compressFile(Path file, boolean isStored, String entryName, ZipOutputStream zipOut) in compressFile() argument
212 ZipEntry newEntry = new ZipEntry(entryName); in compressFile()
220 ZipEntry newEntry = new ZipEntry(entryName); in compressFile()
H A DScan.java197 String entryName = entry.getName(); in unpackEntryToFile()
198 File entryFile = new File(outPath, entryName); in unpackEntryToFile()
H A DUncompress.java547 String entryName = ""; in unzipFromFile()
555 entryName = entry.getName(); in unzipFromFile()
556 if (!entryName.toLowerCase(Locale.ENGLISH).endsWith(suffix) || in unzipFromFile()
557 (!hapNames.isEmpty() && !hapNames.contains(entryName.replace(suffix, "")))) { in unzipFromFile()
562 tempDir = tempDir + LINUX_FILE_SEPARATOR + entryName.replace(suffix, ""); in unzipFromFile()
569 && entryName.contains(LINUX_FILE_SEPARATOR)) { in unzipFromFile()
573 String tempPath = tempDir + LINUX_FILE_SEPARATOR + entryName; in unzipFromFile()
584 repackHap(tempPath, tempDir, entryName, utility.getUnpackApk()); in unzipFromFile()
1075 String entryName = (baseDir + srcFile.getName()).replace(File.separator, LINUX_FILE_SEPARATOR); in compressFile()
1076 ZipEntry zipEntry = new ZipEntry(entryName); in compressFile()
[all...]
H A DScanStatSuffix.java512 String entryName = entry.getName(); in unpackEntryToFile()
513 File entryFile = new File(outPath, entryName); in unpackEntryToFile()
H A DCompressor.java2233 String entryName = (baseDir + file.getName()).replace(File.separator, LINUX_FILE_SEPARATOR); in addArchiveEntry()
2234 ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName); in addArchiveEntry()
2429 String entryName = (baseDir + srcFile.getName()).replace(File.separator, LINUX_FILE_SEPARATOR); in compressFile()
2430 ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName); in compressFile()
2432 if (!entryName.contains(RAW_FILE_PATH) in compressFile()
2433 && !entryName.contains(RES_FILE_PATH) in compressFile()
2435 && !entryName.equals(Constants.FILE_ENCRYPT_JSON)) { in compressFile()
3469 String entryName = entry.getName(); in unpackHap()
3470 File entryFile = new File(outPath, entryName); in unpackHap()
/developtools/hapsigner/hapsigntool_cpp/codesigning/sign/src/
H A Dcode_signing.cpp399 std::string entryName = csb.GetSoInfoSegment().GetFileNameList()[j]; in DoNativeLibVerify() local
402 if (fileName != entryName) { in DoNativeLibVerify()

Completed in 17 milliseconds