harmony 鸿蒙File Management Subsystem Changelog

  • 2025-06-12
  • 浏览 (18)

File Management Subsystem Changelog

c1.file_manager.1 Deprecation of File Management Module API and Parameters

Access Level

System API

Reason for Change

The deprecated API is a new API added in API version 11. Considering the compatibility with the existing APIs in API version 10, the authorization scheme is adjusted and the authorization is implemented by the AMS API GrantUriPermission. Therefore, this API is not longer required and is deprecated.

Change Impact

This API has never been released with a formal version. No adaptation is required.

API level

<11>

Deprecated Since

OpenHarmony SDK 4.1.5.1

Deprecated API/Parameters

function grantPermission(tokenId: number, policies: Array, policyFlag: number): Promise

export enum policyFlag

FORBID_PERSISTENCE = 0b10

ALLOW_PERSISTENCE = 0b1

Adaptation Guide

This API has never been released with a formal version. No adaptation is required.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Subsystem Changelog

harmony 鸿蒙Access Token Changelog

harmony 鸿蒙Event Notification Subsystem ChangeLog

harmony 鸿蒙ArkCompiler Subsystem Changelog

harmony 鸿蒙ArkCompiler Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem Changelog

harmony 鸿蒙Graphics Subsystem Changelog

harmony 鸿蒙Multimedia Subsystem Changelog

harmony 鸿蒙Security Changelog

0  赞