Full Code of zhanghai/MaterialFiles for AI

master 3d87794fc06a cached
1106 files
4.1 MB
1.2M tokens
141 symbols
1 requests
Download .txt
Showing preview only (4,614K chars total). Download the full file or copy to clipboard to get everything.
Repository: zhanghai/MaterialFiles
Branch: master
Commit: 3d87794fc06a
Files: 1106
Total size: 4.1 MB

Directory structure:
gitextract_w8wbjvrc/

├── .github/
│   ├── pull_request_template.md
│   └── workflows/
│       └── android.yml
├── .gitignore
├── LICENSE
├── PRIVACY.md
├── README.md
├── README_zh-CN.md
├── SECURITY.md
├── app/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── build.gradle
│   ├── google-services.json
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── aidl/
│           │   └── me/
│           │       └── zhanghai/
│           │           └── android/
│           │               └── files/
│           │                   ├── provider/
│           │                   │   ├── common/
│           │                   │   │   ├── ParcelableFileTime.aidl
│           │                   │   │   ├── ParcelablePosixFileMode.aidl
│           │                   │   │   ├── PosixGroup.aidl
│           │                   │   │   └── PosixUser.aidl
│           │                   │   └── remote/
│           │                   │       ├── IRemoteFileService.aidl
│           │                   │       ├── IRemoteFileSystem.aidl
│           │                   │       ├── IRemoteFileSystemProvider.aidl
│           │                   │       ├── IRemoteInputStream.aidl
│           │                   │       ├── IRemotePathObservable.aidl
│           │                   │       ├── IRemotePosixFileAttributeView.aidl
│           │                   │       ├── IRemotePosixFileStore.aidl
│           │                   │       ├── IRemoteSeekableByteChannel.aidl
│           │                   │       ├── ParcelableCopyOptions.aidl
│           │                   │       ├── ParcelableDirectoryStream.aidl
│           │                   │       ├── ParcelableException.aidl
│           │                   │       ├── ParcelableFileAttributes.aidl
│           │                   │       ├── ParcelableObject.aidl
│           │                   │       ├── ParcelablePathListConsumer.aidl
│           │                   │       ├── ParcelableSerializable.aidl
│           │                   │       ├── RemoteInputStream.aidl
│           │                   │       ├── RemotePathObservable.aidl
│           │                   │       └── RemoteSeekableByteChannel.aidl
│           │                   └── util/
│           │                       ├── IRemoteCallback.aidl
│           │                       ├── ParcelSlicedList.aidl
│           │                       └── RemoteCallback.aidl
│           ├── java/
│           │   ├── androidx/
│           │   │   ├── appcompat/
│           │   │   │   ├── app/
│           │   │   │   │   └── AppCompatDelegateCompat.java
│           │   │   │   └── widget/
│           │   │   │       └── FixPaddingListPopupWindow.java
│           │   │   └── swiperefreshlayout/
│           │   │       └── widget/
│           │   │           └── ThemedSwipeRefreshLayout.java
│           │   ├── at/
│           │   │   └── bitfire/
│           │   │       └── dav4jvm/
│           │   │           └── DavResourceAccessor.java
│           │   ├── com/
│           │   │   ├── google/
│           │   │   │   └── android/
│           │   │   │       └── material/
│           │   │   │           ├── appbar/
│           │   │   │           │   └── OnWindowInsetChangedAppBarLayout.java
│           │   │   │           └── shape/
│           │   │   │               └── MaterialShapeDrawableAccessor.java
│           │   │   └── hierynomus/
│           │   │       └── smbj/
│           │   │           └── share/
│           │   │               ├── FileAccessor.java
│           │   │               └── ShareAccessor.java
│           │   ├── me/
│           │   │   └── zhanghai/
│           │   │       └── android/
│           │   │           └── files/
│           │   │               ├── about/
│           │   │               │   ├── AboutActivity.kt
│           │   │               │   └── AboutFragment.kt
│           │   │               ├── app/
│           │   │               │   ├── AppActivity.kt
│           │   │               │   ├── AppInitializers.kt
│           │   │               │   ├── AppProvider.kt
│           │   │               │   ├── AppUpgrader.kt
│           │   │               │   ├── AppUpgraders.kt
│           │   │               │   ├── BackgroundActivityStarter.kt
│           │   │               │   ├── NotificationIds.kt
│           │   │               │   └── SystemServices.kt
│           │   │               ├── coil/
│           │   │               │   ├── AppIconApplicationInfoFetcherFactory.kt
│           │   │               │   ├── AppIconFetcher.kt
│           │   │               │   ├── AppIconPackageNameFetcherFactory.kt
│           │   │               │   ├── CoilExtensions.kt
│           │   │               │   ├── CoilInitializer.kt
│           │   │               │   ├── CoilUtils.kt
│           │   │               │   ├── LoadRequestBuilderExtensions.kt
│           │   │               │   ├── PathAttributesFetcher.kt
│           │   │               │   ├── PdfPageFetcher.kt
│           │   │               │   └── VideoFrameFetcher.kt
│           │   │               ├── colorpicker/
│           │   │               │   ├── BaseColorPreference.kt
│           │   │               │   ├── ColorPaletteAdapter.kt
│           │   │               │   ├── ColorPreferenceDialogFragment.kt
│           │   │               │   └── ColorSwatchView.kt
│           │   │               ├── compat/
│           │   │               │   ├── ActivityCompat.kt
│           │   │               │   ├── ApplicationInfoCompat.kt
│           │   │               │   ├── ContextCompat.kt
│           │   │               │   ├── DialogCompat.kt
│           │   │               │   ├── DigitsKeyListenerCompat.kt
│           │   │               │   ├── DocumentsContractCompat.kt
│           │   │               │   ├── DrawableCompat.kt
│           │   │               │   ├── EnvironmentCompat2.kt
│           │   │               │   ├── ErrnoExceptionCompat.kt
│           │   │               │   ├── FrameLayoutCompat.kt
│           │   │               │   ├── InputStreamCompat.kt
│           │   │               │   ├── IntentCompat.kt
│           │   │               │   ├── KotlinCompat.kt
│           │   │               │   ├── ListFormatterCompat.kt
│           │   │               │   ├── LocaleConfigCompat.kt
│           │   │               │   ├── MediaMetadataRetrieverCompat.kt
│           │   │               │   ├── MenuCompat.kt
│           │   │               │   ├── MimeTypeMapCompat.kt
│           │   │               │   ├── NioUtilsCompat.kt
│           │   │               │   ├── PackageInfoCompat.kt
│           │   │               │   ├── PackageManagerCompat.kt
│           │   │               │   ├── ParcelCompat.kt
│           │   │               │   ├── PermissionInfoCompat.kt
│           │   │               │   ├── PreferenceManagerCompat.kt
│           │   │               │   ├── ProxyFileDescriptorCallbackCompat.kt
│           │   │               │   ├── ResourcesCompat.kt
│           │   │               │   ├── RotateDrawableCompat.kt
│           │   │               │   ├── SELinuxCompat.kt
│           │   │               │   ├── SeekableByteChannelCompat.kt
│           │   │               │   ├── ServiceCompat.kt
│           │   │               │   ├── StorageManagerCompat.kt
│           │   │               │   ├── StorageVolumeCompat.kt
│           │   │               │   ├── TextViewCompat.kt
│           │   │               │   ├── ThreadLocalCompat.kt
│           │   │               │   ├── TileServiceCompat.kt
│           │   │               │   ├── TypedValueCompat.kt
│           │   │               │   ├── ViewCompat.kt
│           │   │               │   └── ViewGroupCompat.kt
│           │   │               ├── file/
│           │   │               │   ├── BasicFileAttributesExtensions.kt
│           │   │               │   ├── DocumentTreeUri.kt
│           │   │               │   ├── DocumentUri.kt
│           │   │               │   ├── DurationExtensions.kt
│           │   │               │   ├── ExternalStorageUri.kt
│           │   │               │   ├── FileItem.kt
│           │   │               │   ├── FileProvider.kt
│           │   │               │   ├── FileSize.kt
│           │   │               │   ├── InstantExtensions.kt
│           │   │               │   ├── JavaFile.kt
│           │   │               │   ├── MimeType.kt
│           │   │               │   ├── MimeTypeConversionExtensions.kt
│           │   │               │   ├── MimeTypeIcon.kt
│           │   │               │   ├── MimeTypeNameExtensions.kt
│           │   │               │   └── MimeTypeTypeExtensions.kt
│           │   │               ├── fileaction/
│           │   │               │   ├── ArchivePasswordDialogActivity.kt
│           │   │               │   └── ArchivePasswordDialogFragment.kt
│           │   │               ├── filejob/
│           │   │               │   ├── FileJob.kt
│           │   │               │   ├── FileJobConflictAction.kt
│           │   │               │   ├── FileJobConflictDialogActivity.kt
│           │   │               │   ├── FileJobConflictDialogFragment.kt
│           │   │               │   ├── FileJobErrorAction.kt
│           │   │               │   ├── FileJobErrorDialogActivity.kt
│           │   │               │   ├── FileJobErrorDialogFragment.kt
│           │   │               │   ├── FileJobErrorViewModel.kt
│           │   │               │   ├── FileJobNotificationTemplate.kt
│           │   │               │   ├── FileJobReceiver.kt
│           │   │               │   ├── FileJobService.kt
│           │   │               │   └── FileJobs.kt
│           │   │               ├── filelist/
│           │   │               │   ├── BreadcrumbData.kt
│           │   │               │   ├── BreadcrumbLayout.kt
│           │   │               │   ├── BreadcrumbLiveData.kt
│           │   │               │   ├── CollatorFileNameExtensions.kt
│           │   │               │   ├── ConfirmDeleteFilesDialogFragment.kt
│           │   │               │   ├── ConfirmReplaceFileDialogFragment.kt
│           │   │               │   ├── CreateArchiveDialogFragment.kt
│           │   │               │   ├── CreateArchiveTypeRadioGroup.kt
│           │   │               │   ├── CreateDirectoryDialogFragment.kt
│           │   │               │   ├── CreateFileDialogFragment.kt
│           │   │               │   ├── EditFileActivity.kt
│           │   │               │   ├── FileItemExtensions.kt
│           │   │               │   ├── FileItemSet.kt
│           │   │               │   ├── FileListActivity.kt
│           │   │               │   ├── FileListAdapter.kt
│           │   │               │   ├── FileListFragment.kt
│           │   │               │   ├── FileListLiveData.kt
│           │   │               │   ├── FileListViewModel.kt
│           │   │               │   ├── FileNameDialogFragment.kt
│           │   │               │   ├── FileSortOptions.kt
│           │   │               │   ├── FileSortOptionsLiveData.kt
│           │   │               │   ├── FileViewSortPathSpecificLiveData.kt
│           │   │               │   ├── FileViewType.kt
│           │   │               │   ├── FileViewTypeLiveData.kt
│           │   │               │   ├── NameDialogFragment.kt
│           │   │               │   ├── NavigateToPathDialogFragment.kt
│           │   │               │   ├── OpenApkDefaultAction.kt
│           │   │               │   ├── OpenApkDialogFragment.kt
│           │   │               │   ├── OpenFileActivity.kt
│           │   │               │   ├── OpenFileAsDialogActivity.kt
│           │   │               │   ├── OpenFileAsDialogFragment.kt
│           │   │               │   ├── PasteState.kt
│           │   │               │   ├── PathDialogFragment.kt
│           │   │               │   ├── PathExtensions.kt
│           │   │               │   ├── PathObserver.kt
│           │   │               │   ├── PickOptions.kt
│           │   │               │   ├── RenameFileDialogFragment.kt
│           │   │               │   ├── SearchFileListLiveData.kt
│           │   │               │   ├── SearchState.kt
│           │   │               │   ├── ShowRequestAllFilesAccessRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestNotificationPermissionInSettingsRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestNotificationPermissionRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestStoragePermissionInSettingsRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestStoragePermissionRationaleDialogFragment.kt
│           │   │               │   ├── TrailData.kt
│           │   │               │   └── TrailLiveData.kt
│           │   │               ├── fileproperties/
│           │   │               │   ├── FileLiveData.kt
│           │   │               │   ├── FilePropertiesDialogFragment.kt
│           │   │               │   ├── FilePropertiesFileViewModel.kt
│           │   │               │   ├── FilePropertiesTabFragment.kt
│           │   │               │   ├── MediaMetadataRetrieverExtensions.kt
│           │   │               │   ├── PathObserverLiveData.kt
│           │   │               │   ├── apk/
│           │   │               │   │   ├── ApkInfo.kt
│           │   │               │   │   ├── ApkInfoLiveData.kt
│           │   │               │   │   ├── FilePropertiesApkTabFragment.kt
│           │   │               │   │   ├── FilePropertiesApkTabViewModel.kt
│           │   │               │   │   ├── PermissionItem.kt
│           │   │               │   │   ├── PermissionListAdapter.kt
│           │   │               │   │   ├── PermissionListDialogFragment.kt
│           │   │               │   │   ├── PermissionListLiveData.kt
│           │   │               │   │   └── PermissionListViewModel.kt
│           │   │               │   ├── audio/
│           │   │               │   │   ├── AudioInfo.kt
│           │   │               │   │   ├── AudioInfoLiveData.kt
│           │   │               │   │   ├── FilePropertiesAudioTabFragment.kt
│           │   │               │   │   └── FilePropertiesAudioTabViewModel.kt
│           │   │               │   ├── basic/
│           │   │               │   │   └── FilePropertiesBasicTabFragment.kt
│           │   │               │   ├── checksum/
│           │   │               │   │   ├── ChecksumInfo.kt
│           │   │               │   │   ├── ChecksumInfoLiveData.kt
│           │   │               │   │   ├── Crc32MessageDigest.kt
│           │   │               │   │   ├── FilePropertiesChecksumTabFragment.kt
│           │   │               │   │   └── FilePropertiesChecksumTabViewModel.kt
│           │   │               │   ├── image/
│           │   │               │   │   ├── ExifInterfaceExtensions.kt
│           │   │               │   │   ├── FilePropertiesImageTabFragment.kt
│           │   │               │   │   ├── FilePropertiesImageTabViewModel.kt
│           │   │               │   │   ├── ImageInfo.kt
│           │   │               │   │   └── ImageInfoLiveData.kt
│           │   │               │   ├── permission/
│           │   │               │   │   ├── FilePropertiesPermissionTabFragment.kt
│           │   │               │   │   ├── GroupListAdapter.kt
│           │   │               │   │   ├── GroupListLiveData.kt
│           │   │               │   │   ├── ModeBitListAdapter.kt
│           │   │               │   │   ├── PrincipalItem.kt
│           │   │               │   │   ├── PrincipalListAdapter.kt
│           │   │               │   │   ├── PrincipalListLiveData.kt
│           │   │               │   │   ├── SetGroupDialogFragment.kt
│           │   │               │   │   ├── SetGroupViewModel.kt
│           │   │               │   │   ├── SetModeDialogFragment.kt
│           │   │               │   │   ├── SetModeViewModel.kt
│           │   │               │   │   ├── SetOwnerDialogFragment.kt
│           │   │               │   │   ├── SetOwnerViewModel.kt
│           │   │               │   │   ├── SetPrincipalDialogFragment.kt
│           │   │               │   │   ├── SetPrincipalViewModel.kt
│           │   │               │   │   ├── SetSeLinuxContextDialogFragment.kt
│           │   │               │   │   ├── UserListAdapter.kt
│           │   │               │   │   └── UserListLiveData.kt
│           │   │               │   └── video/
│           │   │               │       ├── FilePropertiesVideoTabFragment.kt
│           │   │               │       ├── FilePropertiesVideoTabViewModel.kt
│           │   │               │       ├── VideoInfo.kt
│           │   │               │       └── VideoInfoLiveData.kt
│           │   │               ├── ftpserver/
│           │   │               │   ├── FtpServer.kt
│           │   │               │   ├── FtpServerActivity.kt
│           │   │               │   ├── FtpServerAddTilePreference.kt
│           │   │               │   ├── FtpServerFragment.kt
│           │   │               │   ├── FtpServerHomeDirectoryPreference.kt
│           │   │               │   ├── FtpServerNotification.kt
│           │   │               │   ├── FtpServerPreferenceFragment.kt
│           │   │               │   ├── FtpServerReceiver.kt
│           │   │               │   ├── FtpServerService.kt
│           │   │               │   ├── FtpServerStatePreference.kt
│           │   │               │   ├── FtpServerTileService.kt
│           │   │               │   ├── FtpServerUrl.kt
│           │   │               │   ├── FtpServerUrlPreference.kt
│           │   │               │   ├── ProviderFileSystemFactory.kt
│           │   │               │   ├── ProviderFileSystemView.kt
│           │   │               │   └── ProviderFtpFile.kt
│           │   │               ├── hiddenapi/
│           │   │               │   ├── HiddenApi.kt
│           │   │               │   └── RestrictedHiddenApi.kt
│           │   │               ├── navigation/
│           │   │               │   ├── BookmarkDirectories.kt
│           │   │               │   ├── BookmarkDirectory.kt
│           │   │               │   ├── EditBookmarkDirectoryDialogActivity.kt
│           │   │               │   ├── EditBookmarkDirectoryDialogFragment.kt
│           │   │               │   ├── NavigationFragment.kt
│           │   │               │   ├── NavigationItem.kt
│           │   │               │   ├── NavigationItemListLiveData.kt
│           │   │               │   ├── NavigationItems.kt
│           │   │               │   ├── NavigationListAdapter.kt
│           │   │               │   ├── NavigationRecyclerView.kt
│           │   │               │   ├── NavigationRoot.kt
│           │   │               │   ├── NavigationRootMapLiveData.kt
│           │   │               │   ├── StandardDirectoriesLiveData.kt
│           │   │               │   ├── StandardDirectory.kt
│           │   │               │   └── StandardDirectorySettings.kt
│           │   │               ├── nonfree/
│           │   │               │   └── CrashlyticsInitializer.kt
│           │   │               ├── provider/
│           │   │               │   ├── FileSystemProviders.kt
│           │   │               │   ├── archive/
│           │   │               │   │   ├── ArchiveExceptionExtensions.kt
│           │   │               │   │   ├── ArchiveFileAttributeView.kt
│           │   │               │   │   ├── ArchiveFileAttributes.kt
│           │   │               │   │   ├── ArchiveFileKey.kt
│           │   │               │   │   ├── ArchiveFileStore.kt
│           │   │               │   │   ├── ArchiveFileSystem.kt
│           │   │               │   │   ├── ArchiveFileSystemProvider.kt
│           │   │               │   │   ├── ArchivePasswordRequiredException.kt
│           │   │               │   │   ├── ArchivePath.kt
│           │   │               │   │   ├── OpenOptionsArchiveExtensions.kt
│           │   │               │   │   ├── PathArchiveExtensions.kt
│           │   │               │   │   └── archiver/
│           │   │               │   │       ├── ArchiveReader.kt
│           │   │               │   │       ├── ArchiveWriter.kt
│           │   │               │   │       ├── ReadArchive.kt
│           │   │               │   │       └── WriteArchive.kt
│           │   │               │   ├── common/
│           │   │               │   │   ├── AbstractBasicFileAttributes.kt
│           │   │               │   │   ├── AbstractContentProviderFileAttributes.kt
│           │   │               │   │   ├── AbstractFileByteChannel.kt
│           │   │               │   │   ├── AbstractFileStore.kt
│           │   │               │   │   ├── AbstractPath.kt
│           │   │               │   │   ├── AbstractPathObservable.kt
│           │   │               │   │   ├── AbstractPosixFileAttributes.kt
│           │   │               │   │   ├── AbstractWatchKey.kt
│           │   │               │   │   ├── AbstractWatchService.kt
│           │   │               │   │   ├── AccessModes.kt
│           │   │               │   │   ├── AndroidFileTypeDetector.kt
│           │   │               │   │   ├── ByteBufferExtensions.kt
│           │   │               │   │   ├── ByteBufferInputStream.kt
│           │   │               │   │   ├── ByteString.kt
│           │   │               │   │   ├── ByteStringBuilder.kt
│           │   │               │   │   ├── ByteStringListPath.kt
│           │   │               │   │   ├── ByteStringListPathCreator.kt
│           │   │               │   │   ├── ByteStringPath.kt
│           │   │               │   │   ├── ChannelExtensions.kt
│           │   │               │   │   ├── CloseableIterator.kt
│           │   │               │   │   ├── ClosedDirectoryObserverException.kt
│           │   │               │   │   ├── ContentProviderFileAttributes.kt
│           │   │               │   │   ├── CopyOptions.kt
│           │   │               │   │   ├── CovariantPath.kt
│           │   │               │   │   ├── DelegateFileChannel.kt
│           │   │               │   │   ├── DelegateInputStream.kt
│           │   │               │   │   ├── DelegateOutputStream.kt
│           │   │               │   │   ├── DelegateSchemeFileSystemProvider.kt
│           │   │               │   │   ├── DelegateSeekableByteChannel.kt
│           │   │               │   │   ├── EncryptedFileAttributes.kt
│           │   │               │   │   ├── FileChannelExtensions.kt
│           │   │               │   │   ├── FileStoreNotFoundException.kt
│           │   │               │   │   ├── FileSystemCache.kt
│           │   │               │   │   ├── FileTimeExtensions.kt
│           │   │               │   │   ├── FileTimeParceler.kt
│           │   │               │   │   ├── ForceableChannel.kt
│           │   │               │   │   ├── ForeignCopyMove.kt
│           │   │               │   │   ├── FutureExtensions.kt
│           │   │               │   │   ├── InputStreamExtensions.kt
│           │   │               │   │   ├── InvalidFileNameException.kt
│           │   │               │   │   ├── IsDirectoryException.kt
│           │   │               │   │   ├── LinkOptions.kt
│           │   │               │   │   ├── LocalWatchKey.kt
│           │   │               │   │   ├── LocalWatchService.kt
│           │   │               │   │   ├── OpenOptions.kt
│           │   │               │   │   ├── ParcelFileDescriptorExtensions.kt
│           │   │               │   │   ├── ParcelableFileTime.kt
│           │   │               │   │   ├── ParcelablePosixFileMode.kt
│           │   │               │   │   ├── PathExtensions.kt
│           │   │               │   │   ├── PathIteratorDirectoryStream.kt
│           │   │               │   │   ├── PathListDirectoryStream.kt
│           │   │               │   │   ├── PathObservable.kt
│           │   │               │   │   ├── PathObservableProvider.kt
│           │   │               │   │   ├── PollingWatchKey.kt
│           │   │               │   │   ├── PollingWatchService.kt
│           │   │               │   │   ├── PosixFileAttributeView.kt
│           │   │               │   │   ├── PosixFileAttributes.kt
│           │   │               │   │   ├── PosixFileMode.kt
│           │   │               │   │   ├── PosixFileStore.kt
│           │   │               │   │   ├── PosixFileType.kt
│           │   │               │   │   ├── PosixGroup.kt
│           │   │               │   │   ├── PosixPrincipal.kt
│           │   │               │   │   ├── PosixUser.kt
│           │   │               │   │   ├── ProgressCopyOption.kt
│           │   │               │   │   ├── ReadOnlyFileSystemException.kt
│           │   │               │   │   ├── Searchable.kt
│           │   │               │   │   ├── UriAuthority.kt
│           │   │               │   │   ├── UriByteStringExtensions.kt
│           │   │               │   │   ├── UserActionRequiredException.kt
│           │   │               │   │   ├── WalkFileTreeSearchable.kt
│           │   │               │   │   └── WatchServicePathObservable.kt
│           │   │               │   ├── content/
│           │   │               │   │   ├── ContentFileAttributeView.kt
│           │   │               │   │   ├── ContentFileAttributes.kt
│           │   │               │   │   ├── ContentFileSystem.kt
│           │   │               │   │   ├── ContentFileSystemProvider.kt
│           │   │               │   │   ├── ContentPath.kt
│           │   │               │   │   ├── ContentPathObservable.kt
│           │   │               │   │   ├── OpenOptionsContentExtensions.kt
│           │   │               │   │   └── resolver/
│           │   │               │   │       ├── CursorExtensions.kt
│           │   │               │   │       ├── Resolver.kt
│           │   │               │   │       └── ResolverException.kt
│           │   │               │   ├── document/
│           │   │               │   │   ├── DocumentCopyMove.kt
│           │   │               │   │   ├── DocumentFileAttributeView.kt
│           │   │               │   │   ├── DocumentFileAttributes.kt
│           │   │               │   │   ├── DocumentFileSystem.kt
│           │   │               │   │   ├── DocumentFileSystemProvider.kt
│           │   │               │   │   ├── DocumentPath.kt
│           │   │               │   │   ├── DocumentPathObservable.kt
│           │   │               │   │   ├── FileAttributesExtensions.kt
│           │   │               │   │   ├── OpenOptionsDocumentExtensions.kt
│           │   │               │   │   ├── PathDocumentExtensions.kt
│           │   │               │   │   └── resolver/
│           │   │               │   │       ├── DocumentResolver.kt
│           │   │               │   │       └── ExternalStorageProviderHacks.kt
│           │   │               │   ├── ftp/
│           │   │               │   │   ├── FtpCopyMove.kt
│           │   │               │   │   ├── FtpFileAttributeView.kt
│           │   │               │   │   ├── FtpFileAttributes.kt
│           │   │               │   │   ├── FtpFileSystem.kt
│           │   │               │   │   ├── FtpFileSystemProvider.kt
│           │   │               │   │   ├── FtpPath.kt
│           │   │               │   │   ├── IOExceptionFtpExtensions.kt
│           │   │               │   │   ├── OpenOptionsFtpExtensions.kt
│           │   │               │   │   ├── PathFtpExtensions.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── FTPClientCompat.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       ├── Mode.kt
│           │   │               │   │       ├── NegativeReplyCodeException.kt
│           │   │               │   │       └── Protocol.kt
│           │   │               │   ├── linux/
│           │   │               │   │   ├── LinuxCopyMove.kt
│           │   │               │   │   ├── LinuxDirectoryStream.kt
│           │   │               │   │   ├── LinuxFileAttributeView.kt
│           │   │               │   │   ├── LinuxFileAttributes.kt
│           │   │               │   │   ├── LinuxFileKey.kt
│           │   │               │   │   ├── LinuxFileStore.kt
│           │   │               │   │   ├── LinuxFileSystem.kt
│           │   │               │   │   ├── LinuxFileSystemProvider.kt
│           │   │               │   │   ├── LinuxPath.kt
│           │   │               │   │   ├── LinuxUserPrincipalLookupService.kt
│           │   │               │   │   ├── LocalLinuxFileAttributeView.kt
│           │   │               │   │   ├── LocalLinuxFileStore.kt
│           │   │               │   │   ├── LocalLinuxFileSystem.kt
│           │   │               │   │   ├── LocalLinuxFileSystemProvider.kt
│           │   │               │   │   ├── LocalLinuxWatchKey.kt
│           │   │               │   │   ├── LocalLinuxWatchService.kt
│           │   │               │   │   ├── OpenOptionsLinuxExtensions.kt
│           │   │               │   │   ├── media/
│           │   │               │   │   │   └── MediaScanner.kt
│           │   │               │   │   └── syscall/
│           │   │               │   │       ├── Constants.kt
│           │   │               │   │       ├── Int32Ref.kt
│           │   │               │   │       ├── StructDirent.kt
│           │   │               │   │       ├── StructGroup.kt
│           │   │               │   │       ├── StructInotifyEvent.kt
│           │   │               │   │       ├── StructMntent.kt
│           │   │               │   │       ├── StructPasswd.kt
│           │   │               │   │       ├── StructStat.kt
│           │   │               │   │       ├── StructTimespec.kt
│           │   │               │   │       ├── Syscall.kt
│           │   │               │   │       └── SyscallException.kt
│           │   │               │   ├── remote/
│           │   │               │   │   ├── FilesAcceptAllFilter.kt
│           │   │               │   │   ├── IInterfaceExtensions.kt
│           │   │               │   │   ├── ParcelableCopyOptions.kt
│           │   │               │   │   ├── ParcelableDirectoryStream.kt
│           │   │               │   │   ├── ParcelableException.kt
│           │   │               │   │   ├── ParcelableFileAttributes.kt
│           │   │               │   │   ├── ParcelableObject.kt
│           │   │               │   │   ├── ParcelablePathListConsumer.kt
│           │   │               │   │   ├── ParcelableSerializable.kt
│           │   │               │   │   ├── RemoteFileService.kt
│           │   │               │   │   ├── RemoteFileServiceInterface.kt
│           │   │               │   │   ├── RemoteFileSystem.kt
│           │   │               │   │   ├── RemoteFileSystemException.kt
│           │   │               │   │   ├── RemoteFileSystemInterface.kt
│           │   │               │   │   ├── RemoteFileSystemProvider.kt
│           │   │               │   │   ├── RemoteFileSystemProviderInterface.kt
│           │   │               │   │   ├── RemoteInputStream.kt
│           │   │               │   │   ├── RemoteInterface.kt
│           │   │               │   │   ├── RemotePathObservable.kt
│           │   │               │   │   ├── RemotePosixFileAttributeView.kt
│           │   │               │   │   ├── RemotePosixFileAttributeViewInterface.kt
│           │   │               │   │   ├── RemotePosixFileStore.kt
│           │   │               │   │   ├── RemotePosixFileStoreInterface.kt
│           │   │               │   │   └── RemoteSeekableByteChannel.kt
│           │   │               │   ├── root/
│           │   │               │   │   ├── LibSuFileServiceLauncher.kt
│           │   │               │   │   ├── RootFileService.kt
│           │   │               │   │   ├── RootFileSystem.kt
│           │   │               │   │   ├── RootFileSystemProvider.kt
│           │   │               │   │   ├── RootPosixFileAttributeView.kt
│           │   │               │   │   ├── RootPosixFileStore.kt
│           │   │               │   │   ├── RootStrategy.kt
│           │   │               │   │   ├── RootableFileSystem.kt
│           │   │               │   │   ├── RootableFileSystemProvider.kt
│           │   │               │   │   ├── RootablePath.kt
│           │   │               │   │   ├── RootablePosixFileAttributeView.kt
│           │   │               │   │   ├── RootablePosixFileStore.kt
│           │   │               │   │   └── SuiFileServiceLauncher.kt
│           │   │               │   ├── sftp/
│           │   │               │   │   ├── OpenOptionsSftpExtensions.kt
│           │   │               │   │   ├── PathSftpExtensions.kt
│           │   │               │   │   ├── PosixFileModeSftpExtensions.kt
│           │   │               │   │   ├── SftpCopyMove.kt
│           │   │               │   │   ├── SftpFileAttributeView.kt
│           │   │               │   │   ├── SftpFileAttributes.kt
│           │   │               │   │   ├── SftpFileSystem.kt
│           │   │               │   │   ├── SftpFileSystemProvider.kt
│           │   │               │   │   ├── SftpPath.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authentication.kt
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── ClientException.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       └── SecurityProviderHelper.kt
│           │   │               │   ├── smb/
│           │   │               │   │   ├── OpenOptionsSmbExtensions.kt
│           │   │               │   │   ├── PathSmbExtensions.kt
│           │   │               │   │   ├── SmbCopyMove.kt
│           │   │               │   │   ├── SmbFileAttributeView.kt
│           │   │               │   │   ├── SmbFileAttributes.kt
│           │   │               │   │   ├── SmbFileKey.kt
│           │   │               │   │   ├── SmbFileSystem.kt
│           │   │               │   │   ├── SmbFileSystemProvider.kt
│           │   │               │   │   ├── SmbPath.kt
│           │   │               │   │   ├── SmbShareFileAttributes.kt
│           │   │               │   │   ├── SmbWatchKey.kt
│           │   │               │   │   ├── SmbWatchService.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── ClientException.kt
│           │   │               │   │       ├── DiskEntryExtensions.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       ├── FileExtensions.kt
│           │   │               │   │       ├── NtStatuses.kt
│           │   │               │   │       ├── PathInformation.kt
│           │   │               │   │       └── ShareTypes.kt
│           │   │               │   └── webdav/
│           │   │               │       ├── DavExceptionExtensions.kt
│           │   │               │       ├── OpenOptionsWebDavExtensions.kt
│           │   │               │       ├── PathWebDavExtensions.kt
│           │   │               │       ├── WebDavCopyMove.kt
│           │   │               │       ├── WebDavFileAttributeView.kt
│           │   │               │       ├── WebDavFileAttributes.kt
│           │   │               │       ├── WebDavFileSystem.kt
│           │   │               │       ├── WebDavFileSystemProvider.kt
│           │   │               │       ├── WebDavPath.kt
│           │   │               │       └── client/
│           │   │               │           ├── Authentication.kt
│           │   │               │           ├── Authenticator.kt
│           │   │               │           ├── Authority.kt
│           │   │               │           ├── Client.kt
│           │   │               │           ├── DavIOException.kt
│           │   │               │           ├── DavResourceCompat.kt
│           │   │               │           ├── FileByteChannel.kt
│           │   │               │           ├── MemoryCookieJar.kt
│           │   │               │           ├── Protocol.kt
│           │   │               │           └── ResponseExtensions.kt
│           │   │               ├── settings/
│           │   │               │   ├── BookmarkDirectoriesPreference.kt
│           │   │               │   ├── BookmarkDirectoryListActivity.kt
│           │   │               │   ├── BookmarkDirectoryListAdapter.kt
│           │   │               │   ├── BookmarkDirectoryListFragment.kt
│           │   │               │   ├── CharsetPreference.kt
│           │   │               │   ├── DefaultDirectoryPreference.kt
│           │   │               │   ├── DefaultIfEmptyEditTextPreference.kt
│           │   │               │   ├── LocalePreference.kt
│           │   │               │   ├── NonNegativeIntegerPreference.kt
│           │   │               │   ├── PasswordPreference.kt
│           │   │               │   ├── PathPreference.kt
│           │   │               │   ├── PathSettings.kt
│           │   │               │   ├── RootStrategyPreference.kt
│           │   │               │   ├── SettingLiveData.kt
│           │   │               │   ├── SettingLiveDatas.kt
│           │   │               │   ├── Settings.kt
│           │   │               │   ├── SettingsActivity.kt
│           │   │               │   ├── SettingsFragment.kt
│           │   │               │   ├── SettingsPreferenceFragment.kt
│           │   │               │   ├── StandardDirectoriesPreference.kt
│           │   │               │   ├── StandardDirectoryListActivity.kt
│           │   │               │   ├── StandardDirectoryListFragment.kt
│           │   │               │   ├── StandardDirectoryListPreferenceFragment.kt
│           │   │               │   └── StoragesPreference.kt
│           │   │               ├── storage/
│           │   │               │   ├── AddDocumentTreeActivity.kt
│           │   │               │   ├── AddDocumentTreeFragment.kt
│           │   │               │   ├── AddExternalStorageShortcutActivity.kt
│           │   │               │   ├── AddExternalStorageShortcutFragment.kt
│           │   │               │   ├── AddLanSmbServerActivity.kt
│           │   │               │   ├── AddLanSmbServerFragment.kt
│           │   │               │   ├── AddLanSmbServerViewModel.kt
│           │   │               │   ├── AddStorageDialogActivity.kt
│           │   │               │   ├── AddStorageDialogFragment.kt
│           │   │               │   ├── DeviceStorage.kt
│           │   │               │   ├── DocumentTree.kt
│           │   │               │   ├── EditDeviceStorageDialogActivity.kt
│           │   │               │   ├── EditDeviceStorageDialogFragment.kt
│           │   │               │   ├── EditDocumentTreeDialogActivity.kt
│           │   │               │   ├── EditDocumentTreeDialogFragment.kt
│           │   │               │   ├── EditExternalStorageShortcutDialogActivity.kt
│           │   │               │   ├── EditExternalStorageShortcutDialogFragment.kt
│           │   │               │   ├── EditFtpServerActivity.kt
│           │   │               │   ├── EditFtpServerFragment.kt
│           │   │               │   ├── EditFtpServerViewModel.kt
│           │   │               │   ├── EditSftpServerActivity.kt
│           │   │               │   ├── EditSftpServerFragment.kt
│           │   │               │   ├── EditSftpServerViewModel.kt
│           │   │               │   ├── EditSmbServerActivity.kt
│           │   │               │   ├── EditSmbServerFragment.kt
│           │   │               │   ├── EditSmbServerViewModel.kt
│           │   │               │   ├── EditWebDavServerActivity.kt
│           │   │               │   ├── EditWebDavServerFragment.kt
│           │   │               │   ├── EditWebDavServerViewModel.kt
│           │   │               │   ├── ExternalStorageShortcut.kt
│           │   │               │   ├── FtpServer.kt
│           │   │               │   ├── FtpServerAuthenticator.kt
│           │   │               │   ├── LanSmbServer.kt
│           │   │               │   ├── LanSmbServerListAdapter.kt
│           │   │               │   ├── LanSmbServerListLiveData.kt
│           │   │               │   ├── SftpServer.kt
│           │   │               │   ├── SftpServerAuthenticator.kt
│           │   │               │   ├── SmbServer.kt
│           │   │               │   ├── SmbServerAuthenticator.kt
│           │   │               │   ├── Storage.kt
│           │   │               │   ├── StorageListActivity.kt
│           │   │               │   ├── StorageListAdapter.kt
│           │   │               │   ├── StorageListFragment.kt
│           │   │               │   ├── StorageVolumeListLiveData.kt
│           │   │               │   ├── Storages.kt
│           │   │               │   ├── URIExtensions.kt
│           │   │               │   ├── WebDavServer.kt
│           │   │               │   └── WebDavServerAuthenticator.kt
│           │   │               ├── terminal/
│           │   │               │   └── Terminal.kt
│           │   │               ├── theme/
│           │   │               │   ├── custom/
│           │   │               │   │   ├── CustomThemeHelper.kt
│           │   │               │   │   ├── ThemeColor.kt
│           │   │               │   │   └── ThemeColorPreference.kt
│           │   │               │   └── night/
│           │   │               │       ├── NightMode.kt
│           │   │               │       └── NightModeHelper.kt
│           │   │               ├── ui/
│           │   │               │   ├── AllowSoftInputHackAlertDialogCustomView.kt
│           │   │               │   ├── AnimatedListAdapter.kt
│           │   │               │   ├── AppBarLayoutExpandHackListener.kt
│           │   │               │   ├── AspectRatioFrameLayout.kt
│           │   │               │   ├── AspectRatioImageView.kt
│           │   │               │   ├── AutoGoneTextView.kt
│           │   │               │   ├── AutoMirrorDrawable.kt
│           │   │               │   ├── BottomBarLayout.kt
│           │   │               │   ├── CheckableForegroundLinearLayout.kt
│           │   │               │   ├── CheckableFrameLayout.kt
│           │   │               │   ├── CheckableItemBackground.kt
│           │   │               │   ├── CheckableView.kt
│           │   │               │   ├── CoordinatorAppBarLayout.kt
│           │   │               │   ├── CoordinatorScrollingFrameLayout.kt
│           │   │               │   ├── CoordinatorScrollingLinearLayout.kt
│           │   │               │   ├── CrossfadeSubtitleToolbar.kt
│           │   │               │   ├── DisabledAlphaImageView.kt
│           │   │               │   ├── DrawerLayoutOnBackPressedCallback.kt
│           │   │               │   ├── DropDownView.kt
│           │   │               │   ├── FitsSystemWindowsAppBarLayout.kt
│           │   │               │   ├── FixLayoutSearchView.kt
│           │   │               │   ├── FixQueryChangeSearchView.kt
│           │   │               │   ├── IgnoreFitsSystemWindowsFullyDraggableDrawerContentLayout.kt
│           │   │               │   ├── LicensesDialogExtensions.kt
│           │   │               │   ├── LicensesDialogFragment.kt
│           │   │               │   ├── ListAdapter.kt
│           │   │               │   ├── ListDiffer.kt
│           │   │               │   ├── MaterialListPreferenceDialogFragmentCompat.kt
│           │   │               │   ├── MaterialPreferenceDialogFragmentCompat.kt
│           │   │               │   ├── NavigationFrameLayout.kt
│           │   │               │   ├── OverlayToolbar.kt
│           │   │               │   ├── OverlayToolbarActionMode.kt
│           │   │               │   ├── PersistentBarLayout.kt
│           │   │               │   ├── PersistentBarLayoutToolbarActionMode.kt
│           │   │               │   ├── PersistentDrawerLayout.kt
│           │   │               │   ├── PreferenceFragmentCompat.kt
│           │   │               │   ├── ReadOnlyTextInputEditText.kt
│           │   │               │   ├── ReadOnlyTextInputLayout.kt
│           │   │               │   ├── SaveStateSubsamplingScaleImageView.kt
│           │   │               │   ├── ScrollingChildEditText.kt
│           │   │               │   ├── ScrollingViewOnApplyWindowInsetsListener.kt
│           │   │               │   ├── SimpleAdapter.kt
│           │   │               │   ├── SpeedDialViewOnBackPressedCallback.kt
│           │   │               │   ├── StaticAdapter.kt
│           │   │               │   ├── TabFragmentPagerAdapter.kt
│           │   │               │   ├── ThemedFastScroller.kt
│           │   │               │   ├── ThemedSpeedDialView.kt
│           │   │               │   ├── ToolbarActionMode.kt
│           │   │               │   ├── UnfilteredArrayAdapter.kt
│           │   │               │   ├── ViewPagerAdapter.kt
│           │   │               │   ├── ViewPagerTransformers.kt
│           │   │               │   └── WrapFirstPageContentViewPager.kt
│           │   │               ├── util/
│           │   │               │   ├── AbstractLocalCursor.kt
│           │   │               │   ├── ActionState.kt
│           │   │               │   ├── ActivityResultLauncherExtensions.kt
│           │   │               │   ├── AddressExtensions.kt
│           │   │               │   ├── AnimatorExtensions.kt
│           │   │               │   ├── AnyExtensions.kt
│           │   │               │   ├── AutoCloseableExtensions.kt
│           │   │               │   ├── Base64.kt
│           │   │               │   ├── BundleExtensions.kt
│           │   │               │   ├── ByteArrayExtensions.kt
│           │   │               │   ├── BytePathName.kt
│           │   │               │   ├── CancellationSignalExtensions.kt
│           │   │               │   ├── CharSequenceExtensions.kt
│           │   │               │   ├── ClickableArrowKeyMovementMethod.kt
│           │   │               │   ├── ClickableMovementMethod.kt
│           │   │               │   ├── ClipDataExtensions.kt
│           │   │               │   ├── ClipboardManagerExtensions.kt
│           │   │               │   ├── CloseableLiveData.kt
│           │   │               │   ├── CollectionExtensions.kt
│           │   │               │   ├── Color.kt
│           │   │               │   ├── ContextExtensions.kt
│           │   │               │   ├── DataState.kt
│           │   │               │   ├── DebouncedRunnable.kt
│           │   │               │   ├── DialogFragmentExtensions.kt
│           │   │               │   ├── DrawableExtensions.kt
│           │   │               │   ├── EditTextExtensions.kt
│           │   │               │   ├── EnvironmentExtensions.kt
│           │   │               │   ├── ForegroundNotificationManager.kt
│           │   │               │   ├── FragmentExtensions.kt
│           │   │               │   ├── FragmentViewModelLazy.kt
│           │   │               │   ├── GeocoderExtensions.kt
│           │   │               │   ├── InetAddressExtensions.kt
│           │   │               │   ├── IntExtensions.kt
│           │   │               │   ├── IntentExtensions.kt
│           │   │               │   ├── IntentPathExtensions.kt
│           │   │               │   ├── LateInitMutableStateFlow.kt
│           │   │               │   ├── LazyReflection.kt
│           │   │               │   ├── ListExtensions.kt
│           │   │               │   ├── LiveDataExtensions.kt
│           │   │               │   ├── LocaleListCompatExtensions.kt
│           │   │               │   ├── LongExtensions.kt
│           │   │               │   ├── MapSet.kt
│           │   │               │   ├── MediaMetadataRetrieverPathExtensions.kt
│           │   │               │   ├── NotificationTemplate.kt
│           │   │               │   ├── PackageManagerExtensions.kt
│           │   │               │   ├── PackageManagerPathExtensions.kt
│           │   │               │   ├── ParcelExtensions.kt
│           │   │               │   ├── ParcelSlicedList.kt
│           │   │               │   ├── ParcelableArgs.kt
│           │   │               │   ├── ParcelableState.kt
│           │   │               │   ├── Parcelers.kt
│           │   │               │   ├── PathName.kt
│           │   │               │   ├── RecyclerViewExtensions.kt
│           │   │               │   ├── RemoteCallback.kt
│           │   │               │   ├── RuntimeBroadcastReceiver.kt
│           │   │               │   ├── SelectionLiveData.kt
│           │   │               │   ├── SimpleActivityLifecycleCallbacks.kt
│           │   │               │   ├── StableUriParceler.kt
│           │   │               │   ├── Stateful.kt
│           │   │               │   ├── StatefulLiveData.kt
│           │   │               │   ├── StatusBarManagerExtensions.kt
│           │   │               │   ├── StorageVolumeExtensions.kt
│           │   │               │   ├── StrictModeExtensions.kt
│           │   │               │   ├── TextViewExtensions.kt
│           │   │               │   ├── ThrottledRunnable.kt
│           │   │               │   ├── ThrowableExtensions.kt
│           │   │               │   ├── TypedValueExtensions.kt
│           │   │               │   ├── UriExtensions.kt
│           │   │               │   ├── ViewExtensions.kt
│           │   │               │   └── WakeWifiLock.kt
│           │   │               └── viewer/
│           │   │                   ├── image/
│           │   │                   │   ├── ConfirmDeleteDialogFragment.kt
│           │   │                   │   ├── ImageViewerActivity.kt
│           │   │                   │   ├── ImageViewerAdapter.kt
│           │   │                   │   └── ImageViewerFragment.kt
│           │   │                   ├── saveas/
│           │   │                   │   └── SaveAsActivity.kt
│           │   │                   └── text/
│           │   │                       ├── ConfirmCloseDialogFragment.kt
│           │   │                       ├── ConfirmReloadDialogFragment.kt
│           │   │                       ├── TextEditorActivity.kt
│           │   │                       ├── TextEditorFragment.kt
│           │   │                       └── TextEditorViewModel.kt
│           │   └── net/
│           │       └── schmizz/
│           │           └── sshj/
│           │               └── sftp/
│           │                   └── RemoteFileAccessor.java
│           ├── jni/
│           │   ├── hiddenapi.c
│           │   └── syscall.c
│           └── res/
│               ├── anim/
│               │   └── list_item.xml
│               ├── color/
│               │   ├── m3_dark_default_color_secondary_text.xml
│               │   ├── m3_default_color_secondary_text.xml
│               │   ├── navigation_item_subtitle_text_color.xml
│               │   ├── navigation_item_subtitle_text_color_material3.xml
│               │   ├── storage_name.xml
│               │   ├── switch_thumb_tint_dark_material3.xml
│               │   ├── switch_thumb_tint_light_material3.xml
│               │   ├── switch_track_tint_dark_material3.xml
│               │   └── switch_track_tint_light_material3.xml
│               ├── color-v31/
│               │   ├── m3_dynamic_dark_default_color_secondary_text.xml
│               │   └── m3_dynamic_default_color_secondary_text.xml
│               ├── drawable/
│               │   ├── about_icon_white_24dp.xml
│               │   ├── add_icon_white_24dp.xml
│               │   ├── alarm_icon_white_24dp.xml
│               │   ├── arrow_end_icon_white_24dp.xml
│               │   ├── audio_icon_white_24dp.xml
│               │   ├── badge_background_18dp.xml
│               │   ├── breadcrumb_item_foreground.xml
│               │   ├── camera_icon_white_24dp.xml
│               │   ├── check_icon_control_normal_24dp.xml
│               │   ├── check_icon_on_primary_36dp.xml
│               │   ├── checkable_badge_18dp.xml
│               │   ├── checkable_badge_icon_18dp.xml
│               │   ├── close_icon_control_normal_24dp.xml
│               │   ├── close_icon_white_24dp.xml
│               │   ├── color_preference_widget_background.xml
│               │   ├── color_swatch_view_background.xml
│               │   ├── computer_icon_white_24dp.xml
│               │   ├── copy_icon_control_normal_24dp.xml
│               │   ├── cut_icon_control_normal_24dp.xml
│               │   ├── delete_icon_control_normal_24dp.xml
│               │   ├── device_icon_white_24dp.xml
│               │   ├── directory_icon_white_24dp.xml
│               │   ├── directory_shortcut_icon_foreground.xml
│               │   ├── document_icon_white_24dp.xml
│               │   ├── download_icon_white_24dp.xml
│               │   ├── downloads_shortcut_icon_foreground.xml
│               │   ├── drag_handle_icon_white_24dp.xml
│               │   ├── edit_icon.xml
│               │   ├── encrypted_badge_icon_18dp.xml
│               │   ├── error_badge_icon_18dp.xml
│               │   ├── error_icon_240dp.xml
│               │   ├── extract_icon_control_normal_24dp.xml
│               │   ├── file_apk_icon.xml
│               │   ├── file_archive_icon.xml
│               │   ├── file_audio_icon.xml
│               │   ├── file_calendar_icon.xml
│               │   ├── file_certificate_icon.xml
│               │   ├── file_code_icon.xml
│               │   ├── file_contact_icon.xml
│               │   ├── file_directory_icon.xml
│               │   ├── file_directory_thumbnail.xml
│               │   ├── file_document_icon.xml
│               │   ├── file_ebook_icon.xml
│               │   ├── file_email_icon.xml
│               │   ├── file_excel_icon.xml
│               │   ├── file_font_icon.xml
│               │   ├── file_generic_icon.xml
│               │   ├── file_icon_240dp.xml
│               │   ├── file_icon_white_24dp.xml
│               │   ├── file_image_icon.xml
│               │   ├── file_item_grid_foreground_material3.xml
│               │   ├── file_item_grid_thumbnail_outline.xml
│               │   ├── file_item_grid_thumbnail_outline_material3.xml
│               │   ├── file_pdf_icon.xml
│               │   ├── file_powerpoint_icon.xml
│               │   ├── file_presentation_icon.xml
│               │   ├── file_shortcut_icon_foreground.xml
│               │   ├── file_spreadsheet_icon.xml
│               │   ├── file_text_icon.xml
│               │   ├── file_video_icon.xml
│               │   ├── file_word_icon.xml
│               │   ├── filter_icon_control_normal_24dp.xml
│               │   ├── ftp_server_shortcut_icon_foreground.xml
│               │   ├── github_icon_white_24dp.xml
│               │   ├── image_icon_white_24dp.xml
│               │   ├── information_icon_white_24dp.xml
│               │   ├── launcher_icon_monochrome.xml
│               │   ├── lock_icon_white_24dp.xml
│               │   ├── m3_popupmenu_background_overlay.xml
│               │   ├── menu_icon_control_normal_24dp.xml
│               │   ├── more_vertical_icon_white_24dp.xml
│               │   ├── mtrl_popupmenu_background.xml
│               │   ├── mtrl_popupmenu_background_overlay.xml
│               │   ├── notification_icon.xml
│               │   ├── notification_icon_white_24dp.xml
│               │   ├── open_as_icon.xml
│               │   ├── paste_icon_control_normal_24dp.xml
│               │   ├── people_icon_control_normal_24dp.xml
│               │   ├── person_icon_control_normal_24dp.xml
│               │   ├── person_icon_white_24dp.xml
│               │   ├── podcast_icon_white_24dp.xml
│               │   ├── qq_icon_white_24dp.xml
│               │   ├── reset_icon_white_24dp.xml
│               │   ├── ringtone_icon_white_24dp.xml
│               │   ├── save_icon_control_normal_24dp.xml
│               │   ├── sd_card_icon_white_24dp.xml
│               │   ├── search_icon_control_normal_24dp.xml
│               │   ├── selectable_item_background_oval.xml
│               │   ├── settings_icon_white_24dp.xml
│               │   ├── shared_directory_icon_white_24dp.xml
│               │   ├── sort_icon_control_normal_24dp.xml
│               │   ├── stop_icon_white_24dp.xml
│               │   ├── symbolic_link_badge_icon_18dp.xml
│               │   ├── text_file_icon_white_24dp.xml
│               │   ├── tim_icon_white_24dp.xml
│               │   ├── transparent_divider_vertical_16dp.xml
│               │   ├── twitter_icon_white_24dp.xml
│               │   ├── video_icon_white_24dp.xml
│               │   └── wechat_icon_white_24dp.xml
│               ├── drawable-desk/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-sw600dp/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-television/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-v23/
│               │   ├── breadcrumb_item_foreground.xml
│               │   ├── m3_popupmenu_background_overlay.xml
│               │   └── mtrl_popupmenu_background_overlay.xml
│               ├── layout/
│               │   ├── about_fragment.xml
│               │   ├── add_lan_smb_server_fragment.xml
│               │   ├── archive_password_dialog.xml
│               │   ├── bookmark_directory_item.xml
│               │   ├── bookmark_directory_list_fragment.xml
│               │   ├── breadcrumb_item.xml
│               │   ├── color_picker_dialog.xml
│               │   ├── color_preference_widget.xml
│               │   ├── create_archive_dialog.xml
│               │   ├── dropdown_item.xml
│               │   ├── edit_bookmark_directory_dialog.xml
│               │   ├── edit_device_storage_dialog.xml
│               │   ├── edit_document_tree_dialog.xml
│               │   ├── edit_external_storage_shortcut_dialog.xml
│               │   ├── edit_ftp_server_fragment.xml
│               │   ├── edit_sftp_server_fragment.xml
│               │   ├── edit_smb_server_fragment.xml
│               │   ├── edit_webdav_server_fragment.xml
│               │   ├── file_item_grid.xml
│               │   ├── file_item_list.xml
│               │   ├── file_job_conflict_dialog_view.xml
│               │   ├── file_job_error_dialog_view.xml
│               │   ├── file_list_fragment.xml
│               │   ├── file_list_fragment_app_bar_include.xml
│               │   ├── file_list_fragment_bottom_bar_include.xml
│               │   ├── file_list_fragment_content_include.xml
│               │   ├── file_list_fragment_include.xml
│               │   ├── file_list_fragment_speed_dial_include.xml
│               │   ├── file_properties_checksum_compare_item.xml
│               │   ├── file_properties_dialog.xml
│               │   ├── file_properties_tab_fragment.xml
│               │   ├── file_properties_tab_item.xml
│               │   ├── ftp_server_fragment.xml
│               │   ├── image_viewer_fragment.xml
│               │   ├── image_viewer_item.xml
│               │   ├── lan_smb_server_add_item.xml
│               │   ├── lan_smb_server_item.xml
│               │   ├── lan_smb_server_loading_item.xml
│               │   ├── mode_bit_item.xml
│               │   ├── name_dialog.xml
│               │   ├── name_dialog_name_include.xml
│               │   ├── navigation_divider_item.xml
│               │   ├── navigation_fragment.xml
│               │   ├── navigation_item.xml
│               │   ├── permission_item.xml
│               │   ├── permission_list_dialog.xml
│               │   ├── principal_item.xml
│               │   ├── set_mode_dialog.xml
│               │   ├── set_principal_dialog.xml
│               │   ├── set_selinux_context_dialog.xml
│               │   ├── settings_fragment.xml
│               │   ├── standard_directory_list_fragment.xml
│               │   ├── storage_item.xml
│               │   ├── storage_list_fragment.xml
│               │   ├── switch_preference_compat_widget.xml
│               │   ├── switch_preference_compat_widget_material3.xml
│               │   └── text_editor_fragment.xml
│               ├── layout-sw600dp-land/
│               │   └── file_list_fragment_include.xml
│               ├── menu/
│               │   ├── file_item.xml
│               │   ├── file_list.xml
│               │   ├── file_list_breadcrumb.xml
│               │   ├── file_list_paste.xml
│               │   ├── file_list_pick.xml
│               │   ├── file_list_pick_bottom.xml
│               │   ├── file_list_select.xml
│               │   ├── file_list_speed_dial.xml
│               │   ├── image_viewer.xml
│               │   └── text_editor.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── directory_shortcut_icon.xml
│               │   ├── downloads_shortcut_icon.xml
│               │   ├── file_shortcut_icon.xml
│               │   ├── ftp_server_shortcut_icon.xml
│               │   └── launcher_icon.xml
│               ├── raw/
│               │   ├── keep.xml
│               │   └── licenses.xml
│               ├── resources.properties
│               ├── values/
│               │   ├── attrs.xml
│               │   ├── colors.xml
│               │   ├── colors_custom.xml
│               │   ├── colors_google.xml
│               │   ├── colors_google_material3.xml
│               │   ├── colors_material.xml
│               │   ├── colors_material3.xml
│               │   ├── dimens.xml
│               │   ├── dimens_material3.xml
│               │   ├── donottranslate_prefs.xml
│               │   ├── integers.xml
│               │   ├── mime_types.xml
│               │   ├── strings.xml
│               │   ├── styles.xml
│               │   ├── styles_material3.xml
│               │   ├── themes.xml
│               │   ├── themes_custom.xml
│               │   └── themes_material3.xml
│               ├── values-ar/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-bg/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ca/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-cs/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-de/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-el/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-es/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-eu/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fa/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fi/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fr/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-hu/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-in/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-is/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-it/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-iw/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ja/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ko/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-lt/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-nb/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-night/
│               │   ├── colors.xml
│               │   ├── colors_custom.xml
│               │   ├── colors_material3.xml
│               │   ├── themes_custom.xml
│               │   └── themes_material3.xml
│               ├── values-night-v29/
│               │   └── colors.xml
│               ├── values-nl/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pl/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pt-rBR/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pt-rPT/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ro/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ru/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-sw360dp-v13/
│               │   └── values_preference.xml
│               ├── values-sw600dp/
│               │   ├── dimens.xml
│               │   ├── dimens_material3.xml
│               │   └── integers.xml
│               ├── values-tr/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-uk/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-v23/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v24/
│               │   └── integers.xml
│               ├── values-v27/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v28/
│               │   └── donottranslate_prefs.xml
│               ├── values-v29/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v30/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v31/
│               │   └── donottranslate_prefs.xml
│               ├── values-v33/
│               │   └── donottranslate_prefs.xml
│               ├── values-vi/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-zh-rCN/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-zh-rTW/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               └── xml/
│                   ├── ftp_server.xml
│                   ├── netework_security_config.xml
│                   ├── settings.xml
│                   └── shortcuts.xml
├── art/
│   ├── deploy-png.sh
│   └── generate-png.sh
├── build.gradle
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── en-US/
│           │   ├── changelogs/
│           │   │   ├── 12.txt
│           │   │   ├── 14.txt
│           │   │   ├── 15.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 18.txt
│           │   │   ├── 19.txt
│           │   │   ├── 20.txt
│           │   │   ├── 21.txt
│           │   │   ├── 22.txt
│           │   │   ├── 23.txt
│           │   │   ├── 25.txt
│           │   │   ├── 26.txt
│           │   │   ├── 27.txt
│           │   │   ├── 28.txt
│           │   │   ├── 29.txt
│           │   │   ├── 30.txt
│           │   │   ├── 31.txt
│           │   │   ├── 32.txt
│           │   │   ├── 33.txt
│           │   │   ├── 34.txt
│           │   │   ├── 35.txt
│           │   │   ├── 36.txt
│           │   │   ├── 37.txt
│           │   │   ├── 38.txt
│           │   │   └── 39.txt
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           └── zh-CN/
│               ├── changelogs/
│               │   ├── 12.txt
│               │   ├── 14.txt
│               │   ├── 15.txt
│               │   ├── 16.txt
│               │   ├── 17.txt
│               │   ├── 18.txt
│               │   ├── 19.txt
│               │   ├── 20.txt
│               │   ├── 21.txt
│               │   ├── 22.txt
│               │   ├── 23.txt
│               │   ├── 25.txt
│               │   ├── 26.txt
│               │   ├── 27.txt
│               │   ├── 28.txt
│               │   ├── 29.txt
│               │   ├── 30.txt
│               │   ├── 31.txt
│               │   ├── 32.txt
│               │   ├── 33.txt
│               │   ├── 34.txt
│               │   ├── 35.txt
│               │   ├── 36.txt
│               │   ├── 37.txt
│               │   ├── 38.txt
│               │   └── 39.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── mime/
│   ├── MimeTypeMapCompat.kt
│   ├── android.extensions
│   ├── generate-code.sh
│   └── generate-extensions.sh
├── settings.gradle
├── signing.gradle
├── signing.properties.example
└── utils/
    ├── generate-custom-themes.sh
    └── import-translations.sh

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/pull_request_template.md
================================================
First of all, thank you for your interest in help improving this project! However, I normally won't accept PRs for this project because I'm currently the only copyright owner for it (except for translations and maybe my company), which I think would be a nice thing to keep along. On the other hand, forcing people to give up their copyright to me is both awkward and legally-complex. So if you have any suggestions for an improvement, please feel free to comment on existing issues or open a new one!


