Class ShadowStorageManager

    • Constructor Detail

      • ShadowStorageManager

        public ShadowStorageManager()
    • Method Detail

      • getVolumeList

        @Implementation(minSdk=23)
        protected static StorageVolume[] getVolumeList​(int userId,
                                                       int flags)
      • getStorageVolumes

        @Implementation(minSdk=24)
        protected List<StorageVolume> getStorageVolumes()
        Returns the storage volumes configured via #addStorageVolume().
        Returns:
        StorageVolume list
      • resetStorageVolumeList

        public void resetStorageVolumeList()
        Clears the storageVolumeList.
      • getStorageVolume

        @Implementation(minSdk=24)
        public StorageVolume getStorageVolume​(File file)
        Checks whether File belongs to any StorageVolume in the list returned by getStorageVolumes().
        Parameters:
        File - to check
        Returns:
        StorageVolume for the file
      • isFileEncryptedNativeOrEmulated

        @HiddenApi
        @Implementation(minSdk=24)
        protected static boolean isFileEncryptedNativeOrEmulated()
      • setFileEncryptedNativeOrEmulated

        public void setFileEncryptedNativeOrEmulated​(boolean isSupported)
        Parameters:
        isSupported - a boolean value to set file encrypted native or not
      • isUserKeyUnlocked

        @HiddenApi
        @Implementation(minSdk=24)
        protected static boolean isUserKeyUnlocked​(int userId)