!438 应用管理添加访问权限,接口变更

Merge pull request !438 from chenlang/master
This commit is contained in:
openharmony_ci 2023-06-25 04:06:16 +00:00 committed by Gitee
commit 887abb3941
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 24 additions and 4 deletions

View File

@ -17,6 +17,7 @@ import LogUtil from '../../../../../../../common/utils/src/main/ets/default/base
import Bundle from '@ohos.bundle';
import appManager from '@ohos.application.appManager'
import osAccount from '@ohos.account.osAccount';
import bundleManager from '@ohos.bundle.bundleManager'
import ConfigData from '../../../../../../../common/utils/src/main/ets/default/baseUtil/ConfigData';
import { LogAll } from '../../../../../../../common/utils/src/main/ets/default/baseUtil/LogDecorator';
@ -58,7 +59,7 @@ export class AppManagementModel extends BaseModel {
*/
setAppManagementListener() {
this.mBundleInfoList = [];
Bundle.getAllBundleInfo(IS_INCLUDE_ABILITY_INFO)
bundleManager.getAllBundleInfo(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION)
.then((data) => {
LogUtil.info('settings AppManagementModel setAppManagementListener getBundleInfos() start ');
LogUtil.info('settings AppManagementModel data.length: ' + data.length + ' data: ' + JSON.stringify(data));

View File

@ -188,11 +188,15 @@
{
"name": "ohos.permission.MODIFY_AUDIO_SETTINGS",
"reason": "$string:MODIFY_AUDIO_SETTINGS"
}, {
},
{
"name": "ohos.permission.ENTERPRISE_SET_DATETIME",
"reason": "$string:ENTERPRISE_SET_DATETIME"
},
{
"name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST",
"reason": "$string:GET_INSTALLED_BUNDLE_LIST"
}
]
}
}

View File

@ -1263,6 +1263,10 @@
{
"name": "assessmentIntroduction",
"value": "OpenHarmony兼容性测评是由OpenHarmony社区面向设备厂商提供的测评服务以保障OpenHarmony生态设备的应用兼容性、分布式兼容性和基础用户体验实现OpenHarmony设备和应用生态统一。\n\n\n\n通过OpenHarmony兼容性测评的设备由OpenHarmony项目群工作委员会授予OpenHarmony生态产品兼容性证书并授权使用Powered By OpenHarmony兼容性标识。\n\n\n\n 您可以访问openHarmony.cn官网兼容性专区获取更多信息。"
},
{
"name": "GET_INSTALLED_BUNDLE_LIST",
"value":"获取应用列表信息"
}
]
}

View File

@ -1259,7 +1259,10 @@
{
"name": "assessmentIntroduction",
"value": "OpenHarmony兼容性测评是由OpenHarmony社区面向设备厂商提供的测评服务以保障OpenHarmony生态设备的应用兼容性、分布式兼容性和基础用户体验实现OpenHarmony设备和应用生态统一。\n\n\n\n通过OpenHarmony兼容性测评的设备由OpenHarmony项目群工作委员会授予OpenHarmony生态产品兼容性证书并授权使用Powered By OpenHarmony兼容性标识。\n\n\n\n 您可以访问openHarmony.cn官网兼容性专区获取更多信息。"
},
{
"name": "GET_INSTALLED_BUNDLE_LIST",
"value":"Get installed bundle list"
}
]
}

View File

@ -1263,6 +1263,10 @@
{
"name": "assessmentIntroduction",
"value": "OpenHarmony兼容性测评是由OpenHarmony社区面向设备厂商提供的测评服务以保障OpenHarmony生态设备的应用兼容性、分布式兼容性和基础用户体验实现OpenHarmony设备和应用生态统一。\n\n\n\n通过OpenHarmony兼容性测评的设备由OpenHarmony项目群工作委员会授予OpenHarmony生态产品兼容性证书并授权使用Powered By OpenHarmony兼容性标识。\n\n\n\n 您可以访问openHarmony.cn官网兼容性专区获取更多信息。"
},
{
"name": "GET_INSTALLED_BUNDLE_LIST",
"value":"获取应用列表信息"
}
]
}

View File

@ -1263,6 +1263,10 @@
{
"name": "assessmentIntroduction",
"value": "OpenHarmony兼容性测评是由OpenHarmony社区面向设备厂商提供的测评服务以保障OpenHarmony生态设备的应用兼容性、分布式兼容性和基础用户体验实现OpenHarmony设备和应用生态统一。\n\n\n\n通过OpenHarmony兼容性测评的设备由OpenHarmony项目群工作委员会授予OpenHarmony生态产品兼容性证书并授权使用Powered By OpenHarmony兼容性标识。\n\n\n\n 您可以访问openHarmony.cn官网兼容性专区获取更多信息。"
},
{
"name": "GET_INSTALLED_BUNDLE_LIST",
"value":"获取应用列表信息"
}
]
}