mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2025-02-17 06:28:19 +00:00
!4886 版本号相同时,校验appId一致性
Merge pull request !4886 from wangtiantian/bug_2
This commit is contained in:
commit
41cd8412a6
@ -1696,8 +1696,9 @@ ErrCode BaseBundleInstaller::ProcessBundleUpdateStatus(
|
||||
|
||||
bool BaseBundleInstaller::CheckAppIdentifier(InnerBundleInfo &oldInfo, InnerBundleInfo &newInfo) {
|
||||
if (!otaInstall_ && oldInfo.GetVersionCode() == newInfo.GetVersionCode()) {
|
||||
if (oldInfo.GetAppIdentifier() != newInfo.GetAppIdentifier()) {
|
||||
APP_LOGE("same versionCode, appIdentifier is not same");
|
||||
if ((oldInfo.GetAppIdentifier() != newInfo.GetAppIdentifier()) ||
|
||||
(oldInfo.GetProvisionId() != newInfo.GetProvisionId())) {
|
||||
APP_LOGE("same versionCode, appIdentifier or appId is not same");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user