解决措施查询系统内其他应用信息的API暂时只提供给系统应用使用,具体使用方法:查询系统内指定应用信息需要获取normal级权限"ohos.permission.GET_BUNDLE_INFO",使用接口bundleManager.getApplicationInfo()。查询系统内所有应用信息需要获取system_basic级权限"ohos.permission.GET_INSTALLED_BUNDLE_LIST",使用接口bundleManager.getAllApplicationInfo()。参考链接bundleManager
解决措施
查询系统内其他应用信息的API暂时只提供给系统应用使用,具体使用方法:
参考链接
bundleManager