diff --git a/common/src/main/ets/default/common/configs/SystemApplication.ets b/common/src/main/ets/default/common/configs/SystemApplication.ets index 723274046d8d17b715f02a0dbdb012324ba34d8e..4019a179b3eeff96d2ca410e388d81a8427bd51b 100644 --- a/common/src/main/ets/default/common/configs/SystemApplication.ets +++ b/common/src/main/ets/default/common/configs/SystemApplication.ets @@ -14,7 +14,7 @@ */ const SystemApplication = { - SystemApplicationName: 'com.ohos.launcher,com.ohos.systemui,com.ohos.devicemanagerui,com.ohos.callui,com.example.kikakeyboard' + SystemApplicationName: 'com.ohos.launcher,com.ohos.systemui,com.ohos.devicemanagerui,com.ohos.callui,com.example.kikakeyboard,com.ohos.contactdataability,com.ohos.telephonydataability' } export default SystemApplication; \ No newline at end of file diff --git a/common/src/main/ets/default/common/model/AppModel.ets b/common/src/main/ets/default/common/model/AppModel.ets index 6dbddd34a88c20e2085c2426f6944763f846117c..8f931b167817e8ba915c9643f93a261188a66b18 100644 --- a/common/src/main/ets/default/common/model/AppModel.ets +++ b/common/src/main/ets/default/common/model/AppModel.ets @@ -27,7 +27,7 @@ const IF_GET_ABILITY = 1; export default class AppModel { private static appModel = new AppModel(); private mBundleInfoList = []; - private systemApplicationName = SystemApplication.SystemApplicationName; + private systemApplicationName = []; private mCommonEventSubscriber = null; private mAppListInstallListener = []; private mAppListUninstallListener = []; @@ -41,6 +41,7 @@ export default class AppModel { }; private constructor() { + this.systemApplicationName = SystemApplication.SystemApplicationName.split(","); } public static getInstance(): AppModel{ @@ -61,6 +62,7 @@ export default class AppModel { } else { this.mBundleInfoList.push( { + type: 0, System: data[i].appInfo.systemApp, AppName: data[i].appInfo.label, AppId: data[i].appId, @@ -68,6 +70,7 @@ export default class AppModel { bundleName: data[i].name, labelId: data[i].appInfo.labelId, abilityName: data[i].abilityInfos[0].name, + area: [1, 1] } ) }