openharmony 鸿蒙 changelogs-ability

2023-02-03 浏览 (611)

Ability Subsystem ChangeLog

cl.ability.1 System API Usage Rule Change

System application verification is not performed for system APIs provided by the ability when they are called. The APIs can be used by a third-party application using the full SDK, which brings security risks. Therefore, application identity verification is added to OpenHarmony 4.0.2.1 and later versions.

Change Impacts

System APIs are available to only system applications. When a third-party application tries to use a system API, the 202 error will be returned via either an exception or asynchronous callback.

Key API/Component Changes

Below are the system APIs.

ModuleAPIError Code Return Mode
@ohos.app.ability.abilityManager.d.tsupdateConfiguration(config: Configuration, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.abilityManager.d.tsupdateConfiguration(config: Configuration): PromiseAsynchronous callback
@ohos.app.ability.abilityManager.d.tsgetAbilityRunningInfos(): Promise<Array>Asynchronous callback
@ohos.app.ability.abilityManager.d.tsgetAbilityRunningInfos(callback: AsyncCallback<Array>): voidAsynchronous callback
@ohos.app.ability.abilityManager.d.tsgetExtensionRunningInfos(upperLimit: number): Promise<Array>Asynchronous callback
@ohos.app.ability.abilityManager.d.tsgetExtensionRunningInfos(upperLimit: number, callback: AsyncCallback<Array>): voidAsynchronous callback
@ohos.app.ability.abilityManager.d.tsgetTopAbility(): PromiseException
@ohos.app.ability.abilityManager.d.tsgetTopAbility(callback: AsyncCallback): voidException
@ohos.app.ability.appManager.d.tson(type: "applicationState", observer: ApplicationStateObserver): numberAsynchronous callback
@ohos.app.ability.appManager.d.tson(type: "applicationState", observer: ApplicationStateObserver, bundleNameList: Array): numberAsynchronous callback
@ohos.app.ability.appManager.d.tsoff(type: "applicationState", observerId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.appManager.d.tsoff(type: "applicationState", observerId: number): PromiseAsynchronous callback
@ohos.app.ability.appManager.d.tsgetForegroundApplications(callback: AsyncCallback<Array>): voidAsynchronous callback
@ohos.app.ability.appManager.d.tsgetForegroundApplications(): Promise<Array>Asynchronous callback
@ohos.app.ability.appManager.d.tskillProcessWithAccount(bundleName: string, accountId: number): PromiseAsynchronous callback
@ohos.app.ability.appManager.d.tskillProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.appManager.d.tskillProcessesByBundleName(bundleName: string): PromiseAsynchronous callback
@ohos.app.ability.appManager.d.tskillProcessesByBundleName(bundleName: string, callback: AsyncCallback)Asynchronous callback
@ohos.app.ability.appManager.d.tsclearUpApplicationData(bundleName: string): PromiseAsynchronous callback
@ohos.app.ability.appManager.d.tsclearUpApplicationData(bundleName: string, callback: AsyncCallback)Asynchronous callback
@ohos.app.ability.missionManager.d.tson(type: "mission", listener: MissionListener): numberAsynchronous callback
@ohos.app.ability.missionManager.d.tsoff(type: "mission", listenerId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsoff(type: "mission", listenerId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionInfo(deviceId: string, missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback<Array>): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionInfos(deviceId: string, numMax: number): Promise<Array>Asynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetMissionSnapShot(deviceId: string, missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsgetLowResolutionMissionSnapShot(deviceId: string, missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tslockMission(missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tslockMission(missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsunlockMission(missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsunlockMission(missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsclearMission(missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsclearMission(missionId: number): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsclearAllMissions(callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsclearAllMissions(): PromiseAsynchronous callback
@ohos.app.ability.missionManager.d.tsmoveMissionToFront(missionId: number, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsmoveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.missionManager.d.tsmoveMissionToFront(missionId: number, options?: StartOptions): PromiseAsynchronous callback
@ohos.app.ability.quickFixManager.d.tsapplyQuickFix(hapModuleQuickFixFiles: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.quickFixManager.d.tsapplyQuickFix(hapModuleQuickFixFiles: Array): PromiseAsynchronous callback
@ohos.app.ability.quickFixManager.d.tsgetApplicationQuickFixInfo(bundleName: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.quickFixManager.d.tsgetApplicationQuickFixInfo(bundleName: string): PromiseAsynchronous callback
@ohos.app.ability.wantAgent.d.tsgetWant(agent: WantAgent, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.ability.wantAgent.d.tsgetWant(agent: WantAgent): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsdeleteForm(formId: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsdeleteForm(formId: string): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsreleaseForm(formId: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsreleaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsreleaseForm(formId: string, isReleaseCache?: boolean): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsrequestForm(formId: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsrequestForm(formId: string): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tscastToNormalForm(formId: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tscastToNormalForm(formId: string): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyVisibleForms(formIds: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyVisibleForms(formIds: Array): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyInvisibleForms(formIds: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyInvisibleForms(formIds: Array): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsenableFormsUpdate(formIds: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsenableFormsUpdate(formIds: Array): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsdisableFormsUpdate(formIds: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsdisableFormsUpdate(formIds: Array): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsisSystemReady(callback: AsyncCallback): voidException
@ohos.app.form.formHost.d.tsisSystemReady(): PromiseException
@ohos.app.form.formHost.d.tsgetAllFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): voidAsynchronous callback
@ohos.app.form.formHost.d.tsgetAllFormsInfo(): Promise<Array<formInfo.FormInfo>>Asynchronous callback
@ohos.app.form.formHost.d.tsgetFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.FormInfo>>): voidAsynchronous callback
@ohos.app.form.formHost.d.tsgetFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback<Array<formInfo.FormInfo>>): voidAsynchronous callback
@ohos.app.form.formHost.d.tsgetFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formInfo.FormInfo>>Asynchronous callback
@ohos.app.form.formHost.d.tsdeleteInvalidForms(formIds: Array, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsdeleteInvalidForms(formIds: Array): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsacquireFormState(want: Want, callback: AsyncCallback<formInfo.FormStateInfo>): voidAsynchronous callback
@ohos.app.form.formHost.d.tsacquireFormState(want: Want): Promise<formInfo.FormStateInfo>Asynchronous callback
@ohos.app.form.formHost.d.tson(type: "formUninstall", callback: Callback): voidException
@ohos.app.form.formHost.d.tsoff(type: "formUninstall", callback?: Callback): voidException
@ohos.app.form.formHost.d.tsnotifyFormsVisible(formIds: Array, isVisible: boolean, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyFormsVisible(formIds: Array, isVisible: boolean): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsshareForm(formId: string, deviceId: string, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsshareForm(formId: string, deviceId: string): PromiseAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyFormsPrivacyProtected(formIds: Array, isProtected: boolean, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formHost.d.tsnotifyFormsPrivacyProtected(formIds: Array, isProtected: boolean): PromiseAsynchronous callback
@ohos.app.form.formProvider.d.tsrequestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formProvider.d.tsrequestPublishForm(want: Want, callback: AsyncCallback): voidAsynchronous callback
@ohos.app.form.formProvider.d.tsrequestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): PromiseAsynchronous callback
@ohos.app.form.formProvider.d.tsisRequestPublishFormSupported(callback: AsyncCallback): voidException
@ohos.app.form.formProvider.d.tsisRequestPublishFormSupported(): PromiseException
UIAbilityContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): PromiseAsynchronous callback
UIAbilityContext.d.tsstartAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidException
UIAbilityContext.d.tsstartAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): voidException
UIAbilityContext.d.tsstartAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): PromiseException
UIAbilityContext.d.tsstartServiceExtensionAbility(want: Want, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstartServiceExtensionAbility(want: Want): PromiseAsynchronous callback
UIAbilityContext.d.tsstartServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstartServiceExtensionAbilityWithAccount(want: Want, accountId: number): PromiseAsynchronous callback
UIAbilityContext.d.tsstopServiceExtensionAbility(want: Want, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstopServiceExtensionAbility(want: Want): PromiseAsynchronous callback
UIAbilityContext.d.tsstopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tsstopServiceExtensionAbilityWithAccount(want: Want, accountId: number): PromiseAsynchronous callback
UIAbilityContext.d.tsconnectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): numberAsynchronous callback
UIAbilityContext.d.tssetMissionIcon(icon: image.PixelMap, callback: AsyncCallback): voidAsynchronous callback
UIAbilityContext.d.tssetMissionIcon(icon: image.PixelMap): PromiseAsynchronous callback
ServiceExtensionContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstartAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): PromiseAsynchronous callback
ServiceExtensionContext.d.tsstartServiceExtensionAbility(want: Want, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstartServiceExtensionAbility(want: Want): PromiseAsynchronous callback
ServiceExtensionContext.d.tsstartServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstartServiceExtensionAbilityWithAccount(want: Want, accountId: number): PromiseAsynchronous callback
ServiceExtensionContext.d.tsstopServiceExtensionAbility(want: Want, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstopServiceExtensionAbility(want: Want): PromiseAsynchronous callback
ServiceExtensionContext.d.tsstopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): voidAsynchronous callback
ServiceExtensionContext.d.tsstopServiceExtensionAbilityWithAccount(want: Want, accountId: number): PromiseAsynchronous callback
ServiceExtensionContext.d.tsconnectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): numberAsynchronous callback
Context.d.tscreateBundleContext(bundleName: string): ContextException
Context.d.tscreateModuleContext(bundleName: string, moduleName: string): ContextException
FormExtensionContext.d.tsstartAbility(want: Want, callback: AsyncCallback): voidAsynchronous callback
FormExtensionContext.d.tsstartAbility(want: Want): PromiseAsynchronous callback

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Web Subsystem ChangeLog

harmony 鸿蒙Bluetooth Subsystem ChangeLog

harmony 鸿蒙Distributed Data Management Subsystem JS API Changelog

harmony 鸿蒙File Management Subsystem ChangeLog

harmony 鸿蒙Globalization Subsystem ChangeLog

harmony 鸿蒙Media Subsystem ChangeLog

harmony 鸿蒙Test Subsystem ChangeLog

harmony 鸿蒙USB Subsystem API Changelog

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/4095e1c4bb51486eb0ba3378aaa7b779