================================================
FILE: .github/workflows/android.yml
================================================
name: Android CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Check out repository
      uses: actions/checkout@v4
      with:
        submodules: true
    - name: Set up JDK 17
      uses: actions/setup-java@v4
      with:
        distribution: 'temurin'
        java-version: '21'
    - name: Build with Gradle
      run: ./gradlew assembleDebug lintVitalRelease
    - name: Upload artifact
      uses: actions/upload-artifact@v4
      with:
        name: app-debug.apk
        path: app/build/outputs/apk/debug/app-debug.apk
        retention-days: 10


================================================
FILE: .gitignore
================================================
/.gradle/
/.idea/
/.kotlin/
/build/
/captures/
/local.properties
/signing.jks
/signing.properties
.DS_Store
*.iml


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: PRIVACY.md
================================================
# Privacy Policy

Hai Zhang built the Material Files app as an Open Source app. This SERVICE is provided by Hai Zhang at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Material Files unless otherwise defined in this Privacy Policy.

## Information Collection and Use

For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request will be retained on your device and is not collected by me in any way.

The app does use third party services that may collect information used to identify you.

Link to privacy policy of third party service providers used by the app

- [Google Play Services](https://policies.google.com/privacy)
- [Google Analytics for Firebase](https://policies.google.com/privacy)
- [Firebase Crashlytics](https://firebase.google.com/support/privacy)

## Log Data

I want to inform you that whenever you use my Service, in a case of an error in the app I collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my Service, the time and date of your use of the Service, and other statistics.

## Cookies

Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.

This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.

## Service Providers

I may employ third-party companies and individuals due to the following reasons:

- To facilitate our Service;
- To provide the Service on our behalf;
- To perform Service-related services; or
- To assist us in analyzing how our Service is used.

I want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.

## Security

I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.

## Links to Other Sites

This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.

## Children’s Privacy

These Services do not address anyone under the age of 13\. I do not knowingly collect personally identifiable information from children under 13\. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do necessary actions.

## Changes to This Privacy Policy

I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.

## Contact Us

If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at https://github.com/zhanghai/MaterialFiles.

This privacy policy page was created at [privacypolicytemplate.net](https://privacypolicytemplate.net) and modified/generated by [App Privacy Policy Generator](https://app-privacy-policy-generator.firebaseapp.com/)


================================================
FILE: README.md
================================================
# Material Files

[本文中文版](README_zh-CN.md)

[![Android CI status](https://github.com/zhanghai/MaterialFiles/workflows/Android%20CI/badge.svg)](https://github.com/zhanghai/MaterialFiles/actions) [![GitHub release](https://img.shields.io/github/v/release/zhanghai/MaterialFiles)](https://github.com/zhanghai/MaterialFiles/releases) [![License](https://img.shields.io/github/license/zhanghai/MaterialFiles?color=blue)](LICENSE)

An open source Material Design file manager, for Android 5.0+.

[<img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" width="240">](https://play.google.com/store/apps/details?id=me.zhanghai.android.files) [<img alt="Get it on F-Droid" src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" width="240">](https://f-droid.org/packages/me.zhanghai.android.files) [<img alt="Get it on GitHub" src="https://raw.githubusercontent.com/Kunzisoft/Github-badge/main/get-it-on-github.png" width="240">](https://github.com/zhanghai/MaterialFiles/releases/latest/download/app-release-universal.apk)

[Help translation on Transifex](https://www.transifex.com/zhanghai/MaterialFiles/) ([Search Android & GNOME translations](https://translations.zhanghai.me/), [Microsoft language resources](https://learn.microsoft.com/en-us/globalization/reference/microsoft-language-resources), [MIME type translations](https://gitlab.freedesktop.org/xdg/shared-mime-info/-/tree/master/po))

## Preview

<p><img src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/2.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/3.png" width="32%" />
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/4.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/5.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/6.png" width="32%" /></p>

## Features

- Open source: Lightweight, clean and secure.
- Material Design: Follows Material Design guidelines, with attention into details.
- Breadcrumbs: Navigate in the filesystem with ease.
- Root support: View and manage files with root access.
- Archive support: View, extract and create common compressed files.
- NAS support: View and manage files on FTP, SFTP, SMB and WebDAV servers.
- Themes: Customizable UI colors, plus night mode with optional true black.
- Linux-aware: Like [Nautilus](https://apps.gnome.org/Nautilus/), knows symbolic links, file permissions and SELinux context.
- Robust: Uses Linux system calls under the hood, not yet another [`ls` parser](https://news.ycombinator.com/item?id=7994720).
- Well-implemented: Built upon the right things, including [Java NIO2 File API](https://docs.oracle.com/javase/8/docs/api/java/nio/file/package-summary.html) and [LiveData](https://developer.android.com/topic/libraries/architecture/livedata).

## Why Material Files?

Because I like Material Design, and clean Material Design.

There are already a handful of powerful file managers, but most of them just aren't Material Design. And even among the ones with Material Design, they usually have various minor design flaws (layout, alignment, padding, icon, font, etc) across the app which makes me uncomfortable, while still being minor enough so that not everybody would care to fix it. So I had to create my own.

Because I want an open source file manager.

Most of the popular and reliable file managers are just closed source, and I sometimes use them to view and modify files that require root access. But deep down inside, I just feel uneasy with giving any closed source app the root access to my device. After all, that means giving literally full access to my device, which stays with me every day and stores my own information, and what apps do with such access merely depends on their good intent.

Because I want a file manager that is implemented the right way.

- This app implemented [Java NIO2 File API](https://docs.oracle.com/javase/8/docs/api/java/nio/file/package-summary.html) as its backend, instead of inventing a custom model for file information/operations, which often gets coupled with UI logic and grows into a mixture of everything ([example](https://github.com/TeamAmaze/AmazeFileManager/blob/master/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java)). On the contrary, a decoupled backend allows cleaner code (which means less bugs), and easier addition of support for other file systems.

- This app doesn't use `java.io.File` or parse the output of `ls`, but built bindings to Linux syscalls to properly access the file system. `java.io.File` is an old API missing many features, and just can't handle things like symbolic links correctly, which is the reason why many people rather parse `ls` instead. However parsing the output `ls` is not only slow, but also [unreliable](https://news.ycombinator.com/item?id=7994720), which made [Cabinet](https://github.com/aminb/cabinet/blob/master/app/src/main/java/com/afollestad/cabinet/file/root/LsParser.java) broken on newer Android versions. By virtue of using Linux syscalls, this app is able to be fast and smooth, and handle advanced things like Linux permissions, symbolic links and even SELinux context. It can also handle file names with invalid UTF-8 encoding because paths are not naively stored as Java `String`s, which most file managers does and fails during file operation.

- This app built its frontend upon modern `ViewModel` and `LiveData` which enables a clear code structure and support for rotation. It also properly handles things like errors during file operation, file conflicts and foreground/background state.

In a word, this app tries to follow the best practices on Android and do the right thing, while keeping its source code clean and maintainable.

Because I know people can do it right.

[Nautilus](https://wiki.gnome.org/Apps/Files) is a beautifully-designed and user-friendly file manager on Linux desktop, and it's fully Linux-aware. [Phonograph](https://github.com/kabouzeid/Phonograph) is an open source Material Design music player app (which I've been using for years), and it has just the right Material Design and implementation.

So, it's time for yet another Android file manager.

## Inclusion in custom ROMs

Thank you if you choose to include Material Files in your custom ROM! However since I've received several user complaints due to improper inclusion, I'd like to offer some suggestions on including this app properly for the good of end users:

- Please don't replace the AOSP [DocumentsUI](https://android.googlesource.com/platform/packages/apps/DocumentsUI/) app with this app. This app is not designed to replace DocumentsUI and can't handle a number of functionalities in DocumentsUI - in fact, it relies on DocumentsUI to do things like granting external SD card access.

- Please make sure this app can be uninstalled or at least disabled. Some users may not want this app for a variety of reasons, and get very upset when they can't remove it.

- Please avoid conflict with the Play/F-Droid version of this app. App stores cannot update apps signed with a different certificate, so you can either ship an APK that's signed by me (or F-Droid) so that users will be able to update it on Play/F-Droid, or fork this project and rename the package name when you need to sign the APK with a different certificate and potentially making other changes.

## License

    Copyright (C) 2018 Hai Zhang

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.


================================================
FILE: README_zh-CN.md
================================================
# Material Files

[![Android CI 状态](https://github.com/zhanghai/MaterialFiles/workflows/Android%20CI/badge.svg)](https://github.com/zhanghai/MaterialFiles/actions) [![GitHub 发行版](https://img.shields.io/github/v/release/zhanghai/MaterialFiles)](https://github.com/zhanghai/MaterialFiles/releases) [![许可证](https://img.shields.io/github/license/zhanghai/MaterialFiles?color=blue)](LICENSE)

一个开源的 Material Design 文件管理器,适用于 Android 5.0+。

[<img alt="下载应用,请到 Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/zh-cn_badge_web_generic.png" width="240">](https://play.google.com/store/apps/details?id=me.zhanghai.android.files) [<img alt="下载应用,请到 F-Droid" src="https://fdroid.gitlab.io/artwork/badge/get-it-on-zh-cn.png" width="240">](https://f-droid.org/packages/me.zhanghai.android.files) [<img alt="下载应用,请到 GitHub" src="https://raw.githubusercontent.com/Kunzisoft/Github-badge/main/get-it-on-github.png" width="240">](https://github.com/zhanghai/MaterialFiles/releases/latest/download/app-release-universal.apk)

[在 Transifex 上帮助翻译](https://www.transifex.com/zhanghai/MaterialFiles/)([搜索 Android 和 GNOME 的翻译](https://translations.zhanghai.me/)、[微软语言资源](https://learn.microsoft.com/en-us/globalization/reference/microsoft-language-resources)、[MIME 类型翻译](https://gitlab.freedesktop.org/xdg/shared-mime-info/-/tree/master/po))

## 预览

<p><img src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/2.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/3.png" width="32%" />
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/4.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/5.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/6.png" width="32%" /></p>

## 特性

- 开源:轻量、简洁并且安全。
- Material Design:遵循 Material Design 规范,并且注重细节。
- 面包屑导航栏:点击导航栏所显示路径中的任一文件夹即可快速访问。
- Root 支持:使用 root 权限查看和管理文件。
- 压缩文件支持:查看、提取和创建常见的压缩文件。
- NAS 支持:查看和管理 FTP、SFTP、SMB 和 WebDAV 服务器上的文件。
- 主题:可定制的界面颜色,以及可选纯黑的夜间模式。
- Linux 友好:类似 [Nautilus](https://wiki.gnome.org/action/show/Apps/Files),支持符号链接、文件权限和 SELinux 上下文。
- 健壮性:使用 Linux 系统调用实现,而不是另一个 [`ls` 解析器](https://news.ycombinator.com/item?id=7994720)。
- 实现良好:使用正确的方式打造,包括 [Java NIO2 文件 API](https://docs.oracle.com/javase/8/docs/api/java/nio/file/package-summary.html) 和 [LiveData](https://developer.android.com/topic/libraries/architecture/livedata)。

## 为什么要有 Material Files?

因为喜爱 Material Design,并且是整洁、精致的 Material Design。

市面上已经有了许多强大的文件管理器,但它们中的大多数并非 Material Design。而即使在算是 Material Design 的应用之中,它们(或多或少)有着各种设计瑕疵(布局、对齐、留白、图标、字体等等)存在于应用的各个角落,让人难受;然而却又不是特别大的问题,以至于可能没人愿意特意改善。所以还是需要自己编写。

因为想要一个开源的文件管理器。

大多数流行并且可靠的文件管理器都是闭源的,并且我有时会使用它们来查看或修改需要 root 权限的文件,但我心里对于授予 root 权限给闭源应用还是有些不安。毕竟 root 权限意味着对设备的完全访问权限,而这台设备每天跟随着我并且存储着我的个人信息;这样的话,闭源应用实际上做了哪些事情就完全仅仅取决于它们的良心了。

因为想要一个正确实现的文件管理器。

- 这个应用实现了 [Java NIO2 文件 API](https://docs.oracle.com/javase/8/docs/api/java/nio/file/package-summary.html) 作为后端,而不是发明一个自定义的机制来获取文件信息和进行文件操作。后者经常变得与前端逻辑耦合起来,最终成长为一个包含各种东西的混合物([示例](https://github.com/TeamAmaze/AmazeFileManager/blob/master/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java))。相反地,一个解耦的后端可以使得代码更加干净(更少问题),并且可以更轻松地加入新文件系统的支持。

- 这个应用没有使用 `java.io.File` 或者解析 `ls` 的输出,而是构建了 Linux 系统调用的绑定来正确地访问文件系统。`java.io.File` 是一个陈旧并且缺少许多功能的 API,并且无法正确处理符号链接,因此许多人宁愿解析 `ls` 的输出。然而解析 `ls` 的输出不仅缓慢,而且[不可靠](https://news.ycombinator.com/item?id=7994720),同时也正是 [Cabinet](https://github.com/aminb/cabinet/blob/master/app/src/main/java/com/afollestad/cabinet/file/root/LsParser.java) 在新版本 Android 上无法正确运行的原因。而通过使用 Linux 系统调用,这个应用可以做到快速流畅,并且能够处理例如 Linux 权限、符号链接以至于 SELinux 上下文等等高级特性。应用也可以正确地处理含有无效 UTF-8 编码的文件名,因为应用中的路径没有简单地使用 Java 的 `String` 存储,而大多数其他文件管理器却并非如此,因此无法正确地进行文件操作。

- 这个应用的前端是基于现代的 `ViewModel` 和 `LiveData` 实现的,使得代码结构更加清晰并且支持转屏。应用也可以正确地处理文件操作中的错误、文件冲突和前台/后台状态。

总而言之,这个应用尽力遵守 Android 上的最佳实践并且做正确的事,同时保持源代码干净和可维护。

因为事情可以被人做好。

[Nautilus](https://wiki.gnome.org/Apps/Files) 是一个设计美观并且用户友好的 Linux 桌面上的文件管理器,并且同时做到了 Linux 友好。[Phonograph](https://github.com/kabouzeid/Phonograph) 是一个开源的 Material Design 音乐播放其应用(我自己已经使用多年),而它也有着绝佳的 Material Design 设计和实现。

所以,是时候再编写一个 Android 文件管理器了。

## 在定制 ROM 中集成

如果您决定在您的定制 ROM 中集成这个应用,十分感谢!但是鉴于我曾收到过多起由不适当的集成导致的用户反馈,请允许我为了更好的用户体验提供一些关于正确集成这个应用的建议:

- 请不要使用这个应用替换 AOSP 的 [DocumentsUI](https://android.googlesource.com/platform/packages/apps/DocumentsUI/) 应用。这个应用没有被设计成 DocumentsUI 的替代品并且缺少许多 DocumentsUI 中的功能——实际上,这个应用需要 DocumentsUI 来授予外置 SD 卡的访问权限。

- 请确保这个应用可以被卸载或至少禁用。某些用户可能出于各种原因不想要这个应用,并且会在发现无法移除这个应用时十分恼火。

- 请避免和这个应用的 Play/F-Droid 版本冲突。应用商店无法更新使用了不同证书进行签名的应用,所以您可以预置一个由我(或 F-Droid)签名的 APK 以使用户能够在 Play 或 F-Droid 上更新这个应用;或者如果您需要使用其他的证书进行签名(并进行其他更改),请复刻本项目并重命名它的软件包名。

## 许可证

    Copyright (C) 2018 Hai Zhang

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.


================================================
FILE: SECURITY.md
================================================
# Security Policy

## Supported Versions

Only the latest version of this app is currently being supported with security updates.

## Reporting a Vulnerability

Please email dreaming.in.code.zh@gmail.com to report a vulnerability.


================================================
FILE: app/.gitignore
================================================
/.cxx/
/.externalNativeBuild/
/build/
/out/


================================================
FILE: app/CMakeLists.txt
================================================
cmake_minimum_required(VERSION 3.6)

project(MaterialFiles C)

add_library(hiddenapi SHARED
        src/main/jni/hiddenapi.c)
target_compile_options(hiddenapi
        PRIVATE
        -Wall
        -Werror)

find_library(LOG_LIBRARY log)
add_library(syscall SHARED
        src/main/jni/syscall.c)
target_compile_options(syscall
        PRIVATE
        -Wall
        -Werror)
target_link_libraries(syscall
        PRIVATE
        ${LOG_LIBRARY})


================================================
FILE: app/build.gradle
================================================
/*
 * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'

apply from: '../signing.gradle'

//#ifdef NONFREE
buildscript {
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.google.gms:google-services:4.4.3'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.5'
    }
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
//#endif

android {
    namespace 'me.zhanghai.android.files'
    buildToolsVersion = '36.0.0'
    compileSdk 36
    ndkVersion '28.1.13356709'
    defaultConfig {
        applicationId 'me.zhanghai.android.files'
        minSdk 21
        // Not supporting foreground service timeout yet.
        //noinspection OldTargetApi
        targetSdk 34
        versionCode 39
        versionName '1.7.4'
        resValue 'string', 'app_version', versionName + ' (' + versionCode + ')'
        buildConfigField 'String', 'FILE_PROVIDIER_AUTHORITY', 'APPLICATION_ID + ".file_provider"'
        resValue 'string', 'app_provider_authority', applicationId + '.app_provider'
        resValue 'string', 'file_provider_authority', applicationId + '.file_provider'
        externalNativeBuild {
            cmake {
                arguments '-DANDROID_STL=none'
            }
        }
    }
    buildFeatures {
        aidl true
        buildConfig true
        viewBinding true
    }
    androidResources {
        generateLocaleConfig true
    }
    compileOptions {
        coreLibraryDesugaringEnabled true
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8.toString()
    }
    externalNativeBuild {
        cmake {
            path 'CMakeLists.txt'
        }
    }
    lint {
        // For "Invalid package reference in library; not included in Android: javax.security.sasl.
        // Referenced from org.apache.mina.proxy.ProxyAuthException."
        warning 'InvalidPackage', 'MissingTranslation'
    }
    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
//#ifdef NONFREE
            firebaseCrashlytics {
                nativeSymbolUploadEnabled true
            }
//#endif
        }
    }
    packagingOptions {
        jniLibs {
            useLegacyPackaging true
        }
        resources {
            excludes += [
                    'META-INF/DEPENDENCIES',
                    'org/bouncycastle/pqc/crypto/picnic/*'
            ]
        }
    }
    bundle {
        language {
            enableSplit = false
        }
    }
}

repositories {
    maven {
        url 'https://jitpack.io'
    }
}
dependencies {
    // We need https://github.com/bitfireAT/dav4jvm/commit/c1bc14348831bcdb00f3a6eec4859b81c7dc3728
    implementation('com.github.bitfireAT:dav4jvm:ec6264d427') {
        exclude group: 'org.ogce', module: 'xpp3'
    }
    implementation 'com.github.chrisbanes:PhotoView:2.3.0'
    implementation 'com.github.topjohnwu.libsu:service:5.2.2'
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")

    // kotlinx-coroutines-android depends on kotlin-stdlib-jdk8
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    def kotlinx_coroutines_version = '1.10.2'
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinx_coroutines_version"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"

    implementation 'androidx.activity:activity-ktx:1.10.1'
    implementation 'androidx.appcompat:appcompat:1.7.1'
    implementation 'androidx.core:core-ktx:1.16.0'
    implementation 'androidx.drawerlayout:drawerlayout:1.2.0'
    implementation 'androidx.exifinterface:exifinterface:1.4.1'
    implementation 'androidx.fragment:fragment-ktx:1.8.8'
    def androidx_lifecycle_version = '2.9.2'
    implementation "androidx.lifecycle:lifecycle-common-java8:$androidx_lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:$androidx_lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-process:$androidx_lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:$androidx_lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$androidx_lifecycle_version"
    implementation 'androidx.preference:preference-ktx:1.2.1'
    implementation 'androidx.recyclerview:recyclerview:1.4.0'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
    implementation 'com.google.android.material:material:1.12.0'

    implementation 'com.caverock:androidsvg-aar:1.4'
    implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
    implementation 'com.drakeet.drawer:drawer:1.0.3'
    implementation 'com.h6ah4i.android.materialshadowninepatch:materialshadowninepatch:1.0.0'
    implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
    // SMBJ 0.12.0 breaks anonymous authentication: https://github.com/hierynomus/smbj/issues/792
    //noinspection GradleDependency
    implementation ('com.hierynomus:smbj:0.11.5') {
        // org.bouncycastle:bcprov-jdk15on uses bytecode version unsupported by Jetifier, so use
        // org.bouncycastle:bcprov-jdk15to18 instead.
        exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
    }
    def bouncy_castle_version = '1.81'
    implementation "org.bouncycastle:bcprov-jdk15to18:$bouncy_castle_version"
    implementation ('com.hierynomus:sshj:0.40.0') {
        exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
        exclude group: 'org.bouncycastle', module: 'bcpkix-jdk18on'
    }
    implementation "org.bouncycastle:bcpkix-jdk15to18:$bouncy_castle_version"
    implementation 'com.leinardi.android:speed-dial:3.3.0'
    implementation ('com.rapid7.client:dcerpc:0.12.13') {
        // SMBJ-RPC depends on the JRE flavor of Guava which targets Java 8.
        exclude group: 'com.google.guava', module: 'guava'
        // Prevent promotion of SMBJ version to 0.12.2.
        exclude group: 'com.hierynomus', module: 'smbj'
        exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
    }
    implementation 'com.google.guava:guava:33.4.8-android'
    // Guava conflicts with com.google.guava:listenablefuture:1.0 pulled in by AndroidX Core
    implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
    implementation 'com.takisoft.preferencex:preferencex:1.1.0'
    implementation 'commons-net:commons-net:3.12.0'
    // LicensesDialog 2.2.0 pulls in androidx.webkit and uses setForceDark() instead of correctly
    // setting colors.
    //noinspection GradleDependency
    implementation 'de.psdev.licensesdialog:licensesdialog:2.1.0'
    // dev.chrisbanesinsetter:insetter:0.6.0 makes inset unstable when entering immersive.
    implementation 'dev.chrisbanes:insetter-ktx:0.3.1'
    implementation 'dev.rikka.rikkax.preference:simplemenu-preference:1.0.3'
    implementation 'dev.rikka.shizuku:api:13.1.5'
    implementation ('eu.agno3.jcifs:jcifs-ng:2.1.10') {
        exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
    }
    implementation platform('io.coil-kt:coil-bom:2.7.0')
    implementation 'io.coil-kt:coil'
    implementation 'io.coil-kt:coil-gif'
    implementation 'io.coil-kt:coil-svg'
    implementation 'io.coil-kt:coil-video'
    implementation 'me.zhanghai.android.appiconloader:appiconloader:1.5.0'
    implementation 'me.zhanghai.android.fastscroll:library:1.3.0'
    implementation 'me.zhanghai.android.foregroundcompat:library:1.0.2'
    implementation 'me.zhanghai.android.libarchive:library:1.1.6'
    implementation 'me.zhanghai.android.libselinux:library:2.1.1'
    implementation 'me.zhanghai.android.retrofile:library:1.2.0'
    implementation 'me.zhanghai.android.systemuihelper:library:1.0.0'
    implementation 'org.apache.ftpserver:ftpserver-core:1.2.1'
    // This is a dependency of org.apache.ftpserver:ftpserver-core but org.apache.mina:mina-core
    // 2.1.4+ became incompatible before API 24 due to dependency on StandardSocketOptions
    // (DIRMINA-1123) and NetworkChannel.supportedOptions() (DIRMINA-1130).
    implementation ('org.apache.mina:mina-core') {
        version {
            strictly '2.1.3'
        }
    }
    // Also a dependency of jCIFS-NG.
    implementation 'org.slf4j:slf4j-android:1.7.36'

//#ifdef NONFREE
    implementation platform('com.google.firebase:firebase-bom:34.0.0')
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-crashlytics-ndk'
//#endif
}


================================================
FILE: app/google-services.json
================================================
{
  "project_info": {
    "project_number": "728501351509",
    "firebase_url": "https://zhanghai-materialfiles.firebaseio.com",
    "project_id": "zhanghai-materialfiles",
    "storage_bucket": "zhanghai-materialfiles.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:728501351509:android:007cb5eb181702a9",
        "android_client_info": {
          "package_name": "me.zhanghai.android.files"
        }
      },
      "oauth_client": [
        {
          "client_id": "728501351509-3ul5c5u8jpd9q9gi4e7537bd31r5nkr5.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyDUcQAOKRcCjsA-e5-cZHbt4HQQFDP4wA4"
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "728501351509-3ul5c5u8jpd9q9gi4e7537bd31r5nkr5.apps.googleusercontent.com",
              "client_type": 3
            }
          ]
        }
      }
    }
  ],
  "configuration_version": "1"
}

================================================
FILE: app/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

# Native methods
# https://www.guardsquare.com/en/products/proguard/manual/examples#native
-keepclasseswithmembernames,includedescriptorclasses class * {
    native <methods>;
}

# App
-keep class me.zhanghai.android.files.** implements androidx.appcompat.view.CollapsibleActionView { *; }
-keep class me.zhanghai.android.files.provider.common.ByteString { *; }
-keep class me.zhanghai.android.files.provider.linux.syscall.** { *; }
-keepnames class * extends java.lang.Exception
# For Class.getEnumConstants()
-keepclassmembers enum * {
    public static **[] values();
}
-keepnames class me.zhanghai.android.files.** implements android.os.Parcelable

# Apache FtpServer
-keepclassmembers class * implements org.apache.mina.core.service.IoProcessor {
    public <init>(java.util.concurrent.ExecutorService);
    public <init>(java.util.concurrent.Executor);
    public <init>();
}

# Bouncy Castle
-keep class org.bouncycastle.jcajce.provider.** { *; }
-keep class org.bouncycastle.jce.provider.** { *; }

# SMBJ
-dontwarn javax.el.**
-dontwarn org.ietf.jgss.**
-dontwarn sun.security.x509.X509Key

# SMBJ-RPC
-dontwarn java.rmi.UnmarshalException


================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
  ~ All Rights Reserved.
  -->

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    <uses-feature android:name="android.hardware.wifi" android:required="false" />
    <uses-feature android:name="android.software.leanback" android:required="false" />

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission
        android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission
        android:name="android.permission.QUERY_ALL_PACKAGES"
        tools:ignore="QueryAllPackagesPermission" />
    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="32" />
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

    <!-- Crashlytics and Shizuku requires API 23. -->
    <uses-sdk tools:overrideLibrary="com.google.firebase,com.google.firebase.components,com.google.firebase.crashlytics,com.google.firebase.crashlytics.ndk,com.google.firebase.installations,com.google.firebase.sessions,rikka.shizuku.aidl,rikka.shizuku.api,rikka.shizuku.shared" />

    <!--
      ~ Samsung DeX requires explicitly setting android:resizeableActivity="true" for the app to be
      ~ resizable.
      ~ TODO: Remove this attribute once Samsung respects the default value for it.
      -->
    <application
        android:allowBackup="true"
        android:banner="@drawable/banner"
        android:enableOnBackInvokedCallback="true"
        android:fullBackupContent="true"
        android:icon="@mipmap/launcher_icon"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/netework_security_config"
        android:requestLegacyExternalStorage="true"
        android:requestRawExternalStorageAccess="true"
        android:resizeableActivity="true"
        android:roundIcon="@mipmap/launcher_icon"
        android:supportsRtl="true"
        android:theme="@style/Theme.MaterialFiles"
        android:usesCleartextTraffic="true"
        tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">

        <activity
            android:name="me.zhanghai.android.files.filelist.FileListActivity"
            android:exported="true"
            android:visibleToInstantApps="true"
            tools:ignore="UnusedAttribute">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
            <intent-filter tools:ignore="AppLinkUrlError">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="inode/directory" />
                <data android:mimeType="resource/folder" />
                <data android:mimeType="vnd.android.document/directory" />
            </intent-filter>
            <!-- @see me.zhanghai.android.files.file.isSupportedArchive -->
            <intent-filter
                android:label="@string/archive_viewer_title"
                tools:ignore="AppLinkUrlError">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="application/gzip" />
                <data android:mimeType="application/java-archive" />
                <data android:mimeType="application/rar" />
                <data android:mimeType="application/zip" />
                <data android:mimeType="application/zstd" />
                <data android:mimeType="application/vnd.android.package-archive" />
                <data android:mimeType="application/vnd.debian.binary-package" />
                <data android:mimeType="application/vnd.ms-cab-compressed" />
                <data android:mimeType="application/vnd.rar" />
                <data android:mimeType="application/x-bzip2" />
                <data android:mimeType="application/x-compress" />
                <data android:mimeType="application/x-cpio" />
                <data android:mimeType="application/x-deb" />
                <data android:mimeType="application/x-debian-package" />
                <data android:mimeType="application/x-gtar" />
                <data android:mimeType="application/x-gtar-compressed" />
                <data android:mimeType="application/x-java-archive" />
                <data android:mimeType="application/x-lzma" />
                <data android:mimeType="application/x-tar" />
                <data android:mimeType="application/x-xz" />
                <data android:mimeType="application/x-7z-compressed" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.GET_CONTENT" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="*/*" />
            </intent-filter>
            <!-- @see https://android.googlesource.com/platform/packages/apps/DocumentsUI/+/main/AndroidManifest.xml -->
            <intent-filter>
                <action android:name="android.intent.action.OPEN_DOCUMENT" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="*/*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.CREATE_DOCUMENT" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="*/*" />
            </intent-filter>
            <!--
              ~ Unusable until we implement DocumentsProvider.
            <intent-filter>
                <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            -->
            <intent-filter>
                <action android:name="me.zhanghai.android.files.intent.action.VIEW_DOWNLOADS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data
                android:name="android.app.shortcuts"
                android:resource="@xml/shortcuts" />
        </activity>

        <!--
          ~ Using android:documentLaunchMode="always" gives a better result than
          ~ Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK. Not sure why though.
          -->
        <activity
            android:name="me.zhanghai.android.files.filelist.OpenFileActivity"
            android:documentLaunchMode="always"
            android:excludeFromRecents="true"
            android:exported="true"
            android:theme="@style/Theme.MaterialFiles.Translucent">
            <intent-filter>
                <action android:name="me.zhanghai.android.files.intent.action.OPEN_FILE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="*/*" />
            </intent-filter>
        </activity>

        <activity
            android:name="me.zhanghai.android.files.filelist.EditFileActivity"
            android:autoRemoveFromRecents="true"
            android:icon="@drawable/edit_icon"
            android:label="@string/file_edit_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.filelist.OpenFileAsDialogActivity"
            android:autoRemoveFromRecents="true"
            android:icon="@drawable/open_as_icon"
            android:label="@string/file_open_as_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.AddStorageDialogActivity"
            android:label="@string/storage_add_storage_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditDeviceStorageDialogActivity"
            android:label="@string/storage_edit_device_storage_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.AddExternalStorageShortcutActivity"
            android:label="@string/storage_add_external_storage_shortcut_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditExternalStorageShortcutDialogActivity"
            android:label="@string/storage_edit_external_storage_shortcut_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.AddDocumentTreeActivity"
            android:label="@string/storage_add_document_tree_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditDocumentTreeDialogActivity"
            android:label="@string/storage_edit_document_tree_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditFtpServerActivity"
            android:label="@string/storage_edit_ftp_server_title_edit"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditSftpServerActivity"
            android:label="@string/storage_edit_sftp_server_title_edit"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.storage.AddLanSmbServerActivity"
            android:label="@string/storage_add_lan_smb_server_title"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditSmbServerActivity"
            android:label="@string/storage_edit_smb_server_title_edit"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.storage.EditWebDavServerActivity"
            android:label="@string/storage_edit_webdav_server_title_edit"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.navigation.EditBookmarkDirectoryDialogActivity"
            android:label="@string/navigation_edit_bookmark_directory_title"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.ftpserver.FtpServerActivity"
            android:exported="true"
            android:label="@string/ftp_server_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles">
            <intent-filter>
                <action android:name="me.zhanghai.android.files.intent.action.MANAGE_FTP_SERVER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name="me.zhanghai.android.files.settings.SettingsActivity"
            android:exported="true"
            android:label="@string/settings_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles">
            <intent-filter>
                <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name="me.zhanghai.android.files.storage.StorageListActivity"
            android:label="@string/storage_list_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.settings.StandardDirectoryListActivity"
            android:label="@string/settings_standard_directory_list_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.settings.BookmarkDirectoryListActivity"
            android:label="@string/settings_bookmark_directory_list_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.about.AboutActivity"
            android:label="@string/about_title"
            android:launchMode="singleTop"
            android:theme="@style/Theme.MaterialFiles" />

        <activity
            android:name="me.zhanghai.android.files.fileaction.ArchivePasswordDialogActivity"
            android:autoRemoveFromRecents="true"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.filejob.FileJobErrorDialogActivity"
            android:autoRemoveFromRecents="true"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.filejob.FileJobConflictDialogActivity"
            android:autoRemoveFromRecents="true"
            android:theme="@style/Theme.MaterialFiles.Translucent" />

        <activity
            android:name="me.zhanghai.android.files.viewer.saveas.SaveAsActivity"
            android:autoRemoveFromRecents="true"
            android:exported="true"
            android:label="@string/save_as_title"
            android:theme="@style/Theme.MaterialFiles.Translucent">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data
                    android:mimeType="*/*"
                    android:scheme="content" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="*/*" />
            </intent-filter>
        </activity>

        <activity
            android:name="me.zhanghai.android.files.viewer.text.TextEditorActivity"
            android:exported="true"
            android:label="@string/text_editor_title"
            android:theme="@style/Theme.MaterialFiles">
            <intent-filter tools:ignore="AppLinkUrlError">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="application/ecmascript" />
                <data android:mimeType="application/javascript" />
                <data android:mimeType="application/json" />
                <data android:mimeType="application/typescript" />
                <data android:mimeType="application/x-sh" />
                <data android:mimeType="application/x-shellscript" />
                <data android:mimeType="application/xml" />
                <data android:mimeType="application/yaml" />
                <data android:mimeType="text/*" />
            </intent-filter>
        </activity>

        <activity
            android:name="me.zhanghai.android.files.viewer.image.ImageViewerActivity"
            android:exported="true"
            android:label="@string/image_viewer_title"
            android:theme="@style/Theme.MaterialFiles.Immersive">
            <intent-filter tools:ignore="AppLinkUrlError">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="image/*" />
            </intent-filter>
        </activity>

        <service
            android:name="me.zhanghai.android.files.filejob.FileJobService"
            android:foregroundServiceType="dataSync" />

        <service android:name="me.zhanghai.android.files.ftpserver.FtpServerService"
            android:foregroundServiceType="dataSync" />

        <service
            android:name="me.zhanghai.android.files.ftpserver.FtpServerTileService"
            android:exported="true"
            android:icon="@drawable/shared_directory_icon_white_24dp"
            android:label="@string/ftp_server_title"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
            tools:ignore="NewApi">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE"/>
            </intent-filter>
            <meta-data
                android:name="android.service.quicksettings.TOGGLEABLE_TILE"
                android:value="true" />
        </service>

        <service
            android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
            android:enabled="false"
            android:exported="false">
            <meta-data
                android:name="autoStoreLocales"
                android:value="true" />
        </service>

        <provider
            android:name="me.zhanghai.android.files.app.AppProvider"
            android:authorities="@string/app_provider_authority"
            android:exported="false" />

        <provider
            android:name="me.zhanghai.android.files.file.FileProvider"
            android:authorities="@string/file_provider_authority"
            android:exported="false"
            android:grantUriPermissions="true" />

        <receiver android:name="me.zhanghai.android.files.filejob.FileJobReceiver" />

        <receiver android:name="me.zhanghai.android.files.ftpserver.FtpServerReceiver" />

        <meta-data
            android:name="firebase_crashlytics_collection_enabled"
            android:value="false" />
    </application>
</manifest>


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/common/ParcelableFileTime.aidl
================================================
package me.zhanghai.android.files.provider.common;

parcelable ParcelableFileTime;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/common/ParcelablePosixFileMode.aidl
================================================
package me.zhanghai.android.files.provider.common;

parcelable ParcelablePosixFileMode;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/common/PosixGroup.aidl
================================================
package me.zhanghai.android.files.provider.common;

parcelable PosixGroup;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/common/PosixUser.aidl
================================================
package me.zhanghai.android.files.provider.common;

parcelable PosixUser;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.IRemoteFileSystem;
import me.zhanghai.android.files.provider.remote.IRemoteFileSystemProvider;
import me.zhanghai.android.files.provider.remote.IRemotePosixFileAttributeView;
import me.zhanghai.android.files.provider.remote.IRemotePosixFileStore;
import me.zhanghai.android.files.provider.remote.ParcelableObject;

interface IRemoteFileService {
    IRemoteFileSystemProvider getRemoteFileSystemProviderInterface(String scheme);

    IRemoteFileSystem getRemoteFileSystemInterface(in ParcelableObject fileSystem);

    IRemotePosixFileStore getRemotePosixFileStoreInterface(in ParcelableObject fileStore);

    IRemotePosixFileAttributeView getRemotePosixFileAttributeViewInterface(
        in ParcelableObject attributeView
    );
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileSystem.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableException;

interface IRemoteFileSystem {
    void close(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileSystemProvider.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableCopyOptions;
import me.zhanghai.android.files.provider.remote.ParcelableDirectoryStream;
import me.zhanghai.android.files.provider.remote.ParcelableException;
import me.zhanghai.android.files.provider.remote.ParcelableFileAttributes;
import me.zhanghai.android.files.provider.remote.ParcelableObject;
import me.zhanghai.android.files.provider.remote.ParcelablePathListConsumer;
import me.zhanghai.android.files.provider.remote.ParcelableSerializable;
import me.zhanghai.android.files.provider.remote.RemotePathObservable;
import me.zhanghai.android.files.provider.remote.RemoteInputStream;
import me.zhanghai.android.files.provider.remote.RemoteSeekableByteChannel;
import me.zhanghai.android.files.util.RemoteCallback;

interface IRemoteFileSystemProvider {
    RemoteInputStream newInputStream(
        in ParcelableObject file,
        in ParcelableSerializable options,
        out ParcelableException exception
    );

    RemoteSeekableByteChannel newByteChannel(
        in ParcelableObject file,
        in ParcelableSerializable options,
        in ParcelableFileAttributes attributes,
        out ParcelableException exception
    );

    ParcelableDirectoryStream newDirectoryStream(
        in ParcelableObject directory,
        in ParcelableObject filter,
        out ParcelableException exception
    );

    void createDirectory(
        in ParcelableObject directory,
        in ParcelableFileAttributes attributes,
        out ParcelableException exception
    );

    void createSymbolicLink(
        in ParcelableObject link,
        in ParcelableObject target,
        in ParcelableFileAttributes attributes,
        out ParcelableException exception
    );

    void createLink(
        in ParcelableObject link,
        in ParcelableObject existing,
        out ParcelableException exception
    );

    void delete(in ParcelableObject path, out ParcelableException exception);

    ParcelableObject readSymbolicLink(in ParcelableObject link, out ParcelableException exception);

    RemoteCallback copy(
        in ParcelableObject source,
        in ParcelableObject target,
        in ParcelableCopyOptions options,
        in RemoteCallback callback
    );

    RemoteCallback move(
        in ParcelableObject source,
        in ParcelableObject target,
        in ParcelableCopyOptions options,
        in RemoteCallback callback
    );

    boolean isSameFile(
        in ParcelableObject path,
        in ParcelableObject path2,
        out ParcelableException exception
    );

    boolean isHidden(in ParcelableObject path, out ParcelableException exception);

    ParcelableObject getFileStore(in ParcelableObject path, out ParcelableException exception);

    void checkAccess(
        in ParcelableObject path,
        in ParcelableSerializable modes,
        out ParcelableException exception
    );

    ParcelableObject readAttributes(
        in ParcelableObject path,
        in ParcelableSerializable type,
        in ParcelableSerializable options,
        out ParcelableException exception
    );

    RemotePathObservable observe(
        in ParcelableObject path,
        long intervalMillis,
        out ParcelableException exception
    );

    RemoteCallback search(
        in ParcelableObject directory,
        in String query,
        long intervalMillis,
        in ParcelablePathListConsumer listener,
        in RemoteCallback callback
    );
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteInputStream.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableException;

interface IRemoteInputStream {
    int read(out ParcelableException exception);

    int read2(out byte[] buffer, out ParcelableException exception);

    long skip(long size, out ParcelableException exception);

    int available(out ParcelableException exception);

    void close(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePathObservable.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableException;
import me.zhanghai.android.files.util.RemoteCallback;

interface IRemotePathObservable {
    void addObserver(in RemoteCallback observer);

    void close(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePosixFileAttributeView.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.common.ParcelableFileTime;
import me.zhanghai.android.files.provider.common.ParcelablePosixFileMode;
import me.zhanghai.android.files.provider.common.PosixGroup;
import me.zhanghai.android.files.provider.common.PosixUser;
import me.zhanghai.android.files.provider.remote.ParcelableException;
import me.zhanghai.android.files.provider.remote.ParcelableObject;

interface IRemotePosixFileAttributeView {
    ParcelableObject readAttributes(out ParcelableException exception);

    void setTimes(
        in ParcelableFileTime lastModifiedTime,
        in ParcelableFileTime lastAccessTime,
        in ParcelableFileTime createTime,
        out ParcelableException exception
    );

    void setOwner(in PosixUser owner, out ParcelableException exception);

    void setGroup(in PosixGroup group, out ParcelableException exception);

    void setMode(in ParcelablePosixFileMode mode, out ParcelableException exception);

    void setSeLinuxContext(in ParcelableObject context, out ParcelableException exception);

    void restoreSeLinuxContext(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePosixFileStore.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableException;

interface IRemotePosixFileStore {
    void setReadOnly(boolean readOnly, out ParcelableException exception);

    long getTotalSpace(out ParcelableException exception);

    long getUsableSpace(out ParcelableException exception);

    long getUnallocatedSpace(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteSeekableByteChannel.aidl
================================================
package me.zhanghai.android.files.provider.remote;

import me.zhanghai.android.files.provider.remote.ParcelableException;

interface IRemoteSeekableByteChannel {
    int read(out byte[] destination, out ParcelableException exception);

    int write(in byte[] source, out ParcelableException exception);

    long position(out ParcelableException exception);

    void position2(long newPosition, out ParcelableException exception);

    long size(out ParcelableException exception);

    void truncate(long size, out ParcelableException exception);

    void force(boolean metaData, out ParcelableException exception);

    void close(out ParcelableException exception);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableCopyOptions.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableCopyOptions;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableDirectoryStream.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableDirectoryStream;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableException.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableException;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableFileAttributes.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableFileAttributes;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableObject.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableObject;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelablePathListConsumer.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelablePathListConsumer;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableSerializable.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable ParcelableSerializable;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemoteInputStream.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable RemoteInputStream;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemotePathObservable.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable RemotePathObservable;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemoteSeekableByteChannel.aidl
================================================
package me.zhanghai.android.files.provider.remote;

parcelable RemoteSeekableByteChannel;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/util/IRemoteCallback.aidl
================================================
package me.zhanghai.android.files.util;

import android.os.Bundle;

interface IRemoteCallback {
    void sendResult(in Bundle result);
}


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/util/ParcelSlicedList.aidl
================================================
package me.zhanghai.android.files.util;

parcelable ParcelSlicedList;


================================================
FILE: app/src/main/aidl/me/zhanghai/android/files/util/RemoteCallback.aidl
================================================
package me.zhanghai.android.files.util;

parcelable RemoteCallback;


================================================
FILE: app/src/main/java/androidx/appcompat/app/AppCompatDelegateCompat.java
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package androidx.appcompat.app;

import android.annotation.SuppressLint;
import android.content.Context;

import androidx.annotation.NonNull;

public class AppCompatDelegateCompat {
    private AppCompatDelegateCompat() {}

    @SuppressLint("RestrictedApi")
    public static int mapNightMode(@NonNull AppCompatDelegate delegate, @NonNull Context context,
                                   int mode) {
        return ((AppCompatDelegateImpl) delegate).mapNightMode(context, mode);
    }
}


================================================
FILE: app/src/main/java/androidx/appcompat/widget/FixPaddingListPopupWindow.java
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package androidx.appcompat.widget;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.AttrRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StyleRes;

public class FixPaddingListPopupWindow extends ListPopupWindow {
    public FixPaddingListPopupWindow(@NonNull Context context) {
        super(context);
    }

    public FixPaddingListPopupWindow(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public FixPaddingListPopupWindow(@NonNull Context context, @Nullable AttributeSet attrs,
                                     @AttrRes int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public FixPaddingListPopupWindow(@NonNull Context context, @Nullable AttributeSet attrs,
                                     @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @NonNull
    @Override
    DropDownListView createDropDownListView(@NonNull Context context, boolean hijackFocus) {
        return new FixPaddingDropDownListView(context, hijackFocus);
    }

    private static class FixPaddingDropDownListView extends DropDownListView {
        public FixPaddingDropDownListView(Context context, boolean hijackFocus) {
            super(context, hijackFocus);
        }

        // DropDownListView.measureHeightOfChildrenCompat() uses list padding instead of regular
        // padding, which isn't initialized before onMeasure() so returns no padding for the first
        // time. And ListPopupWindow.buildDropDown() adds the regular padding back every time, which
        // will double the padding after the first show.
        @Override
        public int measureHeightOfChildrenCompat(int widthMeasureSpec, int startPosition,
                                                 int endPosition, int maxHeight,
                                                 int disallowPartialChildPosition) {
            int height = super.measureHeightOfChildrenCompat(widthMeasureSpec, startPosition,
                    endPosition, maxHeight, disallowPartialChildPosition);
            height -= getListPaddingTop() + getListPaddingBottom();
            return height;
        }
    }
}


================================================
FILE: app/src/main/java/androidx/swiperefreshlayout/widget/ThemedSwipeRefreshLayout.java
================================================
/*
 * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package androidx.swiperefreshlayout.widget;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.drawable.ShapeDrawable;
import android.util.AttributeSet;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.graphics.ColorUtils;
import me.zhanghai.android.files.R;
import me.zhanghai.android.files.compat.ContextCompatKt;
import me.zhanghai.android.files.util.ContextExtensionsKt;

public class ThemedSwipeRefreshLayout extends SwipeRefreshLayout {
    public ThemedSwipeRefreshLayout(@NonNull Context context) {
        super(context);

        init();
    }

    public ThemedSwipeRefreshLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);

        init();
    }

    private void init() {
        Context context = getContext();
        boolean isMaterial3Theme = ContextExtensionsKt.isMaterial3Theme(context);
        int backgroundColor;
        if (isMaterial3Theme) {
            int surfaceColor = ContextExtensionsKt.getColorByAttr(context,
                    com.google.android.material.R.attr.colorSurface);
            @SuppressLint("PrivateResource")
            int overlayColor = ContextCompatKt.getColorCompat(context,
                    com.google.android.material.R.color.m3_popupmenu_overlay_color);
            backgroundColor = ColorUtils.compositeColors(overlayColor, surfaceColor);
        } else {
            backgroundColor = ContextExtensionsKt.getColorByAttr(context,
                    androidx.appcompat.R.attr.colorBackgroundFloating);
        }
        ((ShapeDrawable) mCircleView.getBackground()).getPaint().setColor(backgroundColor);
        setColorSchemeColors(ContextExtensionsKt.getColorByAttr(context,
                androidx.appcompat.R.attr.colorAccent));
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);

        View child = getChildView();
        if (child != null) {
            measureChild(child, widthMeasureSpec, heightMeasureSpec);
            setMeasuredDimension(child.getMeasuredWidth() + getPaddingLeft() + getPaddingRight(),
                    child.getMeasuredHeight() + getPaddingTop() + getPaddingBottom());
        }
    }

    @Nullable
    private View getChildView() {
        for (int i = 0; i < getChildCount(); ++i) {
            View child = getChildAt(i);
            if (!child.equals(mCircleView)) {
                return child;
            }
        }
        return null;
    }
}


================================================
FILE: app/src/main/java/at/bitfire/dav4jvm/DavResourceAccessor.java
================================================
/*
 * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package at.bitfire.dav4jvm;

import java.io.IOException;

import androidx.annotation.NonNull;
import at.bitfire.dav4jvm.exception.DavException;
import at.bitfire.dav4jvm.exception.HttpException;
import kotlin.jvm.functions.Function0;
import okhttp3.Response;

public class DavResourceAccessor {
    private DavResourceAccessor() {}

    public static void checkStatus(@NonNull DavResource davResource, @NonNull Response response)
            throws HttpException {
        davResource.checkStatus(response);
    }

    public static Response followRedirects(@NonNull DavResource davResource,
            @NonNull Function0<Response> sendRequest) throws DavException, IOException {
        return davResource.followRedirects$build(sendRequest);
    }
}


================================================
FILE: app/src/main/java/com/google/android/material/appbar/OnWindowInsetChangedAppBarLayout.java
================================================
/*
 * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package com.google.android.material.appbar;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.AttrRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.view.WindowInsetsCompat;

public class OnWindowInsetChangedAppBarLayout extends AppBarLayout {
    public OnWindowInsetChangedAppBarLayout(@NonNull Context context) {
        super(context);
    }

    public OnWindowInsetChangedAppBarLayout(@NonNull Context context,
                                            @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public OnWindowInsetChangedAppBarLayout(@NonNull Context context, @Nullable AttributeSet attrs,
                                            @AttrRes int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public WindowInsetsCompat onWindowInsetChanged(@NonNull WindowInsetsCompat insets) {
        return super.onWindowInsetChanged(insets);
    }
}


================================================
FILE: app/src/main/java/com/google/android/material/shape/MaterialShapeDrawableAccessor.java
================================================
/*
 * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package com.google.android.material.shape;

import android.annotation.SuppressLint;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.google.android.material.elevation.ElevationOverlayProvider;

public class MaterialShapeDrawableAccessor {
    private MaterialShapeDrawableAccessor() {}

    @SuppressLint("RestrictedApi")
    public static ElevationOverlayProvider getElevationOverlayProvider(
            @NonNull MaterialShapeDrawable drawable) {
        MaterialShapeDrawable.MaterialShapeDrawableState drawableState =
                (MaterialShapeDrawable.MaterialShapeDrawableState) drawable.getConstantState();
        return drawableState.elevationOverlayProvider;
    }

    @SuppressLint("RestrictedApi")
    public static void setElevationOverlayProvider(
            @NonNull MaterialShapeDrawable drawable,
            @Nullable ElevationOverlayProvider elevationOverlayProvider) {
        MaterialShapeDrawable.MaterialShapeDrawableState drawableState =
                (MaterialShapeDrawable.MaterialShapeDrawableState) drawable.getConstantState();
        drawableState.elevationOverlayProvider = elevationOverlayProvider;
    }

    public static void updateZ(@NonNull MaterialShapeDrawable drawable) {
        final float parentAbsoluteElevation = drawable.getParentAbsoluteElevation();
        drawable.setParentAbsoluteElevation(parentAbsoluteElevation + 1);
        drawable.setParentAbsoluteElevation(parentAbsoluteElevation);
    }
}


================================================
FILE: app/src/main/java/com/hierynomus/smbj/share/FileAccessor.java
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package com.hierynomus.smbj.share;

import com.hierynomus.mssmb2.messages.SMB2ReadResponse;
import com.hierynomus.smbj.common.SMBRuntimeException;

import java.util.concurrent.Future;

import androidx.annotation.NonNull;

public class FileAccessor {
    private FileAccessor() {}

    /**
     * @see File#readAsync(long, int)
     */
    @NonNull
    public static Future<SMB2ReadResponse> readAsync(@NonNull File file, long offset, int length)
            throws SMBRuntimeException {
        return file.readAsync(offset, length);
    }
}


================================================
FILE: app/src/main/java/com/hierynomus/smbj/share/ShareAccessor.java
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package com.hierynomus.smbj.share;

import androidx.annotation.NonNull;

import com.hierynomus.mssmb2.SMB2FileId;
import com.hierynomus.mssmb2.messages.SMB2IoctlResponse;
import com.hierynomus.smbj.io.ArrayByteChunkProvider;
import com.hierynomus.smbj.io.ByteChunkProvider;

import java.util.concurrent.Future;

public class ShareAccessor {
    private ShareAccessor() {}

    /**
     * This ioctl() variant allows passing in the {@param statusHandler}.
     *
     * @see Share#ioctl(com.hierynomus.mssmb2.SMB2FileId, long, boolean, ByteChunkProvider, int)
     */
    @NonNull
    public static SMB2IoctlResponse ioctl(@NonNull Share share, @NonNull SMB2FileId fileId,
                                          long ctlCode, boolean isFsCtl, @NonNull byte[] inData,
                                          int inOffset, int inLength,
                                          @NonNull StatusHandler statusHandler, long timeout) {
        final ByteChunkProvider inputData = new ArrayByteChunkProvider(inData, inOffset, inLength,
                0);
        final Future<SMB2IoctlResponse> future = share.ioctlAsync(fileId, ctlCode, isFsCtl,
                inputData, -1);
        return share.receive(future, "IOCTL", fileId, statusHandler, timeout);
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/about/AboutActivity.kt
================================================
/*
 * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.about

import android.os.Bundle
import android.view.View
import androidx.fragment.app.add
import androidx.fragment.app.commit
import me.zhanghai.android.files.app.AppActivity

class AboutActivity : AppActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // Calls ensureSubDecor().
        findViewById<View>(android.R.id.content)
        if (savedInstanceState == null) {
            supportFragmentManager.commit { add<AboutFragment>(android.R.id.content) }
        }
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/about/AboutFragment.kt
================================================
/*
 * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.about

import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import me.zhanghai.android.files.databinding.AboutFragmentBinding
import me.zhanghai.android.files.ui.LicensesDialogFragment
import me.zhanghai.android.files.util.createViewIntent
import me.zhanghai.android.files.util.startActivitySafe

class AboutFragment : Fragment() {
    private lateinit var binding: AboutFragmentBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View =
        AboutFragmentBinding.inflate(inflater, container, false)
            .also { binding = it }
            .root

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)

        val activity = requireActivity() as AppCompatActivity
        activity.setSupportActionBar(binding.toolbar)
        activity.supportActionBar!!.setDisplayHomeAsUpEnabled(true)
        binding.gitHubLayout.setOnClickListener { startActivitySafe(GITHUB_URI.createViewIntent()) }
        binding.licensesLayout.setOnClickListener { LicensesDialogFragment.show(this) }
//#ifdef NONFREE
        binding.privacyPolicyLayout.isVisible = true
        binding.privacyPolicyLayout.setOnClickListener {
            startActivitySafe(PRIVACY_POLICY_URI.createViewIntent())
        }
//#endif
        binding.authorNameLayout.setOnClickListener {
            startActivitySafe(AUTHOR_RESUME_URI.createViewIntent())
        }
        binding.authorGitHubLayout.setOnClickListener {
            startActivitySafe(AUTHOR_GITHUB_URI.createViewIntent())
        }
        binding.authorTwitterLayout.setOnClickListener {
            startActivitySafe(AUTHOR_TWITTER_URI.createViewIntent())
        }
    }

    companion object {
        private val GITHUB_URI = Uri.parse("https://github.com/zhanghai/MaterialFiles")
        private val PRIVACY_POLICY_URI =
            Uri.parse("https://github.com/zhanghai/MaterialFiles/blob/master/PRIVACY.md")
        private val AUTHOR_RESUME_URI = Uri.parse("https://resume.zhanghai.me/")
        private val AUTHOR_GITHUB_URI = Uri.parse("https://github.com/zhanghai")
        private val AUTHOR_TWITTER_URI = Uri.parse("https://twitter.com/zhanghai95")
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/AppActivity.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import me.zhanghai.android.files.theme.custom.CustomThemeHelper
import me.zhanghai.android.files.theme.night.NightModeHelper

abstract class AppActivity : AppCompatActivity() {
    private var isDelegateCreated = false

    override fun getDelegate(): AppCompatDelegate {
        val delegate = super.getDelegate()

        if (!isDelegateCreated) {
            isDelegateCreated = true
            NightModeHelper.apply(this)
        }
        return delegate
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        CustomThemeHelper.apply(this)

        super.onCreate(savedInstanceState)
    }

    override fun onSupportNavigateUp(): Boolean {
        if (!super.onSupportNavigateUp()) {
            finish()
        }
        return true
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/AppInitializers.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.os.AsyncTask
import android.os.Build
import android.webkit.WebView
import jcifs.context.SingletonContext
import me.zhanghai.android.files.BuildConfig
import me.zhanghai.android.files.coil.initializeCoil
import me.zhanghai.android.files.filejob.fileJobNotificationTemplate
import me.zhanghai.android.files.ftpserver.ftpServerServiceNotificationTemplate
import me.zhanghai.android.files.hiddenapi.HiddenApi
import me.zhanghai.android.files.provider.FileSystemProviders
import me.zhanghai.android.files.settings.Settings
import me.zhanghai.android.files.storage.FtpServerAuthenticator
import me.zhanghai.android.files.storage.SftpServerAuthenticator
import me.zhanghai.android.files.storage.SmbServerAuthenticator
import me.zhanghai.android.files.storage.StorageVolumeListLiveData
import me.zhanghai.android.files.storage.WebDavServerAuthenticator
import me.zhanghai.android.files.theme.custom.CustomThemeHelper
import me.zhanghai.android.files.theme.night.NightModeHelper
import java.util.Properties
import me.zhanghai.android.files.provider.ftp.client.Client as FtpClient
import me.zhanghai.android.files.provider.sftp.client.Client as SftpClient
import me.zhanghai.android.files.provider.smb.client.Client as SmbClient
import me.zhanghai.android.files.provider.webdav.client.Client as WebDavClient

val appInitializers = listOf(
    ::initializeCrashlytics,
    ::disableHiddenApiChecks,
    ::initializeWebViewDebugging,
    ::initializeCoil,
    ::initializeFileSystemProviders,
    ::upgradeApp,
    ::initializeLiveDataObjects,
    ::initializeCustomTheme,
    ::initializeNightMode,
    ::createNotificationChannels
)

private fun initializeCrashlytics() {
//#ifdef NONFREE
    me.zhanghai.android.files.nonfree.CrashlyticsInitializer.initialize()
//#endif
}

private fun disableHiddenApiChecks() {
    HiddenApi.disableHiddenApiChecks()
}

private fun initializeWebViewDebugging() {
    if (BuildConfig.DEBUG) {
        WebView.setWebContentsDebuggingEnabled(true)
    }
}

private fun initializeFileSystemProviders() {
    FileSystemProviders.install()
    FileSystemProviders.overflowWatchEvents = true
    // SingletonContext.init() calls NameServiceClientImpl.initCache() which connects to network.
    AsyncTask.THREAD_POOL_EXECUTOR.execute {
        SingletonContext.init(
            Properties().apply {
                setProperty("jcifs.netbios.cachePolicy", "0")
                setProperty("jcifs.smb.client.maxVersion", "SMB1")
            }
        )
    }
    FtpClient.authenticator = FtpServerAuthenticator
    SftpClient.authenticator = SftpServerAuthenticator
    SmbClient.authenticator = SmbServerAuthenticator
    WebDavClient.authenticator = WebDavServerAuthenticator
}

private fun initializeLiveDataObjects() {
    // Force initialization of LiveData objects so that it won't happen on a background thread.
    StorageVolumeListLiveData.value
    Settings.FILE_LIST_DEFAULT_DIRECTORY.value
}

private fun initializeCustomTheme() {
    CustomThemeHelper.initialize(application)
}

private fun initializeNightMode() {
    NightModeHelper.initialize(application)
}

private fun createNotificationChannels() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        notificationManager.createNotificationChannels(
            listOf(
                backgroundActivityStartNotificationTemplate.channelTemplate,
                fileJobNotificationTemplate.channelTemplate,
                ftpServerServiceNotificationTemplate.channelTemplate
            ).map { it.create(application) }
        )
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/AppProvider.kt
================================================
/*
 * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.app.Application
import android.content.ContentProvider
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri

lateinit var application: Application private set

class AppProvider : ContentProvider() {
    override fun onCreate(): Boolean {
        application = context as Application
        appInitializers.forEach { it() }
        return true
    }

    override fun query(
        uri: Uri,
        projection: Array<String?>?,
        selection: String?,
        selectionArgs: Array<String?>?,
        sortOrder: String?
    ): Cursor? {
        throw UnsupportedOperationException()
    }

    override fun getType(uri: Uri): String? {
        throw UnsupportedOperationException()
    }

    override fun insert(uri: Uri, values: ContentValues?): Uri? {
        throw UnsupportedOperationException()
    }

    override fun delete(uri: Uri, selection: String?, selectionArgs: Array<String?>?): Int {
        throw UnsupportedOperationException()
    }

    override fun update(
        uri: Uri,
        values: ContentValues?,
        selection: String?,
        selectionArgs: Array<String?>?
    ): Int {
        throw UnsupportedOperationException()
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/AppUpgrader.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import androidx.core.content.edit
import me.zhanghai.android.files.BuildConfig

private const val KEY_VERSION_CODE = "key_version_code"

private const val VERSION_CODE_BELOW_1_1_0 = 17
private const val VERSION_CODE_1_1_0 = 18
private const val VERSION_CODE_1_2_0 = 22
private const val VERSION_CODE_1_3_0 = 24
private const val VERSION_CODE_1_4_0 = 26
private const val VERSION_CODE_1_5_0 = 29
private const val VERSION_CODE_1_6_0 = 32
private const val VERSION_CODE_1_7_2 = 37
private const val VERSION_CODE_LATEST = BuildConfig.VERSION_CODE

private var lastVersionCode: Int
    get() {
        if (defaultSharedPreferences.all.isEmpty()) {
            // This is a new install.
            lastVersionCode = VERSION_CODE_LATEST
            return VERSION_CODE_LATEST
        }
        return defaultSharedPreferences.getInt(KEY_VERSION_CODE, VERSION_CODE_BELOW_1_1_0)
    }
    set(value) {
        defaultSharedPreferences.edit { putInt(KEY_VERSION_CODE, value) }
    }

fun upgradeApp() {
    upgradeAppFrom(lastVersionCode)
    lastVersionCode = VERSION_CODE_LATEST
}

private fun upgradeAppFrom(lastVersionCode: Int) {
    if (lastVersionCode < VERSION_CODE_1_1_0) {
        upgradeAppTo1_1_0()
    }
    if (lastVersionCode < VERSION_CODE_1_2_0) {
        upgradeAppTo1_2_0()
    }
    if (lastVersionCode < VERSION_CODE_1_3_0) {
        upgradeAppTo1_3_0()
    }
    if (lastVersionCode < VERSION_CODE_1_4_0) {
        upgradeAppTo1_4_0()
    }
    if (lastVersionCode < VERSION_CODE_1_5_0) {
        upgradeAppTo1_5_0()
    }
    if (lastVersionCode < VERSION_CODE_1_6_0) {
        upgradeAppTo1_6_0()
    }
    if (lastVersionCode < VERSION_CODE_1_7_2) {
        upgradeAppTo1_7_2()
    }
    // Continue with new `if`s on lastVersionCode instead of `else if`.
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/AppUpgraders.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.content.SharedPreferences
import android.net.Uri
import android.os.Build
import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.StringRes
import androidx.core.content.edit
import me.zhanghai.android.files.R
import me.zhanghai.android.files.compat.PreferenceManagerCompat
import me.zhanghai.android.files.compat.getDescriptionCompat
import me.zhanghai.android.files.compat.readBooleanCompat
import me.zhanghai.android.files.compat.writeBooleanCompat
import me.zhanghai.android.files.compat.writeParcelableListCompat
import me.zhanghai.android.files.file.DocumentTreeUri
import me.zhanghai.android.files.file.asExternalStorageUriOrNull
import me.zhanghai.android.files.file.displayName
import me.zhanghai.android.files.file.storageVolume
import me.zhanghai.android.files.filelist.FileSortOptions
import me.zhanghai.android.files.navigation.BookmarkDirectory
import me.zhanghai.android.files.navigation.StandardDirectorySettings
import me.zhanghai.android.files.provider.archive.ArchiveFileSystem
import me.zhanghai.android.files.provider.common.ByteString
import me.zhanghai.android.files.provider.common.moveToByteString
import me.zhanghai.android.files.provider.content.ContentFileSystem
import me.zhanghai.android.files.provider.document.DocumentFileSystem
import me.zhanghai.android.files.provider.document.resolver.ExternalStorageProviderHacks
import me.zhanghai.android.files.provider.linux.LinuxFileSystem
import me.zhanghai.android.files.provider.root.RootStrategy
import me.zhanghai.android.files.provider.sftp.SftpFileSystem
import me.zhanghai.android.files.provider.smb.SmbFileSystem
import me.zhanghai.android.files.storage.DocumentTree
import me.zhanghai.android.files.storage.FileSystemRoot
import me.zhanghai.android.files.storage.PrimaryStorageVolume
import me.zhanghai.android.files.util.StableUriParceler
import me.zhanghai.android.files.util.asBase64
import me.zhanghai.android.files.util.readParcelable
import me.zhanghai.android.files.util.readParcelableListCompat
import me.zhanghai.android.files.util.toBase64
import me.zhanghai.android.files.util.toByteArray
import me.zhanghai.android.files.util.use

internal fun upgradeAppTo1_1_0() {
    // Migrate settings.
    migratePathSetting1_1_0(R.string.pref_key_file_list_default_directory)
    migrateFileSortOptionsSetting1_1_0()
    migrateCreateArchiveTypeSetting1_1_0()
    migrateStandardDirectorySettingsSetting1_1_0()
    migrateBookmarkDirectoriesSetting1_1_0()
    migratePathSetting1_1_0(R.string.pref_key_ftp_server_home_directory)
    for (key in pathSharedPreferences.all.keys) {
        migrateFileSortOptionsSetting1_1_0(pathSharedPreferences, key)
    }
}

private const val PARCEL_VAL_PARCELABLE = 4
private const val PARCEL_VAL_LIST = 11

private fun migratePathSetting1_1_0(@StringRes keyRes: Int) {
    val key = application.getString(keyRes)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            newParcel.writeInt(PARCEL_VAL_PARCELABLE)
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                migratePath1_1_0(oldParcel, newParcel)
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun migrateFileSortOptionsSetting1_1_0() {
    migrateFileSortOptionsSetting1_1_0(
        defaultSharedPreferences, application.getString(R.string.pref_key_file_list_sort_options)
    )
}

private fun migrateFileSortOptionsSetting1_1_0(sharedPreferences: SharedPreferences, key: String) {
    val oldBytes = sharedPreferences.getString(key, null)?.asBase64()?.toByteArray() ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            newParcel.writeInt(PARCEL_VAL_PARCELABLE)
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                newParcel.writeString(oldParcel.readString())
                newParcel.writeString(FileSortOptions.By.entries[oldParcel.readInt()].name)
                newParcel.writeString(FileSortOptions.Order.entries[oldParcel.readInt()].name)
                newParcel.writeInt(oldParcel.readByte().toInt())
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    sharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

fun migrateCreateArchiveTypeSetting1_1_0() {
    val key = application.getString(R.string.pref_key_create_archive_type)
    val oldValue = defaultSharedPreferences.getString(key, null) ?: return
    val newValue = oldValue.replace(Regex("type_.+$")) {
        when (it.value) {
            "type_zip" -> "zipRadio"
            "type_tar_xz" -> "tarXzRadio"
            "type_seven_z" -> "sevenZRadio"
            else -> "zipRadio"
        }
    }
    defaultSharedPreferences.edit { putString(key, newValue) }
}

private fun migrateStandardDirectorySettingsSetting1_1_0() {
    val key = application.getString(R.string.pref_key_standard_directory_settings)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            newParcel.writeInt(PARCEL_VAL_LIST)
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    oldParcel.readInt()
                    newParcel.writeInt(PARCEL_VAL_PARCELABLE)
                    newParcel.writeString(StandardDirectorySettings::class.java.name)
                    newParcel.writeString(oldParcel.readString())
                    newParcel.writeString(oldParcel.readString())
                    newParcel.writeInt(oldParcel.readByte().toInt())
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun migrateBookmarkDirectoriesSetting1_1_0() {
    val key = application.getString(R.string.pref_key_bookmark_directories)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            newParcel.writeInt(PARCEL_VAL_LIST)
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    oldParcel.readInt()
                    newParcel.writeInt(PARCEL_VAL_PARCELABLE)
                    newParcel.writeString(BookmarkDirectory::class.java.name)
                    newParcel.writeLong(oldParcel.readLong())
                    newParcel.writeString(oldParcel.readString())
                    migratePath1_1_0(oldParcel, newParcel)
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private val oldByteStringCreator = object : Parcelable.Creator<ByteString> {
    override fun createFromParcel(source: Parcel): ByteString =
        source.createByteArray()!!.moveToByteString()

    override fun newArray(size: Int): Array<ByteString?> = arrayOfNulls(size)
}

private fun migratePath1_1_0(oldParcel: Parcel, newParcel: Parcel) {
    val className = oldParcel.readString()
    newParcel.writeString(className)
    newParcel.writeByte(oldParcel.readByte())
    newParcel.writeBooleanCompat(oldParcel.readByte() != 0.toByte())
    newParcel.writeParcelableListCompat(oldParcel.createTypedArrayList(oldByteStringCreator), 0)
    when (className) {
        "me.zhanghai.android.files.provider.archive.ArchivePath" -> {
            oldParcel.readString()
            newParcel.writeString(ArchiveFileSystem::class.java.name)
            migratePath1_1_0(oldParcel, newParcel)
        }
        "me.zhanghai.android.files.provider.content.ContentPath" -> {
            oldParcel.readString()
            newParcel.writeString(ContentFileSystem::class.java.name)
            newParcel.writeParcelable(oldParcel.readParcelable<Uri>(), 0)
        }
        "me.zhanghai.android.files.provider.document.DocumentPath" -> {
            oldParcel.readString()
            newParcel.writeString(DocumentFileSystem::class.java.name)
            newParcel.writeParcelable(oldParcel.readParcelable<Uri>(), 0)
        }
        "me.zhanghai.android.files.provider.linux.LinuxPath" -> {
            oldParcel.readString()
            newParcel.writeString(LinuxFileSystem::class.java.name)
            newParcel.writeBooleanCompat(oldParcel.readByte() != 0.toByte())
        }
        else -> throw IllegalStateException(className)
    }
}

private val pathSharedPreferences: SharedPreferences
    get() {
        val name = "${PreferenceManagerCompat.getDefaultSharedPreferencesName(application)}_path"
        val mode = PreferenceManagerCompat.defaultSharedPreferencesMode
        return application.getSharedPreferences(name, mode)
    }

internal fun upgradeAppTo1_2_0() {
    migrateStoragesSetting1_2_0()
}

private fun migrateStoragesSetting1_2_0() {
    val key = application.getString(R.string.pref_key_storages)
    val storages = (listOf(FileSystemRoot(null, true), PrimaryStorageVolume(null, true))
        + DocumentTreeUri.persistedUris.map {
            DocumentTree(
                null, it.storageVolume?.getDescriptionCompat(application) ?: it.displayName
                    ?: it.value.toString(), it
            )
        })
    val bytes = Parcel.obtain().use { parcel ->
        parcel.writeValue(storages)
        parcel.marshall()
    }
    defaultSharedPreferences.edit { putString(key, bytes.toBase64().value) }
}

internal fun upgradeAppTo1_3_0() {
    migrateSmbServersSetting1_3_0()
}

private fun migrateSmbServersSetting1_3_0() {
    val key = application.getString(R.string.pref_key_storages)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            newParcel.writeInt(PARCEL_VAL_LIST)
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    val oldPosition = oldParcel.dataPosition()
                    oldParcel.readInt()
                    val className = oldParcel.readString()
                    if (className == "me.zhanghai.android.files.storage.SmbServer") {
                        newParcel.writeInt(PARCEL_VAL_PARCELABLE)
                        newParcel.writeString("me.zhanghai.android.files.storage.SmbServer")
                        val id = oldParcel.readLong()
                        newParcel.writeLong(id)
                        val customName = oldParcel.readString()
                        newParcel.writeString(customName)
                        oldParcel.readString()
                        newParcel.writeString(
                            "me.zhanghai.android.files.provider.smb.client.Authority"
                        )
                        val authorityHost = oldParcel.readString()
                        newParcel.writeString(authorityHost)
                        val authorityPort = oldParcel.readInt()
                        newParcel.writeInt(authorityPort)
                        oldParcel.readString()
                        newParcel.writeString(
                            "me.zhanghai.android.files.provider.smb.client.Authentication"
                        )
                        val authenticationUsername = oldParcel.readString()
                        newParcel.writeString(authenticationUsername)
                        val authenticationDomain = oldParcel.readString()
                        newParcel.writeString(authenticationDomain)
                        val authenticationPassword = oldParcel.readString()
                        newParcel.writeString(authenticationPassword)
                        val relativePath = ""
                        newParcel.writeString(relativePath)
                    } else {
                        oldParcel.setDataPosition(oldPosition)
                        val storage = oldParcel.readValue(appClassLoader)
                        newParcel.writeValue(storage)
                    }
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

internal fun upgradeAppTo1_4_0() {
    migratePathSetting1_4_0(R.string.pref_key_file_list_default_directory)
    migrateSftpServersSetting1_4_0()
    migrateBookmarkDirectoriesSetting1_4_0()
    migrateRootStrategySetting1_4_0()
    migratePathSetting1_4_0(R.string.pref_key_ftp_server_home_directory)
}

private fun migratePathSetting1_4_0(@StringRes keyRes: Int) {
    val key = application.getString(keyRes)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                newParcel.writeInt(oldParcel.readInt())
                migratePath1_4_0(oldParcel, newParcel)
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun migrateBookmarkDirectoriesSetting1_4_0() {
    val key = application.getString(R.string.pref_key_bookmark_directories)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                newParcel.writeInt(oldParcel.readInt())
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    newParcel.writeInt(oldParcel.readInt())
                    newParcel.writeString(oldParcel.readString())
                    newParcel.writeLong(oldParcel.readLong())
                    newParcel.writeString(oldParcel.readString())
                    migratePath1_4_0(oldParcel, newParcel)
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun migratePath1_4_0(oldParcel: Parcel, newParcel: Parcel) {
    val className = oldParcel.readString()
    newParcel.writeString(className)
    newParcel.writeByte(oldParcel.readByte())
    newParcel.writeBooleanCompat(oldParcel.readBooleanCompat())
    newParcel.writeParcelableListCompat(oldParcel.readParcelableListCompat<ByteString>(), 0)
    when (className) {
        "me.zhanghai.android.files.provider.archive.ArchivePath" -> {
            newParcel.writeString(oldParcel.readString())
            migratePath1_4_0(oldParcel, newParcel)
        }
        "me.zhanghai.android.files.provider.content.ContentPath" -> {
            newParcel.writeParcelable(oldParcel.readParcelable<ContentFileSystem>(), 0)
            newParcel.writeParcelable(oldParcel.readParcelable<Uri>(), 0)
        }
        "me.zhanghai.android.files.provider.document.DocumentPath" ->
            newParcel.writeParcelable(oldParcel.readParcelable<DocumentFileSystem>(), 0)
        "me.zhanghai.android.files.provider.linux.LinuxPath" -> {
            newParcel.writeParcelable(oldParcel.readParcelable<LinuxFileSystem>(), 0)
            oldParcel.readBooleanCompat()
        }
        "me.zhanghai.android.files.provider.sftp.SftpPath" ->
            newParcel.writeParcelable(oldParcel.readParcelable<SftpFileSystem>(), 0)
        "me.zhanghai.android.files.provider.smb.SmbPath" ->
            newParcel.writeParcelable(oldParcel.readParcelable<SmbFileSystem>(), 0)
        else -> throw IllegalStateException(className)
    }
}

private fun migrateSftpServersSetting1_4_0() {
    val key = application.getString(R.string.pref_key_storages)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                newParcel.writeInt(oldParcel.readInt())
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    val oldPosition = oldParcel.dataPosition()
                    oldParcel.readInt()
                    when (oldParcel.readString()) {
                        "me.zhanghai.android.files.storage.SftpServer" -> {
                            newParcel.writeInt(PARCEL_VAL_PARCELABLE)
                            newParcel.writeString("me.zhanghai.android.files.storage.SftpServer")
                            val id = oldParcel.readLong()
                            newParcel.writeLong(id)
                            val customName = oldParcel.readString()
                            newParcel.writeString(customName)
                            val authorityHost = oldParcel.readString()
                            newParcel.writeString(authorityHost)
                            val authorityPort = oldParcel.readInt()
                            newParcel.writeInt(authorityPort)
                            val authenticationClassName = oldParcel.readString()
                            val authorityUsername = oldParcel.readString()
                            newParcel.writeString(authorityUsername)
                            newParcel.writeString(authenticationClassName)
                            val authenticationPasswordOrPrivateKey = oldParcel.readString()
                            newParcel.writeString(authenticationPasswordOrPrivateKey)
                            val relativePath = oldParcel.readString()
                            newParcel.writeString(relativePath)
                        }
                        else -> {
                            oldParcel.setDataPosition(oldPosition)
                            val storage = oldParcel.readValue(appClassLoader)
                            newParcel.writeValue(storage)
                        }
                    }
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun migrateRootStrategySetting1_4_0() {
    val key = application.getString(R.string.pref_key_root_strategy)
    val oldValue = defaultSharedPreferences.getString(key, null)?.toInt() ?: return
    val newValue = when (oldValue) {
        0 -> RootStrategy.NEVER
        3 -> RootStrategy.ALWAYS
        else -> RootStrategy.AUTOMATIC
    }.ordinal.toString()
    defaultSharedPreferences.edit { putString(key, newValue) }
}

internal fun upgradeAppTo1_5_0() {
    migrateSftpServersSetting1_5_0()
}

private fun migrateSftpServersSetting1_5_0() {
    val key = application.getString(R.string.pref_key_storages)
    val oldBytes = defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray()
        ?: return
    val newBytes = try {
        Parcel.obtain().use { newParcel ->
            Parcel.obtain().use { oldParcel ->
                oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                oldParcel.setDataPosition(0)
                newParcel.writeInt(oldParcel.readInt())
                val size = oldParcel.readInt()
                newParcel.writeInt(size)
                repeat(size) {
                    val oldPosition = oldParcel.dataPosition()
                    oldParcel.readInt()
                    when (oldParcel.readString()) {
                        "me.zhanghai.android.files.storage.SftpServer" -> {
                            newParcel.writeInt(PARCEL_VAL_PARCELABLE)
                            newParcel.writeString("me.zhanghai.android.files.storage.SftpServer")
                            val id = oldParcel.readLong()
                            newParcel.writeLong(id)
                            val customName = oldParcel.readString()
                            newParcel.writeString(customName)
                            val authorityHost = oldParcel.readString()
                            newParcel.writeString(authorityHost)
                            val authorityPort = oldParcel.readInt()
                            newParcel.writeInt(authorityPort)
                            val authorityUsername = oldParcel.readString()
                            newParcel.writeString(authorityUsername)
                            val authenticationClassName = oldParcel.readString()
                            newParcel.writeString(authenticationClassName)
                            val authenticationPasswordOrPrivateKey = oldParcel.readString()
                            newParcel.writeString(authenticationPasswordOrPrivateKey)
                            if (authenticationClassName == "me.zhanghai.android.files.provider.sftp"
                                + ".client.PublicKeyAuthentication") {
                                newParcel.writeString(null)
                            }
                            val relativePath = oldParcel.readString()
                            newParcel.writeString(relativePath)
                        }
                        else -> {
                            oldParcel.setDataPosition(oldPosition)
                            val storage = oldParcel.readValue(appClassLoader)
                            newParcel.writeValue(storage)
                        }
                    }
                }
            }
            newParcel.marshall()
        }
    } catch (e: Exception) {
        e.printStackTrace()
        null
    }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

internal fun upgradeAppTo1_6_0() {
    addViewTypePathSetting1_6_0()
}

private fun addViewTypePathSetting1_6_0() {
    val keys = pathSharedPreferences.all.keys.toSet()
    val sortOptionsKey = application.getString(R.string.pref_key_file_list_sort_options)
    val viewTypeKey = application.getString(R.string.pref_key_file_list_view_type)
    val defaultViewType = application.getString(R.string.pref_default_value_file_list_view_type)
    for (key in keys) {
        if (!key.startsWith(sortOptionsKey)) {
            continue
        }
        val newKey = key.replaceFirst(sortOptionsKey, viewTypeKey)
        if (newKey in keys) {
            continue
        }
        pathSharedPreferences.edit { putString(newKey, defaultViewType) }
    }
}

internal fun upgradeAppTo1_7_2() {
    migrateDocumentManagerShortcutSetting1_7_2()
}

private fun migrateDocumentManagerShortcutSetting1_7_2() {
    val key = application.getString(R.string.pref_key_storages)
    val oldBytes =
        defaultSharedPreferences.getString(key, null)?.asBase64()?.toByteArray() ?: return
    val newBytes =
        try {
            Parcel.obtain().use { newParcel ->
                Parcel.obtain().use { oldParcel ->
                    oldParcel.unmarshall(oldBytes, 0, oldBytes.size)
                    oldParcel.setDataPosition(0)
                    newParcel.writeInt(oldParcel.readInt())
                    readWriteLengthPrefixedValue(oldParcel, newParcel) {
                        val size = oldParcel.readInt()
                        newParcel.writeInt(size)
                        repeat(size) {
                            val oldPosition = oldParcel.dataPosition()
                            oldParcel.readInt()
                            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                                // Skip prefix length.
                                oldParcel.readInt()
                            }
                            val className = oldParcel.readString()
                            oldParcel.setDataPosition(oldPosition)
                            when (className) {
                                "me.zhanghai.android.files.storage.DocumentManagerShortcut" -> {
                                    newParcel.writeInt(oldParcel.readInt())
                                    readWriteLengthPrefixedValue(oldParcel, newParcel) {
                                        oldParcel.readString()
                                        newParcel.writeString(
                                            "me.zhanghai.android.files.storage" +
                                                ".ExternalStorageShortcut"
                                        )
                                        val id = oldParcel.readLong()
                                        newParcel.writeLong(id)
                                        val customName = oldParcel.readString()
                                        newParcel.writeString(customName)
                                        var uri = StableUriParceler.create(oldParcel)!!
                                        if (uri.asExternalStorageUriOrNull() == null) {
                                            // Reset to a valid external storage URI.
                                            uri =
                                                ExternalStorageProviderHacks
                                                    .DOCUMENT_URI_ANDROID_DATA
                                        }
                                        with(StableUriParceler) { uri.write(newParcel, 0) }
                                    }
                                }
                                else -> {
                                    val storage = oldParcel.readValue(appClassLoader)
                                    newParcel.writeValue(storage)
                                }
                            }
                        }
                    }
                }
                newParcel.marshall()
            }
        } catch (e: Exception) {
            e.printStackTrace()
            null
        }
    defaultSharedPreferences.edit { putString(key, newBytes?.toBase64()?.value) }
}

private fun readWriteLengthPrefixedValue(oldParcel: Parcel, newParcel: Parcel, block: () -> Unit) {
    var lengthPosition = 0
    var startPosition = 0
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
        oldParcel.readInt()
        lengthPosition = newParcel.dataPosition()
        newParcel.writeInt(-1)
        startPosition = newParcel.dataPosition()
    }
    block()
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
        val endPosition = newParcel.dataPosition()
        newParcel.setDataPosition(lengthPosition)
        newParcel.writeInt(endPosition - startPosition)
        newParcel.setDataPosition(endPosition)
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/BackgroundActivityStarter.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.ProcessLifecycleOwner
import me.zhanghai.android.files.R
import me.zhanghai.android.files.util.NotificationChannelTemplate
import me.zhanghai.android.files.util.NotificationTemplate
import me.zhanghai.android.files.util.startActivitySafe

val backgroundActivityStartNotificationTemplate =
    NotificationTemplate(
        NotificationChannelTemplate(
            "background_activity_start",
            R.string.notification_channel_background_activity_start_name,
            NotificationManagerCompat.IMPORTANCE_HIGH,
            descriptionRes = R.string.notification_channel_background_activity_start_description,
            showBadge = false
        ),
        colorRes = R.color.color_primary,
        smallIcon = R.drawable.notification_icon,
        ongoing = true,
        autoCancel = true,
        category = NotificationCompat.CATEGORY_ERROR,
        priority = NotificationCompat.PRIORITY_HIGH
    )

object BackgroundActivityStarter {
    fun startActivity(intent: Intent, title: CharSequence, text: CharSequence?, context: Context) {
        // TODO: Only use new task when in background?
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        if (isInForeground) {
            context.startActivitySafe(intent)
        } else {
            notifyStartActivity(intent, title, text, context)
        }
    }

    private val isInForeground: Boolean
        get() = ProcessLifecycleOwner.get().lifecycle.currentState.isAtLeast(
            Lifecycle.State.STARTED
        )

    // We'll just throw exception for the file job if we don't have the permission to post
    // notifications.
    @SuppressLint("MissingPermission")
    private fun notifyStartActivity(
        intent: Intent,
        title: CharSequence,
        text: CharSequence?,
        context: Context
    ) {
        var pendingIntentFlags = PendingIntent.FLAG_ONE_SHOT or PendingIntent.FLAG_CANCEL_CURRENT
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            pendingIntentFlags = pendingIntentFlags or PendingIntent.FLAG_IMMUTABLE
        }
        val pendingIntent = PendingIntent.getActivity(
            context, intent.hashCode(), intent, pendingIntentFlags
        )
        val notification = backgroundActivityStartNotificationTemplate.createBuilder(context)
            .setContentTitle(title)
            .setContentText(text)
            .setContentIntent(pendingIntent)
            .build()
        notificationManager.notify(intent.hashCode(), notification)
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/NotificationIds.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

object NotificationIds {
    const val FTP_SERVER = 1
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/app/SystemServices.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.app

import android.content.ClipboardManager
import android.content.ContentResolver
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.net.wifi.WifiManager
import android.os.PowerManager
import android.os.storage.StorageManager
import android.view.inputmethod.InputMethodManager
import androidx.core.app.NotificationManagerCompat
import androidx.preference.PreferenceManager
import me.zhanghai.android.files.compat.getSystemServiceCompat
import me.zhanghai.android.files.compat.mainExecutorCompat
import okhttp3.OkHttpClient
import java.util.concurrent.Executor

val appClassLoader = AppProvider::class.java.classLoader

val clipboardManager: ClipboardManager by lazy {
    application.getSystemServiceCompat(ClipboardManager::class.java)
}

val contentResolver: ContentResolver by lazy { application.contentResolver }

val defaultSharedPreferences: SharedPreferences by lazy {
    PreferenceManager.getDefaultSharedPreferences(application)
}

val okHttpClient: OkHttpClient by lazy { OkHttpClient() }

val inputMethodManager: InputMethodManager by lazy {
    application.getSystemServiceCompat(InputMethodManager::class.java)
}

val mainExecutor: Executor by lazy { application.mainExecutorCompat }

val notificationManager: NotificationManagerCompat by lazy {
    NotificationManagerCompat.from(application)
}

val packageManager: PackageManager by lazy { application.packageManager }

val powerManager: PowerManager by lazy {
    application.getSystemServiceCompat(PowerManager::class.java)
}

val storageManager: StorageManager by lazy {
    application.getSystemServiceCompat(StorageManager::class.java)
}

val wifiManager: WifiManager by lazy {
    application.getSystemServiceCompat(WifiManager::class.java)
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/AppIconApplicationInfoFetcherFactory.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.content.Context
import android.content.pm.ApplicationInfo
import coil.key.Keyer
import coil.request.Options
import me.zhanghai.android.appiconloader.AppIconLoader
import me.zhanghai.android.files.R
import me.zhanghai.android.files.compat.longVersionCodeCompat
import me.zhanghai.android.files.util.getDimensionPixelSize
import java.io.Closeable

class AppIconApplicationInfoKeyer : Keyer<ApplicationInfo> {
    override fun key(data: ApplicationInfo, options: Options): String =
        AppIconLoader.getIconKey(data, data.longVersionCodeCompat, options.context)
}

class AppIconApplicationInfoFetcherFactory(
    context: Context
) : AppIconFetcher.Factory<ApplicationInfo>(
    // This is used by PrincipalListAdapter.
    context.getDimensionPixelSize(R.dimen.icon_size), context
) {
    override fun getApplicationInfo(data: ApplicationInfo): Pair<ApplicationInfo, Closeable?> =
        data to null
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/AppIconFetcher.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.content.Context
import android.content.pm.ApplicationInfo
import androidx.core.graphics.drawable.toDrawable
import coil.ImageLoader
import coil.decode.DataSource
import coil.fetch.DrawableResult
import coil.fetch.FetchResult
import coil.fetch.Fetcher
import coil.request.Options
import me.zhanghai.android.appiconloader.AppIconLoader
import java.io.Closeable

class AppIconFetcher(
    private val options: Options,
    private val appIconLoader: AppIconLoader,
    private val getApplicationInfo: () -> Pair<ApplicationInfo, Closeable?>
) : Fetcher {
    override suspend fun fetch(): FetchResult {
        val (applicationInfo, closeable) = getApplicationInfo()
        val icon = closeable.use { appIconLoader.loadIcon(applicationInfo) }
        // Not sampled because we only load with one fixed size.
        return DrawableResult(icon.toDrawable(options.context.resources), false, DataSource.DISK)
    }

    abstract class Factory<T : Any>(
        iconSize: Int,
        context: Context,
        shrinkNonAdaptiveIcons: Boolean = false
    ) : Fetcher.Factory<T> {
        private val appIconLoader =
            AppIconLoader(iconSize, shrinkNonAdaptiveIcons, context)

        override fun create(data: T, options: Options, imageLoader: ImageLoader): Fetcher =
            AppIconFetcher(options, appIconLoader) { getApplicationInfo(data) }

        abstract fun getApplicationInfo(data: T): Pair<ApplicationInfo, Closeable?>
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/AppIconPackageNameFetcherFactory.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.content.Context
import android.content.pm.ApplicationInfo
import coil.key.Keyer
import coil.request.Options
import me.zhanghai.android.files.R
import me.zhanghai.android.files.compat.PackageManagerCompat
import me.zhanghai.android.files.util.getDimensionPixelSize
import java.io.Closeable

data class AppIconPackageName(val packageName: String)

class AppIconPackageNameKeyer : Keyer<AppIconPackageName> {
    override fun key(data: AppIconPackageName, options: Options): String = data.packageName
}

class AppIconPackageNameFetcherFactory(
    private val context: Context
) : AppIconFetcher.Factory<AppIconPackageName>(
    // This is used by FileListAdapter, and shrinking non-adaptive icons makes it look better as a
    // badge.
    context.getDimensionPixelSize(R.dimen.badge_size_plus_1dp), context, true
) {
    override fun getApplicationInfo(data: AppIconPackageName): Pair<ApplicationInfo, Closeable?> {
        // PackageManager.MATCH_UNINSTALLED_PACKAGES allows using PackageManager.MATCH_ANY_USER
        // without the INTERACT_ACROSS_USERS permission when we are in the system user and it has a
        // managed profile. It may also help corner cases like when the package is hidden.
        return context.packageManager.getApplicationInfo(
            data.packageName, PackageManagerCompat.MATCH_UNINSTALLED_PACKAGES
        ) to null
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/CoilExtensions.kt
================================================
/*
 * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import coil.request.ImageRequest
import coil.transition.CrossfadeTransition

fun ImageRequest.Builder.fadeIn(durationMillis: Int): ImageRequest.Builder =
    apply {
        placeholder(android.R.color.transparent)
        transitionFactory(CrossfadeTransition.Factory(durationMillis, true))
    }


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/CoilInitializer.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.os.Build
import coil.Coil
import coil.ImageLoader
import coil.decode.GifDecoder
import coil.decode.ImageDecoderDecoder
import coil.decode.SvgDecoder
import me.zhanghai.android.files.app.application

fun initializeCoil() {
    Coil.setImageLoader(
        ImageLoader.Builder(application)
            .components {
                add(AppIconApplicationInfoKeyer())
                add(AppIconApplicationInfoFetcherFactory(application))
                add(AppIconPackageNameKeyer())
                add(AppIconPackageNameFetcherFactory(application))
                add(PathAttributesKeyer())
                add(PathAttributesFetcher.Factory(application))
                add(
                    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
                        ImageDecoderDecoder.Factory()
                    } else {
                        GifDecoder.Factory()
                    }
                )
                add(SvgDecoder.Factory(false))
            }
            .build()
    )
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/CoilUtils.kt
================================================
/*
 * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.graphics.Bitmap
import android.os.Build
import coil.decode.DataSource
import coil.size.Dimension
import coil.size.Scale
import coil.size.Size
import coil.size.isOriginal
import coil.size.pxOrElse
import java8.nio.file.Path
import me.zhanghai.android.files.filelist.isRemotePath

val Bitmap.Config.isHardware: Boolean
    get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && this == Bitmap.Config.HARDWARE

fun Bitmap.Config.toSoftware(): Bitmap.Config = if (isHardware) Bitmap.Config.ARGB_8888 else this

val Path.dataSource: DataSource
    get() = if (isRemotePath) DataSource.NETWORK else DataSource.DISK

inline fun Size.widthPx(scale: Scale, original: () -> Int): Int =
    if (isOriginal) original() else width.toPx(scale)

inline fun Size.heightPx(scale: Scale, original: () -> Int): Int =
    if (isOriginal) original() else height.toPx(scale)

fun Dimension.toPx(scale: Scale) =
    pxOrElse {
        when (scale) {
            Scale.FILL -> Int.MIN_VALUE
            Scale.FIT -> Int.MAX_VALUE
        }
    }


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/LoadRequestBuilderExtensions.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.graphics.drawable.Drawable
import coil.request.ImageRequest
import coil.target.ImageViewTarget

// Setting the placeholder drawable as error drawable again causes animation glitches, so we just
// ignore the onError() callback.
fun ImageRequest.Builder.ignoreError() {
    val view = (build().target as ImageViewTarget).view
    target(object : ImageViewTarget(view) {
        override fun onError(error: Drawable?) {}
    })
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/PathAttributesFetcher.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.content.Context
import android.content.pm.ApplicationInfo
import android.media.MediaMetadataRetriever
import android.os.ParcelFileDescriptor
import androidx.core.graphics.drawable.toDrawable
import coil.ImageLoader
import coil.decode.ImageSource
import coil.fetch.DrawableResult
import coil.fetch.FetchResult
import coil.fetch.Fetcher
import coil.fetch.SourceResult
import coil.key.Keyer
import coil.request.Options
import coil.size.Dimension
import java8.nio.file.Path
import java8.nio.file.attribute.BasicFileAttributes
import me.zhanghai.android.files.R
import me.zhanghai.android.files.compat.use
import me.zhanghai.android.files.file.MimeType
import me.zhanghai.android.files.file.asMimeType
import me.zhanghai.android.files.file.isApk
import me.zhanghai.android.files.file.isImage
import me.zhanghai.android.files.file.isMedia
import me.zhanghai.android.files.file.isPdf
import me.zhanghai.android.files.file.isVideo
import me.zhanghai.android.files.file.lastModifiedInstant
import me.zhanghai.android.files.filelist.isRemotePath
import me.zhanghai.android.files.provider.common.AndroidFileTypeDetector
import me.zhanghai.android.files.provider.common.newInputStream
import me.zhanghai.android.files.provider.content.resolver.ResolverException
import me.zhanghai.android.files.provider.document.documentSupportsThumbnail
import me.zhanghai.android.files.provider.document.isDocumentPath
import me.zhanghai.android.files.provider.document.resolver.DocumentResolver
import me.zhanghai.android.files.provider.ftp.isFtpPath
import me.zhanghai.android.files.provider.linux.isLinuxPath
import me.zhanghai.android.files.settings.Settings
import me.zhanghai.android.files.util.getDimensionPixelSize
import me.zhanghai.android.files.util.getPackageArchiveInfoCompat
import me.zhanghai.android.files.util.isGetPackageArchiveInfoCompatible
import me.zhanghai.android.files.util.isMediaMetadataRetrieverCompatible
import me.zhanghai.android.files.util.runWithCancellationSignal
import me.zhanghai.android.files.util.setDataSource
import me.zhanghai.android.files.util.valueCompat
import okio.buffer
import okio.source
import java.io.Closeable
import java.io.IOException
import me.zhanghai.android.files.util.setDataSource as appSetDataSource

class PathAttributesKeyer : Keyer<Pair<Path, BasicFileAttributes>> {
    override fun key(data: Pair<Path, BasicFileAttributes>, options: Options): String {
        val (path, attributes) = data
        return "$path:${attributes.lastModifiedInstant.toEpochMilli()}"
    }
}

class PathAttributesFetcher(
    private val data: Pair<Path, BasicFileAttributes>,
    private val options: Options,
    private val imageLoader: ImageLoader,
    private val appIconFetcherFactory: AppIconFetcher.Factory<Path>,
    private val videoFrameFetcherFactory: VideoFrameFetcher.Factory<Path>,
    private val pdfPageFetcherFactory: PdfPageFetcher.Factory<Path>
) : Fetcher {
    override suspend fun fetch(): FetchResult? {
        val (path, attributes) = data
        val (width, height) = options.size
        // @see android.provider.MediaStore.ThumbnailConstants.MINI_SIZE
        val isThumbnail = width is Dimension.Pixels && width.px <= 512
            && height is Dimension.Pixels && height.px <= 384
        if (isThumbnail) {
            width as Dimension.Pixels
            height as Dimension.Pixels
            if (path.isDocumentPath && attributes.documentSupportsThumbnail) {
                val thumbnail = runWithCancellationSignal { signal ->
                    try {
                        DocumentResolver.getThumbnail(
                            path as DocumentResolver.Path, width.px, height.px, signal
                        )
                    } catch (e: ResolverException) {
                        e.printStackTrace()
                        null
                    }
                }
                if (thumbnail != null) {
                    return DrawableResult(
                        thumbnail.toDrawable(options.context.resources), true, path.dataSource
                    )
                }
            }
            if (path.isRemotePath) {
                // FTP doesn't support random access and requires one connection per parallel read.
                val shouldReadRemotePath = !path.isFtpPath
                    && Settings.READ_REMOTE_FILES_FOR_THUMBNAIL.valueCompat
                if (!shouldReadRemotePath) {
                    error("Cannot read $path for thumbnail")
                }
            }
        }
        val mimeType = AndroidFileTypeDetector.getMimeType(data.first, data.second).asMimeType()
        when {
            mimeType.isApk && path.isGetPackageArchiveInfoCompatible -> {
                try {
                    return appIconFetcherFactory.create(path, options, imageLoader).fetch()
                } catch (e: Exception) {
                    e.printStackTrace()
                }
            }
            mimeType.isImage || mimeType == MimeType.GENERIC -> {
                val inputStream = path.newInputStream()
                return SourceResult(
                    ImageSource(inputStream.source().buffer(), options.context),
                    if (mimeType != MimeType.GENERIC) mimeType.value else null, path.dataSource
                )
            }
            mimeType.isMedia && path.isMediaMetadataRetrieverCompatible -> {
                val embeddedPicture = try {
                    MediaMetadataRetriever().use { retriever ->
                        retriever.setDataSource(path)
                        retriever.embeddedPicture
                    }
                } catch (e: Exception) {
                    e.printStackTrace()
                    null
                }
                if (embeddedPicture != null) {
                    return SourceResult(
                        ImageSource(
                            embeddedPicture.inputStream().source().buffer(), options.context
                        ), null, path.dataSource
                    )
                }
                if (mimeType.isVideo) {
                    try {
                        return videoFrameFetcherFactory.create(path, options, imageLoader).fetch()
                    } catch (e: Exception) {
                        e.printStackTrace()
                    }
                }
            }
            mimeType.isPdf && (path.isLinuxPath || path.isDocumentPath) -> {
                try {
                    return pdfPageFetcherFactory.create(path, options, imageLoader).fetch()
                } catch (e: Exception) {
                    e.printStackTrace()
                }
            }
        }
        return null
    }

    class Factory(private val context: Context) : Fetcher.Factory<Pair<Path, BasicFileAttributes>> {
        private val appIconFetcherFactory = object : AppIconFetcher.Factory<Path>(
            // This is used by FileListAdapter.
            context.getDimensionPixelSize(R.dimen.large_icon_size), context
        ) {
            override fun getApplicationInfo(data: Path): Pair<ApplicationInfo, Closeable?> {
                val (packageInfo, closeable) =
                    context.packageManager.getPackageArchiveInfoCompat(data, 0)
                val applicationInfo = packageInfo?.applicationInfo
                if (applicationInfo == null) {
                    closeable?.close()
                    throw IOException("ApplicationInfo is null")
                }
                return applicationInfo to closeable
            }
        }

        private val videoFrameFetcherFactory = object : VideoFrameFetcher.Factory<Path>() {
            override fun MediaMetadataRetriever.setDataSource(data: Path) {
                appSetDataSource(data)
            }
        }

        private val pdfPageFetcherFactory = object : PdfPageFetcher.Factory<Path>() {
            override fun openParcelFileDescriptor(data: Path): ParcelFileDescriptor =
                when {
                    data.isLinuxPath ->
                        ParcelFileDescriptor.open(data.toFile(), ParcelFileDescriptor.MODE_READ_ONLY)
                    data.isDocumentPath ->
                        DocumentResolver.openParcelFileDescriptor(data as DocumentResolver.Path, "r")
                    else -> throw IllegalArgumentException(data.toString())
                }
        }

        override fun create(
            data: Pair<Path, BasicFileAttributes>,
            options: Options,
            imageLoader: ImageLoader
        ): Fetcher =
            PathAttributesFetcher(
                data, options, imageLoader, appIconFetcherFactory, videoFrameFetcherFactory,
                pdfPageFetcherFactory
            )
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/PdfPageFetcher.kt
================================================
/*
 * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.graphics.Color
import android.graphics.pdf.PdfRenderer
import android.os.ParcelFileDescriptor
import androidx.annotation.ColorInt
import androidx.annotation.IntRange
import androidx.core.graphics.createBitmap
import androidx.core.graphics.drawable.toDrawable
import coil.ImageLoader
import coil.decode.DataSource
import coil.decode.DecodeUtils
import coil.fetch.DrawableResult
import coil.fetch.FetchResult
import coil.fetch.Fetcher
import coil.request.ImageRequest
import coil.request.Options
import coil.request.Parameters
import kotlin.math.roundToInt

fun ImageRequest.Builder.pdfBackgroundColor(@ColorInt backgroundColor: Int): ImageRequest.Builder =
    setParameter(PdfPageFetcher.PDF_BACKGROUND_COLOR_KEY, backgroundColor)

fun ImageRequest.Builder.pdfPageIndex(@IntRange(from = 0) pageIndex: Int): ImageRequest.Builder {
    require(pageIndex >= 0) { "pageIndex must be >= 0." }
    return setParameter(PdfPageFetcher.PDF_PAGE_INDEX_KEY, pageIndex)
}

@ColorInt
fun Parameters.pdfBackgroundColor(): Int? = value(PdfPageFetcher.PDF_BACKGROUND_COLOR_KEY) as Int?

@IntRange(from = 0)
fun Parameters.pdfPageIndex(): Int? = value(PdfPageFetcher.PDF_PAGE_INDEX_KEY) as Int?

class PdfPageFetcher(
    private val options: Options,
    private val openParcelFileDescriptor: () -> ParcelFileDescriptor
) : Fetcher {
    override suspend fun fetch(): FetchResult =
        openParcelFileDescriptor().use { pfd ->
            PdfRenderer(pfd).use { renderer ->
                val pageIndex = options.parameters.pdfPageIndex() ?: 0
                renderer.openPage(pageIndex).use { page ->
                    val srcWidth = page.width
                    check(srcWidth > 0) {
                        "PDF page $pageIndex width $srcWidth isn't greater than 0"
                    }
                    val srcHeight = page.height
                    check(srcWidth > 0) {
                        "PDF page $pageIndex height $srcHeight isn't greater than 0"
                    }
                    val dstWidth = options.size.widthPx(options.scale) { srcWidth }
                    val dstHeight = options.size.heightPx(options.scale) { srcHeight }
                    val rawScale = DecodeUtils.computeSizeMultiplier(
                        srcWidth = srcWidth,
                        srcHeight = srcHeight,
                        dstWidth = dstWidth,
                        dstHeight = dstHeight,
                        scale = options.scale
                    )
                    val scale = if (options.allowInexactSize) {
                        rawScale.coerceAtMost(1.0)
                    } else {
                        rawScale
                    }
                    val width = (scale * srcWidth).roundToInt()
                    val height = (scale * srcHeight).roundToInt()
                    val config = options.config.toSoftware()
                    val bitmap = createBitmap(width, height, config)
                    val backgroundColor = options.parameters.pdfBackgroundColor() ?: Color.WHITE
                    bitmap.eraseColor(backgroundColor)
                    page.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
                    DrawableResult(
                        drawable = bitmap.toDrawable(options.context.resources),
                        isSampled = scale < 1.0,
                        dataSource = DataSource.DISK
                    )
                }
            }
        }

    companion object {
        const val PDF_BACKGROUND_COLOR_KEY = "coil#pdf_background_color"
        const val PDF_PAGE_INDEX_KEY = "coil#pdf_page_index"
    }

    abstract class Factory<T : Any> : Fetcher.Factory<T> {
        override fun create(data: T, options: Options, imageLoader: ImageLoader): Fetcher =
            PdfPageFetcher(options) { openParcelFileDescriptor(data) }

        protected abstract fun openParcelFileDescriptor(data: T): ParcelFileDescriptor
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/coil/VideoFrameFetcher.kt
================================================
/*
 * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.coil

import android.graphics.Paint
import android.media.MediaMetadataRetriever
import android.os.Build
import androidx.core.graphics.applyCanvas
import androidx.core.graphics.createBitmap
import androidx.core.graphics.drawable.toDrawable
import coil.ImageLoader
import coil.decode.DataSource
import coil.decode.DecodeUtils
import coil.fetch.DrawableResult
import coil.fetch.FetchResult
import coil.fetch.Fetcher
import coil.request.Options
import coil.request.videoFrameOption
import coil.request.videoFramePercent
import me.zhanghai.android.files.compat.getFrameAtTimeCompat
import me.zhanghai.android.files.compat.getScaledFrameAtTimeCompat
import me.zhanghai.android.files.compat.use
import java.util.concurrent.TimeUnit
import kotlin.math.roundToInt
import kotlin.math.roundToLong

class VideoFrameFetcher(
    private val options: Options,
    private val setDataSource: MediaMetadataRetriever.() -> Unit
) : Fetcher {
    override suspend fun fetch(): FetchResult =
        MediaMetadataRetriever().use { retriever ->
            retriever.setDataSource()
            val rotation =
                retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION)
                    ?.toIntOrNull() ?: 0
            var srcWidth: Int
            var srcHeight: Int
            when (rotation) {
                90, 270 -> {
                    srcWidth =
                        retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)
                            ?.toIntOrNull() ?: 0
                    srcHeight =
                        retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)
                            ?.toIntOrNull() ?: 0
                }
                else -> {
                    srcWidth =
                        retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)
                            ?.toIntOrNull() ?: 0
                    srcHeight =
                        retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)
                            ?.toIntOrNull() ?: 0
                }
            }
            val durationMillis =
                retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)
                    ?.toLongOrNull() ?: 0L
            // 1/3 is the first percentage tried by totem-video-thumbnailer.
            // @see https://gitlab.gnome.org/GNOME/totem/-/blob/master/src/totem-video-thumbnailer.c#L543
            val framePercent = options.parameters.videoFramePercent() ?: (1.0 / 3.0)
            val frameMicros = TimeUnit.MICROSECONDS.convert(
                (framePercent * durationMillis).roundToLong(), TimeUnit.MILLISECONDS
            )
            val frameOption = options.parameters.videoFrameOption()
                ?: MediaMetadataRetriever.OPTION_CLOSEST_SYNC
            val bitmapParams = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
                MediaMetadataRetriever.BitmapParams().apply { preferredConfig = options.config }
            } else {
                null
            }
            val outBitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1
                && srcWidth > 0 && srcHeight > 0) {
                val dstWidth = options.size.widthPx(options.scale) { srcWidth }
                val dstHeight = options.size.heightPx(options.scale) { srcHeight }
                val rawScale = DecodeUtils.computeSizeMultiplier(
                    srcWidth = srcWidth,
                    srcHeight = srcHeight,
                    dstWidth = dstWidth,
                    dstHeight = dstHeight,
                    scale = options.scale
                )
                val scale = if (options.allowInexactSize) {
                    rawScale.coerceAtMost(1.0)
                } else {
                    rawScale
                }
                val width = (scale * srcWidth).roundToInt()
                val height = (scale * srcHeight).roundToInt()
                retriever.getScaledFrameAtTimeCompat(
                    frameMicros, frameOption, width, height, bitmapParams
                )
            } else {
                retriever.getFrameAtTimeCompat(frameMicros, frameOption, bitmapParams)?.also {
                    srcWidth = it.width
                    srcHeight = it.height
                }
            }
            val dstWidth = options.size.widthPx(options.scale) { srcWidth }
            val dstHeight = options.size.heightPx(options.scale) { srcHeight }
            val rawScale = DecodeUtils.computeSizeMultiplier(
                srcWidth = srcWidth,
                srcHeight = srcHeight,
                dstWidth = dstWidth,
                dstHeight = dstHeight,
                scale = options.scale
            )
            checkNotNull(outBitmap) { "Failed to decode frame at $frameMicros microseconds" }
            val scale = if (options.allowInexactSize) {
                rawScale.coerceAtMost(1.0)
            } else {
                rawScale
            }
            val width = (scale * srcWidth).roundToInt()
            val height = (scale * srcHeight).roundToInt()
            val isValidSize = if (options.allowInexactSize) {
                outBitmap.width <= width && outBitmap.height <= height
            } else {
                outBitmap.width == width && outBitmap.height == height
            }
            val isValidConfig = outBitmap.config?.isHardware != true || options.config.isHardware
            val bitmap = if (isValidSize && isValidConfig) {
                outBitmap
            } else {
                val config = options.config.toSoftware()
                createBitmap(width, height, config).applyCanvas {
                    scale(scale.toFloat(), scale.toFloat())
                    val paint = Paint(Paint.ANTI_ALIAS_FLAG or Paint.FILTER_BITMAP_FLAG)
                    drawBitmap(outBitmap, 0f, 0f, paint)
                    outBitmap.recycle()
                }
            }
            DrawableResult(
                drawable = bitmap.toDrawable(options.context.resources),
                isSampled = scale < 1.0,
                dataSource = DataSource.DISK
            )
        }

    abstract class Factory<T : Any> : Fetcher.Factory<T> {
        override fun create(data: T, options: Options, imageLoader: ImageLoader): Fetcher =
            VideoFrameFetcher(options) { setDataSource(data) }

        protected abstract fun MediaMetadataRetriever.setDataSource(data: T)
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/colorpicker/BaseColorPreference.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.colorpicker

import android.content.Context
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import androidx.annotation.StyleRes
import androidx.preference.DialogPreference
import androidx.preference.PreferenceViewHolder
import me.zhanghai.android.files.R
import me.zhanghai.android.files.util.getFloatByAttr
import kotlin.math.roundToInt

abstract class BaseColorPreference : DialogPreference {
    constructor(context: Context) : super(context)

    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)

    constructor(context: Context, attrs: AttributeSet?, @AttrRes defStyleAttr: Int) : super(
        context, attrs, defStyleAttr
    )

    constructor(
        context: Context,
        attrs: AttributeSet?,
        @AttrRes defStyleAttr: Int,
        @StyleRes defStyleRes: Int
    ) : super(context, attrs, defStyleAttr, defStyleRes)

    init {
        widgetLayoutResource = R.layout.color_preference_widget
        dialogLayoutResource = R.layout.color_picker_dialog
        setPositiveButtonText(android.R.string.ok)
        setNegativeButtonText(android.R.string.cancel)
    }

    override fun onBindViewHolder(holder: PreferenceViewHolder) {
        super.onBindViewHolder(holder)

        val swatchView = holder.findViewById(R.id.swatch)
        if (swatchView != null) {
            val swatchDrawable = swatchView.background as GradientDrawable
            swatchDrawable.setColor(value)
            var alpha = 0xFF
            if (!isEnabled) {
                val disabledAlpha = context.getFloatByAttr(android.R.attr.disabledAlpha)
                alpha = (disabledAlpha * alpha).roundToInt()
            }
            swatchDrawable.alpha = alpha
        }
    }

    @get:ColorInt
    abstract var value: Int

    @get:ColorInt
    abstract val defaultValue: Int

    abstract val entryValues: IntArray
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/colorpicker/ColorPaletteAdapter.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.colorpicker

import android.view.View
import android.view.ViewGroup
import android.widget.AbsListView
import android.widget.BaseAdapter

class ColorPaletteAdapter(private val colors: IntArray) : BaseAdapter() {
    override fun hasStableIds(): Boolean = true

    override fun getCount(): Int = colors.size

    override fun getItem(position: Int): Int = colors[position]

    override fun getItemId(position: Int): Long = getItem(position).toLong()

    override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
        val swatchView = convertView as ColorSwatchView?
            ?: ColorSwatchView(parent.context).apply {
                layoutParams = AbsListView.LayoutParams(
                    ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT
                )
            }
        return swatchView.apply {
            setColor(getItem(position))
        }
    }
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/colorpicker/ColorPreferenceDialogFragment.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.colorpicker

import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.View
import android.widget.GridView
import androidx.appcompat.app.AlertDialog
import androidx.core.view.ViewCompat
import kotlinx.parcelize.Parcelize
import me.zhanghai.android.files.R
import me.zhanghai.android.files.ui.MaterialPreferenceDialogFragmentCompat
import me.zhanghai.android.files.util.ParcelableState
import me.zhanghai.android.files.util.getState
import me.zhanghai.android.files.util.putState
import me.zhanghai.android.files.util.withTheme

class ColorPreferenceDialogFragment : MaterialPreferenceDialogFragmentCompat() {
    override val preference: BaseColorPreference
        get() = super.preference as BaseColorPreference

    private lateinit var colors: IntArray
    private var checkedColor = 0
    private var defaultColor = 0

    private lateinit var paletteGrid: GridView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        if (savedInstanceState == null) {
            val preference = preference
            colors = preference.entryValues
            checkedColor = preference.value
            defaultColor = preference.defaultValue
        } else {
            val state = savedInstanceState.getState<State>()
            colors = state.colors
            checkedColor = state.checkedColor
            defaultColor = state.defaultColor
        }
    }

    override fun onSaveInstanceState(outState: Bundle) {
        super.onSaveInstanceState(outState)

        val checkedPosition = paletteGrid.checkedItemPosition
        val checkedColor = if (checkedPosition != -1) colors[checkedPosition] else checkedColor
        outState.putState(State(colors, checkedColor, defaultColor))
    }

    override fun onCreateDialogView(context: Context): View? =
        super.onCreateDialogView(context.withTheme(theme))

    override fun onBindDialogView(view: View) {
        super.onBindDialogView(view)

        paletteGrid = ViewCompat.requireViewById(view, R.id.palette)
        paletteGrid.adapter = ColorPaletteAdapter(colors)
        val checkedPosition = colors.indexOf(checkedColor)
        if (checkedPosition != -1) {
            paletteGrid.setItemChecked(checkedPosition, true)
        }
    }

    override fun onPrepareDialogBuilder(builder: AlertDialog.Builder) {
        super.onPrepareDialogBuilder(builder)

        if (defaultColor in colors) {
            builder.setNeutralButton(R.string.default_, null)
        }
    }

    override fun onCreateDialog(savedInstanceState: Bundle?): Dialog =
        (super.onCreateDialog(savedInstanceState) as AlertDialog).apply {
            if (defaultColor in colors) {
                // Override the listener here so that we won't close the dialog.
                setOnShowListener {
                    getButton(AlertDialog.BUTTON_NEUTRAL).setOnClickListener {
                        paletteGrid.setItemChecked(colors.indexOf(defaultColor), true)
                    }
                }
            }
        }

    override fun onDialogClosed(positiveResult: Boolean) {
        if (!positiveResult) {
            return
        }
        val checkedPosition = paletteGrid.checkedItemPosition
        if (checkedPosition == -1) {
            return
        }
        val checkedColor = colors[checkedPosition]
        preference.value = checkedColor
    }

    @Parcelize
    private class State(
        val colors: IntArray,
        val checkedColor: Int,
        val defaultColor: Int
    ) : ParcelableState
}


================================================
FILE: app/src/main/java/me/zhanghai/android/files/colorpicker/ColorSwatchView.kt
================================================
/*
 * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.files.colorpicker

import android.content.Context
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.LayerDrawable
import android.util.AttributeSet
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import androidx.annotation.StyleRes
import androidx.appcompat.content.res.AppCompatResources
import me.zhanghai.android.files.R
import me.zhanghai.android.files.ui.CheckableView

class ColorSwatchView : CheckableView {
    private val gradientDrawable: GradientDrawable

    constructor(context: Context) : super(context)

    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)

    constructor(context: Context, attrs: AttributeSet?, @AttrRes defStyleAttr: Int) : super(
        context, attrs, defStyleAttr
    )

    constructor(
        context: Context,
        attrs: AttributeSet?,
        @AttrRes defStyleAttr: Int,
        @StyleRes defStyleRes: Int
    ) : super(context, attrs, defStyleAttr, defStyleRes)

    init {
        val background = AppCompatResources.getDrawable(
            context, R.drawable.color_swatch_view_background
        ) as LayerDrawable
        gradientDrawable = background.getDrawable(0) as GradientDrawable
        setBackground(background)
    }

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        setMeasuredDimension(
        
Download .txt
gitextract_w8wbjvrc/

├── .github/
│   ├── pull_request_template.md
│   └── workflows/
│       └── android.yml
├── .gitignore
├── LICENSE
├── PRIVACY.md
├── README.md
├── README_zh-CN.md
├── SECURITY.md
├── app/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── build.gradle
│   ├── google-services.json
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── aidl/
│           │   └── me/
│           │       └── zhanghai/
│           │           └── android/
│           │               └── files/
│           │                   ├── provider/
│           │                   │   ├── common/
│           │                   │   │   ├── ParcelableFileTime.aidl
│           │                   │   │   ├── ParcelablePosixFileMode.aidl
│           │                   │   │   ├── PosixGroup.aidl
│           │                   │   │   └── PosixUser.aidl
│           │                   │   └── remote/
│           │                   │       ├── IRemoteFileService.aidl
│           │                   │       ├── IRemoteFileSystem.aidl
│           │                   │       ├── IRemoteFileSystemProvider.aidl
│           │                   │       ├── IRemoteInputStream.aidl
│           │                   │       ├── IRemotePathObservable.aidl
│           │                   │       ├── IRemotePosixFileAttributeView.aidl
│           │                   │       ├── IRemotePosixFileStore.aidl
│           │                   │       ├── IRemoteSeekableByteChannel.aidl
│           │                   │       ├── ParcelableCopyOptions.aidl
│           │                   │       ├── ParcelableDirectoryStream.aidl
│           │                   │       ├── ParcelableException.aidl
│           │                   │       ├── ParcelableFileAttributes.aidl
│           │                   │       ├── ParcelableObject.aidl
│           │                   │       ├── ParcelablePathListConsumer.aidl
│           │                   │       ├── ParcelableSerializable.aidl
│           │                   │       ├── RemoteInputStream.aidl
│           │                   │       ├── RemotePathObservable.aidl
│           │                   │       └── RemoteSeekableByteChannel.aidl
│           │                   └── util/
│           │                       ├── IRemoteCallback.aidl
│           │                       ├── ParcelSlicedList.aidl
│           │                       └── RemoteCallback.aidl
│           ├── java/
│           │   ├── androidx/
│           │   │   ├── appcompat/
│           │   │   │   ├── app/
│           │   │   │   │   └── AppCompatDelegateCompat.java
│           │   │   │   └── widget/
│           │   │   │       └── FixPaddingListPopupWindow.java
│           │   │   └── swiperefreshlayout/
│           │   │       └── widget/
│           │   │           └── ThemedSwipeRefreshLayout.java
│           │   ├── at/
│           │   │   └── bitfire/
│           │   │       └── dav4jvm/
│           │   │           └── DavResourceAccessor.java
│           │   ├── com/
│           │   │   ├── google/
│           │   │   │   └── android/
│           │   │   │       └── material/
│           │   │   │           ├── appbar/
│           │   │   │           │   └── OnWindowInsetChangedAppBarLayout.java
│           │   │   │           └── shape/
│           │   │   │               └── MaterialShapeDrawableAccessor.java
│           │   │   └── hierynomus/
│           │   │       └── smbj/
│           │   │           └── share/
│           │   │               ├── FileAccessor.java
│           │   │               └── ShareAccessor.java
│           │   ├── me/
│           │   │   └── zhanghai/
│           │   │       └── android/
│           │   │           └── files/
│           │   │               ├── about/
│           │   │               │   ├── AboutActivity.kt
│           │   │               │   └── AboutFragment.kt
│           │   │               ├── app/
│           │   │               │   ├── AppActivity.kt
│           │   │               │   ├── AppInitializers.kt
│           │   │               │   ├── AppProvider.kt
│           │   │               │   ├── AppUpgrader.kt
│           │   │               │   ├── AppUpgraders.kt
│           │   │               │   ├── BackgroundActivityStarter.kt
│           │   │               │   ├── NotificationIds.kt
│           │   │               │   └── SystemServices.kt
│           │   │               ├── coil/
│           │   │               │   ├── AppIconApplicationInfoFetcherFactory.kt
│           │   │               │   ├── AppIconFetcher.kt
│           │   │               │   ├── AppIconPackageNameFetcherFactory.kt
│           │   │               │   ├── CoilExtensions.kt
│           │   │               │   ├── CoilInitializer.kt
│           │   │               │   ├── CoilUtils.kt
│           │   │               │   ├── LoadRequestBuilderExtensions.kt
│           │   │               │   ├── PathAttributesFetcher.kt
│           │   │               │   ├── PdfPageFetcher.kt
│           │   │               │   └── VideoFrameFetcher.kt
│           │   │               ├── colorpicker/
│           │   │               │   ├── BaseColorPreference.kt
│           │   │               │   ├── ColorPaletteAdapter.kt
│           │   │               │   ├── ColorPreferenceDialogFragment.kt
│           │   │               │   └── ColorSwatchView.kt
│           │   │               ├── compat/
│           │   │               │   ├── ActivityCompat.kt
│           │   │               │   ├── ApplicationInfoCompat.kt
│           │   │               │   ├── ContextCompat.kt
│           │   │               │   ├── DialogCompat.kt
│           │   │               │   ├── DigitsKeyListenerCompat.kt
│           │   │               │   ├── DocumentsContractCompat.kt
│           │   │               │   ├── DrawableCompat.kt
│           │   │               │   ├── EnvironmentCompat2.kt
│           │   │               │   ├── ErrnoExceptionCompat.kt
│           │   │               │   ├── FrameLayoutCompat.kt
│           │   │               │   ├── InputStreamCompat.kt
│           │   │               │   ├── IntentCompat.kt
│           │   │               │   ├── KotlinCompat.kt
│           │   │               │   ├── ListFormatterCompat.kt
│           │   │               │   ├── LocaleConfigCompat.kt
│           │   │               │   ├── MediaMetadataRetrieverCompat.kt
│           │   │               │   ├── MenuCompat.kt
│           │   │               │   ├── MimeTypeMapCompat.kt
│           │   │               │   ├── NioUtilsCompat.kt
│           │   │               │   ├── PackageInfoCompat.kt
│           │   │               │   ├── PackageManagerCompat.kt
│           │   │               │   ├── ParcelCompat.kt
│           │   │               │   ├── PermissionInfoCompat.kt
│           │   │               │   ├── PreferenceManagerCompat.kt
│           │   │               │   ├── ProxyFileDescriptorCallbackCompat.kt
│           │   │               │   ├── ResourcesCompat.kt
│           │   │               │   ├── RotateDrawableCompat.kt
│           │   │               │   ├── SELinuxCompat.kt
│           │   │               │   ├── SeekableByteChannelCompat.kt
│           │   │               │   ├── ServiceCompat.kt
│           │   │               │   ├── StorageManagerCompat.kt
│           │   │               │   ├── StorageVolumeCompat.kt
│           │   │               │   ├── TextViewCompat.kt
│           │   │               │   ├── ThreadLocalCompat.kt
│           │   │               │   ├── TileServiceCompat.kt
│           │   │               │   ├── TypedValueCompat.kt
│           │   │               │   ├── ViewCompat.kt
│           │   │               │   └── ViewGroupCompat.kt
│           │   │               ├── file/
│           │   │               │   ├── BasicFileAttributesExtensions.kt
│           │   │               │   ├── DocumentTreeUri.kt
│           │   │               │   ├── DocumentUri.kt
│           │   │               │   ├── DurationExtensions.kt
│           │   │               │   ├── ExternalStorageUri.kt
│           │   │               │   ├── FileItem.kt
│           │   │               │   ├── FileProvider.kt
│           │   │               │   ├── FileSize.kt
│           │   │               │   ├── InstantExtensions.kt
│           │   │               │   ├── JavaFile.kt
│           │   │               │   ├── MimeType.kt
│           │   │               │   ├── MimeTypeConversionExtensions.kt
│           │   │               │   ├── MimeTypeIcon.kt
│           │   │               │   ├── MimeTypeNameExtensions.kt
│           │   │               │   └── MimeTypeTypeExtensions.kt
│           │   │               ├── fileaction/
│           │   │               │   ├── ArchivePasswordDialogActivity.kt
│           │   │               │   └── ArchivePasswordDialogFragment.kt
│           │   │               ├── filejob/
│           │   │               │   ├── FileJob.kt
│           │   │               │   ├── FileJobConflictAction.kt
│           │   │               │   ├── FileJobConflictDialogActivity.kt
│           │   │               │   ├── FileJobConflictDialogFragment.kt
│           │   │               │   ├── FileJobErrorAction.kt
│           │   │               │   ├── FileJobErrorDialogActivity.kt
│           │   │               │   ├── FileJobErrorDialogFragment.kt
│           │   │               │   ├── FileJobErrorViewModel.kt
│           │   │               │   ├── FileJobNotificationTemplate.kt
│           │   │               │   ├── FileJobReceiver.kt
│           │   │               │   ├── FileJobService.kt
│           │   │               │   └── FileJobs.kt
│           │   │               ├── filelist/
│           │   │               │   ├── BreadcrumbData.kt
│           │   │               │   ├── BreadcrumbLayout.kt
│           │   │               │   ├── BreadcrumbLiveData.kt
│           │   │               │   ├── CollatorFileNameExtensions.kt
│           │   │               │   ├── ConfirmDeleteFilesDialogFragment.kt
│           │   │               │   ├── ConfirmReplaceFileDialogFragment.kt
│           │   │               │   ├── CreateArchiveDialogFragment.kt
│           │   │               │   ├── CreateArchiveTypeRadioGroup.kt
│           │   │               │   ├── CreateDirectoryDialogFragment.kt
│           │   │               │   ├── CreateFileDialogFragment.kt
│           │   │               │   ├── EditFileActivity.kt
│           │   │               │   ├── FileItemExtensions.kt
│           │   │               │   ├── FileItemSet.kt
│           │   │               │   ├── FileListActivity.kt
│           │   │               │   ├── FileListAdapter.kt
│           │   │               │   ├── FileListFragment.kt
│           │   │               │   ├── FileListLiveData.kt
│           │   │               │   ├── FileListViewModel.kt
│           │   │               │   ├── FileNameDialogFragment.kt
│           │   │               │   ├── FileSortOptions.kt
│           │   │               │   ├── FileSortOptionsLiveData.kt
│           │   │               │   ├── FileViewSortPathSpecificLiveData.kt
│           │   │               │   ├── FileViewType.kt
│           │   │               │   ├── FileViewTypeLiveData.kt
│           │   │               │   ├── NameDialogFragment.kt
│           │   │               │   ├── NavigateToPathDialogFragment.kt
│           │   │               │   ├── OpenApkDefaultAction.kt
│           │   │               │   ├── OpenApkDialogFragment.kt
│           │   │               │   ├── OpenFileActivity.kt
│           │   │               │   ├── OpenFileAsDialogActivity.kt
│           │   │               │   ├── OpenFileAsDialogFragment.kt
│           │   │               │   ├── PasteState.kt
│           │   │               │   ├── PathDialogFragment.kt
│           │   │               │   ├── PathExtensions.kt
│           │   │               │   ├── PathObserver.kt
│           │   │               │   ├── PickOptions.kt
│           │   │               │   ├── RenameFileDialogFragment.kt
│           │   │               │   ├── SearchFileListLiveData.kt
│           │   │               │   ├── SearchState.kt
│           │   │               │   ├── ShowRequestAllFilesAccessRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestNotificationPermissionInSettingsRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestNotificationPermissionRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestStoragePermissionInSettingsRationaleDialogFragment.kt
│           │   │               │   ├── ShowRequestStoragePermissionRationaleDialogFragment.kt
│           │   │               │   ├── TrailData.kt
│           │   │               │   └── TrailLiveData.kt
│           │   │               ├── fileproperties/
│           │   │               │   ├── FileLiveData.kt
│           │   │               │   ├── FilePropertiesDialogFragment.kt
│           │   │               │   ├── FilePropertiesFileViewModel.kt
│           │   │               │   ├── FilePropertiesTabFragment.kt
│           │   │               │   ├── MediaMetadataRetrieverExtensions.kt
│           │   │               │   ├── PathObserverLiveData.kt
│           │   │               │   ├── apk/
│           │   │               │   │   ├── ApkInfo.kt
│           │   │               │   │   ├── ApkInfoLiveData.kt
│           │   │               │   │   ├── FilePropertiesApkTabFragment.kt
│           │   │               │   │   ├── FilePropertiesApkTabViewModel.kt
│           │   │               │   │   ├── PermissionItem.kt
│           │   │               │   │   ├── PermissionListAdapter.kt
│           │   │               │   │   ├── PermissionListDialogFragment.kt
│           │   │               │   │   ├── PermissionListLiveData.kt
│           │   │               │   │   └── PermissionListViewModel.kt
│           │   │               │   ├── audio/
│           │   │               │   │   ├── AudioInfo.kt
│           │   │               │   │   ├── AudioInfoLiveData.kt
│           │   │               │   │   ├── FilePropertiesAudioTabFragment.kt
│           │   │               │   │   └── FilePropertiesAudioTabViewModel.kt
│           │   │               │   ├── basic/
│           │   │               │   │   └── FilePropertiesBasicTabFragment.kt
│           │   │               │   ├── checksum/
│           │   │               │   │   ├── ChecksumInfo.kt
│           │   │               │   │   ├── ChecksumInfoLiveData.kt
│           │   │               │   │   ├── Crc32MessageDigest.kt
│           │   │               │   │   ├── FilePropertiesChecksumTabFragment.kt
│           │   │               │   │   └── FilePropertiesChecksumTabViewModel.kt
│           │   │               │   ├── image/
│           │   │               │   │   ├── ExifInterfaceExtensions.kt
│           │   │               │   │   ├── FilePropertiesImageTabFragment.kt
│           │   │               │   │   ├── FilePropertiesImageTabViewModel.kt
│           │   │               │   │   ├── ImageInfo.kt
│           │   │               │   │   └── ImageInfoLiveData.kt
│           │   │               │   ├── permission/
│           │   │               │   │   ├── FilePropertiesPermissionTabFragment.kt
│           │   │               │   │   ├── GroupListAdapter.kt
│           │   │               │   │   ├── GroupListLiveData.kt
│           │   │               │   │   ├── ModeBitListAdapter.kt
│           │   │               │   │   ├── PrincipalItem.kt
│           │   │               │   │   ├── PrincipalListAdapter.kt
│           │   │               │   │   ├── PrincipalListLiveData.kt
│           │   │               │   │   ├── SetGroupDialogFragment.kt
│           │   │               │   │   ├── SetGroupViewModel.kt
│           │   │               │   │   ├── SetModeDialogFragment.kt
│           │   │               │   │   ├── SetModeViewModel.kt
│           │   │               │   │   ├── SetOwnerDialogFragment.kt
│           │   │               │   │   ├── SetOwnerViewModel.kt
│           │   │               │   │   ├── SetPrincipalDialogFragment.kt
│           │   │               │   │   ├── SetPrincipalViewModel.kt
│           │   │               │   │   ├── SetSeLinuxContextDialogFragment.kt
│           │   │               │   │   ├── UserListAdapter.kt
│           │   │               │   │   └── UserListLiveData.kt
│           │   │               │   └── video/
│           │   │               │       ├── FilePropertiesVideoTabFragment.kt
│           │   │               │       ├── FilePropertiesVideoTabViewModel.kt
│           │   │               │       ├── VideoInfo.kt
│           │   │               │       └── VideoInfoLiveData.kt
│           │   │               ├── ftpserver/
│           │   │               │   ├── FtpServer.kt
│           │   │               │   ├── FtpServerActivity.kt
│           │   │               │   ├── FtpServerAddTilePreference.kt
│           │   │               │   ├── FtpServerFragment.kt
│           │   │               │   ├── FtpServerHomeDirectoryPreference.kt
│           │   │               │   ├── FtpServerNotification.kt
│           │   │               │   ├── FtpServerPreferenceFragment.kt
│           │   │               │   ├── FtpServerReceiver.kt
│           │   │               │   ├── FtpServerService.kt
│           │   │               │   ├── FtpServerStatePreference.kt
│           │   │               │   ├── FtpServerTileService.kt
│           │   │               │   ├── FtpServerUrl.kt
│           │   │               │   ├── FtpServerUrlPreference.kt
│           │   │               │   ├── ProviderFileSystemFactory.kt
│           │   │               │   ├── ProviderFileSystemView.kt
│           │   │               │   └── ProviderFtpFile.kt
│           │   │               ├── hiddenapi/
│           │   │               │   ├── HiddenApi.kt
│           │   │               │   └── RestrictedHiddenApi.kt
│           │   │               ├── navigation/
│           │   │               │   ├── BookmarkDirectories.kt
│           │   │               │   ├── BookmarkDirectory.kt
│           │   │               │   ├── EditBookmarkDirectoryDialogActivity.kt
│           │   │               │   ├── EditBookmarkDirectoryDialogFragment.kt
│           │   │               │   ├── NavigationFragment.kt
│           │   │               │   ├── NavigationItem.kt
│           │   │               │   ├── NavigationItemListLiveData.kt
│           │   │               │   ├── NavigationItems.kt
│           │   │               │   ├── NavigationListAdapter.kt
│           │   │               │   ├── NavigationRecyclerView.kt
│           │   │               │   ├── NavigationRoot.kt
│           │   │               │   ├── NavigationRootMapLiveData.kt
│           │   │               │   ├── StandardDirectoriesLiveData.kt
│           │   │               │   ├── StandardDirectory.kt
│           │   │               │   └── StandardDirectorySettings.kt
│           │   │               ├── nonfree/
│           │   │               │   └── CrashlyticsInitializer.kt
│           │   │               ├── provider/
│           │   │               │   ├── FileSystemProviders.kt
│           │   │               │   ├── archive/
│           │   │               │   │   ├── ArchiveExceptionExtensions.kt
│           │   │               │   │   ├── ArchiveFileAttributeView.kt
│           │   │               │   │   ├── ArchiveFileAttributes.kt
│           │   │               │   │   ├── ArchiveFileKey.kt
│           │   │               │   │   ├── ArchiveFileStore.kt
│           │   │               │   │   ├── ArchiveFileSystem.kt
│           │   │               │   │   ├── ArchiveFileSystemProvider.kt
│           │   │               │   │   ├── ArchivePasswordRequiredException.kt
│           │   │               │   │   ├── ArchivePath.kt
│           │   │               │   │   ├── OpenOptionsArchiveExtensions.kt
│           │   │               │   │   ├── PathArchiveExtensions.kt
│           │   │               │   │   └── archiver/
│           │   │               │   │       ├── ArchiveReader.kt
│           │   │               │   │       ├── ArchiveWriter.kt
│           │   │               │   │       ├── ReadArchive.kt
│           │   │               │   │       └── WriteArchive.kt
│           │   │               │   ├── common/
│           │   │               │   │   ├── AbstractBasicFileAttributes.kt
│           │   │               │   │   ├── AbstractContentProviderFileAttributes.kt
│           │   │               │   │   ├── AbstractFileByteChannel.kt
│           │   │               │   │   ├── AbstractFileStore.kt
│           │   │               │   │   ├── AbstractPath.kt
│           │   │               │   │   ├── AbstractPathObservable.kt
│           │   │               │   │   ├── AbstractPosixFileAttributes.kt
│           │   │               │   │   ├── AbstractWatchKey.kt
│           │   │               │   │   ├── AbstractWatchService.kt
│           │   │               │   │   ├── AccessModes.kt
│           │   │               │   │   ├── AndroidFileTypeDetector.kt
│           │   │               │   │   ├── ByteBufferExtensions.kt
│           │   │               │   │   ├── ByteBufferInputStream.kt
│           │   │               │   │   ├── ByteString.kt
│           │   │               │   │   ├── ByteStringBuilder.kt
│           │   │               │   │   ├── ByteStringListPath.kt
│           │   │               │   │   ├── ByteStringListPathCreator.kt
│           │   │               │   │   ├── ByteStringPath.kt
│           │   │               │   │   ├── ChannelExtensions.kt
│           │   │               │   │   ├── CloseableIterator.kt
│           │   │               │   │   ├── ClosedDirectoryObserverException.kt
│           │   │               │   │   ├── ContentProviderFileAttributes.kt
│           │   │               │   │   ├── CopyOptions.kt
│           │   │               │   │   ├── CovariantPath.kt
│           │   │               │   │   ├── DelegateFileChannel.kt
│           │   │               │   │   ├── DelegateInputStream.kt
│           │   │               │   │   ├── DelegateOutputStream.kt
│           │   │               │   │   ├── DelegateSchemeFileSystemProvider.kt
│           │   │               │   │   ├── DelegateSeekableByteChannel.kt
│           │   │               │   │   ├── EncryptedFileAttributes.kt
│           │   │               │   │   ├── FileChannelExtensions.kt
│           │   │               │   │   ├── FileStoreNotFoundException.kt
│           │   │               │   │   ├── FileSystemCache.kt
│           │   │               │   │   ├── FileTimeExtensions.kt
│           │   │               │   │   ├── FileTimeParceler.kt
│           │   │               │   │   ├── ForceableChannel.kt
│           │   │               │   │   ├── ForeignCopyMove.kt
│           │   │               │   │   ├── FutureExtensions.kt
│           │   │               │   │   ├── InputStreamExtensions.kt
│           │   │               │   │   ├── InvalidFileNameException.kt
│           │   │               │   │   ├── IsDirectoryException.kt
│           │   │               │   │   ├── LinkOptions.kt
│           │   │               │   │   ├── LocalWatchKey.kt
│           │   │               │   │   ├── LocalWatchService.kt
│           │   │               │   │   ├── OpenOptions.kt
│           │   │               │   │   ├── ParcelFileDescriptorExtensions.kt
│           │   │               │   │   ├── ParcelableFileTime.kt
│           │   │               │   │   ├── ParcelablePosixFileMode.kt
│           │   │               │   │   ├── PathExtensions.kt
│           │   │               │   │   ├── PathIteratorDirectoryStream.kt
│           │   │               │   │   ├── PathListDirectoryStream.kt
│           │   │               │   │   ├── PathObservable.kt
│           │   │               │   │   ├── PathObservableProvider.kt
│           │   │               │   │   ├── PollingWatchKey.kt
│           │   │               │   │   ├── PollingWatchService.kt
│           │   │               │   │   ├── PosixFileAttributeView.kt
│           │   │               │   │   ├── PosixFileAttributes.kt
│           │   │               │   │   ├── PosixFileMode.kt
│           │   │               │   │   ├── PosixFileStore.kt
│           │   │               │   │   ├── PosixFileType.kt
│           │   │               │   │   ├── PosixGroup.kt
│           │   │               │   │   ├── PosixPrincipal.kt
│           │   │               │   │   ├── PosixUser.kt
│           │   │               │   │   ├── ProgressCopyOption.kt
│           │   │               │   │   ├── ReadOnlyFileSystemException.kt
│           │   │               │   │   ├── Searchable.kt
│           │   │               │   │   ├── UriAuthority.kt
│           │   │               │   │   ├── UriByteStringExtensions.kt
│           │   │               │   │   ├── UserActionRequiredException.kt
│           │   │               │   │   ├── WalkFileTreeSearchable.kt
│           │   │               │   │   └── WatchServicePathObservable.kt
│           │   │               │   ├── content/
│           │   │               │   │   ├── ContentFileAttributeView.kt
│           │   │               │   │   ├── ContentFileAttributes.kt
│           │   │               │   │   ├── ContentFileSystem.kt
│           │   │               │   │   ├── ContentFileSystemProvider.kt
│           │   │               │   │   ├── ContentPath.kt
│           │   │               │   │   ├── ContentPathObservable.kt
│           │   │               │   │   ├── OpenOptionsContentExtensions.kt
│           │   │               │   │   └── resolver/
│           │   │               │   │       ├── CursorExtensions.kt
│           │   │               │   │       ├── Resolver.kt
│           │   │               │   │       └── ResolverException.kt
│           │   │               │   ├── document/
│           │   │               │   │   ├── DocumentCopyMove.kt
│           │   │               │   │   ├── DocumentFileAttributeView.kt
│           │   │               │   │   ├── DocumentFileAttributes.kt
│           │   │               │   │   ├── DocumentFileSystem.kt
│           │   │               │   │   ├── DocumentFileSystemProvider.kt
│           │   │               │   │   ├── DocumentPath.kt
│           │   │               │   │   ├── DocumentPathObservable.kt
│           │   │               │   │   ├── FileAttributesExtensions.kt
│           │   │               │   │   ├── OpenOptionsDocumentExtensions.kt
│           │   │               │   │   ├── PathDocumentExtensions.kt
│           │   │               │   │   └── resolver/
│           │   │               │   │       ├── DocumentResolver.kt
│           │   │               │   │       └── ExternalStorageProviderHacks.kt
│           │   │               │   ├── ftp/
│           │   │               │   │   ├── FtpCopyMove.kt
│           │   │               │   │   ├── FtpFileAttributeView.kt
│           │   │               │   │   ├── FtpFileAttributes.kt
│           │   │               │   │   ├── FtpFileSystem.kt
│           │   │               │   │   ├── FtpFileSystemProvider.kt
│           │   │               │   │   ├── FtpPath.kt
│           │   │               │   │   ├── IOExceptionFtpExtensions.kt
│           │   │               │   │   ├── OpenOptionsFtpExtensions.kt
│           │   │               │   │   ├── PathFtpExtensions.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── FTPClientCompat.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       ├── Mode.kt
│           │   │               │   │       ├── NegativeReplyCodeException.kt
│           │   │               │   │       └── Protocol.kt
│           │   │               │   ├── linux/
│           │   │               │   │   ├── LinuxCopyMove.kt
│           │   │               │   │   ├── LinuxDirectoryStream.kt
│           │   │               │   │   ├── LinuxFileAttributeView.kt
│           │   │               │   │   ├── LinuxFileAttributes.kt
│           │   │               │   │   ├── LinuxFileKey.kt
│           │   │               │   │   ├── LinuxFileStore.kt
│           │   │               │   │   ├── LinuxFileSystem.kt
│           │   │               │   │   ├── LinuxFileSystemProvider.kt
│           │   │               │   │   ├── LinuxPath.kt
│           │   │               │   │   ├── LinuxUserPrincipalLookupService.kt
│           │   │               │   │   ├── LocalLinuxFileAttributeView.kt
│           │   │               │   │   ├── LocalLinuxFileStore.kt
│           │   │               │   │   ├── LocalLinuxFileSystem.kt
│           │   │               │   │   ├── LocalLinuxFileSystemProvider.kt
│           │   │               │   │   ├── LocalLinuxWatchKey.kt
│           │   │               │   │   ├── LocalLinuxWatchService.kt
│           │   │               │   │   ├── OpenOptionsLinuxExtensions.kt
│           │   │               │   │   ├── media/
│           │   │               │   │   │   └── MediaScanner.kt
│           │   │               │   │   └── syscall/
│           │   │               │   │       ├── Constants.kt
│           │   │               │   │       ├── Int32Ref.kt
│           │   │               │   │       ├── StructDirent.kt
│           │   │               │   │       ├── StructGroup.kt
│           │   │               │   │       ├── StructInotifyEvent.kt
│           │   │               │   │       ├── StructMntent.kt
│           │   │               │   │       ├── StructPasswd.kt
│           │   │               │   │       ├── StructStat.kt
│           │   │               │   │       ├── StructTimespec.kt
│           │   │               │   │       ├── Syscall.kt
│           │   │               │   │       └── SyscallException.kt
│           │   │               │   ├── remote/
│           │   │               │   │   ├── FilesAcceptAllFilter.kt
│           │   │               │   │   ├── IInterfaceExtensions.kt
│           │   │               │   │   ├── ParcelableCopyOptions.kt
│           │   │               │   │   ├── ParcelableDirectoryStream.kt
│           │   │               │   │   ├── ParcelableException.kt
│           │   │               │   │   ├── ParcelableFileAttributes.kt
│           │   │               │   │   ├── ParcelableObject.kt
│           │   │               │   │   ├── ParcelablePathListConsumer.kt
│           │   │               │   │   ├── ParcelableSerializable.kt
│           │   │               │   │   ├── RemoteFileService.kt
│           │   │               │   │   ├── RemoteFileServiceInterface.kt
│           │   │               │   │   ├── RemoteFileSystem.kt
│           │   │               │   │   ├── RemoteFileSystemException.kt
│           │   │               │   │   ├── RemoteFileSystemInterface.kt
│           │   │               │   │   ├── RemoteFileSystemProvider.kt
│           │   │               │   │   ├── RemoteFileSystemProviderInterface.kt
│           │   │               │   │   ├── RemoteInputStream.kt
│           │   │               │   │   ├── RemoteInterface.kt
│           │   │               │   │   ├── RemotePathObservable.kt
│           │   │               │   │   ├── RemotePosixFileAttributeView.kt
│           │   │               │   │   ├── RemotePosixFileAttributeViewInterface.kt
│           │   │               │   │   ├── RemotePosixFileStore.kt
│           │   │               │   │   ├── RemotePosixFileStoreInterface.kt
│           │   │               │   │   └── RemoteSeekableByteChannel.kt
│           │   │               │   ├── root/
│           │   │               │   │   ├── LibSuFileServiceLauncher.kt
│           │   │               │   │   ├── RootFileService.kt
│           │   │               │   │   ├── RootFileSystem.kt
│           │   │               │   │   ├── RootFileSystemProvider.kt
│           │   │               │   │   ├── RootPosixFileAttributeView.kt
│           │   │               │   │   ├── RootPosixFileStore.kt
│           │   │               │   │   ├── RootStrategy.kt
│           │   │               │   │   ├── RootableFileSystem.kt
│           │   │               │   │   ├── RootableFileSystemProvider.kt
│           │   │               │   │   ├── RootablePath.kt
│           │   │               │   │   ├── RootablePosixFileAttributeView.kt
│           │   │               │   │   ├── RootablePosixFileStore.kt
│           │   │               │   │   └── SuiFileServiceLauncher.kt
│           │   │               │   ├── sftp/
│           │   │               │   │   ├── OpenOptionsSftpExtensions.kt
│           │   │               │   │   ├── PathSftpExtensions.kt
│           │   │               │   │   ├── PosixFileModeSftpExtensions.kt
│           │   │               │   │   ├── SftpCopyMove.kt
│           │   │               │   │   ├── SftpFileAttributeView.kt
│           │   │               │   │   ├── SftpFileAttributes.kt
│           │   │               │   │   ├── SftpFileSystem.kt
│           │   │               │   │   ├── SftpFileSystemProvider.kt
│           │   │               │   │   ├── SftpPath.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authentication.kt
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── ClientException.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       └── SecurityProviderHelper.kt
│           │   │               │   ├── smb/
│           │   │               │   │   ├── OpenOptionsSmbExtensions.kt
│           │   │               │   │   ├── PathSmbExtensions.kt
│           │   │               │   │   ├── SmbCopyMove.kt
│           │   │               │   │   ├── SmbFileAttributeView.kt
│           │   │               │   │   ├── SmbFileAttributes.kt
│           │   │               │   │   ├── SmbFileKey.kt
│           │   │               │   │   ├── SmbFileSystem.kt
│           │   │               │   │   ├── SmbFileSystemProvider.kt
│           │   │               │   │   ├── SmbPath.kt
│           │   │               │   │   ├── SmbShareFileAttributes.kt
│           │   │               │   │   ├── SmbWatchKey.kt
│           │   │               │   │   ├── SmbWatchService.kt
│           │   │               │   │   └── client/
│           │   │               │   │       ├── Authenticator.kt
│           │   │               │   │       ├── Authority.kt
│           │   │               │   │       ├── Client.kt
│           │   │               │   │       ├── ClientException.kt
│           │   │               │   │       ├── DiskEntryExtensions.kt
│           │   │               │   │       ├── FileByteChannel.kt
│           │   │               │   │       ├── FileExtensions.kt
│           │   │               │   │       ├── NtStatuses.kt
│           │   │               │   │       ├── PathInformation.kt
│           │   │               │   │       └── ShareTypes.kt
│           │   │               │   └── webdav/
│           │   │               │       ├── DavExceptionExtensions.kt
│           │   │               │       ├── OpenOptionsWebDavExtensions.kt
│           │   │               │       ├── PathWebDavExtensions.kt
│           │   │               │       ├── WebDavCopyMove.kt
│           │   │               │       ├── WebDavFileAttributeView.kt
│           │   │               │       ├── WebDavFileAttributes.kt
│           │   │               │       ├── WebDavFileSystem.kt
│           │   │               │       ├── WebDavFileSystemProvider.kt
│           │   │               │       ├── WebDavPath.kt
│           │   │               │       └── client/
│           │   │               │           ├── Authentication.kt
│           │   │               │           ├── Authenticator.kt
│           │   │               │           ├── Authority.kt
│           │   │               │           ├── Client.kt
│           │   │               │           ├── DavIOException.kt
│           │   │               │           ├── DavResourceCompat.kt
│           │   │               │           ├── FileByteChannel.kt
│           │   │               │           ├── MemoryCookieJar.kt
│           │   │               │           ├── Protocol.kt
│           │   │               │           └── ResponseExtensions.kt
│           │   │               ├── settings/
│           │   │               │   ├── BookmarkDirectoriesPreference.kt
│           │   │               │   ├── BookmarkDirectoryListActivity.kt
│           │   │               │   ├── BookmarkDirectoryListAdapter.kt
│           │   │               │   ├── BookmarkDirectoryListFragment.kt
│           │   │               │   ├── CharsetPreference.kt
│           │   │               │   ├── DefaultDirectoryPreference.kt
│           │   │               │   ├── DefaultIfEmptyEditTextPreference.kt
│           │   │               │   ├── LocalePreference.kt
│           │   │               │   ├── NonNegativeIntegerPreference.kt
│           │   │               │   ├── PasswordPreference.kt
│           │   │               │   ├── PathPreference.kt
│           │   │               │   ├── PathSettings.kt
│           │   │               │   ├── RootStrategyPreference.kt
│           │   │               │   ├── SettingLiveData.kt
│           │   │               │   ├── SettingLiveDatas.kt
│           │   │               │   ├── Settings.kt
│           │   │               │   ├── SettingsActivity.kt
│           │   │               │   ├── SettingsFragment.kt
│           │   │               │   ├── SettingsPreferenceFragment.kt
│           │   │               │   ├── StandardDirectoriesPreference.kt
│           │   │               │   ├── StandardDirectoryListActivity.kt
│           │   │               │   ├── StandardDirectoryListFragment.kt
│           │   │               │   ├── StandardDirectoryListPreferenceFragment.kt
│           │   │               │   └── StoragesPreference.kt
│           │   │               ├── storage/
│           │   │               │   ├── AddDocumentTreeActivity.kt
│           │   │               │   ├── AddDocumentTreeFragment.kt
│           │   │               │   ├── AddExternalStorageShortcutActivity.kt
│           │   │               │   ├── AddExternalStorageShortcutFragment.kt
│           │   │               │   ├── AddLanSmbServerActivity.kt
│           │   │               │   ├── AddLanSmbServerFragment.kt
│           │   │               │   ├── AddLanSmbServerViewModel.kt
│           │   │               │   ├── AddStorageDialogActivity.kt
│           │   │               │   ├── AddStorageDialogFragment.kt
│           │   │               │   ├── DeviceStorage.kt
│           │   │               │   ├── DocumentTree.kt
│           │   │               │   ├── EditDeviceStorageDialogActivity.kt
│           │   │               │   ├── EditDeviceStorageDialogFragment.kt
│           │   │               │   ├── EditDocumentTreeDialogActivity.kt
│           │   │               │   ├── EditDocumentTreeDialogFragment.kt
│           │   │               │   ├── EditExternalStorageShortcutDialogActivity.kt
│           │   │               │   ├── EditExternalStorageShortcutDialogFragment.kt
│           │   │               │   ├── EditFtpServerActivity.kt
│           │   │               │   ├── EditFtpServerFragment.kt
│           │   │               │   ├── EditFtpServerViewModel.kt
│           │   │               │   ├── EditSftpServerActivity.kt
│           │   │               │   ├── EditSftpServerFragment.kt
│           │   │               │   ├── EditSftpServerViewModel.kt
│           │   │               │   ├── EditSmbServerActivity.kt
│           │   │               │   ├── EditSmbServerFragment.kt
│           │   │               │   ├── EditSmbServerViewModel.kt
│           │   │               │   ├── EditWebDavServerActivity.kt
│           │   │               │   ├── EditWebDavServerFragment.kt
│           │   │               │   ├── EditWebDavServerViewModel.kt
│           │   │               │   ├── ExternalStorageShortcut.kt
│           │   │               │   ├── FtpServer.kt
│           │   │               │   ├── FtpServerAuthenticator.kt
│           │   │               │   ├── LanSmbServer.kt
│           │   │               │   ├── LanSmbServerListAdapter.kt
│           │   │               │   ├── LanSmbServerListLiveData.kt
│           │   │               │   ├── SftpServer.kt
│           │   │               │   ├── SftpServerAuthenticator.kt
│           │   │               │   ├── SmbServer.kt
│           │   │               │   ├── SmbServerAuthenticator.kt
│           │   │               │   ├── Storage.kt
│           │   │               │   ├── StorageListActivity.kt
│           │   │               │   ├── StorageListAdapter.kt
│           │   │               │   ├── StorageListFragment.kt
│           │   │               │   ├── StorageVolumeListLiveData.kt
│           │   │               │   ├── Storages.kt
│           │   │               │   ├── URIExtensions.kt
│           │   │               │   ├── WebDavServer.kt
│           │   │               │   └── WebDavServerAuthenticator.kt
│           │   │               ├── terminal/
│           │   │               │   └── Terminal.kt
│           │   │               ├── theme/
│           │   │               │   ├── custom/
│           │   │               │   │   ├── CustomThemeHelper.kt
│           │   │               │   │   ├── ThemeColor.kt
│           │   │               │   │   └── ThemeColorPreference.kt
│           │   │               │   └── night/
│           │   │               │       ├── NightMode.kt
│           │   │               │       └── NightModeHelper.kt
│           │   │               ├── ui/
│           │   │               │   ├── AllowSoftInputHackAlertDialogCustomView.kt
│           │   │               │   ├── AnimatedListAdapter.kt
│           │   │               │   ├── AppBarLayoutExpandHackListener.kt
│           │   │               │   ├── AspectRatioFrameLayout.kt
│           │   │               │   ├── AspectRatioImageView.kt
│           │   │               │   ├── AutoGoneTextView.kt
│           │   │               │   ├── AutoMirrorDrawable.kt
│           │   │               │   ├── BottomBarLayout.kt
│           │   │               │   ├── CheckableForegroundLinearLayout.kt
│           │   │               │   ├── CheckableFrameLayout.kt
│           │   │               │   ├── CheckableItemBackground.kt
│           │   │               │   ├── CheckableView.kt
│           │   │               │   ├── CoordinatorAppBarLayout.kt
│           │   │               │   ├── CoordinatorScrollingFrameLayout.kt
│           │   │               │   ├── CoordinatorScrollingLinearLayout.kt
│           │   │               │   ├── CrossfadeSubtitleToolbar.kt
│           │   │               │   ├── DisabledAlphaImageView.kt
│           │   │               │   ├── DrawerLayoutOnBackPressedCallback.kt
│           │   │               │   ├── DropDownView.kt
│           │   │               │   ├── FitsSystemWindowsAppBarLayout.kt
│           │   │               │   ├── FixLayoutSearchView.kt
│           │   │               │   ├── FixQueryChangeSearchView.kt
│           │   │               │   ├── IgnoreFitsSystemWindowsFullyDraggableDrawerContentLayout.kt
│           │   │               │   ├── LicensesDialogExtensions.kt
│           │   │               │   ├── LicensesDialogFragment.kt
│           │   │               │   ├── ListAdapter.kt
│           │   │               │   ├── ListDiffer.kt
│           │   │               │   ├── MaterialListPreferenceDialogFragmentCompat.kt
│           │   │               │   ├── MaterialPreferenceDialogFragmentCompat.kt
│           │   │               │   ├── NavigationFrameLayout.kt
│           │   │               │   ├── OverlayToolbar.kt
│           │   │               │   ├── OverlayToolbarActionMode.kt
│           │   │               │   ├── PersistentBarLayout.kt
│           │   │               │   ├── PersistentBarLayoutToolbarActionMode.kt
│           │   │               │   ├── PersistentDrawerLayout.kt
│           │   │               │   ├── PreferenceFragmentCompat.kt
│           │   │               │   ├── ReadOnlyTextInputEditText.kt
│           │   │               │   ├── ReadOnlyTextInputLayout.kt
│           │   │               │   ├── SaveStateSubsamplingScaleImageView.kt
│           │   │               │   ├── ScrollingChildEditText.kt
│           │   │               │   ├── ScrollingViewOnApplyWindowInsetsListener.kt
│           │   │               │   ├── SimpleAdapter.kt
│           │   │               │   ├── SpeedDialViewOnBackPressedCallback.kt
│           │   │               │   ├── StaticAdapter.kt
│           │   │               │   ├── TabFragmentPagerAdapter.kt
│           │   │               │   ├── ThemedFastScroller.kt
│           │   │               │   ├── ThemedSpeedDialView.kt
│           │   │               │   ├── ToolbarActionMode.kt
│           │   │               │   ├── UnfilteredArrayAdapter.kt
│           │   │               │   ├── ViewPagerAdapter.kt
│           │   │               │   ├── ViewPagerTransformers.kt
│           │   │               │   └── WrapFirstPageContentViewPager.kt
│           │   │               ├── util/
│           │   │               │   ├── AbstractLocalCursor.kt
│           │   │               │   ├── ActionState.kt
│           │   │               │   ├── ActivityResultLauncherExtensions.kt
│           │   │               │   ├── AddressExtensions.kt
│           │   │               │   ├── AnimatorExtensions.kt
│           │   │               │   ├── AnyExtensions.kt
│           │   │               │   ├── AutoCloseableExtensions.kt
│           │   │               │   ├── Base64.kt
│           │   │               │   ├── BundleExtensions.kt
│           │   │               │   ├── ByteArrayExtensions.kt
│           │   │               │   ├── BytePathName.kt
│           │   │               │   ├── CancellationSignalExtensions.kt
│           │   │               │   ├── CharSequenceExtensions.kt
│           │   │               │   ├── ClickableArrowKeyMovementMethod.kt
│           │   │               │   ├── ClickableMovementMethod.kt
│           │   │               │   ├── ClipDataExtensions.kt
│           │   │               │   ├── ClipboardManagerExtensions.kt
│           │   │               │   ├── CloseableLiveData.kt
│           │   │               │   ├── CollectionExtensions.kt
│           │   │               │   ├── Color.kt
│           │   │               │   ├── ContextExtensions.kt
│           │   │               │   ├── DataState.kt
│           │   │               │   ├── DebouncedRunnable.kt
│           │   │               │   ├── DialogFragmentExtensions.kt
│           │   │               │   ├── DrawableExtensions.kt
│           │   │               │   ├── EditTextExtensions.kt
│           │   │               │   ├── EnvironmentExtensions.kt
│           │   │               │   ├── ForegroundNotificationManager.kt
│           │   │               │   ├── FragmentExtensions.kt
│           │   │               │   ├── FragmentViewModelLazy.kt
│           │   │               │   ├── GeocoderExtensions.kt
│           │   │               │   ├── InetAddressExtensions.kt
│           │   │               │   ├── IntExtensions.kt
│           │   │               │   ├── IntentExtensions.kt
│           │   │               │   ├── IntentPathExtensions.kt
│           │   │               │   ├── LateInitMutableStateFlow.kt
│           │   │               │   ├── LazyReflection.kt
│           │   │               │   ├── ListExtensions.kt
│           │   │               │   ├── LiveDataExtensions.kt
│           │   │               │   ├── LocaleListCompatExtensions.kt
│           │   │               │   ├── LongExtensions.kt
│           │   │               │   ├── MapSet.kt
│           │   │               │   ├── MediaMetadataRetrieverPathExtensions.kt
│           │   │               │   ├── NotificationTemplate.kt
│           │   │               │   ├── PackageManagerExtensions.kt
│           │   │               │   ├── PackageManagerPathExtensions.kt
│           │   │               │   ├── ParcelExtensions.kt
│           │   │               │   ├── ParcelSlicedList.kt
│           │   │               │   ├── ParcelableArgs.kt
│           │   │               │   ├── ParcelableState.kt
│           │   │               │   ├── Parcelers.kt
│           │   │               │   ├── PathName.kt
│           │   │               │   ├── RecyclerViewExtensions.kt
│           │   │               │   ├── RemoteCallback.kt
│           │   │               │   ├── RuntimeBroadcastReceiver.kt
│           │   │               │   ├── SelectionLiveData.kt
│           │   │               │   ├── SimpleActivityLifecycleCallbacks.kt
│           │   │               │   ├── StableUriParceler.kt
│           │   │               │   ├── Stateful.kt
│           │   │               │   ├── StatefulLiveData.kt
│           │   │               │   ├── StatusBarManagerExtensions.kt
│           │   │               │   ├── StorageVolumeExtensions.kt
│           │   │               │   ├── StrictModeExtensions.kt
│           │   │               │   ├── TextViewExtensions.kt
│           │   │               │   ├── ThrottledRunnable.kt
│           │   │               │   ├── ThrowableExtensions.kt
│           │   │               │   ├── TypedValueExtensions.kt
│           │   │               │   ├── UriExtensions.kt
│           │   │               │   ├── ViewExtensions.kt
│           │   │               │   └── WakeWifiLock.kt
│           │   │               └── viewer/
│           │   │                   ├── image/
│           │   │                   │   ├── ConfirmDeleteDialogFragment.kt
│           │   │                   │   ├── ImageViewerActivity.kt
│           │   │                   │   ├── ImageViewerAdapter.kt
│           │   │                   │   └── ImageViewerFragment.kt
│           │   │                   ├── saveas/
│           │   │                   │   └── SaveAsActivity.kt
│           │   │                   └── text/
│           │   │                       ├── ConfirmCloseDialogFragment.kt
│           │   │                       ├── ConfirmReloadDialogFragment.kt
│           │   │                       ├── TextEditorActivity.kt
│           │   │                       ├── TextEditorFragment.kt
│           │   │                       └── TextEditorViewModel.kt
│           │   └── net/
│           │       └── schmizz/
│           │           └── sshj/
│           │               └── sftp/
│           │                   └── RemoteFileAccessor.java
│           ├── jni/
│           │   ├── hiddenapi.c
│           │   └── syscall.c
│           └── res/
│               ├── anim/
│               │   └── list_item.xml
│               ├── color/
│               │   ├── m3_dark_default_color_secondary_text.xml
│               │   ├── m3_default_color_secondary_text.xml
│               │   ├── navigation_item_subtitle_text_color.xml
│               │   ├── navigation_item_subtitle_text_color_material3.xml
│               │   ├── storage_name.xml
│               │   ├── switch_thumb_tint_dark_material3.xml
│               │   ├── switch_thumb_tint_light_material3.xml
│               │   ├── switch_track_tint_dark_material3.xml
│               │   └── switch_track_tint_light_material3.xml
│               ├── color-v31/
│               │   ├── m3_dynamic_dark_default_color_secondary_text.xml
│               │   └── m3_dynamic_default_color_secondary_text.xml
│               ├── drawable/
│               │   ├── about_icon_white_24dp.xml
│               │   ├── add_icon_white_24dp.xml
│               │   ├── alarm_icon_white_24dp.xml
│               │   ├── arrow_end_icon_white_24dp.xml
│               │   ├── audio_icon_white_24dp.xml
│               │   ├── badge_background_18dp.xml
│               │   ├── breadcrumb_item_foreground.xml
│               │   ├── camera_icon_white_24dp.xml
│               │   ├── check_icon_control_normal_24dp.xml
│               │   ├── check_icon_on_primary_36dp.xml
│               │   ├── checkable_badge_18dp.xml
│               │   ├── checkable_badge_icon_18dp.xml
│               │   ├── close_icon_control_normal_24dp.xml
│               │   ├── close_icon_white_24dp.xml
│               │   ├── color_preference_widget_background.xml
│               │   ├── color_swatch_view_background.xml
│               │   ├── computer_icon_white_24dp.xml
│               │   ├── copy_icon_control_normal_24dp.xml
│               │   ├── cut_icon_control_normal_24dp.xml
│               │   ├── delete_icon_control_normal_24dp.xml
│               │   ├── device_icon_white_24dp.xml
│               │   ├── directory_icon_white_24dp.xml
│               │   ├── directory_shortcut_icon_foreground.xml
│               │   ├── document_icon_white_24dp.xml
│               │   ├── download_icon_white_24dp.xml
│               │   ├── downloads_shortcut_icon_foreground.xml
│               │   ├── drag_handle_icon_white_24dp.xml
│               │   ├── edit_icon.xml
│               │   ├── encrypted_badge_icon_18dp.xml
│               │   ├── error_badge_icon_18dp.xml
│               │   ├── error_icon_240dp.xml
│               │   ├── extract_icon_control_normal_24dp.xml
│               │   ├── file_apk_icon.xml
│               │   ├── file_archive_icon.xml
│               │   ├── file_audio_icon.xml
│               │   ├── file_calendar_icon.xml
│               │   ├── file_certificate_icon.xml
│               │   ├── file_code_icon.xml
│               │   ├── file_contact_icon.xml
│               │   ├── file_directory_icon.xml
│               │   ├── file_directory_thumbnail.xml
│               │   ├── file_document_icon.xml
│               │   ├── file_ebook_icon.xml
│               │   ├── file_email_icon.xml
│               │   ├── file_excel_icon.xml
│               │   ├── file_font_icon.xml
│               │   ├── file_generic_icon.xml
│               │   ├── file_icon_240dp.xml
│               │   ├── file_icon_white_24dp.xml
│               │   ├── file_image_icon.xml
│               │   ├── file_item_grid_foreground_material3.xml
│               │   ├── file_item_grid_thumbnail_outline.xml
│               │   ├── file_item_grid_thumbnail_outline_material3.xml
│               │   ├── file_pdf_icon.xml
│               │   ├── file_powerpoint_icon.xml
│               │   ├── file_presentation_icon.xml
│               │   ├── file_shortcut_icon_foreground.xml
│               │   ├── file_spreadsheet_icon.xml
│               │   ├── file_text_icon.xml
│               │   ├── file_video_icon.xml
│               │   ├── file_word_icon.xml
│               │   ├── filter_icon_control_normal_24dp.xml
│               │   ├── ftp_server_shortcut_icon_foreground.xml
│               │   ├── github_icon_white_24dp.xml
│               │   ├── image_icon_white_24dp.xml
│               │   ├── information_icon_white_24dp.xml
│               │   ├── launcher_icon_monochrome.xml
│               │   ├── lock_icon_white_24dp.xml
│               │   ├── m3_popupmenu_background_overlay.xml
│               │   ├── menu_icon_control_normal_24dp.xml
│               │   ├── more_vertical_icon_white_24dp.xml
│               │   ├── mtrl_popupmenu_background.xml
│               │   ├── mtrl_popupmenu_background_overlay.xml
│               │   ├── notification_icon.xml
│               │   ├── notification_icon_white_24dp.xml
│               │   ├── open_as_icon.xml
│               │   ├── paste_icon_control_normal_24dp.xml
│               │   ├── people_icon_control_normal_24dp.xml
│               │   ├── person_icon_control_normal_24dp.xml
│               │   ├── person_icon_white_24dp.xml
│               │   ├── podcast_icon_white_24dp.xml
│               │   ├── qq_icon_white_24dp.xml
│               │   ├── reset_icon_white_24dp.xml
│               │   ├── ringtone_icon_white_24dp.xml
│               │   ├── save_icon_control_normal_24dp.xml
│               │   ├── sd_card_icon_white_24dp.xml
│               │   ├── search_icon_control_normal_24dp.xml
│               │   ├── selectable_item_background_oval.xml
│               │   ├── settings_icon_white_24dp.xml
│               │   ├── shared_directory_icon_white_24dp.xml
│               │   ├── sort_icon_control_normal_24dp.xml
│               │   ├── stop_icon_white_24dp.xml
│               │   ├── symbolic_link_badge_icon_18dp.xml
│               │   ├── text_file_icon_white_24dp.xml
│               │   ├── tim_icon_white_24dp.xml
│               │   ├── transparent_divider_vertical_16dp.xml
│               │   ├── twitter_icon_white_24dp.xml
│               │   ├── video_icon_white_24dp.xml
│               │   └── wechat_icon_white_24dp.xml
│               ├── drawable-desk/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-sw600dp/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-television/
│               │   └── device_icon_white_24dp.xml
│               ├── drawable-v23/
│               │   ├── breadcrumb_item_foreground.xml
│               │   ├── m3_popupmenu_background_overlay.xml
│               │   └── mtrl_popupmenu_background_overlay.xml
│               ├── layout/
│               │   ├── about_fragment.xml
│               │   ├── add_lan_smb_server_fragment.xml
│               │   ├── archive_password_dialog.xml
│               │   ├── bookmark_directory_item.xml
│               │   ├── bookmark_directory_list_fragment.xml
│               │   ├── breadcrumb_item.xml
│               │   ├── color_picker_dialog.xml
│               │   ├── color_preference_widget.xml
│               │   ├── create_archive_dialog.xml
│               │   ├── dropdown_item.xml
│               │   ├── edit_bookmark_directory_dialog.xml
│               │   ├── edit_device_storage_dialog.xml
│               │   ├── edit_document_tree_dialog.xml
│               │   ├── edit_external_storage_shortcut_dialog.xml
│               │   ├── edit_ftp_server_fragment.xml
│               │   ├── edit_sftp_server_fragment.xml
│               │   ├── edit_smb_server_fragment.xml
│               │   ├── edit_webdav_server_fragment.xml
│               │   ├── file_item_grid.xml
│               │   ├── file_item_list.xml
│               │   ├── file_job_conflict_dialog_view.xml
│               │   ├── file_job_error_dialog_view.xml
│               │   ├── file_list_fragment.xml
│               │   ├── file_list_fragment_app_bar_include.xml
│               │   ├── file_list_fragment_bottom_bar_include.xml
│               │   ├── file_list_fragment_content_include.xml
│               │   ├── file_list_fragment_include.xml
│               │   ├── file_list_fragment_speed_dial_include.xml
│               │   ├── file_properties_checksum_compare_item.xml
│               │   ├── file_properties_dialog.xml
│               │   ├── file_properties_tab_fragment.xml
│               │   ├── file_properties_tab_item.xml
│               │   ├── ftp_server_fragment.xml
│               │   ├── image_viewer_fragment.xml
│               │   ├── image_viewer_item.xml
│               │   ├── lan_smb_server_add_item.xml
│               │   ├── lan_smb_server_item.xml
│               │   ├── lan_smb_server_loading_item.xml
│               │   ├── mode_bit_item.xml
│               │   ├── name_dialog.xml
│               │   ├── name_dialog_name_include.xml
│               │   ├── navigation_divider_item.xml
│               │   ├── navigation_fragment.xml
│               │   ├── navigation_item.xml
│               │   ├── permission_item.xml
│               │   ├── permission_list_dialog.xml
│               │   ├── principal_item.xml
│               │   ├── set_mode_dialog.xml
│               │   ├── set_principal_dialog.xml
│               │   ├── set_selinux_context_dialog.xml
│               │   ├── settings_fragment.xml
│               │   ├── standard_directory_list_fragment.xml
│               │   ├── storage_item.xml
│               │   ├── storage_list_fragment.xml
│               │   ├── switch_preference_compat_widget.xml
│               │   ├── switch_preference_compat_widget_material3.xml
│               │   └── text_editor_fragment.xml
│               ├── layout-sw600dp-land/
│               │   └── file_list_fragment_include.xml
│               ├── menu/
│               │   ├── file_item.xml
│               │   ├── file_list.xml
│               │   ├── file_list_breadcrumb.xml
│               │   ├── file_list_paste.xml
│               │   ├── file_list_pick.xml
│               │   ├── file_list_pick_bottom.xml
│               │   ├── file_list_select.xml
│               │   ├── file_list_speed_dial.xml
│               │   ├── image_viewer.xml
│               │   └── text_editor.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── directory_shortcut_icon.xml
│               │   ├── downloads_shortcut_icon.xml
│               │   ├── file_shortcut_icon.xml
│               │   ├── ftp_server_shortcut_icon.xml
│               │   └── launcher_icon.xml
│               ├── raw/
│               │   ├── keep.xml
│               │   └── licenses.xml
│               ├── resources.properties
│               ├── values/
│               │   ├── attrs.xml
│               │   ├── colors.xml
│               │   ├── colors_custom.xml
│               │   ├── colors_google.xml
│               │   ├── colors_google_material3.xml
│               │   ├── colors_material.xml
│               │   ├── colors_material3.xml
│               │   ├── dimens.xml
│               │   ├── dimens_material3.xml
│               │   ├── donottranslate_prefs.xml
│               │   ├── integers.xml
│               │   ├── mime_types.xml
│               │   ├── strings.xml
│               │   ├── styles.xml
│               │   ├── styles_material3.xml
│               │   ├── themes.xml
│               │   ├── themes_custom.xml
│               │   └── themes_material3.xml
│               ├── values-ar/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-bg/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ca/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-cs/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-de/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-el/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-es/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-eu/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fa/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fi/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-fr/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-hu/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-in/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-is/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-it/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-iw/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ja/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ko/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-lt/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-nb/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-night/
│               │   ├── colors.xml
│               │   ├── colors_custom.xml
│               │   ├── colors_material3.xml
│               │   ├── themes_custom.xml
│               │   └── themes_material3.xml
│               ├── values-night-v29/
│               │   └── colors.xml
│               ├── values-nl/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pl/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pt-rBR/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-pt-rPT/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ro/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-ru/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-sw360dp-v13/
│               │   └── values_preference.xml
│               ├── values-sw600dp/
│               │   ├── dimens.xml
│               │   ├── dimens_material3.xml
│               │   └── integers.xml
│               ├── values-tr/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-uk/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-v23/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v24/
│               │   └── integers.xml
│               ├── values-v27/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v28/
│               │   └── donottranslate_prefs.xml
│               ├── values-v29/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v30/
│               │   ├── themes.xml
│               │   └── themes_material3.xml
│               ├── values-v31/
│               │   └── donottranslate_prefs.xml
│               ├── values-v33/
│               │   └── donottranslate_prefs.xml
│               ├── values-vi/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-zh-rCN/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               ├── values-zh-rTW/
│               │   ├── mime_types.xml
│               │   └── strings.xml
│               └── xml/
│                   ├── ftp_server.xml
│                   ├── netework_security_config.xml
│                   ├── settings.xml
│                   └── shortcuts.xml
├── art/
│   ├── deploy-png.sh
│   └── generate-png.sh
├── build.gradle
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── en-US/
│           │   ├── changelogs/
│           │   │   ├── 12.txt
│           │   │   ├── 14.txt
│           │   │   ├── 15.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 18.txt
│           │   │   ├── 19.txt
│           │   │   ├── 20.txt
│           │   │   ├── 21.txt
│           │   │   ├── 22.txt
│           │   │   ├── 23.txt
│           │   │   ├── 25.txt
│           │   │   ├── 26.txt
│           │   │   ├── 27.txt
│           │   │   ├── 28.txt
│           │   │   ├── 29.txt
│           │   │   ├── 30.txt
│           │   │   ├── 31.txt
│           │   │   ├── 32.txt
│           │   │   ├── 33.txt
│           │   │   ├── 34.txt
│           │   │   ├── 35.txt
│           │   │   ├── 36.txt
│           │   │   ├── 37.txt
│           │   │   ├── 38.txt
│           │   │   └── 39.txt
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           └── zh-CN/
│               ├── changelogs/
│               │   ├── 12.txt
│               │   ├── 14.txt
│               │   ├── 15.txt
│               │   ├── 16.txt
│               │   ├── 17.txt
│               │   ├── 18.txt
│               │   ├── 19.txt
│               │   ├── 20.txt
│               │   ├── 21.txt
│               │   ├── 22.txt
│               │   ├── 23.txt
│               │   ├── 25.txt
│               │   ├── 26.txt
│               │   ├── 27.txt
│               │   ├── 28.txt
│               │   ├── 29.txt
│               │   ├── 30.txt
│               │   ├── 31.txt
│               │   ├── 32.txt
│               │   ├── 33.txt
│               │   ├── 34.txt
│               │   ├── 35.txt
│               │   ├── 36.txt
│               │   ├── 37.txt
│               │   ├── 38.txt
│               │   └── 39.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── mime/
│   ├── MimeTypeMapCompat.kt
│   ├── android.extensions
│   ├── generate-code.sh
│   └── generate-extensions.sh
├── settings.gradle
├── signing.gradle
├── signing.properties.example
└── utils/
    ├── generate-custom-themes.sh
    └── import-translations.sh
Download .txt
SYMBOL INDEX (141 symbols across 11 files)

FILE: app/src/main/java/androidx/appcompat/app/AppCompatDelegateCompat.java
  class AppCompatDelegateCompat (line 13) | public class AppCompatDelegateCompat {
    method AppCompatDelegateCompat (line 14) | private AppCompatDelegateCompat() {}
    method mapNightMode (line 16) | @SuppressLint("RestrictedApi")

FILE: app/src/main/java/androidx/appcompat/widget/FixPaddingListPopupWindow.java
  class FixPaddingListPopupWindow (line 16) | public class FixPaddingListPopupWindow extends ListPopupWindow {
    method FixPaddingListPopupWindow (line 17) | public FixPaddingListPopupWindow(@NonNull Context context) {
    method FixPaddingListPopupWindow (line 21) | public FixPaddingListPopupWindow(@NonNull Context context, @Nullable A...
    method FixPaddingListPopupWindow (line 25) | public FixPaddingListPopupWindow(@NonNull Context context, @Nullable A...
    method FixPaddingListPopupWindow (line 30) | public FixPaddingListPopupWindow(@NonNull Context context, @Nullable A...
    method createDropDownListView (line 35) | @NonNull
    class FixPaddingDropDownListView (line 41) | private static class FixPaddingDropDownListView extends DropDownListVi...
      method FixPaddingDropDownListView (line 42) | public FixPaddingDropDownListView(Context context, boolean hijackFoc...
      method measureHeightOfChildrenCompat (line 50) | @Override

FILE: app/src/main/java/androidx/swiperefreshlayout/widget/ThemedSwipeRefreshLayout.java
  class ThemedSwipeRefreshLayout (line 21) | public class ThemedSwipeRefreshLayout extends SwipeRefreshLayout {
    method ThemedSwipeRefreshLayout (line 22) | public ThemedSwipeRefreshLayout(@NonNull Context context) {
    method ThemedSwipeRefreshLayout (line 28) | public ThemedSwipeRefreshLayout(@NonNull Context context, @Nullable At...
    method init (line 34) | private void init() {
    method onMeasure (line 54) | @Override
    method getChildView (line 66) | @Nullable

FILE: app/src/main/java/at/bitfire/dav4jvm/DavResourceAccessor.java
  class DavResourceAccessor (line 16) | public class DavResourceAccessor {
    method DavResourceAccessor (line 17) | private DavResourceAccessor() {}
    method checkStatus (line 19) | public static void checkStatus(@NonNull DavResource davResource, @NonN...
    method followRedirects (line 24) | public static Response followRedirects(@NonNull DavResource davResource,

FILE: app/src/main/java/com/google/android/material/appbar/OnWindowInsetChangedAppBarLayout.java
  class OnWindowInsetChangedAppBarLayout (line 16) | public class OnWindowInsetChangedAppBarLayout extends AppBarLayout {
    method OnWindowInsetChangedAppBarLayout (line 17) | public OnWindowInsetChangedAppBarLayout(@NonNull Context context) {
    method OnWindowInsetChangedAppBarLayout (line 21) | public OnWindowInsetChangedAppBarLayout(@NonNull Context context,
    method OnWindowInsetChangedAppBarLayout (line 26) | public OnWindowInsetChangedAppBarLayout(@NonNull Context context, @Nul...
    method onWindowInsetChanged (line 31) | @Override

FILE: app/src/main/java/com/google/android/material/shape/MaterialShapeDrawableAccessor.java
  class MaterialShapeDrawableAccessor (line 15) | public class MaterialShapeDrawableAccessor {
    method MaterialShapeDrawableAccessor (line 16) | private MaterialShapeDrawableAccessor() {}
    method getElevationOverlayProvider (line 18) | @SuppressLint("RestrictedApi")
    method setElevationOverlayProvider (line 26) | @SuppressLint("RestrictedApi")
    method updateZ (line 35) | public static void updateZ(@NonNull MaterialShapeDrawable drawable) {

FILE: app/src/main/java/com/hierynomus/smbj/share/FileAccessor.java
  class FileAccessor (line 15) | public class FileAccessor {
    method FileAccessor (line 16) | private FileAccessor() {}
    method readAsync (line 21) | @NonNull

FILE: app/src/main/java/com/hierynomus/smbj/share/ShareAccessor.java
  class ShareAccessor (line 17) | public class ShareAccessor {
    method ShareAccessor (line 18) | private ShareAccessor() {}
    method ioctl (line 25) | @NonNull

FILE: app/src/main/java/net/schmizz/sshj/sftp/RemoteFileAccessor.java
  class RemoteFileAccessor (line 14) | public class RemoteFileAccessor {
    method RemoteFileAccessor (line 15) | private RemoteFileAccessor() {}
    method asyncRead (line 17) | @NonNull
    method getRequester (line 23) | @NonNull

FILE: app/src/main/jni/hiddenapi.c
  function JNIEXPORT (line 8) | JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) {

FILE: app/src/main/jni/syscall.c
  function jclass (line 77) | static jclass findClass(JNIEnv *env, const char *name) {
  function jfieldID (line 92) | static jfieldID findField(JNIEnv *env, jclass clazz, const char *name, c...
  function jmethodID (line 101) | static jmethodID findMethod(JNIEnv *env, jclass clazz, const char *name,...
  function jclass (line 110) | static jclass getSyscallExceptionClass(JNIEnv *env) {
  function jclass (line 119) | static jclass getByteStringClass(JNIEnv *env) {
  function jfieldID (line 127) | static jfieldID getByteStringBytesField(JNIEnv *env) {
  function jclass (line 135) | static jclass getFileDescriptorClass(JNIEnv *env) {
  function jfieldID (line 143) | static jfieldID getFileDescriptorDescriptorField(JNIEnv *env) {
  function jclass (line 152) | static jclass getInt32RefClass(JNIEnv *env) {
  function jfieldID (line 160) | static jfieldID getInt32RefValueField(JNIEnv *env) {
  function jclass (line 168) | static jclass getInt64RefClass(JNIEnv *env) {
  function jfieldID (line 176) | static jfieldID getInt64RefValueField(JNIEnv *env) {
  function jclass (line 184) | static jclass getStructDirentClass(JNIEnv *env) {
  function jclass (line 193) | static jclass getStructGroupClass(JNIEnv *env) {
  function jclass (line 202) | static jclass getStructInotifyEventClass(JNIEnv *env) {
  function jclass (line 211) | static jclass getStructMntentClass(JNIEnv *env) {
  function jfieldID (line 220) | static jfieldID getStructMntentMntOptsField(JNIEnv *env) {
  function jclass (line 229) | static jclass getStructPasswdClass(JNIEnv *env) {
  function jclass (line 238) | static jclass getStructStatClass(JNIEnv *env) {
  function jclass (line 247) | static jclass getStructStatVfsClass(JNIEnv *env) {
  function jclass (line 255) | static jclass getStructTimespecClass(JNIEnv *env) {
  function jfieldID (line 264) | static jfieldID getStructTimespecTvSecField(JNIEnv *env) {
  function jfieldID (line 272) | static jfieldID getStructTimespecTvNsecField(JNIEnv *env) {
  function throwException (line 280) | static void throwException(JNIEnv *env, jclass exceptionClass, jmethodID...
  function throwSyscallException (line 306) | static void throwSyscallException(JNIEnv* env, const char* functionName) {
  function jobject (line 336) | static jobject newByteString(JNIEnv *env, const void *bytes, size_t leng...
  function jobject (line 353) | static jobject newByteStringFromString(JNIEnv *env, const char *string) {
  function getFdFromFileDescriptor (line 357) | static int getFdFromFileDescriptor(JNIEnv *env, jobject javaFileDescript...
  function jobject (line 361) | static jobject newFileDescriptor(JNIEnv *env, int fd) {
  function JNICALL (line 374) | JNICALL
  function JNICALL (line 389) | JNICALL
  function JNICALL (line 401) | JNICALL
  function JNICALL (line 414) | JNICALL
  function JNICALL (line 424) | JNICALL
  function setgrent (line 441) | void setgrent() {
  type group (line 445) | struct group
  type group (line 447) | struct group
  function endgrent (line 457) | void endgrent() {
  function JNICALL (line 463) | JNICALL
  function setpwent (line 475) | void setpwent() {
  type passwd (line 479) | struct passwd
  type passwd (line 481) | struct passwd
  function endpwent (line 491) | void endpwent() {
  function JNICALL (line 497) | JNICALL
  function JNICALL (line 505) | JNICALL
  function JNICALL (line 511) | JNICALL
  function JNICALL (line 525) | JNICALL
  function jobject (line 538) | static jobject newStructGroup(JNIEnv *env, const struct group *group) {
  function JNICALL (line 592) | JNICALL
  function JNICALL (line 620) | JNICALL
  function JNICALL (line 657) | JNICALL
  type mntent (line 698) | struct mntent
  type mntent (line 698) | struct mntent
  function jobject (line 722) | static jobject newStructMntent(JNIEnv *env, const struct mntent *mntent) {
  function JNICALL (line 753) | JNICALL
  function jobject (line 777) | static jobject newStructPasswd(JNIEnv *env, const struct passwd *passwd) {
  function JNICALL (line 832) | JNICALL
  function JNICALL (line 855) | JNICALL
  function JNICALL (line 880) | JNICALL
  type mntent (line 910) | struct mntent
  function JNICALL (line 928) | JNICALL
  function JNICALL (line 945) | JNICALL
  function JNICALL (line 960) | JNICALL
  function jobject (line 972) | static jobject newStructInotifyEvent(JNIEnv *env, const struct inotify_e...
  function JNICALL (line 995) | JNICALL
  function JNICALL (line 1033) | JNICALL
  function JNICALL (line 1044) | JNICALL
  function JNICALL (line 1066) | JNICALL
  function JNICALL (line 1079) | JNICALL
  function JNICALL (line 1118) | JNICALL
  function JNICALL (line 1131) | JNICALL
  function JNICALL (line 1190) | JNICALL
  function jobject (line 1208) | static jobject newStructTimespec(JNIEnv *env, const struct timespec *tim...
  function jobject (line 1218) | static jobject newStructStat(JNIEnv *env, const struct stat64 *stat) {
  function jobject (line 1253) | static jobject doStat(JNIEnv *env, jobject javaPath, bool isLstat) {
  function JNICALL (line 1265) | JNICALL
  function readStructTimespec (line 1271) | static void readStructTimespec(JNIEnv *env, jobject javaTime, struct tim...
  function JNICALL (line 1276) | JNICALL
  function JNICALL (line 1295) | JNICALL
  function JNICALL (line 1301) | JNICALL
  function JNICALL (line 1313) | JNICALL
  function JNICALL (line 1347) | JNICALL
  function JNICALL (line 1362) | JNICALL
  function jobject (line 1375) | static jobject newStructDirent(JNIEnv *env, const struct dirent64 *diren...
  function JNICALL (line 1393) | JNICALL
  function JNICALL (line 1408) | JNICALL
  function JNICALL (line 1436) | JNICALL
  function JNICALL (line 1450) | JNICALL
  function JNICALL (line 1463) | JNICALL
  function JNICALL (line 1476) | JNICALL
  function JNICALL (line 1500) | JNICALL
  function JNICALL (line 1508) | JNICALL
  function JNICALL (line 1523) | JNICALL
  function JNICALL (line 1531) | JNICALL
  function jobject (line 1537) | static jobject newStructStatVfs(JNIEnv *env, const struct statvfs64 *sta...
  function JNICALL (line 1558) | JNICALL
  function JNICALL (line 1572) | JNICALL
  function JNICALL (line 1585) | JNICALL
Condensed preview — 1106 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,624K chars).
[
  {
    "path": ".github/pull_request_template.md",
    "chars": 502,
    "preview": "First of all, thank you for your interest in help improving this project! However, I normally won't accept PRs for this "
  },
  {
    "path": ".github/workflows/android.yml",
    "chars": 590,
    "preview": "name: Android CI\n\non: [push]\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Check out repository\n  "
  },
  {
    "path": ".gitignore",
    "chars": 114,
    "preview": "/.gradle/\n/.idea/\n/.kotlin/\n/build/\n/captures/\n/local.properties\n/signing.jks\n/signing.properties\n.DS_Store\n*.iml\n"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "PRIVACY.md",
    "chars": 4953,
    "preview": "# Privacy Policy\n\nHai Zhang built the Material Files app as an Open Source app. This SERVICE is provided by Hai Zhang at"
  },
  {
    "path": "README.md",
    "chars": 8238,
    "preview": "# Material Files\n\n[本文中文版](README_zh-CN.md)\n\n[![Android CI status](https://github.com/zhanghai/MaterialFiles/workflows/An"
  },
  {
    "path": "README_zh-CN.md",
    "chars": 5468,
    "preview": "# Material Files\n\n[![Android CI 状态](https://github.com/zhanghai/MaterialFiles/workflows/Android%20CI/badge.svg)](https:/"
  },
  {
    "path": "SECURITY.md",
    "chars": 231,
    "preview": "# Security Policy\n\n## Supported Versions\n\nOnly the latest version of this app is currently being supported with security"
  },
  {
    "path": "app/.gitignore",
    "chars": 44,
    "preview": "/.cxx/\n/.externalNativeBuild/\n/build/\n/out/\n"
  },
  {
    "path": "app/CMakeLists.txt",
    "chars": 444,
    "preview": "cmake_minimum_required(VERSION 3.6)\n\nproject(MaterialFiles C)\n\nadd_library(hiddenapi SHARED\n        src/main/jni/hiddena"
  },
  {
    "path": "app/build.gradle",
    "chars": 9069,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\napply plugin: 'com.andro"
  },
  {
    "path": "app/google-services.json",
    "chars": 1080,
    "preview": "{\n  \"project_info\": {\n    \"project_number\": \"728501351509\",\n    \"firebase_url\": \"https://zhanghai-materialfiles.firebase"
  },
  {
    "path": "app/proguard-rules.pro",
    "chars": 1901,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "chars": 19486,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<!--\n  ~ Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n  ~ All Ri"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/common/ParcelableFileTime.aidl",
    "chars": 83,
    "preview": "package me.zhanghai.android.files.provider.common;\n\nparcelable ParcelableFileTime;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/common/ParcelablePosixFileMode.aidl",
    "chars": 88,
    "preview": "package me.zhanghai.android.files.provider.common;\n\nparcelable ParcelablePosixFileMode;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/common/PosixGroup.aidl",
    "chars": 75,
    "preview": "package me.zhanghai.android.files.provider.common;\n\nparcelable PosixGroup;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/common/PosixUser.aidl",
    "chars": 74,
    "preview": "package me.zhanghai.android.files.provider.common;\n\nparcelable PosixUser;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl",
    "chars": 835,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.IRemoteFileSystem;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileSystem.aidl",
    "chars": 206,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableException"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileSystemProvider.aidl",
    "chars": 3512,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableCopyOptio"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteInputStream.aidl",
    "chars": 444,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableException"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePathObservable.aidl",
    "chars": 315,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableException"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePosixFileAttributeView.aidl",
    "chars": 1174,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.common.ParcelableFileTime;"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemotePosixFileStore.aidl",
    "chars": 421,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableException"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteSeekableByteChannel.aidl",
    "chars": 674,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nimport me.zhanghai.android.files.provider.remote.ParcelableException"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableCopyOptions.aidl",
    "chars": 86,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableCopyOptions;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableDirectoryStream.aidl",
    "chars": 90,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableDirectoryStream;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableException.aidl",
    "chars": 84,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableException;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableFileAttributes.aidl",
    "chars": 89,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableFileAttributes;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableObject.aidl",
    "chars": 81,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableObject;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelablePathListConsumer.aidl",
    "chars": 91,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelablePathListConsumer;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/ParcelableSerializable.aidl",
    "chars": 87,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable ParcelableSerializable;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemoteInputStream.aidl",
    "chars": 82,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable RemoteInputStream;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemotePathObservable.aidl",
    "chars": 85,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable RemotePathObservable;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/provider/remote/RemoteSeekableByteChannel.aidl",
    "chars": 90,
    "preview": "package me.zhanghai.android.files.provider.remote;\n\nparcelable RemoteSeekableByteChannel;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/util/IRemoteCallback.aidl",
    "chars": 137,
    "preview": "package me.zhanghai.android.files.util;\n\nimport android.os.Bundle;\n\ninterface IRemoteCallback {\n    void sendResult(in B"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/util/ParcelSlicedList.aidl",
    "chars": 70,
    "preview": "package me.zhanghai.android.files.util;\n\nparcelable ParcelSlicedList;\n"
  },
  {
    "path": "app/src/main/aidl/me/zhanghai/android/files/util/RemoteCallback.aidl",
    "chars": 68,
    "preview": "package me.zhanghai.android.files.util;\n\nparcelable RemoteCallback;\n"
  },
  {
    "path": "app/src/main/java/androidx/appcompat/app/AppCompatDelegateCompat.java",
    "chars": 587,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage androidx.appcomp"
  },
  {
    "path": "app/src/main/java/androidx/appcompat/widget/FixPaddingListPopupWindow.java",
    "chars": 2421,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage androidx.appcomp"
  },
  {
    "path": "app/src/main/java/androidx/swiperefreshlayout/widget/ThemedSwipeRefreshLayout.java",
    "chars": 2718,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage androidx.swipere"
  },
  {
    "path": "app/src/main/java/at/bitfire/dav4jvm/DavResourceAccessor.java",
    "chars": 848,
    "preview": "/*\n * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage at.bitfire.dav4j"
  },
  {
    "path": "app/src/main/java/com/google/android/material/appbar/OnWindowInsetChangedAppBarLayout.java",
    "chars": 1107,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage com.google.andro"
  },
  {
    "path": "app/src/main/java/com/google/android/material/shape/MaterialShapeDrawableAccessor.java",
    "chars": 1590,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage com.google.andro"
  },
  {
    "path": "app/src/main/java/com/hierynomus/smbj/share/FileAccessor.java",
    "chars": 638,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage com.hierynomus.s"
  },
  {
    "path": "app/src/main/java/com/hierynomus/smbj/share/ShareAccessor.java",
    "chars": 1361,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage com.hierynomus.s"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/about/AboutActivity.kt",
    "chars": 676,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/about/AboutFragment.kt",
    "chars": 2603,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/AppActivity.kt",
    "chars": 1023,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/AppInitializers.kt",
    "chars": 3691,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/AppProvider.kt",
    "chars": 1357,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/AppUpgrader.kt",
    "chars": 1910,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/AppUpgraders.kt",
    "chars": 28456,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/BackgroundActivityStarter.kt",
    "chars": 2944,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/NotificationIds.kt",
    "chars": 191,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/app/SystemServices.kt",
    "chars": 1893,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/AppIconApplicationInfoFetcherFactory.kt",
    "chars": 1057,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/AppIconFetcher.kt",
    "chars": 1596,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/AppIconPackageNameFetcherFactory.kt",
    "chars": 1516,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/CoilExtensions.kt",
    "chars": 434,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/CoilInitializer.kt",
    "chars": 1161,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/CoilUtils.kt",
    "chars": 1176,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/LoadRequestBuilderExtensions.kt",
    "chars": 579,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/PathAttributesFetcher.kt",
    "chars": 8852,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/PdfPageFetcher.kt",
    "chars": 4096,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/coil/VideoFrameFetcher.kt",
    "chars": 6646,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/colorpicker/BaseColorPreference.kt",
    "chars": 2090,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/colorpicker/ColorPaletteAdapter.kt",
    "chars": 1054,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/colorpicker/ColorPreferenceDialogFragment.kt",
    "chars": 3709,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/colorpicker/ColorSwatchView.kt",
    "chars": 1785,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ActivityCompat.kt",
    "chars": 890,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ApplicationInfoCompat.kt",
    "chars": 820,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ContextCompat.kt",
    "chars": 2776,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/DialogCompat.kt",
    "chars": 402,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/DigitsKeyListenerCompat.kt",
    "chars": 606,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/DocumentsContractCompat.kt",
    "chars": 2429,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/DrawableCompat.kt",
    "chars": 533,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/EnvironmentCompat2.kt",
    "chars": 293,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ErrnoExceptionCompat.kt",
    "chars": 510,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/FrameLayoutCompat.kt",
    "chars": 590,
    "preview": "/*\n * Copyright (c) 2025 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/InputStreamCompat.kt",
    "chars": 1154,
    "preview": "/*\n * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/IntentCompat.kt",
    "chars": 427,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/KotlinCompat.kt",
    "chars": 517,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ListFormatterCompat.kt",
    "chars": 772,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/LocaleConfigCompat.kt",
    "chars": 7752,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/MediaMetadataRetrieverCompat.kt",
    "chars": 1747,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/MenuCompat.kt",
    "chars": 338,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/MimeTypeMapCompat.kt",
    "chars": 65694,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/NioUtilsCompat.kt",
    "chars": 1818,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/PackageInfoCompat.kt",
    "chars": 326,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/PackageManagerCompat.kt",
    "chars": 1809,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ParcelCompat.kt",
    "chars": 1771,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/PermissionInfoCompat.kt",
    "chars": 327,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/PreferenceManagerCompat.kt",
    "chars": 398,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ProxyFileDescriptorCallbackCompat.kt",
    "chars": 1964,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ResourcesCompat.kt",
    "chars": 346,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/RotateDrawableCompat.kt",
    "chars": 3257,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/SELinuxCompat.kt",
    "chars": 4606,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/SeekableByteChannelCompat.kt",
    "chars": 1765,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ServiceCompat.kt",
    "chars": 300,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/StorageManagerCompat.kt",
    "chars": 3839,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/StorageVolumeCompat.kt",
    "chars": 2597,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/TextViewCompat.kt",
    "chars": 760,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ThreadLocalCompat.kt",
    "chars": 404,
    "preview": "package me.zhanghai.android.files.compat\n\nimport android.os.Build\nimport kotlin.reflect.KClass\n\nfun <T> KClass<ThreadLoc"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/TileServiceCompat.kt",
    "chars": 2190,
    "preview": "/*\n * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/TypedValueCompat.kt",
    "chars": 314,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ViewCompat.kt",
    "chars": 1564,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/compat/ViewGroupCompat.kt",
    "chars": 809,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/BasicFileAttributesExtensions.kt",
    "chars": 386,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/DocumentTreeUri.kt",
    "chars": 3205,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/DocumentUri.kt",
    "chars": 1910,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/DurationExtensions.kt",
    "chars": 269,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/ExternalStorageUri.kt",
    "chars": 1767,
    "preview": "/*\n * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/FileItem.kt",
    "chars": 2722,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/FileProvider.kt",
    "chars": 15273,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/FileSize.kt",
    "chars": 793,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/InstantExtensions.kt",
    "chars": 1193,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/JavaFile.kt",
    "chars": 377,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/MimeType.kt",
    "chars": 3274,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/MimeTypeConversionExtensions.kt",
    "chars": 4556,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/MimeTypeIcon.kt",
    "chars": 11826,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/MimeTypeNameExtensions.kt",
    "chars": 2796,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/file/MimeTypeTypeExtensions.kt",
    "chars": 1501,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileaction/ArchivePasswordDialogActivity.kt",
    "chars": 1331,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileaction/ArchivePasswordDialogFragment.kt",
    "chars": 6543,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJob.kt",
    "chars": 899,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobConflictAction.kt",
    "chars": 245,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobConflictDialogActivity.kt",
    "chars": 1328,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobConflictDialogFragment.kt",
    "chars": 14212,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobErrorAction.kt",
    "chars": 227,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobErrorDialogActivity.kt",
    "chars": 1307,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobErrorDialogFragment.kt",
    "chars": 7709,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobErrorViewModel.kt",
    "chars": 1539,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobNotificationTemplate.kt",
    "chars": 1009,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobReceiver.kt",
    "chars": 1007,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobService.kt",
    "chars": 6569,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filejob/FileJobs.kt",
    "chars": 85414,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/BreadcrumbData.kt",
    "chars": 332,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/BreadcrumbLayout.kt",
    "chars": 7767,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/BreadcrumbLiveData.kt",
    "chars": 1591,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/CollatorFileNameExtensions.kt",
    "chars": 4071,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ConfirmDeleteFilesDialogFragment.kt",
    "chars": 2492,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ConfirmReplaceFileDialogFragment.kt",
    "chars": 1601,
    "preview": "/*\n * Copyright (c) 2024 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/CreateArchiveDialogFragment.kt",
    "chars": 5133,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/CreateArchiveTypeRadioGroup.kt",
    "chars": 1008,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/CreateDirectoryDialogFragment.kt",
    "chars": 856,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/CreateFileDialogFragment.kt",
    "chars": 831,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/EditFileActivity.kt",
    "chars": 1182,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileItemExtensions.kt",
    "chars": 5517,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileItemSet.kt",
    "chars": 1131,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileListActivity.kt",
    "chars": 3583,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileListAdapter.kt",
    "chars": 18087,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileListFragment.kt",
    "chars": 68568,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileListLiveData.kt",
    "chars": 2677,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileListViewModel.kt",
    "chars": 9813,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileNameDialogFragment.kt",
    "chars": 1158,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileSortOptions.kt",
    "chars": 1878,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileSortOptionsLiveData.kt",
    "chars": 2082,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileViewSortPathSpecificLiveData.kt",
    "chars": 2200,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileViewType.kt",
    "chars": 187,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/FileViewTypeLiveData.kt",
    "chars": 1589,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/NameDialogFragment.kt",
    "chars": 3786,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/NavigateToPathDialogFragment.kt",
    "chars": 1381,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/OpenApkDefaultAction.kt",
    "chars": 207,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/OpenApkDialogFragment.kt",
    "chars": 1744,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/OpenFileActivity.kt",
    "chars": 1916,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/OpenFileAsDialogActivity.kt",
    "chars": 921,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/OpenFileAsDialogFragment.kt",
    "chars": 2631,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/PasteState.kt",
    "chars": 261,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/PathDialogFragment.kt",
    "chars": 1705,
    "preview": "/*\n * Copyright (c) 2022 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/PathExtensions.kt",
    "chars": 1117,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/PathObserver.kt",
    "chars": 1849,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/PickOptions.kt",
    "chars": 472,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/RenameFileDialogFragment.kt",
    "chars": 1619,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/SearchFileListLiveData.kt",
    "chars": 2177,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/SearchState.kt",
    "chars": 203,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ShowRequestAllFilesAccessRationaleDialogFragment.kt",
    "chars": 1612,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ShowRequestNotificationPermissionInSettingsRationaleDialogFragment.kt",
    "chars": 1739,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ShowRequestNotificationPermissionRationaleDialogFragment.kt",
    "chars": 1667,
    "preview": "/*\n * Copyright (c) 2023 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ShowRequestStoragePermissionInSettingsRationaleDialogFragment.kt",
    "chars": 1704,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/ShowRequestStoragePermissionRationaleDialogFragment.kt",
    "chars": 1632,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/TrailData.kt",
    "chars": 2721,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/filelist/TrailLiveData.kt",
    "chars": 843,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/FileLiveData.kt",
    "chars": 1287,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/FilePropertiesDialogFragment.kt",
    "chars": 6391,
    "preview": "/*\n * Copyright (c) 2018 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/FilePropertiesFileViewModel.kt",
    "chars": 640,
    "preview": "/*\n * Copyright (c) 2019 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/FilePropertiesTabFragment.kt",
    "chars": 4402,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/MediaMetadataRetrieverExtensions.kt",
    "chars": 1685,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/PathObserverLiveData.kt",
    "chars": 993,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/ApkInfo.kt",
    "chars": 364,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/ApkInfoLiveData.kt",
    "chars": 4214,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/FilePropertiesApkTabFragment.kt",
    "chars": 4915,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/FilePropertiesApkTabViewModel.kt",
    "chars": 639,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/PermissionItem.kt",
    "chars": 332,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/PermissionListAdapter.kt",
    "chars": 1968,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/PermissionListDialogFragment.kt",
    "chars": 3810,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/PermissionListLiveData.kt",
    "chars": 1604,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/apk/PermissionListViewModel.kt",
    "chars": 340,
    "preview": "/*\n * Copyright (c) 2021 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  },
  {
    "path": "app/src/main/java/me/zhanghai/android/files/fileproperties/audio/AudioInfo.kt",
    "chars": 809,
    "preview": "/*\n * Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>\n * All Rights Reserved.\n */\n\npackage me.zhanghai.andr"
  }
]

// ... and 906 more files (download for full content)

About this extraction

This page contains the full source code of the zhanghai/MaterialFiles GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1106 files (4.1 MB), approximately 1.2M tokens, and a symbol index with 141 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!