FileIntegrityManager.IsApkVeritySupported Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns whether fs-verity is supported on the device.
public bool IsApkVeritySupported { [Android.Runtime.Register("isApkVeritySupported", "()Z", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("isApkVeritySupported", "()Z", "", ApiSince=30)>]
member this.IsApkVeritySupported : bool
Property Value
- Attributes
Remarks
Returns whether fs-verity is supported on the device. fs-verity provides on-access verification, although the app APIs are only made available to apps in a later SDK version. Only when this method returns true, the other fs-verity APIs in the same class can succeed.
The app may not need this method and just call the other APIs normally and handle any failure. If some app feature really depends on fs-verity (e.g. protecting integrity of a large file download), an early check of support status may avoid any cost if it is to fail late.
Note: for historical reasons this is named isApkVeritySupported()
instead of isFsVeritySupported()
. It has also been available since API level 30, predating the other fs-verity APIs.
Java documentation for android.security.FileIntegrityManager.isApkVeritySupported()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.