/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/ |
H A D | quick_fix_checker.cpp | 112 if (qfInfo.cpuAbi != bundleInfo.applicationInfo.cpuAbi) { in CheckPatchNativeSoWithInstalledBundle() 113 LOG_E(BMS_TAG_DEFAULT, "qfInfo.cpuAbi: %{public}s, applicationInfo.cpuAbi: %{public}s", in CheckPatchNativeSoWithInstalledBundle() 114 qfInfo.cpuAbi.c_str(), bundleInfo.applicationInfo.cpuAbi.c_str()); in CheckPatchNativeSoWithInstalledBundle() 138 (hapModuleInfoNativeLibraryPath.find(hqfInfo.cpuAbi) == std::string::npos)) { in CheckPatchNativeSoWithInstalledBundle() 256 std::string cpuAbi = appqfInfo.cpuAbi; in CheckMultiNativeSo() local 264 cpuAbi in CheckMultiNativeSo() [all...] |
H A D | quick_fix_deployer.cpp | 183 // check multiple cpuAbi and native library path in ProcessPatchDeployStart() 439 appqfInfo.hqfInfos[0].cpuAbi = appqfInfo.cpuAbi; in ResetNativeSoAttrs() 475 const HqfInfo hqfInfo, bool isLibIsolated, std::string &nativeLibraryPath, std::string &cpuAbi) in FetchPatchNativeSoAttrs() 479 cpuAbi = hqfInfo.cpuAbi; in FetchPatchNativeSoAttrs() 482 cpuAbi = appqfInfo.cpuAbi; in FetchPatchNativeSoAttrs() 725 std::string cpuAbi; in ExtractQuickFixSoFile() local 727 if (!FetchPatchNativeSoAttrs(appQuickFix.deployingAppqfInfo, hqf, isLibIsolated, libraryPath, cpuAbi)) { in ExtractQuickFixSoFile() 474 FetchPatchNativeSoAttrs(const AppqfInfo &appqfInfo, const HqfInfo hqfInfo, bool isLibIsolated, std::string &nativeLibraryPath, std::string &cpuAbi) FetchPatchNativeSoAttrs() argument 800 std::string cpuAbi = bundleInfo.applicationInfo.cpuAbi; ExtractSoFiles() local 830 std::string cpuAbi; ProcessApplyDiffPatch() local 867 std::string cpuAbi = bundleInfo.applicationInfo.cpuAbi; ExtractEncryptedSoFiles() local 896 std::string cpuAbi; PrepareCodeSignatureParam() local [all...] |
H A D | patch_profile.cpp | 210 appqfInfo.cpuAbi = ServiceConstants::ARM64_V8A; in DefaultNativeSo() 224 appqfInfo.cpuAbi = ServiceConstants::ARM_EABI_V7A; in DefaultNativeSo() 235 appqfInfo.cpuAbi = ServiceConstants::ARM_EABI; in DefaultNativeSo() 265 appqfInfo.cpuAbi = isSystemLib64Exist ? ServiceConstants::ARM64_V8A : ServiceConstants::ARM_EABI_V7A; in ParseNativeSo() 270 appqfInfo.cpuAbi = abi; in ParseNativeSo() 287 appqfInfo.cpuAbi = abi; in ParseNativeSo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/ |
H A D | installd_operator.h | 81 * @param cpuAbi cpuAbi. 85 const std::string &cpuAbi); 87 static bool IsNativeSo(const std::string &entryName, const std::string &cpuAbi); 95 const std::string &cpuAbi, 106 const std::string &cpuAbi, 110 static bool DeterminePrefix(const ExtractFileType &extractFileType, const std::string &cpuAbi, 228 const std::string &targetPath, const std::string &cpuAbi); 231 const std::string &cpuAbi); 240 static bool GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, [all...] |
H A D | installd_host_impl.h | 42 * @param cpuAbi cpuAbi. 46 const std::string &targetSoPath, const std::string &cpuAbi) override; 63 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) override; 177 const std::string &cpuAbi) override; 194 virtual ErrCode GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, 207 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) override;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 36 const std::string &targetSoPath, const std::string &cpuAbi) in ExtractModuleFiles() 43 return CallService(&IInstalld::ExtractModuleFiles, srcModulePath, targetPath, targetSoPath, cpuAbi); in ExtractModuleFiles() 63 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) in ProcessBundleInstallNative() 66 hapPath, cpuAbi, packageName); in ProcessBundleInstallNative() 294 const std::string &cpuAbi) in ExtractDiffFiles() 296 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles() 299 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles() 341 ErrCode InstalldClient::GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, in GetNativeLibraryFileNames() argument 344 return CallService(&IInstalld::GetNativeLibraryFileNames, filePath, cpuAbi, fileNames); in GetNativeLibraryFileNames() 381 const std::string &cpuAbi, cons in ExtractEncryptedSoFiles() 35 ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractModuleFiles() argument 62 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 293 ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 380 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument [all...] |
H A D | mock_installd_host_impl.cpp | 38 const std::string &targetSoPath, const std::string &cpuAbi)
in ExtractModuleFiles() 49 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName)
in ProcessBundleInstallNative() 163 const std::string &cpuAbi)
in ExtractDiffFiles() 224 ErrCode InstalldHostImpl::GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi,
in GetNativeLibraryFileNames() argument 252 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid)
in ExtractEncryptedSoFiles() 37 ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractModuleFiles() argument 48 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 162 ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 251 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument
|
H A D | mock_install_client.cpp | 26 const std::string &targetSoPath, const std::string &cpuAbi) in ExtractModuleFiles() 42 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) in ProcessBundleInstallNative() 182 const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) in ExtractDiffFiles() 223 ErrCode InstalldClient::GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, in GetNativeLibraryFileNames() argument 256 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) in ExtractEncryptedSoFiles() 25 ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractModuleFiles() argument 41 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 181 ExtractDiffFiles( const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 255 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/quick_fix/ |
H A D | appqf_info.cpp | 30 const char* APP_QF_INFO_CPU_ABI = "cpuAbi"; 41 {APP_QF_INFO_CPU_ABI, appqfInfo.cpuAbi}, in to_json() 62 APP_QF_INFO_CPU_ABI, appqfInfo.cpuAbi, in from_json() 87 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 108 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling()
|
H A D | hqf_info.cpp | 31 const char* HQF_INFO_CPU_ABI = "cpuAbi"; 42 {HQF_INFO_CPU_ABI, hqfInfo.cpuAbi}, in to_json() 80 hqfInfo.cpuAbi, in from_json() 100 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 111 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/ |
H A D | code_signature_param.cpp | 27 constexpr const char* CODE_SIGNATURE_CPU_ABI = "cpuAbi"; 39 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 52 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling() 77 { CODE_SIGNATURE_CPU_ABI, cpuAbi }, in ToString()
|
H A D | extract_param.cpp | 58 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 67 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling() 85 + ", cpuAbi = " + cpuAbi in ToString()
|
H A D | check_encryption_param.cpp | 26 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 37 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerextractmodulefiles_fuzzer/ |
H A D | basebundleinstallerextractmodulefiles_fuzzer.cpp | 34 std::string cpuAbi; in DoSomethingInterestingWithMyAPI() local 35 auto ret1 = basebundleinstall.ExtractModuleFiles(info, modulePath, targetSoPath, cpuAbi); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | compatible_application_info.cpp | 44 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 110 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling() 142 applicationInfo.cpuAbi = cpuAbi; in ConvertToApplicationInfo()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/shared/ |
H A D | shared_module_info.cpp | 34 const char* SHARED_MODULE_INFO_CPU_ABI = "cpuAbi"; 48 cpuAbi = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 68 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(cpuAbi)); in Marshalling() 98 {SHARED_MODULE_INFO_CPU_ABI, sharedModuleInfo.cpuAbi}, in to_json() 133 sharedModuleInfo.cpuAbi, false, parseResult); in from_json()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | installd_client.cpp | 41 const std::string &targetSoPath, const std::string &cpuAbi) in ExtractModuleFiles() 48 return CallService(&IInstalld::ExtractModuleFiles, srcModulePath, targetPath, targetSoPath, cpuAbi); in ExtractModuleFiles() 69 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) in ProcessBundleInstallNative() 72 hapPath, cpuAbi, packageName); in ProcessBundleInstallNative() 352 const std::string &cpuAbi) in ExtractDiffFiles() 354 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles() 355 APP_LOGE("file path or target path or cpuAbi is empty"); in ExtractDiffFiles() 358 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles() 401 ErrCode InstalldClient::GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, in GetNativeLibraryFileNames() argument 404 return CallService(&IInstalld::GetNativeLibraryFileNames, filePath, cpuAbi, fileName in GetNativeLibraryFileNames() 40 ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractModuleFiles() argument 68 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 351 ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 506 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument [all...] |
/foundation/bundlemanager/bundle_framework/test/benchmarktest/bundle_info_test/ |
H A D | bundle_info_test.cpp | 42 info.cpuAbi = "armeabi"; in BenchmarkTestForReadFromParcel() 81 info.cpuAbi = "armeabi"; in BenchmarkTestForMarshalling() 119 info.cpuAbi = "armeabi"; in BenchmarkTestForUnmarshalling()
|
/foundation/bundlemanager/bundle_framework/test/benchmarktest/ability_info_test/ |
H A D | ability_info_test.cpp | 54 info.applicationInfo.cpuAbi = "armeabi"; in BenchmarkTestForReadFromParcel() 92 info.applicationInfo.cpuAbi = "armeabi"; in BenchmarkTestForMarshalling() 129 info.applicationInfo.cpuAbi = "armeabi"; in BenchmarkTestForUnmarshalling()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_operator.cpp | 220 const std::string &cpuAbi) in ExtractFiles() 234 if (!ObtainNativeSoFile(extractor, cpuAbi, soEntryFiles)) { in ExtractFiles() 239 for_each(soEntryFiles.begin(), soEntryFiles.end(), [&extractor, &targetSoPath, &cpuAbi](const auto &entry) { in ExtractFiles() 240 ExtractTargetFile(extractor, entry, targetSoPath, cpuAbi); in ExtractFiles() 283 extractParam.cpuAbi, extractParam.extractFileType); in ExtractFiles() 330 if (!DeterminePrefix(extractParam.extractFileType, extractParam.cpuAbi, prefix)) { in ExtractFiles() 364 if (!DeterminePrefix(extractParam.extractFileType, extractParam.cpuAbi, prefix) || in IsNativeFile() 395 bool InstalldOperator::IsNativeSo(const std::string &entryName, const std::string &cpuAbi) in IsNativeSo() argument 398 std::string prefix = ServiceConstants::LIBS + cpuAbi + ServiceConstants::PATH_SEPARATOR; in IsNativeSo() 408 const std::string &targetPath, const std::string &cpuAbi) in IsDiffFiles() 219 ExtractFiles(const std::string &sourcePath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractFiles() argument 407 IsDiffFiles(const std::string &entryName, const std::string &targetPath, const std::string &cpuAbi) IsDiffFiles() argument 459 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 495 ExtractTargetFile(const BundleExtractor &extractor, const std::string &entryName, const std::string &targetPath, const std::string &cpuAbi, const ExtractFileType &extractFileType) ExtractTargetFile() argument 562 DeterminePrefix(const ExtractFileType &extractFileType, const std::string &cpuAbi, std::string &prefix) DeterminePrefix() argument 1158 ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 1321 GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, std::vector<std::string> &fileNames) GetNativeLibraryFileNames() argument 1430 const std::string cpuAbi = checkEncryptionParam.cpuAbi; CheckEncryption() local 1497 ObtainNativeSoFile(const BundleExtractor &extractor, const std::string &cpuAbi, std::vector<std::string> &soEntryFiles) ObtainNativeSoFile() argument 1736 ExtractSoFilesToTmpHapPath(const std::string &hapPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractSoFilesToTmpHapPath() argument 1800 ExtractSoFilesToTmpSoPath(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractSoFilesToTmpSoPath() argument [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerupdateappservice_fuzzer/ |
H A D | appservicefwkinstallerupdateappservice_fuzzer.cpp | 54 std::string cpuAbi(data, size); in DoSomethingInterestingWithMyAPI() 57 appServiceFwk.VerifyCodeSignatureForNativeFiles(bundlePath, cpuAbi, targetSoPath); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | installd_client.h | 48 * @param cpuAbi cpuAbi. 52 const std::string &targetSoPath, const std::string &cpuAbi); 163 const std::string &cpuAbi); 185 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName); 189 ErrCode GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, 216 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/ |
H A D | installd_interface.h | 52 * @param cpuAbi cpuAbi. 56 const std::string &targetSoPath, const std::string &cpuAbi) in ExtractModuleFiles() 82 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) in ProcessBundleInstallNative() 299 const std::string &cpuAbi) in ExtractDiffFiles() 340 virtual ErrCode GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, in GetNativeLibraryFileNames() argument 368 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) in ExtractEncryptedSoFiles() 55 ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, const std::string &targetSoPath, const std::string &cpuAbi) ExtractModuleFiles() argument 81 ProcessBundleInstallNative(const std::string &userId, const std::string &hnpRootPath, const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) ProcessBundleInstallNative() argument 298 ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, const std::string &cpuAbi) ExtractDiffFiles() argument 367 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument
|
H A D | installd_proxy.h | 44 * @param cpuAbi cpuAbi. 48 const std::string &targetSoPath, const std::string &cpuAbi) override; 65 const std::string &hapPath, const std::string &cpuAbi, const std::string &packageName) override; 178 const std::string &cpuAbi) override; 195 virtual ErrCode GetNativeLibraryFileNames(const std::string &filePath, const std::string &cpuAbi, 209 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) override;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/ |
H A D | bms_install_daemon_operator_test.cpp | 490 extractParam.cpuAbi = TEST_CPU_ABI;
in HWTEST_F() 556 extractParam.cpuAbi = TEST_CPU_ABI;
in HWTEST_F() 972 codeSignatureParam.cpuAbi = TEST_STRING;
in HWTEST_F() 1123 checkEncryptionParam.cpuAbi = TEST_STRING;
in HWTEST_F() 1236 extractParam.cpuAbi = TEST_CPU_ABI;
in HWTEST_F() 1282 std::string cpuAbi = "cpuabi";
in HWTEST_F() local 1284 bool ret = InstalldOperator::ProcessBundleInstallNative(userId, hnpRootPath, hapPath, cpuAbi, packageName);
in HWTEST_F() 1299 std::string cpuAbi = "cpuabi";
in HWTEST_F() local 1301 bool ret = InstalldOperator::ProcessBundleInstallNative(userId, hnpRootPath, hapPath, cpuAbi, packageName);
in HWTEST_F() 1316 std::string cpuAbi in HWTEST_F() local 1494 std::string cpuAbi = ""; HWTEST_F() local 1655 std::string cpuAbi = TEST_CPU_ABI; HWTEST_F() local [all...] |