sequoia00 1 тиждень тому
батько
коміт
6baa915b92
100 змінених файлів з 12552 додано та 0 видалено
  1. 8 0
      .gitignore
  2. 22 0
      File-Manager-1.6.4/.editorconfig
  3. 2 0
      File-Manager-1.6.4/.fossify/release-marker.txt
  4. 126 0
      File-Manager-1.6.4/.github/ISSUE_TEMPLATE/bug_report.yml
  5. 5 0
      File-Manager-1.6.4/.github/ISSUE_TEMPLATE/config.yml
  6. 52 0
      File-Manager-1.6.4/.github/ISSUE_TEMPLATE/feature_request.yml
  7. 48 0
      File-Manager-1.6.4/.github/dependabot.yml
  8. 14 0
      File-Manager-1.6.4/.github/workflows/image-minimizer.yml
  9. 11 0
      File-Manager-1.6.4/.github/workflows/no-response.yml
  10. 10 0
      File-Manager-1.6.4/.github/workflows/pr-labeler.yml
  11. 13 0
      File-Manager-1.6.4/.github/workflows/pr.yml
  12. 15 0
      File-Manager-1.6.4/.github/workflows/prepare-release-pr.yml
  13. 17 0
      File-Manager-1.6.4/.github/workflows/release.yml
  14. 18 0
      File-Manager-1.6.4/.github/workflows/testing-build.yml
  15. 13 0
      File-Manager-1.6.4/.github/workflows/update-commons.yml
  16. 13 0
      File-Manager-1.6.4/.github/workflows/update-lint-baselines.yml
  17. 15 0
      File-Manager-1.6.4/.github/workflows/validate-fastlane-metadata.yml
  18. 13 0
      File-Manager-1.6.4/.gitignore
  19. 171 0
      File-Manager-1.6.4/CHANGELOG.md
  20. 1 0
      File-Manager-1.6.4/CODEOWNERS
  21. 8 0
      File-Manager-1.6.4/CONTRIBUTING.md
  22. 4 0
      File-Manager-1.6.4/Gemfile
  23. 271 0
      File-Manager-1.6.4/Gemfile.lock
  24. 674 0
      File-Manager-1.6.4/LICENSE
  25. 42 0
      File-Manager-1.6.4/README.md
  26. 3 0
      File-Manager-1.6.4/app/.gitignore
  27. 149 0
      File-Manager-1.6.4/app/build.gradle.kts
  28. 154 0
      File-Manager-1.6.4/app/detekt-baseline.xml
  29. 1195 0
      File-Manager-1.6.4/app/lint-baseline.xml
  30. 8 0
      File-Manager-1.6.4/app/proguard-rules.pro
  31. 4 0
      File-Manager-1.6.4/app/src/debug/res/values/strings.xml
  32. 5 0
      File-Manager-1.6.4/app/src/foss/res/values/bools.xml
  33. 5 0
      File-Manager-1.6.4/app/src/gplay/res/values/bools.xml
  34. 437 0
      File-Manager-1.6.4/app/src/main/AndroidManifest.xml
  35. BIN
      File-Manager-1.6.4/app/src/main/ic_launcher-playstore.png
  36. 13 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/App.kt
  37. 310 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/DecompressActivity.kt
  38. 78 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/FavoritesActivity.kt
  39. 755 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt
  40. 489 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt
  41. 417 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/ReadTextActivity.kt
  42. 115 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt
  43. 275 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SettingsActivity.kt
  44. 100 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt
  45. 19 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SplashActivity.kt
  46. 139 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/DecompressItemsAdapter.kt
  47. 1478 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt
  48. 138 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ManageFavoritesAdapter.kt
  49. 80 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ViewPagerAdapter.kt
  50. 88 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ChangeSortingDialog.kt
  51. 61 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ChangeViewTypeDialog.kt
  52. 72 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/CompressAsDialog.kt
  53. 167 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/CreateNewItemDialog.kt
  54. 52 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/InsertFilenameDialog.kt
  55. 53 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ManageVisibleTabsDialog.kt
  56. 89 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/SaveAsDialog.kt
  57. 85 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Activity.kt
  58. 26 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Context.kt
  59. 15 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/String.kt
  60. 15 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Zip4j.kt
  61. 551 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt
  62. 114 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/MyViewPagerFragment.kt
  63. 264 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/RecentsFragment.kt
  64. 522 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt
  65. 124 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/Config.kt
  66. 78 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/Constants.kt
  67. 357 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/CryptoHelper.kt
  68. 299 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/RootHelpers.kt
  69. 21 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/interfaces/ItemOperationsListener.kt
  70. 91 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/views/GestureEditText.kt
  71. 46 0
      File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/views/MySwipeRefreshLayout.kt
  72. 7 0
      File-Manager-1.6.4/app/src/main/res/drawable/gradient_background_flipped.xml
  73. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_arrow_down_vector.xml
  74. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_arrow_up_vector.xml
  75. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_decompress_vector.xml
  76. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_home_vector.xml
  77. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_launcher_foreground.xml
  78. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_launcher_monochrome.xml
  79. 3 0
      File-Manager-1.6.4/app/src/main/res/drawable/ic_storage_vector.xml
  80. 17 0
      File-Manager-1.6.4/app/src/main/res/drawable/shortcut_folder.xml
  81. 50 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_decompress.xml
  82. 73 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_favorites.xml
  83. 35 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_main.xml
  84. 78 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_mimetypes.xml
  85. 56 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_read_text.xml
  86. 29 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_save_as.xml
  87. 364 0
      File-Manager-1.6.4/app/src/main/res/layout/activity_settings.xml
  88. 104 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_change_sorting.xml
  89. 54 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_change_view_type.xml
  90. 74 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_compress_as.xml
  91. 47 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_create_new.xml
  92. 44 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_insert_filename.xml
  93. 41 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_manage_visible_tabs.xml
  94. 57 0
      File-Manager-1.6.4/app/src/main/res/layout/dialog_save_as.xml
  95. 33 0
      File-Manager-1.6.4/app/src/main/res/layout/item_decompression_list_file_dir.xml
  96. 56 0
      File-Manager-1.6.4/app/src/main/res/layout/item_dir_grid.xml
  97. 5 0
      File-Manager-1.6.4/app/src/main/res/layout/item_empty.xml
  98. 72 0
      File-Manager-1.6.4/app/src/main/res/layout/item_file_dir_list.xml
  99. 56 0
      File-Manager-1.6.4/app/src/main/res/layout/item_file_grid.xml
  100. 37 0
      File-Manager-1.6.4/app/src/main/res/layout/item_manage_favorite.xml

+ 8 - 0
.gitignore

@@ -12,6 +12,14 @@ androidApp/app/build/
 androidApp/local.properties
 androidApp/.idea/
 
+File-Manager-1.6.4/.gradle/
+File-Manager-1.6.4/app/build/
+File-Manager-1.6.4/local.properties
+File-Manager-1.6.4/.idea/
+
 # Lock files (encrypted)
 *.lockx
 *.bak
+
+# Compiled androidx artifacts
+androidx/

+ 22 - 0
File-Manager-1.6.4/.editorconfig

@@ -0,0 +1,22 @@
+# EditorConfig
+# http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# LF end-of-line, insert an empty new line and UTF-8
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+indent_style = space
+indent_size = 4
+continuation_indent_size = 4
+max_line_length = 160
+
+[*.xml]
+continuation_indent_size = 4
+
+[*.kt]
+ij_kotlin_name_count_to_use_star_import = 5
+ij_kotlin_name_count_to_use_star_import_for_members = 5

+ 2 - 0
File-Manager-1.6.4/.fossify/release-marker.txt

@@ -0,0 +1,2 @@
+# Auto-generated file. DO NOT EDIT.
+1.6.4 (16)

+ 126 - 0
File-Manager-1.6.4/.github/ISSUE_TEMPLATE/bug_report.yml

@@ -0,0 +1,126 @@
+name: Bug report
+description: Create a bug report to help us improve
+labels: [ "bug", "needs triage" ]
+body:
+  - type: markdown
+    attributes:
+      value: |
+        ## Hi there 👋
+        Thanks for helping us improve Fossify File-Manager by reporting a bug!
+        Please fill in as much information as possible about your bug to avoid unnecessary and time-consuming back-and-forth communication.
+
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: "Checklist"
+      options:
+        - label: "I can reproduce the bug with the latest version given [here](https://github.com/FossifyOrg/File-Manager/releases/latest)."
+          required: true
+        - label: "I made sure that there are **no existing issues** - [open](https://github.com/FossifyOrg/File-Manager/issues) or [closed](https://github.com/FossifyOrg/File-Manager/issues?q=is%3Aissue+is%3Aclosed) - to which I could contribute my information."
+          required: true
+        - label: "I made sure that there are **no existing discussions** - [open](https://github.com/orgs/FossifyOrg/discussions?discussions_q=is:open+label:filemanager) or [closed](https://github.com/orgs/FossifyOrg/discussions?discussions_q=is:closed+label:filemanager) - to which I could contribute my information."
+          required: true
+        - label: "I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed."
+          required: true
+        - label: "**I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.**"
+          required: true
+        - label: "This issue contains only one bug."
+          required: true
+        - label: "I have read and understood the [contribution guidelines](https://github.com/FossifyOrg/File-Manager/blob/master/CONTRIBUTING.md)."
+          required: true
+
+  - type: input
+    id: app-version
+    attributes:
+      label: Affected app version
+      description: "Which app version were you using when you found the bug?"
+      placeholder: "x.x.x - Go to App Main Menu > About > Version."
+    validations:
+      required: true
+
+  - type: input
+    id: device-os-info
+    attributes:
+      label: Affected Android/Custom ROM version
+      description: |
+        What operating system and version were you using when you encounter the bug?
+      placeholder: "Example: Android 12 / LineageOS 18.1"
+    validations:
+      required: true
+
+  - type: input
+    id: device-model-info
+    attributes:
+      label: Affected device model
+      description: |
+        What device model were you using when you encountered the bug?
+      placeholder: "Example: Pixel 8 Pro / Samsung Galaxy S20"
+    validations:
+      required: true
+
+  - type: dropdown
+    id: download
+    attributes:
+      label: How did you install the app?
+      options:
+        - F-Droid / IzzyOnDroid
+        - Google Play Store
+        - GitHub releases
+        - Built from source
+        - Third-party website
+
+  - type: textarea
+    id: steps-to-reproduce
+    attributes:
+      label: Steps to reproduce the bug
+      description: |
+        What did you do for the bug to show up?
+
+        If you can't cause the bug to show up again reliably (and hence don't have a proper set of steps to give us), please still try to give as many details as possible on how you think you encountered the bug.
+      placeholder: |
+        1. Go to '...'
+        2. Click on '....'
+        3. Scroll down to '....'
+    validations:
+      required: true
+
+  - type: textarea
+    id: expected-behavior
+    attributes:
+      label: Expected behavior
+      description: |
+        Tell us what you expect to happen.
+    validations:
+      required: true
+
+  - type: textarea
+    id: actual-behavior
+    attributes:
+      label: Actual behavior
+      description: |
+        Tell us what happens with the steps given above.
+    validations:
+      required: true
+
+  - type: textarea
+    id: screen-media
+    attributes:
+      label: Screenshots/Screen recordings
+      description: |
+        A picture or video is worth a thousand words.
+
+        If applicable, drag and drop screenshots or a screen recording to help explain your problem. If your file is too big for Github to accept, try to compress it (ZIP file), or feel free to paste a link to an image/video instead.
+
+  - type: textarea
+    id: additional-information
+    attributes:
+      label: Additional information
+      description: |
+        Please provide any additional information or context that may be relevant, for example:
+        * any file or media that led to this bug
+        * any crash logs (if you know how to get one)
+        * the affected device is rooted, a foldable or a TV
+        * you have disabled all animations on your device
+        * your rabbit chewed your network cable
+        * ...
+

+ 5 - 0
File-Manager-1.6.4/.github/ISSUE_TEMPLATE/config.yml

@@ -0,0 +1,5 @@
+blank_issues_enabled: false
+contact_links:
+  - name: Questions
+    url: https://github.com/orgs/FossifyOrg/discussions
+    about: Please ask and answer questions here.

+ 52 - 0
File-Manager-1.6.4/.github/ISSUE_TEMPLATE/feature_request.yml

@@ -0,0 +1,52 @@
+name: Feature request
+description: Suggest an idea for this project
+labels: [ "feature request", "needs triage" ]
+body:
+  - type: markdown
+    attributes:
+      value: |
+        ## Hi there 👋
+        Thanks for helping us improve Fossify File-Manager by suggesting a feature!
+        Please fill in as much information as possible about your feature request to avoid unnecessary and time-consuming back-and-forth communication.
+
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: "Checklist"
+      options:
+        - label: "I made sure that there are **no existing issues** - [open](https://github.com/FossifyOrg/File-Manager/issues) or [closed](https://github.com/FossifyOrg/File-Manager/issues?q=is%3Aissue+is%3Aclosed) - to which I could contribute my information."
+          required: true
+        - label: "I made sure that there are **no existing discussions** - [open](https://github.com/orgs/FossifyOrg/discussions?discussions_q=is:open+label:filemanager) or [closed](https://github.com/orgs/FossifyOrg/discussions?discussions_q=is:closed+label:filemanager) - to which I could contribute my information."
+          required: true
+        - label: "I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed."
+          required: true
+        - label: "**I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.**"
+          required: true
+        - label: "This issue contains only one feature request."
+          required: true
+        - label: "I have read and understood the [contribution guidelines](https://github.com/FossifyOrg/File-Manager/blob/master/CONTRIBUTING.md)."
+          required: true
+
+  - type: textarea
+    id: feature-description
+    attributes:
+      label: Feature description
+      description: |
+        Explain how you want the app's look or behavior to change to suit your needs.
+    validations:
+      required: true
+
+  - type: textarea
+    id: why-is-the-feature-requested
+    attributes:
+      label: Why do you want this feature?
+      description: |
+        Describe any problem or limitation you come across while using the app which would be solved by this feature.
+    validations:
+      required: true
+
+  - type: textarea
+    id: additional-information
+    attributes:
+      label: Additional information
+      description: Any other information you'd like to include, for instance sketches, mockups, pictures of rabbits, etc.

+ 48 - 0
File-Manager-1.6.4/.github/dependabot.yml

@@ -0,0 +1,48 @@
+version: 2
+
+registries:
+  maven-google:
+    type: maven-repository
+    url: "https://dl.google.com/dl/android/maven2/"
+
+  maven-central:
+    type: maven-repository
+    url: "https://repo.maven.apache.org/maven2"
+
+  jitpack:
+    type: maven-repository
+    url: "https://www.jitpack.io"
+
+updates:
+  - package-ecosystem: "bundler"
+    directory: "/"
+    schedule:
+      interval: "weekly"
+    commit-message:
+      prefix: "chore"
+      prefix-development: "chore"
+      include: "scope"
+
+  - package-ecosystem: "gradle"
+    directory: "/"
+    registries:
+      - maven-central
+      - maven-google
+      - jitpack
+    schedule:
+      interval: "weekly"
+    commit-message:
+      prefix: "chore"
+      prefix-development: "chore"
+      include: "scope"
+    ignore:
+      - dependency-name: "org.fossify:commons"
+
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "weekly"
+    commit-message:
+      prefix: "chore"
+      prefix-development: "chore"
+      include: "scope"

+ 14 - 0
File-Manager-1.6.4/.github/workflows/image-minimizer.yml

@@ -0,0 +1,14 @@
+name: Image Minimizer
+
+on:
+  issue_comment:
+    types: [created, edited]
+  issues:
+    types: [opened, edited]
+  pull_request_target:
+    types: [opened, edited]
+
+jobs:
+  call-image-minimizer-workflow:
+    uses: FossifyOrg/.github/.github/workflows/image-minimizer.yml@main
+    secrets: inherit

+ 11 - 0
File-Manager-1.6.4/.github/workflows/no-response.yml

@@ -0,0 +1,11 @@
+name: No Response
+
+on:
+  schedule:
+    - cron: "0 12 * * *" # Runs daily at noon
+  workflow_dispatch:
+
+jobs:
+  call-no-response-workflow:
+    uses: FossifyOrg/.github/.github/workflows/no-response.yml@main
+    secrets: inherit

+ 10 - 0
File-Manager-1.6.4/.github/workflows/pr-labeler.yml

@@ -0,0 +1,10 @@
+name: PR Labeler
+
+on:
+  pull_request_target:
+    types: [opened]
+
+jobs:
+  call-pr-labeler-workflow:
+    uses: FossifyOrg/.github/.github/workflows/pr-labeler.yml@main
+    secrets: inherit

+ 13 - 0
File-Manager-1.6.4/.github/workflows/pr.yml

@@ -0,0 +1,13 @@
+name: PR
+
+on:
+    pull_request:
+        branches: [main]
+
+permissions:
+  contents: read
+  pull-requests: read
+
+jobs:
+    call-pr-workflow:
+        uses: FossifyOrg/.github/.github/workflows/pr.yml@main

+ 15 - 0
File-Manager-1.6.4/.github/workflows/prepare-release-pr.yml

@@ -0,0 +1,15 @@
+name: Prepare Release PR
+
+on:
+  repository_dispatch:
+    types: [prepare-release]
+  workflow_dispatch:
+  push:
+    branches: [main]
+    paths:
+      - "CHANGELOG.md"
+
+jobs:
+  call-release-pr:
+    uses: FossifyOrg/.github/.github/workflows/prepare-release-pr.yml@main
+    secrets: inherit

+ 17 - 0
File-Manager-1.6.4/.github/workflows/release.yml

@@ -0,0 +1,17 @@
+name: Release
+
+on:
+  push:
+    branches: [ main ]
+    paths:
+      - ".fossify/release-marker.txt"
+
+jobs:
+  call-release-workflow:
+    name: Release
+    uses: FossifyOrg/.github/.github/workflows/release.yml@main
+    with:
+      track: ${{ vars.GPLAY_TRACK || 'beta' }}
+      rollout: ${{ vars.GPLAY_ROLLOUT || '0.05' }}
+      validate_only: ${{ vars.GPLAY_DRY_RUN == 'true' }}
+    secrets: inherit

+ 18 - 0
File-Manager-1.6.4/.github/workflows/testing-build.yml

@@ -0,0 +1,18 @@
+name: Testing build (on PR)
+
+on:
+    pull_request:
+        branches: [main]
+        types: [labeled, opened, synchronize, reopened]
+        paths-ignore:
+            - ".github/**"
+            - "CHANGELOG.md"
+            - "docs/**"
+            - "fastlane/**"
+            - "LICENSE"
+            - "README.md"
+
+jobs:
+    call-testing-build-workflow:
+        uses: FossifyOrg/.github/.github/workflows/testing-build.yml@main
+        secrets: inherit

+ 13 - 0
File-Manager-1.6.4/.github/workflows/update-commons.yml

@@ -0,0 +1,13 @@
+name: Update Fossify Commons
+
+on:
+  repository_dispatch:
+    types: [update-commons]
+  workflow_dispatch:
+  schedule:
+    - cron: "0 6 * * 0"
+
+jobs:
+  update-commons:
+    uses: FossifyOrg/.github/.github/workflows/update-commons.yml@main
+    secrets: inherit

+ 13 - 0
File-Manager-1.6.4/.github/workflows/update-lint-baselines.yml

@@ -0,0 +1,13 @@
+name: Update lint baselines
+
+on:
+  repository_dispatch:
+    types: [update-lint-baselines]
+  workflow_dispatch:
+  schedule:
+    - cron: "0 0 1 * *"
+
+jobs:
+  update-lint-baselines:
+    uses: FossifyOrg/.github/.github/workflows/update-lint-baselines.yml@main
+    secrets: inherit

+ 15 - 0
File-Manager-1.6.4/.github/workflows/validate-fastlane-metadata.yml

@@ -0,0 +1,15 @@
+name: Fastlane metadata validation
+
+on:
+  push:
+    branches: [main]
+    paths:
+      - "fastlane/**"
+  pull_request:
+    branches: [main]
+    paths:
+      - "fastlane/**"
+
+jobs:
+  validate:
+    uses: FossifyOrg/.github/.github/workflows/validate-fastlane-metadata.yml@main

+ 13 - 0
File-Manager-1.6.4/.gitignore

@@ -0,0 +1,13 @@
+*.iml
+*.aab
+.gradle
+/local.properties
+/.idea/
+.DS_Store
+/build
+/captures
+keystore.jks
+keystore.properties
+fastlane/fastlane.json
+fastlane/report.xml
+.kotlin/

+ 171 - 0
File-Manager-1.6.4/CHANGELOG.md

@@ -0,0 +1,171 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+### Added
+- Encrypt and decrypt files in the selection menu (LockX compatible, `.lockx` suffix)
+
+
+## [1.6.4] - 2026-11-03
+### Changed
+- Updated translations
+
+## [1.6.3] - 2026-10-20
+### Changed
+- Updated translations
+
+## [1.6.2] - 2026-10-10
+### Changed
+- Updated translations
+
+### Fixed
+- Fixed the modification of the original timestamp when decompressing folders ([#190])
+
+## [1.6.1] - 2026-02-14
+### Changed
+- Updated translations
+
+### Fixed
+- Fixed file size calculations to use SI decimal units (divide by 1000)
+
+## [1.6.0] - 2026-01-30
+### Added
+- Added support for custom fonts
+
+### Changed
+- Updated translations
+
+## [1.5.0] - 2025-12-16
+### Changed
+- Updated translations
+
+### Fixed
+- Fixed an issue where existing files were overwritten when saving new files ([#131])
+
+## [1.4.0] - 2025-10-29
+### Changed
+- Compatibility updates for Android 15 & 16
+- Updated translations
+
+### Fixed
+- Fixed duplicated entries when viewing protected ZIP files ([#76])
+
+## [1.3.1] - 2025-10-02
+### Changed
+- Updated translations
+
+### Fixed
+- Fixed files from hidden folders showing up in storage tab browser ([#217])
+- Fixed an issue where existing files were overwritten when saving new files ([#131])
+
+## [1.3.0] - 2025-09-30
+### Added
+- Added a separate "Save as" option in the text editor ([#224])
+
+### Changed
+- Save button now overwrites files directly in the text editor ([#224])
+- Search now ignores accents and diacritics ([#95])
+- Updated translations
+
+### Fixed
+- Fixed folders showing up incorrectly as files in copy/move dialog ([#267])
+- Fixed error when saving files with unsupported characters ([#250])
+- Fixed missing permission prompt on initial "Save as" launch ([#85])
+- Fixed printing text files containing a "#" ([#104])
+- Fixed files in hidden folders showing up in recent tab ([#217])
+
+## [1.2.3] - 2025-09-15
+### Fixed
+- Fixed folders showing up incorrectly as files in some cases ([#80])
+
+## [1.2.2] - 2025-09-01
+### Changed
+- Updated translations
+
+### Fixed
+- Fixed empty storage usage bars on initial load ([#251])
+
+## [1.2.0] - 2025-07-12
+### Changed
+- Updated translations
+
+### Fixed
+- File modification time is now preserved when compressing/decompressing files ([#176])
+
+## [1.1.0] - 2025-05-21
+### Added
+- Added SHA-1 and SHA-256 hashes to file properties ([#149])
+
+### Changed
+- Replaced checkboxes with switches
+- Updated translations
+
+### Removed
+- Dropped support for Android 7 and older versions
+
+### Fixed
+- Files saved via `Save As` option are now named properly ([#37])
+- Decompressed folders are now named properly ([#120])
+- Text editor no longer resets on device rotation ([#106])
+- JSON files can now be edited in-app ([#105])
+- Fixed accidental rendering of pull-to-refresh indicator ([#27])
+- Pull-to-refresh setting is now applied as expected ([#136])
+- Fixed invisible content when using app lock ([#150])
+
+## [1.0.1] - 2024-03-17
+### Changed
+- Folders now use primary/accent color.
+- Enhanced search performance in the text editor.
+- Added some translations.
+
+### Fixed
+- Addressed unnecessary delays when renaming files.
+- Fixed unresponsive behavior when viewing contents of a zip file.
+- Disabled the use of invalid characters such as `/` for batch file renaming.
+- Fixed invisible sort menu when viewing storage summary.
+
+## [1.0.0] - 2024-01-07
+### Added
+- Initial release
+
+[#27]: https://github.com/FossifyOrg/File-Manager/issues/27
+[#37]: https://github.com/FossifyOrg/File-Manager/issues/37
+[#76]: https://github.com/FossifyOrg/File-Manager/issues/76
+[#80]: https://github.com/FossifyOrg/File-Manager/issues/80
+[#85]: https://github.com/FossifyOrg/File-Manager/issues/85
+[#95]: https://github.com/FossifyOrg/File-Manager/issues/95
+[#104]: https://github.com/FossifyOrg/File-Manager/issues/104
+[#105]: https://github.com/FossifyOrg/File-Manager/issues/105
+[#106]: https://github.com/FossifyOrg/File-Manager/issues/106
+[#120]: https://github.com/FossifyOrg/File-Manager/issues/120
+[#131]: https://github.com/FossifyOrg/File-Manager/issues/131
+[#136]: https://github.com/FossifyOrg/File-Manager/issues/136
+[#149]: https://github.com/FossifyOrg/File-Manager/issues/149
+[#150]: https://github.com/FossifyOrg/File-Manager/issues/150
+[#176]: https://github.com/FossifyOrg/File-Manager/issues/176
+[#190]: https://github.com/FossifyOrg/File-Manager/issues/190
+[#217]: https://github.com/FossifyOrg/File-Manager/issues/217
+[#224]: https://github.com/FossifyOrg/File-Manager/issues/224
+[#250]: https://github.com/FossifyOrg/File-Manager/issues/250
+[#251]: https://github.com/FossifyOrg/File-Manager/issues/251
+[#267]: https://github.com/FossifyOrg/File-Manager/issues/267
+
+[Unreleased]: https://github.com/FossifyOrg/File-Manager/compare/1.6.4...HEAD
+[1.6.4]: https://github.com/FossifyOrg/File-Manager/compare/1.6.3...1.6.4
+[1.6.3]: https://github.com/FossifyOrg/File-Manager/compare/1.6.2...1.6.3
+[1.6.2]: https://github.com/FossifyOrg/File-Manager/compare/1.6.1...1.6.2
+[1.6.1]: https://github.com/FossifyOrg/File-Manager/compare/1.6.0...1.6.1
+[1.6.0]: https://github.com/FossifyOrg/File-Manager/compare/1.5.0...1.6.0
+[1.5.0]: https://github.com/FossifyOrg/File-Manager/compare/1.4.0...1.5.0
+[1.4.0]: https://github.com/FossifyOrg/File-Manager/compare/1.3.1...1.4.0
+[1.3.1]: https://github.com/FossifyOrg/File-Manager/compare/1.3.0...1.3.1
+[1.3.0]: https://github.com/FossifyOrg/File-Manager/compare/1.2.3...1.3.0
+[1.2.3]: https://github.com/FossifyOrg/File-Manager/compare/1.2.2...1.2.3
+[1.2.2]: https://github.com/FossifyOrg/File-Manager/compare/1.2.0...1.2.2
+[1.2.0]: https://github.com/FossifyOrg/File-Manager/compare/1.1.0...1.2.0
+[1.1.0]: https://github.com/FossifyOrg/File-Manager/compare/1.0.1...1.1.0
+[1.0.1]: https://github.com/FossifyOrg/File-Manager/compare/1.0.0...1.0.1
+[1.0.0]: https://github.com/FossifyOrg/File-Manager/releases/tag/1.0.0

+ 1 - 0
File-Manager-1.6.4/CODEOWNERS

@@ -0,0 +1 @@
+* @naveensingh

+ 8 - 0
File-Manager-1.6.4/CONTRIBUTING.md

@@ -0,0 +1,8 @@
+### Reporting
+Before you report something, read the reporting rules [here](https://github.com/FossifyOrg/General-Discussion#how-do-i-suggest-an-improvement-ask-a-question-or-report-an-issue) please.
+
+### Contributing as a developer
+Some instructions about code style and everything that has to be done to increase the chance of your code getting accepted can be found at the [General Discussion](https://github.com/FossifyOrg/General-Discussion#contribution-rules-for-developers) section. 
+
+### Contributing as a non developer
+In case you just want to for example improve a translation, you can find the way of doing it [here](https://github.com/FossifyOrg/General-Discussion#how-can-i-suggest-an-edit-to-a-file).

+ 4 - 0
File-Manager-1.6.4/Gemfile

@@ -0,0 +1,4 @@
+source "https://rubygems.org"
+
+gem "fastlane"
+gem "fastlane-plugin-fossify", "~> 1.0"

+ 271 - 0
File-Manager-1.6.4/Gemfile.lock

@@ -0,0 +1,271 @@
+GEM
+  remote: https://rubygems.org/
+  specs:
+    CFPropertyList (3.0.8)
+    abbrev (0.1.2)
+    addressable (2.9.2)
+      public_suffix (>= 2.0.2, < 8.0)
+    artifactory (3.0.17)
+    atomos (0.1.3)
+    aws-eventstream (1.4.1)
+    aws-partitions (1.1300.0)
+    aws-sdk-core (3.263.0)
+      aws-eventstream (~> 1, >= 1.4.1)
+      aws-partitions (~> 1, >= 1.992.0)
+      aws-sigv4 (~> 1.9)
+      base64
+      bigdecimal
+      jmespath (~> 1, >= 1.6.1)
+      logger
+      rexml (~> 3.4, >= 3.4.2)
+    aws-sdk-kms (1.138.0)
+      aws-sdk-core (~> 3, >= 3.263.0)
+      aws-sigv4 (~> 1.5)
+    aws-sdk-s3 (1.237.0)
+      aws-sdk-core (~> 3, >= 3.263.0)
+      aws-sdk-kms (~> 1)
+      aws-sigv4 (~> 1.5)
+    aws-sigv4 (1.12.1)
+      aws-eventstream (~> 1, >= 1.0.2)
+    babosa (1.0.4)
+    base64 (0.3.0)
+    benchmark (0.5.0)
+    bigdecimal (4.1.3)
+    cgi (0.5.2)
+    claide (1.1.0)
+    colored (1.2)
+    colored2 (3.1.2)
+    commander (4.6.0)
+      highline (~> 2.0.0)
+    csv (3.3.7)
+    declarative (0.0.20)
+    digest-crc (0.7.0)
+      rake (>= 12.0.0, < 14.0.0)
+    domain_name (0.7.20261007)
+    dotenv (2.8.1)
+    emoji_regex (3.2.3)
+    erb (6.0.7)
+    excon (1.10.0)
+    faraday (2.15.1)
+      faraday-net_http (>= 2.0, < 3.6)
+      json
+      logger
+    faraday-cookie_jar (0.0.8)
+      faraday (>= 0.8.0)
+      http-cookie (>= 1.0.0)
+    faraday-follow_redirects (0.5.0)
+      faraday (>= 1, < 3)
+    faraday-multipart (1.2.0)
+      multipart-post (~> 2.0)
+    faraday-net_http (3.5.0)
+      net-http (~> 0.5)
+    faraday-retry (2.4.0)
+      faraday (~> 2.0)
+    fastimage (2.4.3)
+    fastlane (2.241.2)
+      CFPropertyList (>= 2.3, < 5.0.0)
+      abbrev (~> 0.1)
+      addressable (>= 2.9.0, < 3.0.0)
+      artifactory (~> 3.0)
+      aws-sdk-s3 (~> 1.197)
+      babosa (>= 1.0.3, < 2.0.0)
+      base64 (~> 0.2)
+      benchmark (>= 0.1.0)
+      bundler (>= 2.4.0, < 5.0.0)
+      cgi (~> 0.4)
+      colored (~> 1.2)
+      commander (~> 4.6)
+      csv (~> 3.3)
+      dotenv (>= 2.1.1, < 3.0.0)
+      emoji_regex (>= 0.1, < 4.0)
+      erb (>= 4.0, < 7.0)
+      excon (>= 1.0.0, < 2.0.0)
+      faraday (~> 2.7)
+      faraday-cookie_jar (~> 0.0.8)
+      faraday-follow_redirects (~> 0.3)
+      faraday-multipart (~> 1.0)
+      faraday-retry (~> 2.0)
+      fastimage (>= 2.1.0, < 3.0.0)
+      fastlane-sirp (>= 1.1.0)
+      gh_inspector (>= 1.1.2, < 2.0.0)
+      google-apis-androidpublisher_v3 (~> 0.99)
+      google-apis-playcustomapp_v1 (~> 0.1)
+      google-cloud-env (>= 1.6.0, < 2.5.0)
+      google-cloud-storage (~> 1.31)
+      highline (~> 2.0)
+      irb (>= 1.8)
+      json (< 3.0.0)
+      jwt (>= 2.10.3, < 4)
+      logger (>= 1.6, < 2.0)
+      mini_magick (>= 4.9.4, < 5.0.0)
+      multi_json (~> 1.12)
+      multipart-post (>= 2.0.0, < 3.0.0)
+      mutex_m (~> 0.3)
+      naturally (~> 2.2)
+      nkf (~> 0.2)
+      optparse (>= 0.1.1, < 1.0.0)
+      ostruct (>= 0.1.0)
+      plist (>= 3.1.0, < 4.0.0)
+      rubyzip (>= 3.4.0, < 4.0.0)
+      security (~> 0.3)
+      simctl (~> 1.6.3)
+      terminal-notifier (>= 3.1.0, < 4.0.0)
+      terminal-table (~> 4)
+      tty-screen (>= 0.6.3, < 1.0.0)
+      tty-spinner (>= 0.8.0, < 1.0.0)
+      word_wrap (~> 1.0.0)
+      xcodeproj (>= 1.13.0, < 2.0.0)
+      xcpretty (~> 0.4.1)
+      xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
+    fastlane-plugin-fossify (1.0.2)
+      abbrev
+    fastlane-sirp (1.1.0)
+    gh_inspector (1.1.3)
+    google-apis-androidpublisher_v3 (0.111.0)
+      google-apis-core (>= 0.15.0, < 2.a)
+    google-apis-core (1.4.0)
+      addressable (~> 2.9)
+      faraday (~> 2.13)
+      faraday-follow_redirects (~> 0.3)
+      googleauth (~> 1.14)
+      mini_mime (~> 1.1)
+      multi_json (~> 1.11)
+      representable (~> 3.0)
+      retriable (>= 3.1, < 5.0)
+    google-apis-iamcredentials_v1 (0.28.0)
+      google-apis-core (>= 0.15.0, < 2.a)
+    google-apis-playcustomapp_v1 (0.18.0)
+      google-apis-core (>= 0.15.0, < 2.a)
+    google-apis-storage_v1 (0.70.0)
+      google-apis-core (>= 0.15.0, < 2.a)
+    google-cloud-core (1.9.1)
+      google-cloud-env (>= 1.0, < 3.a)
+      google-cloud-errors (~> 1.0)
+    google-cloud-env (2.4.1)
+      base64 (~> 0.2)
+      faraday (>= 1.0, < 3.a)
+    google-cloud-errors (1.7.1)
+    google-cloud-storage (1.62.1)
+      addressable (~> 2.8)
+      digest-crc (~> 0.4)
+      google-apis-core (>= 0.18, < 2)
+      google-apis-iamcredentials_v1 (~> 0.18)
+      google-apis-storage_v1 (>= 0.42)
+      google-cloud-core (~> 1.6)
+      googleauth (~> 1.9)
+      mini_mime (~> 1.0)
+    google-logging-utils (0.2.2)
+    googleauth (1.17.7)
+      faraday (>= 1.0, < 3.a)
+      google-cloud-env (~> 2.2)
+      google-logging-utils (~> 0.1)
+      jwt (>= 1.4, < 4.0)
+      os (>= 0.9, < 2.0)
+      pstore (~> 0.1)
+      signet (>= 0.16, < 2.a)
+    highline (2.0.3)
+    http-cookie (1.1.6)
+      domain_name (~> 0.5)
+    io-console (0.9.5)
+    irb (1.18.0)
+      pp (>= 0.6.0)
+      prism (>= 1.3.0)
+      rdoc (>= 4.0.0)
+      reline (>= 0.4.2)
+    jmespath (1.6.2)
+    json (2.21.2)
+    jwt (3.3.0)
+      base64
+    logger (1.7.0)
+    mini_magick (4.13.2)
+    mini_mime (1.1.5)
+    multi_json (1.21.2)
+    multipart-post (2.4.1)
+    mutex_m (0.3.0)
+    nanaimo (0.4.0)
+    naturally (2.3.0)
+    net-http (0.10.0)
+      net-protocol (>= 0.3.0)
+      uri (>= 0.11.1)
+    net-protocol (0.4.0)
+      timeout
+    nkf (0.3.0)
+    optparse (0.8.1)
+    os (1.1.4)
+    ostruct (0.6.3)
+    plist (3.7.2)
+    pp (0.6.4)
+      prettyprint
+    prettyprint (0.2.1)
+    prism (2.1.0)
+    prism (2.1.0-x86_64-linux-gnu)
+    pstore (0.3.0)
+    public_suffix (7.0.5)
+    rake (13.4.2)
+    rbs (4.2.0)
+      logger
+      prism (>= 1.6.0)
+      tsort
+    rdoc (8.1.0)
+      erb
+      prism (>= 1.6.0)
+      rbs (>= 4.0.0)
+      tsort
+    reline (0.7.0)
+      io-console (~> 0.5)
+    representable (3.3.1)
+      declarative (< 0.1.0)
+      trailblazer-option (>= 0.1.1, < 0.2.0)
+      uber (< 0.2.0)
+    retriable (4.2.0)
+    rexml (3.4.4)
+    rouge (3.28.0)
+    rubyzip (3.7.0)
+    security (0.4.0)
+    signet (0.22.2)
+      addressable (~> 2.8)
+      faraday (>= 0.17.5, < 3.a)
+      jwt (>= 1.5, < 4.0)
+    simctl (1.6.10)
+      CFPropertyList
+      naturally
+    terminal-notifier (3.1.0)
+    terminal-table (4.0.0)
+      unicode-display_width (>= 1.1.1, < 4)
+    timeout (0.6.1)
+    trailblazer-option (0.1.2)
+    tsort (0.2.0)
+    tty-cursor (0.7.1)
+    tty-screen (0.8.2)
+    tty-spinner (0.9.3)
+      tty-cursor (~> 0.7)
+    uber (0.1.0)
+    unicode-display_width (3.3.0)
+      unicode-emoji (~> 4.3)
+    unicode-emoji (4.3.0)
+    uri (1.1.2)
+    word_wrap (1.0.0)
+    xcodeproj (1.28.1)
+      CFPropertyList (>= 2.3.3, < 4.0)
+      atomos (~> 0.1.3)
+      base64
+      claide (>= 1.0.2, < 2.0)
+      colored2 (~> 3.1)
+      nanaimo (~> 0.4.0)
+      nkf
+      rexml (>= 3.3.6, < 4.0)
+    xcpretty (0.4.1)
+      rouge (~> 3.28.0)
+    xcpretty-travis-formatter (1.0.1)
+      xcpretty (~> 0.2, >= 0.0.7)
+
+PLATFORMS
+  ruby
+  x86_64-linux
+
+DEPENDENCIES
+  fastlane
+  fastlane-plugin-fossify (~> 1.0)
+
+BUNDLED WITH
+   2.6.8

+ 674 - 0
File-Manager-1.6.4/LICENSE

@@ -0,0 +1,674 @@
+                    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>.

+ 42 - 0
File-Manager-1.6.4/README.md

@@ -0,0 +1,42 @@
+# Fossify File Manager
+
+<img alt="Logo" src="graphics/icon.webp" width="120" />
+
+<a href='https://play.google.com/store/apps/details?id=org.fossify.filemanager'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' height=80/></a> <a href="https://f-droid.org/packages/org.fossify.filemanager/"><img src="https://fdroid.gitlab.io/artwork/badge/get-it-on-en.svg" alt="Get it on F-Droid" height=80/></a> <a href="https://apt.izzysoft.de/fdroid/index/apk/org.fossify.filemanager"><img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" alt="Get it on IzzyOnDroid" height=80/></a>
+
+Tired of file managers that slow you down and invade your privacy? Unlock a lightning-fast, secure, and completely customizable experience with Fossify File Manager. ⚡
+
+**🚀 DOMINATE YOUR DIGITAL WORLD WITH BLAZING-FAST NAVIGATION:**
+ - Swiftly manage your files with easy compression and transfer capabilities, keeping your digital life organized.
+ - Quickly access your most-used folders with customizable home folder and favorite shortcuts.
+ - Find what you need in seconds with intuitive navigation, search, and sorting options.
+
+**🔐 FORTIFY YOUR DATA WITH UNPARALLELED PRIVACY AND SECURITY:**
+ - Secure sensitive files with password, pattern, or fingerprint locks for hidden items or the entire app.
+ - No internet access required – your files stay private and secure on your device.
+
+**💾 MASTER YOUR STORAGE LIKE A PRO:**
+ - Clear space with easy file and folder compression to maximize your device's potential.
+ - Identify and clean up space-hogging files with the built-in storage analysis tool.
+ - Seamlessly navigate root files, SD cards, and USB devices for total organization.
+
+**📁 OPTIMIZE YOUR WORKFLOW WITH HANDY TOOLS:**
+ - Create desktop shortcuts for instant access to your most-used files and folders.
+ - Edit, print, or read documents easily with the light file editor, enhanced by zoom gestures.
+
+**🌈 MAKE IT YOUR OWN WITH ENDLESS CUSTOMIZATION:**
+ - Enjoy an ad-free, open-source experience that puts you in control, not corporate giants.
+ - Personalize colors, themes, and icons to reflect your unique style and preferences.
+
+Ditch the bloated, privacy-invading file managers and experience true freedom with Fossify File Manager. Download now and take back control of your digital life!
+
+➡️ Explore more Fossify apps: https://www.fossify.org<br>
+➡️ Open-Source Code: https://www.github.com/FossifyOrg<br>
+➡️ Join the community on Reddit: https://www.reddit.com/r/Fossify<br>
+➡️ Connect on Telegram: https://t.me/Fossify
+
+<div align="center">
+<img alt="App image" src="fastlane/metadata/android/en-US/images/phoneScreenshots/1_en-US.png" width="30%">
+<img alt="App image" src="fastlane/metadata/android/en-US/images/phoneScreenshots/3_en-US.png" width="30%">
+<img alt="App image" src="fastlane/metadata/android/en-US/images/phoneScreenshots/4_en-US.png" width="30%">
+</div>

+ 3 - 0
File-Manager-1.6.4/app/.gitignore

@@ -0,0 +1,3 @@
+/build
+/foss/
+/gplay/

+ 149 - 0
File-Manager-1.6.4/app/build.gradle.kts

@@ -0,0 +1,149 @@
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
+import org.jetbrains.kotlin.konan.properties.Properties
+import java.io.FileInputStream
+
+plugins {
+    alias(libs.plugins.android)
+    alias(libs.plugins.detekt)
+}
+
+val keystorePropertiesFile: File = rootProject.file("keystore.properties")
+val keystoreProperties = Properties()
+if (keystorePropertiesFile.exists()) {
+    keystoreProperties.load(FileInputStream(keystorePropertiesFile))
+}
+
+fun hasSigningVars(): Boolean {
+    return providers.environmentVariable("SIGNING_KEY_ALIAS").orNull != null
+            && providers.environmentVariable("SIGNING_KEY_PASSWORD").orNull != null
+            && providers.environmentVariable("SIGNING_STORE_FILE").orNull != null
+            && providers.environmentVariable("SIGNING_STORE_PASSWORD").orNull != null
+}
+
+base {
+    val versionCode = project.property("VERSION_CODE").toString().toInt()
+    archivesName = "file-manager-$versionCode"
+}
+
+android {
+    compileSdk = project.libs.versions.app.build.compileSDKVersion.get().toInt()
+
+    defaultConfig {
+        applicationId = project.property("APP_ID").toString()
+        minSdk = project.libs.versions.app.build.minimumSDK.get().toInt()
+        targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
+        versionName = project.property("VERSION_NAME").toString()
+        versionCode = project.property("VERSION_CODE").toString().toInt()
+        multiDexEnabled = true
+        vectorDrawables.useSupportLibrary = true
+    }
+
+    signingConfigs {
+        if (keystorePropertiesFile.exists()) {
+            register("release") {
+                keyAlias = keystoreProperties.getProperty("keyAlias")
+                keyPassword = keystoreProperties.getProperty("keyPassword")
+                storeFile = file(keystoreProperties.getProperty("storeFile"))
+                storePassword = keystoreProperties.getProperty("storePassword")
+            }
+        } else if (hasSigningVars()) {
+            register("release") {
+                keyAlias = providers.environmentVariable("SIGNING_KEY_ALIAS").get()
+                keyPassword = providers.environmentVariable("SIGNING_KEY_PASSWORD").get()
+                storeFile = file(providers.environmentVariable("SIGNING_STORE_FILE").get())
+                storePassword = providers.environmentVariable("SIGNING_STORE_PASSWORD").get()
+            }
+        } else {
+            logger.warn("Warning: No signing config found. Build will be unsigned.")
+        }
+    }
+
+    buildFeatures {
+        viewBinding = true
+        buildConfig = true
+    }
+
+    buildTypes {
+        debug {
+            applicationIdSuffix = ".debug"
+        }
+        release {
+            isMinifyEnabled = true
+            proguardFiles(
+                getDefaultProguardFile("proguard-android-optimize.txt"),
+                "proguard-rules.pro"
+            )
+            if (keystorePropertiesFile.exists() || hasSigningVars()) {
+                signingConfig = signingConfigs.getByName("release")
+            }
+        }
+    }
+
+    flavorDimensions.add("variants")
+    productFlavors {
+        register("foss")
+        register("gplay")
+    }
+
+    sourceSets {
+        getByName("main").java.directories.add("src/main/kotlin")
+    }
+
+    compileOptions {
+        val currentJavaVersionFromLibs = JavaVersion.valueOf(libs.versions.app.build.javaVersion.get())
+        sourceCompatibility = currentJavaVersionFromLibs
+        targetCompatibility = currentJavaVersionFromLibs
+    }
+
+    dependenciesInfo {
+        includeInApk = false
+    }
+
+    androidResources {
+        @Suppress("UnstableApiUsage")
+        generateLocaleConfig = true
+    }
+
+    tasks.withType<KotlinCompile> {
+        compilerOptions.jvmTarget.set(
+            JvmTarget.fromTarget(project.libs.versions.app.build.kotlinJVMTarget.get())
+        )
+    }
+
+    namespace = project.property("APP_ID").toString()
+
+    lint {
+        checkReleaseBuilds = false
+        abortOnError = true
+        warningsAsErrors = false
+        baseline = file("lint-baseline.xml")
+        lintConfig = rootProject.file("lint.xml")
+    }
+
+    bundle {
+        language {
+            enableSplit = false
+        }
+    }
+}
+
+detekt {
+    baseline = file("detekt-baseline.xml")
+    config.setFrom("$rootDir/detekt.yml")
+    buildUponDefaultConfig = true
+    allRules = false
+}
+
+dependencies {
+    implementation(libs.fossify.commons)
+    implementation(libs.androidx.documentfile)
+    implementation(libs.androidx.swiperefreshlayout)
+    implementation(libs.roottools)
+    implementation(libs.rootshell)
+    implementation(libs.gestureviews)
+    implementation(libs.autofittextview)
+    implementation(libs.zip4j)
+    implementation(libs.bcprov)
+    detektPlugins(libs.compose.detekt)
+}

+ 154 - 0
File-Manager-1.6.4/app/detekt-baseline.xml

@@ -0,0 +1,154 @@
+<?xml version="1.0" ?>
+<SmellBaseline>
+  <ManuallySuppressedIssues/>
+  <CurrentIssues>
+    <ID>ComplexCondition:Activity.kt$(hide &amp;&amp; filename.startsWith('.')) || (!hide &amp;&amp; !filename.startsWith('.'))</ID>
+    <ID>ComplexCondition:ItemsAdapter.kt$ItemsAdapter$activity.getDoesFilePathExist(source) &amp;&amp; activity.getIsPathDirectory(source) &amp;&amp; sourceFile.list()?.isEmpty() == true &amp;&amp; sourceFile.getProperSize(true) == 0L &amp;&amp; sourceFile.getFileCount(true) == 0</ID>
+    <ID>ComplexCondition:ItemsAdapter.kt$ItemsAdapter$hasOTGConnected &amp;&amp; itemToLoad is String &amp;&amp; activity.isPathOnOTG(itemToLoad) &amp;&amp; baseConfig.OTGTreeUri.isNotEmpty() &amp;&amp; baseConfig.OTGPartition.isNotEmpty()</ID>
+    <ID>ComplexCondition:MainActivity.kt$MainActivity$!config.wasOTGHandled &amp;&amp; hasPermission(PERMISSION_WRITE_STORAGE) &amp;&amp; hasOTGConnected() &amp;&amp; config.OTGPath.isEmpty()</ID>
+    <ID>ComplexCondition:MimeTypesActivity.kt$MimeTypesActivity$mimetype != "image" &amp;&amp; mimetype != "video" &amp;&amp; mimetype != "audio" &amp;&amp; mimetype != "text" &amp;&amp; !extraAudioMimeTypes.contains(fullMimetype) &amp;&amp; !extraDocumentMimeTypes.contains(fullMimetype) &amp;&amp; !archiveMimeTypes.contains(fullMimetype)</ID>
+    <ID>ComplexCondition:ReadTextActivity.kt$ReadTextActivity$requestCode == SELECT_SAVE_FILE_INTENT &amp;&amp; resultCode == Activity.RESULT_OK &amp;&amp; resultData != null &amp;&amp; resultData.data != null</ID>
+    <ID>CyclomaticComplexMethod:DecompressActivity.kt$DecompressActivity$private fun decompressTo(destination: String)</ID>
+    <ID>CyclomaticComplexMethod:ItemsAdapter.kt$ItemsAdapter$@SuppressLint("NewApi") private fun compressPaths( sourcePaths: List&lt;String&gt;, targetPath: String, password: String? = null ): Boolean</ID>
+    <ID>CyclomaticComplexMethod:ItemsAdapter.kt$ItemsAdapter$override fun actionItemPressed(id: Int)</ID>
+    <ID>CyclomaticComplexMethod:MainActivity.kt$MainActivity$private fun setupOptionsMenu()</ID>
+    <ID>CyclomaticComplexMethod:MimeTypesActivity.kt$MimeTypesActivity$private fun getProperFileDirItems(callback: (ArrayList&lt;FileDirItem&gt;) -&gt; Unit)</ID>
+    <ID>CyclomaticComplexMethod:StorageFragment.kt$StorageFragment$private fun getSizesByMimeType(volumeName: String): HashMap&lt;String, Long&gt;</ID>
+    <ID>EmptyCatchBlock:MimeTypesActivity.kt$MimeTypesActivity${ }</ID>
+    <ID>EmptyCatchBlock:StorageFragment.kt$StorageFragment${ }</ID>
+    <ID>EmptyFunctionBlock:DecompressItemsAdapter.kt$DecompressItemsAdapter${}</ID>
+    <ID>EmptyFunctionBlock:MainActivity.kt$MainActivity.&lt;no name provided&gt;${}</ID>
+    <ID>EmptyFunctionBlock:ManageFavoritesAdapter.kt$ManageFavoritesAdapter${}</ID>
+    <ID>EmptyFunctionBlock:MimeTypesActivity.kt$MimeTypesActivity${}</ID>
+    <ID>EmptyFunctionBlock:StorageFragment.kt$StorageFragment${}</ID>
+    <ID>LargeClass:ItemsAdapter.kt$ItemsAdapter : MyRecyclerViewAdapterOnPopupTextUpdate</ID>
+    <ID>LoopWithTooManyJumpStatements:DecompressActivity.kt$DecompressActivity$while</ID>
+    <ID>LoopWithTooManyJumpStatements:StorageFragment.kt$StorageFragment$do</ID>
+    <ID>MagicNumber:Config.kt$Config$1.2f</ID>
+    <ID>MagicNumber:Config.kt$Config$4</ID>
+    <ID>MagicNumber:Config.kt$Config$8</ID>
+    <ID>MagicNumber:DecompressActivity.kt$DecompressActivity$1024</ID>
+    <ID>MagicNumber:DecompressItemsAdapter.kt$DecompressItemsAdapter$0.8f</ID>
+    <ID>MagicNumber:DecompressItemsAdapter.kt$DecompressItemsAdapter$180</ID>
+    <ID>MagicNumber:ItemsAdapter.kt$ItemsAdapter$0.8f</ID>
+    <ID>MagicNumber:ItemsAdapter.kt$ItemsAdapter$10</ID>
+    <ID>MagicNumber:ItemsAdapter.kt$ItemsAdapter$180</ID>
+    <ID>MagicNumber:ItemsAdapter.kt$ItemsAdapter$4</ID>
+    <ID>MagicNumber:ItemsFragment.kt$ItemsFragment$3</ID>
+    <ID>MagicNumber:ReadTextActivity.kt$ReadTextActivity$250</ID>
+    <ID>MagicNumber:ReadTextActivity.kt$ReadTextActivity$50</ID>
+    <ID>MagicNumber:RecentsFragment.kt$RecentsFragment$3</ID>
+    <ID>MagicNumber:RecentsFragment.kt$RecentsFragment$50</ID>
+    <ID>MagicNumber:RootHelpers.kt$RootHelpers.&lt;no name provided&gt;$5</ID>
+    <ID>MagicNumber:StorageFragment.kt$StorageFragment$100000</ID>
+    <ID>MagicNumber:StorageFragment.kt$StorageFragment$2000</ID>
+    <ID>MagicNumber:StorageFragment.kt$StorageFragment$3</ID>
+    <ID>MagicNumber:StorageFragment.kt$StorageFragment$4096L</ID>
+    <ID>MaxLineLength:Activity.kt$fun</ID>
+    <ID>MaxLineLength:ChangeViewTypeDialog.kt$ChangeViewTypeDialog$class</ID>
+    <ID>MaxLineLength:ChangeViewTypeDialog.kt$ChangeViewTypeDialog$val</ID>
+    <ID>MaxLineLength:CompressAsDialog.kt$CompressAsDialog$FilePickerDialog</ID>
+    <ID>MaxLineLength:CompressAsDialog.kt$CompressAsDialog$class</ID>
+    <ID>MaxLineLength:CompressAsDialog.kt$CompressAsDialog$val indexOfDot = if (filename.contains('.') &amp;&amp; !activity.getIsPathDirectory(path)) filename.lastIndexOf(".") else filename.length</ID>
+    <ID>MaxLineLength:Config.kt$Config$set(wasStorageAnalysisTabAdded) = prefs.edit().putBoolean(WAS_STORAGE_ANALYSIS_TAB_ADDED, wasStorageAnalysisTabAdded).apply()</ID>
+    <ID>MaxLineLength:Context.kt$fun Context.isPathOnRoot(path: String)</ID>
+    <ID>MaxLineLength:DecompressItemsAdapter.kt$DecompressItemsAdapter$class</ID>
+    <ID>MaxLineLength:DecompressItemsAdapter.kt$DecompressItemsAdapter$val drawable = fileDrawables.getOrElse(fileName.substringAfterLast(".").lowercase(Locale.getDefault()), { fileDrawable })</ID>
+    <ID>MaxLineLength:FavoritesActivity.kt$FavoritesActivity$FilePickerDialog</ID>
+    <ID>MaxLineLength:FavoritesActivity.kt$FavoritesActivity$ManageFavoritesAdapter(this@FavoritesActivity, favorites, this@FavoritesActivity, manageFavoritesList) { }</ID>
+    <ID>MaxLineLength:ItemsAdapter.kt$ItemsAdapter$}</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$ItemsAdapter</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$class</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$context</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$if</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$private</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$val sectionTitle = ListItem(it.path, context!!.humanizePath(it.path), true, 0, 0, 0, true, false)</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment$val sectionTitle = ListItem(parent, context!!.humanizePath(parent), false, 0, 0, 0, true, false)</ID>
+    <ID>MaxLineLength:ItemsFragment.kt$ItemsFragment.&lt;no name provided&gt;$return</ID>
+    <ID>MaxLineLength:ListItem.kt$ListItem$val mPath: String</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$// used at apps that have no file access at all, but need to work with files. For example Simple Calendar uses this at exporting events into a file</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.add_favorite).isVisible = currentFragment is ItemsFragment &amp;&amp; !favorites.contains(currentFragment.currentPath)</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.column_count).isVisible = currentViewType == VIEW_TYPE_GRID &amp;&amp; currentFragment !is StorageFragment</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.go_home).isVisible = currentFragment is ItemsFragment &amp;&amp; currentFragment.currentPath != config.homeFolder</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.remove_favorite).isVisible = currentFragment is ItemsFragment &amp;&amp; favorites.contains(currentFragment.currentPath)</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.set_as_home).isVisible = currentFragment is ItemsFragment &amp;&amp; currentFragment.currentPath != config.homeFolder</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden &amp;&amp; currentFragment !is StorageFragment</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden() &amp;&amp; currentFragment !is StorageFragment</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$findItem(R.id.toggle_filename).isVisible = currentViewType == VIEW_TYPE_GRID &amp;&amp; currentFragment !is StorageFragment</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$getStorageDirectories().firstOrNull { it.trimEnd('/') != internalStoragePath &amp;&amp; it.trimEnd('/') != sdCardPath }</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$if</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$private fun getInactiveTabIndexes(activeIndex: Int)</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION</ID>
+    <ID>MaxLineLength:MainActivity.kt$MainActivity$val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS or LICENSE_AUTOFITTEXTVIEW or LICENSE_ZIP4J</ID>
+    <ID>MaxLineLength:MimeTypesActivity.kt$MimeTypesActivity$!extraAudioMimeTypes.contains(fullMimetype)</ID>
+    <ID>MaxLineLength:MimeTypesActivity.kt$MimeTypesActivity$if</ID>
+    <ID>MaxLineLength:MimeTypesActivity.kt$MimeTypesActivity$val fullMimetype = cursor.getStringValue(MediaStore.Files.FileColumns.MIME_TYPE)?.lowercase(Locale.getDefault()) ?: return@queryCursor</ID>
+    <ID>MaxLineLength:MyViewPagerFragment.kt$MyViewPagerFragment$abstract</ID>
+    <ID>MaxLineLength:MyViewPagerFragment.kt$MyViewPagerFragment$val fabIcon = context.resources.getColoredDrawableWithColor(iconId, context.getProperPrimaryColor().getContrastColor())</ID>
+    <ID>MaxLineLength:ReadTextActivity.kt$ReadTextActivity$if</ID>
+    <ID>MaxLineLength:ReadTextActivity.kt$ReadTextActivity$private</ID>
+    <ID>MaxLineLength:RecentsFragment.kt$RecentsFragment$ItemsAdapter</ID>
+    <ID>MaxLineLength:RecentsFragment.kt$RecentsFragment$binding.recentsSwipeRefresh.isEnabled = lastSearchedText.isEmpty() &amp;&amp; activity?.config?.enablePullToRefresh != false</ID>
+    <ID>MaxLineLength:RecentsFragment.kt$RecentsFragment$class</ID>
+    <ID>MaxLineLength:RecentsFragment.kt$RecentsFragment$if</ID>
+    <ID>MaxLineLength:RootHelpers.kt$RootHelpers$fun</ID>
+    <ID>MaxLineLength:RootHelpers.kt$RootHelpers$private</ID>
+    <ID>MaxLineLength:SaveAsActivity.kt$SaveAsActivity$FilePickerDialog</ID>
+    <ID>MaxLineLength:SaveAsDialog.kt$SaveAsDialog$val title = String.format(activity.getString(R.string.file_already_exists_overwrite), newFilename)</ID>
+    <ID>MaxLineLength:SettingsActivity.kt$SettingsActivity$settingsUseEnglishHolder.beVisibleIf((config.wasUseEnglishToggled || Locale.getDefault().language != "en") &amp;&amp; !isTiramisuPlus())</ID>
+    <ID>NestedBlockDepth:DecompressActivity.kt$DecompressActivity$private fun decompressTo(destination: String)</ID>
+    <ID>NestedBlockDepth:ItemsAdapter.kt$ItemsAdapter$@SuppressLint("NewApi") private fun compressPaths( sourcePaths: List&lt;String&gt;, targetPath: String, password: String? = null ): Boolean</ID>
+    <ID>NestedBlockDepth:ItemsAdapter.kt$ItemsAdapter$private fun decompressPaths( paths: List&lt;String&gt;, conflictResolutions: LinkedHashMap&lt;String, Int&gt;, callback: (success: Boolean) -&gt; Unit )</ID>
+    <ID>NestedBlockDepth:ItemsAdapter.kt$ItemsAdapter$private fun setupView(binding: ItemViewBinding, listItem: ListItem)</ID>
+    <ID>NestedBlockDepth:ItemsAdapter.kt$ItemsAdapter$private fun tryDecompressingPaths( sourcePaths: List&lt;String&gt;, callback: (success: Boolean) -&gt; Unit )</ID>
+    <ID>NestedBlockDepth:ItemsFragment.kt$ItemsFragment$private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList&lt;ListItem&gt;) -&gt; Unit)</ID>
+    <ID>NestedBlockDepth:ItemsFragment.kt$ItemsFragment$private fun searchFiles(text: String, path: String): ArrayList&lt;ListItem&gt;</ID>
+    <ID>NestedBlockDepth:RecentsFragment.kt$RecentsFragment$private fun getRecents(callback: (recents: ArrayList&lt;ListItem&gt;) -&gt; Unit)</ID>
+    <ID>NestedBlockDepth:StorageFragment.kt$StorageFragment$override fun setupFragment(activity: SimpleActivity)</ID>
+    <ID>NestedBlockDepth:StorageFragment.kt$StorageFragment$private fun getAllFiles(volumeName: String): ArrayList&lt;FileDirItem&gt;</ID>
+    <ID>ReturnCount:MainActivity.kt$MainActivity$override fun onBackPressedCompat(): Boolean</ID>
+    <ID>SwallowedException:ItemsAdapter.kt$ItemsAdapter$e: Exception</ID>
+    <ID>SwallowedException:MimeTypesActivity.kt$MimeTypesActivity$e: Exception</ID>
+    <ID>SwallowedException:StorageFragment.kt$StorageFragment$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:DecompressActivity.kt$DecompressActivity$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:ItemsAdapter.kt$ItemsAdapter$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:ItemsAdapter.kt$ItemsAdapter$exception: Exception</ID>
+    <ID>TooGenericExceptionCaught:MimeTypesActivity.kt$MimeTypesActivity$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:ReadTextActivity.kt$ReadTextActivity$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:RecentsFragment.kt$RecentsFragment$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:RootHelpers.kt$RootHelpers$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:RootHelpers.kt$RootHelpers$exception: Exception</ID>
+    <ID>TooGenericExceptionCaught:SaveAsActivity.kt$SaveAsActivity$e: Exception</ID>
+    <ID>TooGenericExceptionCaught:StorageFragment.kt$StorageFragment$e: Exception</ID>
+    <ID>TooManyFunctions:DecompressActivity.kt$DecompressActivity : SimpleActivity</ID>
+    <ID>TooManyFunctions:DecompressItemsAdapter.kt$DecompressItemsAdapter : MyRecyclerViewAdapter</ID>
+    <ID>TooManyFunctions:ItemsAdapter.kt$ItemsAdapter : MyRecyclerViewAdapterOnPopupTextUpdate</ID>
+    <ID>TooManyFunctions:ItemsFragment.kt$ItemsFragment : MyViewPagerFragmentItemOperationsListenerBreadcrumbsListener</ID>
+    <ID>TooManyFunctions:MainActivity.kt$MainActivity : SimpleActivity</ID>
+    <ID>TooManyFunctions:ManageFavoritesAdapter.kt$ManageFavoritesAdapter : MyRecyclerViewAdapter</ID>
+    <ID>TooManyFunctions:MimeTypesActivity.kt$MimeTypesActivity : SimpleActivityItemOperationsListener</ID>
+    <ID>TooManyFunctions:ReadTextActivity.kt$ReadTextActivity : SimpleActivity</ID>
+    <ID>TooManyFunctions:RecentsFragment.kt$RecentsFragment : MyViewPagerFragmentItemOperationsListener</ID>
+    <ID>TooManyFunctions:RootHelpers.kt$RootHelpers</ID>
+    <ID>TooManyFunctions:SettingsActivity.kt$SettingsActivity : SimpleActivity</ID>
+    <ID>TooManyFunctions:StorageFragment.kt$StorageFragment : MyViewPagerFragmentItemOperationsListener</ID>
+    <ID>VariableNaming:ItemsAdapter.kt$ItemsAdapter$val SAFPath = getFirstSelectedItemPath()</ID>
+    <ID>VariableNaming:RecentsFragment.kt$RecentsFragment$private val RECENTS_LIMIT = 50</ID>
+    <ID>VariableNaming:StorageFragment.kt$StorageFragment$private val SIZE_DIVIDER = 100000</ID>
+    <ID>WildcardImport:ChangeSortingDialog.kt$import org.fossify.commons.helpers.*</ID>
+    <ID>WildcardImport:CompressAsDialog.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:CreateNewItemDialog.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:InsertFilenameDialog.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:ItemsFragment.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:ItemsFragment.kt$import org.fossify.commons.helpers.*</ID>
+    <ID>WildcardImport:ManageFavoritesAdapter.kt$import android.view.*</ID>
+    <ID>WildcardImport:MimeTypesActivity.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:MimeTypesActivity.kt$import org.fossify.filemanager.helpers.*</ID>
+    <ID>WildcardImport:MyViewPagerFragment.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:ReadTextActivity.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:SaveAsActivity.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:SaveAsDialog.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:SettingsActivity.kt$import org.fossify.commons.extensions.*</ID>
+    <ID>WildcardImport:SettingsActivity.kt$import org.fossify.commons.helpers.*</ID>
+  </CurrentIssues>
+</SmellBaseline>

+ 1195 - 0
File-Manager-1.6.4/app/lint-baseline.xml

@@ -0,0 +1,1195 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="6" by="lint 9.4.1" type="baseline" client="gradle" dependencies="false" name="AGP (9.4.1)" variant="all" version="9.4.1">
+
+    <issue
+        id="ScopedStorage"
+        message="The Google Play store has a policy that limits usage of MANAGE_EXTERNAL_STORAGE"
+        errorLine1="    &lt;uses-permission android:name=&quot;android.permission.MANAGE_EXTERNAL_STORAGE&quot; />"
+        errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/AndroidManifest.xml"
+            line="7"
+            column="36"/>
+    </issue>
+
+    <issue
+        id="NewApi"
+        message="Call requires API level 33 (current min is 26): `launchChangeAppLanguageIntent`"
+        errorLine1="                launchChangeAppLanguageIntent()"
+        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/activities/SettingsActivity.kt"
+            line="91"
+            column="17"/>
+    </issue>
+
+    <issue
+        id="OldTargetApi"
+        message="Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the `android.os.Build.VERSION_CODES` javadoc for details."
+        errorLine1="app-build-targetSDK = &quot;36&quot;"
+        errorLine2="                      ~~~~">
+        <location
+            file="$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml"
+            line="22"
+            column="23"/>
+    </issue>
+
+    <issue
+        id="CustomSplashScreen"
+        message="The application should not provide its own launch screen"
+        errorLine1="class SplashActivity : BaseSplashActivity() {"
+        errorLine2="      ~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/activities/SplashActivity.kt"
+            line="6"
+            column="7"/>
+    </issue>
+
+    <issue
+        id="AndroidGradlePluginVersion"
+        message="A newer version of com.android.application than 9.4.1 is available: 9.5.0"
+        errorLine1="gradlePlugins-agp = &quot;9.4.1&quot;"
+        errorLine2="                    ~~~~~~~">
+        <location
+            file="$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml"
+            line="19"
+            column="21"/>
+    </issue>
+
+    <issue
+        id="GradleDependency"
+        message="A newer version of `app-build-compileSDKVersion` than 36 is available: 37"
+        errorLine1="app-build-compileSDKVersion = &quot;36&quot;"
+        errorLine2="                              ~~~~">
+        <location
+            file="$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml"
+            line="21"
+            column="31"/>
+    </issue>
+
+    <issue
+        id="NewerVersionAvailable"
+        message="A newer version of io.nlopez.compose.rules:detekt than 0.4.28 is available: 0.6.8"
+        errorLine1="detektCompose = &quot;0.4.28&quot;"
+        errorLine2="                ~~~~~~~~">
+        <location
+            file="$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml"
+            line="6"
+            column="17"/>
+    </issue>
+
+    <issue
+        id="NewerVersionAvailable"
+        message="A newer version of com.alexvasilkov:gesture-views than 2.9.0 is available: 2.10.0"
+        errorLine1="gestureviews = &quot;2.9.0&quot;"
+        errorLine2="               ~~~~~~~">
+        <location
+            file="$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml"
+            line="14"
+            column="16"/>
+    </issue>
+
+    <issue
+        id="UseCompatLoadingForDrawables"
+        message="Use `ResourcesCompat.getDrawable()`"
+        errorLine1="        fileDrawable = resources.getDrawable(R.drawable.ic_file_generic)"
+        errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/DecompressItemsAdapter.kt"
+            line="136"
+            column="24"/>
+    </issue>
+
+    <issue
+        id="UseCompatLoadingForDrawables"
+        message="Use `ResourcesCompat.getDrawable()`"
+        errorLine1="            val drawable = resources.getDrawable(R.drawable.shortcut_folder).mutate()"
+        errorLine2="                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="376"
+            column="28"/>
+    </issue>
+
+    <issue
+        id="UseCompatLoadingForDrawables"
+        message="Use `ResourcesCompat.getDrawable()`"
+        errorLine1="        fileDrawable = resources.getDrawable(R.drawable.ic_file_generic)"
+        errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="1152"
+            column="24"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;app_launcher_name&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;app_launcher_name&quot;>File Manager_debug&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/debug/res/values/strings.xml"
+            line="3"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;app_launcher_name&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;app_launcher_name&quot;>File Manager&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="3"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;press_back_again&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;press_back_again&quot;>Press back again to exit&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="4"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;go_to_home_folder&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;go_to_home_folder&quot;>Go to home folder&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="5"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;set_as_home_folder&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;set_as_home_folder&quot;>Set as home folder&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="6"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;home_folder_updated&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;home_folder_updated&quot;>Home folder updated&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="7"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;copy_path&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;copy_path&quot;>Copy path to clipboard&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="8"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;path_copied&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;path_copied&quot;>Path copied&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="9"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;select_audio_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;select_audio_file&quot;>Please select an audio file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="10"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;search_folder&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;search_folder&quot;>Search folder&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="11"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;rooted_device_only&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;rooted_device_only&quot;>This operation works only on rooted devices&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="12"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;recents&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh)"
+        errorLine1="    &lt;string name=&quot;recents&quot;>Recents&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="13"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;show_recents&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;show_recents&quot;>Show recents&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="14"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;invert_colors&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;invert_colors&quot;>Invert colors&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="15"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;open_as&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;open_as&quot;>Open as&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="18"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;text_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;text_file&quot;>Text file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="19"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;image_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;image_file&quot;>Image file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="20"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;audio_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;audio_file&quot;>Audio file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="21"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;video_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;video_file&quot;>Video file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="22"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;other_file&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu)"
+        errorLine1="    &lt;string name=&quot;other_file&quot;>Other file&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="23"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;compress&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;compress&quot;>Compress&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="26"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;decompress&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;decompress&quot;>Decompress&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="27"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;compress_as&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;compress_as&quot;>Compress as&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="28"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;compressing&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;compressing&quot;>Compressing…&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="29"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;decompressing&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;decompressing&quot;>Decompressing…&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="30"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;compression_successful&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;compression_successful&quot;>Compression successful&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="31"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;decompression_successful&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;decompression_successful&quot;>Decompression successful&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="32"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;compressing_failed&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;compressing_failed&quot;>Compressing failed&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="33"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;decompressing_failed&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;decompressing_failed&quot;>Decompressing failed&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="34"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;manage_favorites&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;manage_favorites&quot;>Manage favorites&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="37"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;go_to_favorite&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;go_to_favorite&quot;>Go to favorite&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="38"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;favorites_activity_placeholder&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;favorites_activity_placeholder&quot;>You can add frequently used folders to favorites for easy access from anywhere.&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="39"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;file_editor&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;file_editor&quot;>File Editor&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="42"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;storage_analysis&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;storage_analysis&quot;>Storage analysis&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="45"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;images&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;images&quot;>Images&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="46"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;videos&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;videos&quot;>Videos&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="47"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;audio&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh)"
+        errorLine1="    &lt;string name=&quot;audio&quot;>Audio&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="48"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;documents&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;documents&quot;>Documents&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="49"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;downloads&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;downloads&quot;>Downloads&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="50"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;archives&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;archives&quot;>Archives&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="51"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;others&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;others&quot;>Others&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="52"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;storage_free&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;storage_free&quot;>free&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="53"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;total_storage&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;"
+        errorLine1="    &lt;string name=&quot;total_storage&quot;>Total storage: %s&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="54"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;enable_root_access&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;enable_root_access&quot;>Enable root access&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="57"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="MissingTranslation"
+        message="&quot;press_back_twice&quot; is not translated in &quot;fil&quot; (Filipino; Pilipino), &quot;lv&quot; (Latvian), &quot;ia&quot; (Interlingua), &quot;mk&quot; (Macedonian), &quot;ml&quot; (Malayalam), &quot;ms&quot; (Malay), &quot;en&quot; (English), &quot;ne&quot; (Nepali), &quot;az&quot; (Azerbaijani), &quot;nn&quot; (Norwegian Nynorsk), &quot;bn&quot; (Bangla), &quot;bs&quot; (Bosnian), &quot;si&quot; (Sinhala), &quot;zgh&quot; (Standard Moroccan Tamazight), &quot;ltg&quot;, &quot;kn&quot; (Kannada), &quot;or&quot; (Odia), &quot;kr&quot; (Kanuri), &quot;sat&quot; (Santali), &quot;cr&quot; (Cree), &quot;te&quot; (Telugu), &quot;cy&quot; (Welsh), &quot;bqi&quot;, &quot;ckb&quot;"
+        errorLine1="    &lt;string name=&quot;press_back_twice&quot;>Require pressing Back twice to leave the app&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="58"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="NotifyDataSetChanged"
+        message="It will always be more efficient to use more specific change events if you can. Rely on `notifyDataSetChanged` as a last resort."
+        errorLine1="            notifyDataSetChanged()"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="980"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="NotifyDataSetChanged"
+        message="It will always be more efficient to use more specific change events if you can. Rely on `notifyDataSetChanged` as a last resort."
+        errorLine1="            notifyDataSetChanged()"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="984"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="NotifyDataSetChanged"
+        message="It will always be more efficient to use more specific change events if you can. Rely on `notifyDataSetChanged` as a last resort."
+        errorLine1="        notifyDataSetChanged()"
+        errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="991"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="NotifyDataSetChanged"
+        message="It will always be more efficient to use more specific change events if you can. Rely on `notifyDataSetChanged` as a last resort."
+        errorLine1="        notifyDataSetChanged()"
+        errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="997"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="NotifyDataSetChanged"
+        message="It will always be more efficient to use more specific change events if you can. Rely on `notifyDataSetChanged` as a last resort."
+        errorLine1="        notifyDataSetChanged()"
+        errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt"
+            line="1002"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="ObsoleteSdkInt"
+        message="This folder configuration (`v26`) is unnecessary; `minSdkVersion` is 26. Merge all the resources in this folder into `mipmap-anydpi`.">
+        <location
+            file="src/main/res/mipmap-anydpi-v26"/>
+    </issue>
+
+    <issue
+        id="Overdraw"
+        message="Possible overdraw: Root element paints background `?attr/selectableItemBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"
+        errorLine1="    android:background=&quot;?attr/selectableItemBackground&quot;"
+        errorLine2="    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_dir_grid.xml"
+            line="7"
+            column="5"/>
+    </issue>
+
+    <issue
+        id="Overdraw"
+        message="Possible overdraw: Root element paints background `?attr/selectableItemBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"
+        errorLine1="    android:background=&quot;?attr/selectableItemBackground&quot;"
+        errorLine2="    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_file_grid.xml"
+            line="7"
+            column="5"/>
+    </issue>
+
+    <issue
+        id="Overdraw"
+        message="Possible overdraw: Root element paints background `?attr/selectableItemBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"
+        errorLine1="    android:background=&quot;?attr/selectableItemBackground&quot;"
+        errorLine2="    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_section.xml"
+            line="7"
+            column="5"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.bool.show_donate_in_about` appears to be unused"
+        errorLine1="    &lt;bool name=&quot;show_donate_in_about&quot;>true&lt;/bool>"
+        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/foss/res/values/bools.xml"
+            line="3"
+            column="11"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.dimen.grid_view_icon_size` appears to be unused"
+        errorLine1="    &lt;dimen name=&quot;grid_view_icon_size&quot;>50dp&lt;/dimen>"
+        errorLine2="           ~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/dimens.xml"
+            line="2"
+            column="12"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.dimen.default_status_action_height` appears to be unused"
+        errorLine1="    &lt;dimen name=&quot;default_status_action_height&quot;>86dp&lt;/dimen>"
+        errorLine2="           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/dimens.xml"
+            line="4"
+            column="12"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.package_name` appears to be unused"
+        errorLine1="    &lt;string name=&quot;package_name&quot;>org.fossify.filemanager&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/donottranslate.xml"
+            line="3"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.drawable.gradient_background_flipped` appears to be unused"
+        errorLine1="&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;>"
+        errorLine2="^">
+        <location
+            file="src/main/res/drawable/gradient_background_flipped.xml"
+            line="2"
+            column="1"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.integer.default_sorting` appears to be unused"
+        errorLine1="    &lt;integer name=&quot;default_sorting&quot;>32769&lt;/integer>"
+        errorLine2="             ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/integers.xml"
+            line="2"
+            column="14"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.path_copied` appears to be unused"
+        errorLine1="    &lt;string name=&quot;path_copied&quot;>Path copied&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="9"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.search_folder` appears to be unused"
+        errorLine1="    &lt;string name=&quot;search_folder&quot;>Search folder&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="11"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.show_recents` appears to be unused"
+        errorLine1="    &lt;string name=&quot;show_recents&quot;>Show recents&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="14"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.invert_colors` appears to be unused"
+        errorLine1="    &lt;string name=&quot;invert_colors&quot;>Invert colors&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="15"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.decompressing` appears to be unused"
+        errorLine1="    &lt;string name=&quot;decompressing&quot;>Decompressing…&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="30"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UnusedResources"
+        message="The resource `R.string.downloads` appears to be unused"
+        errorLine1="    &lt;string name=&quot;downloads&quot;>Downloads&lt;/string>"
+        errorLine2="            ~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/values/strings.xml"
+            line="50"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="NotShrinkingResources"
+        message="If enabling minification, also set isShrinkResources = true"
+        errorLine1="            isMinifyEnabled = true"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="build.gradle.kts"
+            line="72"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UselessParent"
+        message="This `RelativeLayout` layout or its `FrameLayout` parent is possibly unnecessary; transfer the `background` attribute to the other view"
+        errorLine1="    &lt;RelativeLayout"
+        errorLine2="     ~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_dir_grid.xml"
+            line="16"
+            column="6"/>
+    </issue>
+
+    <issue
+        id="UselessParent"
+        message="This `RelativeLayout` layout or its `FrameLayout` parent is possibly unnecessary; transfer the `background` attribute to the other view"
+        errorLine1="    &lt;RelativeLayout"
+        errorLine2="     ~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_file_grid.xml"
+            line="16"
+            column="6"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(show) = prefs.edit().putBoolean(SHOW_HIDDEN, show).apply()"
+        errorLine2="                    ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="17"
+            column="21"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(temporarilyShowHidden) = prefs.edit().putBoolean(TEMPORARILY_SHOW_HIDDEN, temporarilyShowHidden).apply()"
+        errorLine2="                                     ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="21"
+            column="38"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(pressBackTwice) = prefs.edit().putBoolean(PRESS_BACK_TWICE, pressBackTwice).apply()"
+        errorLine2="                              ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="27"
+            column="31"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(homeFolder) = prefs.edit().putString(HOME_FOLDER, homeFolder).apply()"
+        errorLine2="                          ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="38"
+            column="27"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(isRootAvailable) = prefs.edit().putBoolean(IS_ROOT_AVAILABLE, isRootAvailable).apply()"
+        errorLine2="                               ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="69"
+            column="32"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(enableRootAccess) = prefs.edit().putBoolean(ENABLE_ROOT_ACCESS, enableRootAccess).apply()"
+        errorLine2="                                ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="73"
+            column="33"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(editorTextZoom) = prefs.edit().putFloat(EDITOR_TEXT_ZOOM, editorTextZoom).apply()"
+        errorLine2="                              ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="77"
+            column="31"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="            prefs.edit().putInt(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault()), value).apply()"
+        errorLine2="            ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="83"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        prefs.edit().remove(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault())).apply()"
+        errorLine2="        ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="90"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(fileColumnCnt) = prefs.edit().putInt(getFileColumnsField(), fileColumnCnt).apply()"
+        errorLine2="                             ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="97"
+            column="30"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(displayFilenames) = prefs.edit().putBoolean(DISPLAY_FILE_NAMES, displayFilenames).apply()"
+        errorLine2="                                ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="115"
+            column="33"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(showTabs) = prefs.edit().putInt(SHOW_TABS, showTabs).apply()"
+        errorLine2="                        ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="119"
+            column="25"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `SharedPreferences.edit` instead?"
+        errorLine1="        set(wasStorageAnalysisTabAdded) = prefs.edit().putBoolean(WAS_STORAGE_ANALYSIS_TAB_ADDED, wasStorageAnalysisTabAdded).apply()"
+        errorLine2="                                          ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/helpers/Config.kt"
+            line="123"
+            column="43"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `String.toUri` instead?"
+        errorLine1="                            intent.data = Uri.parse(&quot;package:$packageName&quot;)"
+        errorLine2="                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt"
+            line="80"
+            column="43"/>
+    </issue>
+
+    <issue
+        id="UseKtx"
+        message="Use the KTX extension function `String.toUri` instead?"
+        errorLine1="                            intent.data = Uri.parse(&quot;package:$packageName&quot;)"
+        errorLine2="                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt"
+            line="80"
+            column="43"/>
+    </issue>
+
+    <issue
+        id="ClickableViewAccessibility"
+        message="Custom view `GestureEditText` overrides `onTouchEvent` but not `performClick`"
+        errorLine1="    override fun onTouchEvent(event: MotionEvent): Boolean {"
+        errorLine2="                 ~~~~~~~~~~~~">
+        <location
+            file="src/main/kotlin/org/fossify/filemanager/views/GestureEditText.kt"
+            line="56"
+            column="18"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="    &lt;ImageView"
+        errorLine2="     ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_decompression_list_file_dir.xml"
+            line="10"
+            column="6"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="        &lt;ImageView"
+        errorLine2="         ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_dir_grid.xml"
+            line="22"
+            column="10"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="        &lt;ImageView"
+        errorLine2="         ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_file_dir_list.xml"
+            line="19"
+            column="10"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="    &lt;ImageView"
+        errorLine2="     ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_manage_favorite.xml"
+            line="20"
+            column="6"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="        &lt;ImageView"
+        errorLine2="         ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_section.xml"
+            line="19"
+            column="10"/>
+    </issue>
+
+    <issue
+        id="ContentDescription"
+        message="Missing `contentDescription` attribute on image"
+        errorLine1="        &lt;ImageView"
+        errorLine2="         ~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_storage_volume.xml"
+            line="41"
+            column="10"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingEnd` you should probably also define `paddingStart` for right-to-left symmetry"
+        errorLine1="    android:paddingEnd=&quot;@dimen/activity_margin&quot;>"
+        errorLine2="    ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_decompression_list_file_dir.xml"
+            line="8"
+            column="5"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingStart` you should probably also define `paddingEnd` for right-to-left symmetry"
+        errorLine1="        android:paddingStart=&quot;@dimen/tiny_margin&quot;"
+        errorLine2="        ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_decompression_list_file_dir.xml"
+            line="28"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingStart` you should probably also define `paddingEnd` for right-to-left symmetry"
+        errorLine1="            android:paddingStart=&quot;@dimen/tiny_margin&quot;"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_file_dir_list.xml"
+            line="35"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingStart` you should probably also define `paddingEnd` for right-to-left symmetry"
+        errorLine1="            android:paddingStart=&quot;@dimen/tiny_margin&quot;"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_file_dir_list.xml"
+            line="50"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingEnd` you should probably also define `paddingStart` for right-to-left symmetry"
+        errorLine1="        android:paddingEnd=&quot;@dimen/activity_margin&quot;>"
+        errorLine2="        ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_section.xml"
+            line="17"
+            column="9"/>
+    </issue>
+
+    <issue
+        id="RtlSymmetry"
+        message="When you define `paddingEnd` you should probably also define `paddingStart` for right-to-left symmetry"
+        errorLine1="            android:paddingEnd=&quot;@dimen/normal_margin&quot;"
+        errorLine2="            ~~~~~~~~~~~~~~~~~~">
+        <location
+            file="src/main/res/layout/item_section.xml"
+            line="33"
+            column="13"/>
+    </issue>
+
+    <issue
+        id="RtlEnabled"
+        message="The project references RTL attributes, but does not explicitly enable or disable RTL support with `android:supportsRtl` in the manifest">
+        <location
+            file="src/main/AndroidManifest.xml"/>
+    </issue>
+
+</issues>

+ 8 - 0
File-Manager-1.6.4/app/proguard-rules.pro

@@ -0,0 +1,8 @@
+-dontnote android.net.http.*
+-dontnote org.apache.http.**
+-keep class org.fossify.** { *; }
+-dontwarn org.fossify.**
+
+# BouncyCastle (file encryption)
+-keep class org.bouncycastle.** { *; }
+-dontwarn org.bouncycastle.**

+ 4 - 0
File-Manager-1.6.4/app/src/debug/res/values/strings.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="app_launcher_name">File Manager_debug</string>
+</resources>

+ 5 - 0
File-Manager-1.6.4/app/src/foss/res/values/bools.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <bool name="show_donate_in_about">true</bool>
+    <bool name="is_google_play_build">false</bool>
+</resources>

+ 5 - 0
File-Manager-1.6.4/app/src/gplay/res/values/bools.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <bool name="show_donate_in_about">false</bool>
+    <bool name="is_google_play_build">true</bool>
+</resources>

+ 437 - 0
File-Manager-1.6.4/app/src/main/AndroidManifest.xml

@@ -0,0 +1,437 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    android:installLocation="auto">
+
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
+    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
+
+    <uses-feature
+        android:name="android.hardware.faketouch"
+        android:required="false" />
+
+    <queries>
+        <package android:name="org.fossify.filemanager.debug" />
+        <package android:name="org.fossify.filemanager" />
+    </queries>
+
+    <application
+        android:name="org.fossify.filemanager.App"
+        android:allowBackup="true"
+        android:appCategory="productivity"
+        android:icon="@mipmap/ic_launcher"
+        android:label="@string/app_launcher_name"
+        android:requestLegacyExternalStorage="true"
+        android:roundIcon="@mipmap/ic_launcher"
+        android:theme="@style/AppTheme">
+
+        <activity
+            android:name=".activities.SplashActivity"
+            android:exported="false"
+            android:theme="@style/SplashTheme" />
+
+        <activity
+            android:name=".activities.MainActivity"
+            android:configChanges="orientation"
+            android:exported="true">
+
+            <intent-filter>
+                <action android:name="android.intent.action.GET_CONTENT" />
+                <data android:mimeType="*/*" />
+
+                <category android:name="android.intent.category.OPENABLE" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
+            <intent-filter>
+                <action android:name="android.intent.action.PICK" />
+                <data android:mimeType="*/*" />
+
+                <category android:name="android.intent.category.OPENABLE" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
+            <intent-filter>
+                <action android:name="android.intent.action.CREATE_DOCUMENT" />
+                <data android:mimeType="*/*" />
+
+                <category android:name="android.intent.category.OPENABLE" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
+            <intent-filter>
+                <action android:name="android.intent.action.RINGTONE_PICKER" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:mimeType="resource/folder" />
+            </intent-filter>
+        </activity>
+
+        <activity
+            android:name=".activities.MimeTypesActivity"
+            android:configChanges="orientation"
+            android:exported="false"
+            android:parentActivityName=".activities.MainActivity" />
+
+        <activity
+            android:name=".activities.ReadTextActivity"
+            android:configChanges="orientation"
+            android:exported="true"
+            android:label="@string/file_editor">
+
+            <meta-data
+                android:name="android.app.default_searchable"
+                android:resource="@xml/searchable" />
+
+            <intent-filter>
+                <action android:name="android.intent.action.SEARCH" />
+            </intent-filter>
+
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:mimeType="text/*" />
+                <data android:mimeType="application/json" />
+            </intent-filter>
+        </activity>
+
+        <activity
+            android:name="org.fossify.filemanager.activities.DecompressActivity"
+            android:configChanges="orientation"
+            android:exported="true"
+            android:label="@string/decompress">
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <data android:mimeType="application/zip" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+        </activity>
+
+        <activity
+            android:name=".activities.SaveAsActivity"
+            android:configChanges="orientation"
+            android:exported="true"
+            android:label="@string/save_as">
+            <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=".activities.SettingsActivity"
+            android:configChanges="orientation"
+            android:exported="true"
+            android:label="@string/settings"
+            android:parentActivityName=".activities.MainActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+        </activity>
+
+        <activity
+            android:name=".activities.FavoritesActivity"
+            android:configChanges="orientation"
+            android:exported="false"
+            android:label="@string/favorites"
+            android:parentActivityName=".activities.MainActivity" />
+
+        <activity
+            android:name="org.fossify.commons.activities.AboutActivity"
+            android:configChanges="orientation"
+            android:exported="false"
+            android:label="@string/about"
+            android:parentActivityName=".activities.MainActivity" />
+
+        <activity
+            android:name="org.fossify.commons.activities.CustomizationActivity"
+            android:configChanges="orientation"
+            android:exported="false"
+            android:label="@string/customize_colors"
+            android:parentActivityName=".activities.SettingsActivity" />
+
+        <provider
+            android:name="androidx.core.content.FileProvider"
+            android:authorities="${applicationId}.provider"
+            android:exported="false"
+            android:grantUriPermissions="true">
+            <meta-data
+                android:name="android.support.FILE_PROVIDER_PATHS"
+                android:resource="@xml/provider_paths" />
+        </provider>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Red"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_red"
+            android:roundIcon="@mipmap/ic_launcher_red"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Pink"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_pink"
+            android:roundIcon="@mipmap/ic_launcher_pink"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Purple"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_purple"
+            android:roundIcon="@mipmap/ic_launcher_purple"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Deep_purple"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_deep_purple"
+            android:roundIcon="@mipmap/ic_launcher_deep_purple"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Indigo"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_indigo"
+            android:roundIcon="@mipmap/ic_launcher_indigo"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Blue"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_blue"
+            android:roundIcon="@mipmap/ic_launcher_blue"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Light_blue"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_light_blue"
+            android:roundIcon="@mipmap/ic_launcher_light_blue"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Cyan"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_cyan"
+            android:roundIcon="@mipmap/ic_launcher_cyan"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Teal"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_teal"
+            android:roundIcon="@mipmap/ic_launcher_teal"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Green"
+            android:enabled="true"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher"
+            android:roundIcon="@mipmap/ic_launcher"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Light_green"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_light_green"
+            android:roundIcon="@mipmap/ic_launcher_light_green"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Lime"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_lime"
+            android:roundIcon="@mipmap/ic_launcher_lime"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Yellow"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_yellow"
+            android:roundIcon="@mipmap/ic_launcher_yellow"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Amber"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_amber"
+            android:roundIcon="@mipmap/ic_launcher_amber"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Orange"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_orange"
+            android:roundIcon="@mipmap/ic_launcher_orange"
+            android:targetActivity=".activities.SplashActivity">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Deep_orange"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_deep_orange"
+            android:roundIcon="@mipmap/ic_launcher_deep_orange"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Brown"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_brown"
+            android:roundIcon="@mipmap/ic_launcher_brown"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Blue_grey"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_blue_grey"
+            android:roundIcon="@mipmap/ic_launcher_blue_grey"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+
+        <activity-alias
+            android:name=".activities.SplashActivity.Grey_black"
+            android:enabled="false"
+            android:exported="true"
+            android:icon="@mipmap/ic_launcher_grey_black"
+            android:roundIcon="@mipmap/ic_launcher_grey_black"
+            android:targetActivity=".activities.SplashActivity">
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity-alias>
+    </application>
+</manifest>

BIN
File-Manager-1.6.4/app/src/main/ic_launcher-playstore.png


+ 13 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/App.kt

@@ -0,0 +1,13 @@
+package org.fossify.filemanager
+
+import com.github.ajalt.reprint.core.Reprint
+import org.fossify.commons.FossifyApp
+
+class App : FossifyApp() {
+    override val isAppLockFeatureAvailable = true
+
+    override fun onCreate() {
+        super.onCreate()
+        Reprint.initialize(this)
+    }
+}

+ 310 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/DecompressActivity.kt

@@ -0,0 +1,310 @@
+package org.fossify.filemanager.activities
+
+import android.net.Uri
+import android.os.Bundle
+import net.lingala.zip4j.exception.ZipException
+import net.lingala.zip4j.exception.ZipException.Type
+import net.lingala.zip4j.io.inputstream.ZipInputStream
+import net.lingala.zip4j.model.LocalFileHeader
+import org.fossify.commons.dialogs.EnterPasswordDialog
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.extensions.createDirectorySync
+import org.fossify.commons.extensions.getDoesFilePathExist
+import org.fossify.commons.extensions.getFileOutputStreamSync
+import org.fossify.commons.extensions.getFilenameFromPath
+import org.fossify.commons.extensions.getMimeType
+import org.fossify.commons.extensions.getParentPath
+import org.fossify.commons.extensions.getRealPathFromURI
+import org.fossify.commons.extensions.internalStoragePath
+import org.fossify.commons.extensions.isGone
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.extensions.toast
+import org.fossify.commons.extensions.viewBinding
+import org.fossify.commons.helpers.NavigationIcon
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.filemanager.R
+import org.fossify.filemanager.adapters.DecompressItemsAdapter
+import org.fossify.filemanager.databinding.ActivityDecompressBinding
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.setLastModified
+import org.fossify.filemanager.models.ListItem
+import java.io.BufferedInputStream
+import java.io.File
+
+class DecompressActivity : SimpleActivity() {
+    companion object {
+        private const val PASSWORD = "password"
+    }
+
+    private val binding by viewBinding(ActivityDecompressBinding::inflate)
+    private val allFiles = ArrayList<ListItem>()
+    private var currentPath = ""
+    private var uri: Uri? = null
+    private var password: String? = null
+    private var passwordDialog: EnterPasswordDialog? = null
+    private var filename = ""
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        setupOptionsMenu()
+        binding.apply {
+            setupEdgeToEdge(padBottomSystem = listOf(decompressList))
+            setupMaterialScrollListener(binding.decompressList, binding.decompressAppbar)
+        }
+
+        uri = intent.data
+        if (uri == null) {
+            toast(R.string.unknown_error_occurred)
+            return
+        }
+
+        password = savedInstanceState?.getString(PASSWORD, null)
+
+        val realPath = getRealPathFromURI(uri!!)
+        filename = realPath?.getFilenameFromPath() ?: Uri.decode(uri.toString().getFilenameFromPath())
+        binding.decompressToolbar.title = filename
+        setupFilesList()
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.decompressAppbar, NavigationIcon.Arrow)
+    }
+
+    override fun onSaveInstanceState(outState: Bundle) {
+        super.onSaveInstanceState(outState)
+        outState.putString(PASSWORD, password)
+    }
+
+    private fun setupOptionsMenu() {
+        binding.decompressToolbar.setOnMenuItemClickListener { menuItem ->
+            when (menuItem.itemId) {
+                R.id.decompress -> decompressFiles()
+                else -> return@setOnMenuItemClickListener false
+            }
+            return@setOnMenuItemClickListener true
+        }
+    }
+
+    override fun onBackPressedCompat(): Boolean {
+        return if (currentPath.isEmpty()) {
+            false
+        } else {
+            val newPath = if (currentPath.contains("/")) currentPath.getParentPath() else ""
+            updateCurrentPath(newPath)
+            true
+        }
+    }
+
+    private fun setupFilesList() {
+        allFiles.clear()
+        fillAllListItems(uri!!) {
+            updateCurrentPath("")
+        }
+    }
+
+    private fun updateCurrentPath(path: String) {
+        currentPath = path
+        try {
+            val listItems = getFolderItems(currentPath)
+            updateAdapter(listItems = listItems)
+        } catch (e: Exception) {
+            showErrorToast(e)
+        }
+    }
+
+    private fun updateAdapter(listItems: MutableList<ListItem>) {
+        runOnUiThread {
+            DecompressItemsAdapter(this, listItems, binding.decompressList) {
+                if ((it as ListItem).isDirectory) {
+                    updateCurrentPath(it.path)
+                }
+            }.apply {
+                binding.decompressList.adapter = this
+            }
+        }
+    }
+
+    private fun decompressFiles() {
+        val defaultFolder = getRealPathFromURI(uri!!) ?: internalStoragePath
+        FilePickerDialog(
+            activity = this,
+            currPath = defaultFolder,
+            pickFile = false,
+            showHidden = config.showHidden,
+            showFAB = true,
+            canAddShowHiddenButton = true,
+            showFavoritesButton = true
+        ) { destination ->
+            handleSAFDialog(destination) {
+                if (it) {
+                    ensureBackgroundThread {
+                        decompressTo(destination)
+                    }
+                }
+            }
+        }
+    }
+
+    private fun decompressTo(destination: String) {
+        try {
+            val inputStream = contentResolver.openInputStream(uri!!)
+            val zipInputStream = ZipInputStream(BufferedInputStream(inputStream!!))
+            if (password != null) {
+                zipInputStream.setPassword(password?.toCharArray())
+            }
+            val buffer = ByteArray(1024)
+            val foldersTimestamp = mutableListOf<Pair<File, LocalFileHeader>>()
+
+            zipInputStream.use {
+                while (true) {
+                    val entry = zipInputStream.nextEntry ?: break
+                    val filename = filename.substringBeforeLast(".")
+                    val parent = "$destination/$filename"
+                    val newPath = "$parent/${entry.fileName.trimEnd('/')}"
+
+
+                    if (!getDoesFilePathExist(parent)) {
+                        if (!createDirectorySync(parent)) {
+                            continue
+                        }
+                    }
+
+                    val outputFile = File(newPath)
+
+                    val isVulnerableForZipPathTraversal = !outputFile.canonicalPath.startsWith(parent)
+                    if (isVulnerableForZipPathTraversal) {
+                        continue
+                    }
+
+                    if (entry.isDirectory) {
+                        if (!outputFile.exists()) {
+                            outputFile.mkdirs()
+                        }
+                        foldersTimestamp.add(Pair(outputFile, entry))
+                        continue
+                    }
+
+                    val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
+                    var count: Int
+                    while (true) {
+                        count = zipInputStream.read(buffer)
+                        if (count == -1) {
+                            break
+                        }
+
+                        fos!!.write(buffer, 0, count)
+                    }
+                    fos!!.close()
+                    outputFile.setLastModified(entry)
+                }
+                for ((outputFile, entry) in foldersTimestamp.asReversed()) {
+                    outputFile.setLastModified(entry)
+                }
+                toast(R.string.decompression_successful)
+                finish()
+            }
+        } catch (e: Exception) {
+            showErrorToast(e)
+        }
+    }
+
+    private fun getFolderItems(parent: String): ArrayList<ListItem> {
+        return allFiles.filter {
+            val fileParent = if (it.path.contains("/")) {
+                it.path.getParentPath()
+            } else {
+                ""
+            }
+
+            fileParent == parent
+        }.sortedWith(compareBy({ !it.isDirectory }, { it.mName })).toMutableList() as ArrayList<ListItem>
+    }
+
+    private fun fillAllListItems(uri: Uri, callback: () -> Unit) = ensureBackgroundThread {
+        val inputStream = try {
+            contentResolver.openInputStream(uri)
+        } catch (e: Exception) {
+            showErrorToast(e)
+            return@ensureBackgroundThread
+        }
+
+        val zipInputStream = ZipInputStream(BufferedInputStream(inputStream))
+        if (password != null) {
+            zipInputStream.setPassword(password?.toCharArray())
+        }
+        var zipEntry: LocalFileHeader?
+        while (true) {
+            try {
+                zipEntry = zipInputStream.nextEntry
+            } catch (passwordException: ZipException) {
+                if (passwordException.type == Type.WRONG_PASSWORD) {
+                    if (password != null) {
+                        toast(getString(R.string.invalid_password))
+                        passwordDialog?.clearPassword()
+                    } else {
+                        runOnUiThread {
+                            askForPassword()
+                        }
+                    }
+                    return@ensureBackgroundThread
+                } else {
+                    break
+                }
+            } catch (ignored: Exception) {
+                break
+            }
+
+            if (zipEntry == null) {
+                break
+            }
+
+            // Show progress bar only after password dialog is dismissed.
+            runOnUiThread {
+                if (binding.progressIndicator.isGone()) {
+                    binding.progressIndicator.show()
+                }
+            }
+
+            if (passwordDialog != null) {
+                passwordDialog?.dismiss(notify = false)
+                passwordDialog = null
+            }
+
+            val lastModified = zipEntry.lastModifiedTime
+            val filename = zipEntry.fileName.removeSuffix("/")
+            allFiles.add(
+                ListItem(
+                    mPath = filename,
+                    mName = filename.getFilenameFromPath(),
+                    mIsDirectory = zipEntry.isDirectory,
+                    mChildren = 0,
+                    mSize = 0L,
+                    mModified = lastModified,
+                    isSectionTitle = false,
+                    isGridTypeDivider = false
+                )
+            )
+        }
+
+        runOnUiThread {
+            binding.progressIndicator.hide()
+        }
+
+        callback()
+    }
+
+    private fun askForPassword() {
+        passwordDialog = EnterPasswordDialog(
+            this,
+            callback = { newPassword ->
+                password = newPassword
+                setupFilesList()
+            },
+            cancelCallback = {
+                finish()
+            }
+        )
+    }
+}

+ 78 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/FavoritesActivity.kt

@@ -0,0 +1,78 @@
+package org.fossify.filemanager.activities
+
+import android.graphics.Paint
+import android.os.Bundle
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.extensions.beVisibleIf
+import org.fossify.commons.extensions.getProperPrimaryColor
+import org.fossify.commons.extensions.getProperTextColor
+import org.fossify.commons.extensions.viewBinding
+import org.fossify.commons.helpers.NavigationIcon
+import org.fossify.commons.interfaces.RefreshRecyclerViewListener
+import org.fossify.filemanager.R
+import org.fossify.filemanager.adapters.ManageFavoritesAdapter
+import org.fossify.filemanager.databinding.ActivityFavoritesBinding
+import org.fossify.filemanager.extensions.config
+
+class FavoritesActivity : SimpleActivity(), RefreshRecyclerViewListener {
+    private val binding by viewBinding(ActivityFavoritesBinding::inflate)
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        setupOptionsMenu()
+        updateFavorites()
+        binding.apply {
+            setupEdgeToEdge(padBottomSystem = listOf(manageFavoritesList))
+            setupMaterialScrollListener(binding.manageFavoritesList, binding.manageFavoritesAppbar)
+        }
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.manageFavoritesAppbar, NavigationIcon.Arrow)
+    }
+
+    private fun setupOptionsMenu() {
+        binding.manageFavoritesToolbar.setOnMenuItemClickListener { menuItem ->
+            when (menuItem.itemId) {
+                R.id.add_favorite -> addFavorite()
+                else -> return@setOnMenuItemClickListener false
+            }
+            return@setOnMenuItemClickListener true
+        }
+    }
+
+    private fun updateFavorites() {
+        binding.apply {
+            val favorites = ArrayList<String>()
+            config.favorites.mapTo(favorites) { it }
+            manageFavoritesPlaceholder.beVisibleIf(favorites.isEmpty())
+            manageFavoritesPlaceholder.setTextColor(getProperTextColor())
+
+            manageFavoritesPlaceholder2.apply {
+                paintFlags = paintFlags or Paint.UNDERLINE_TEXT_FLAG
+                beVisibleIf(favorites.isEmpty())
+                setTextColor(getProperPrimaryColor())
+                setOnClickListener {
+                    addFavorite()
+                }
+            }
+
+            ManageFavoritesAdapter(this@FavoritesActivity, favorites, this@FavoritesActivity, manageFavoritesList) { }.apply {
+                manageFavoritesList.adapter = this
+            }
+        }
+    }
+
+    override fun refreshItems() {
+        updateFavorites()
+    }
+
+    private fun addFavorite() {
+        FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden(), canAddShowHiddenButton = true) {
+            config.addFavorite(it)
+            updateFavorites()
+        }
+    }
+}

+ 755 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt

@@ -0,0 +1,755 @@
+package org.fossify.filemanager.activities
+
+import android.app.Activity
+import android.content.ClipData
+import android.content.Intent
+import android.graphics.drawable.Drawable
+import android.media.RingtoneManager
+import android.os.Bundle
+import android.os.Handler
+import android.widget.ImageView
+import android.widget.TextView
+import androidx.viewpager.widget.ViewPager
+import com.stericson.RootTools.RootTools
+import me.grantland.widget.AutofitHelper
+import org.fossify.commons.dialogs.RadioGroupDialog
+import org.fossify.commons.extensions.appLaunched
+import org.fossify.commons.extensions.appLockManager
+import org.fossify.commons.extensions.beGoneIf
+import org.fossify.commons.extensions.checkWhatsNew
+import org.fossify.commons.extensions.getBottomNavigationBackgroundColor
+import org.fossify.commons.extensions.getColoredDrawableWithColor
+import org.fossify.commons.extensions.getFilePublicUri
+import org.fossify.commons.extensions.getMimeType
+import org.fossify.commons.extensions.getProperBackgroundColor
+import org.fossify.commons.extensions.getProperTextColor
+import org.fossify.commons.extensions.getRealPathFromURI
+import org.fossify.commons.extensions.getStorageDirectories
+import org.fossify.commons.extensions.getTimeFormat
+import org.fossify.commons.extensions.handleHiddenFolderPasswordProtection
+import org.fossify.commons.extensions.hasOTGConnected
+import org.fossify.commons.extensions.hasPermission
+import org.fossify.commons.extensions.hideKeyboard
+import org.fossify.commons.extensions.humanizePath
+import org.fossify.commons.extensions.internalStoragePath
+import org.fossify.commons.extensions.isPathOnOTG
+import org.fossify.commons.extensions.isPathOnSD
+import org.fossify.commons.extensions.launchMoreAppsFromUsIntent
+import org.fossify.commons.extensions.onGlobalLayout
+import org.fossify.commons.extensions.onTabSelectionChanged
+import org.fossify.commons.extensions.sdCardPath
+import org.fossify.commons.extensions.toast
+import org.fossify.commons.extensions.updateBottomTabItemColors
+import org.fossify.commons.extensions.viewBinding
+import org.fossify.commons.helpers.LICENSE_AUTOFITTEXTVIEW
+import org.fossify.commons.helpers.LICENSE_GESTURE_VIEWS
+import org.fossify.commons.helpers.LICENSE_GLIDE
+import org.fossify.commons.helpers.LICENSE_PATTERN
+import org.fossify.commons.helpers.LICENSE_REPRINT
+import org.fossify.commons.helpers.LICENSE_ZIP4J
+import org.fossify.commons.helpers.PERMISSION_WRITE_STORAGE
+import org.fossify.commons.helpers.TAB_FILES
+import org.fossify.commons.helpers.TAB_RECENT_FILES
+import org.fossify.commons.helpers.TAB_STORAGE_ANALYSIS
+import org.fossify.commons.helpers.VIEW_TYPE_GRID
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.models.FAQItem
+import org.fossify.commons.models.RadioItem
+import org.fossify.commons.models.Release
+import org.fossify.filemanager.BuildConfig
+import org.fossify.filemanager.R
+import org.fossify.filemanager.adapters.ViewPagerAdapter
+import org.fossify.filemanager.databinding.ActivityMainBinding
+import org.fossify.filemanager.dialogs.ChangeSortingDialog
+import org.fossify.filemanager.dialogs.ChangeViewTypeDialog
+import org.fossify.filemanager.dialogs.InsertFilenameDialog
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.tryOpenPathIntent
+import org.fossify.filemanager.fragments.ItemsFragment
+import org.fossify.filemanager.fragments.MyViewPagerFragment
+import org.fossify.filemanager.fragments.RecentsFragment
+import org.fossify.filemanager.fragments.StorageFragment
+import org.fossify.filemanager.helpers.MAX_COLUMN_COUNT
+import org.fossify.filemanager.helpers.RootHelpers
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import java.io.File
+
+class MainActivity : SimpleActivity() {
+    override var isSearchBarEnabled = true
+    
+    companion object {
+        private const val BACK_PRESS_TIMEOUT = 5000
+        private const val PICKED_PATH = "picked_path"
+    }
+
+    private val binding by viewBinding(ActivityMainBinding::inflate)
+
+    private var wasBackJustPressed = false
+    private var mTabsToShow = ArrayList<Int>()
+
+    private var mStoredFontSize = 0
+    private var mStoredDateFormat = ""
+    private var mStoredTimeFormat = ""
+    private var mStoredShowTabs = 0
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        appLaunched(BuildConfig.APPLICATION_ID)
+        setupOptionsMenu()
+        refreshMenuItems()
+        mTabsToShow = getTabsList()
+
+        if (!config.wasStorageAnalysisTabAdded) {
+            config.wasStorageAnalysisTabAdded = true
+            if (config.showTabs and TAB_STORAGE_ANALYSIS == 0) {
+                config.showTabs += TAB_STORAGE_ANALYSIS
+            }
+        }
+
+        storeStateVariables()
+        setupTabs()
+
+        setupEdgeToEdge(padBottomImeAndSystem = listOf(binding.mainTabsHolder))
+
+        if (savedInstanceState == null) {
+            config.temporarilyShowHidden = false
+            initFragments()
+            tryInitFileManager()
+            checkWhatsNewDialog()
+            checkIfRootAvailable()
+            checkInvalidFavorites()
+        }
+    }
+
+    override fun onResume() {
+        super.onResume()
+        if (mStoredShowTabs != config.showTabs) {
+            config.lastUsedViewPagerPage = 0
+            System.exit(0)
+            return
+        }
+
+        refreshMenuItems()
+        updateMenuColors()
+        setupTabColors()
+
+        getAllFragments().forEach {
+            it?.onResume(getProperTextColor())
+        }
+
+        if (mStoredFontSize != config.fontSize) {
+            getAllFragments().forEach {
+                (it as? ItemOperationsListener)?.setupFontSize()
+            }
+        }
+
+        if (mStoredDateFormat != config.dateFormat || mStoredTimeFormat != getTimeFormat()) {
+            getAllFragments().forEach {
+                (it as? ItemOperationsListener)?.setupDateTimeFormat()
+            }
+        }
+
+        if (binding.mainViewPager.adapter == null) {
+            initFragments()
+        }
+    }
+
+    override fun onPause() {
+        super.onPause()
+        storeStateVariables()
+        config.lastUsedViewPagerPage = binding.mainViewPager.currentItem
+    }
+
+    override fun onBackPressedCompat(): Boolean {
+        val currentFragment = getCurrentFragment()
+        if (binding.mainMenu.isSearchOpen) {
+            binding.mainMenu.closeSearch()
+            return true
+        } else if (currentFragment is RecentsFragment || currentFragment is StorageFragment) {
+            return false
+        } else if ((currentFragment as ItemsFragment).getBreadcrumbs().getItemCount() <= 1) {
+            if (!wasBackJustPressed && config.pressBackTwice) {
+                wasBackJustPressed = true
+                toast(R.string.press_back_again)
+                Handler().postDelayed({
+                    wasBackJustPressed = false
+                }, BACK_PRESS_TIMEOUT.toLong())
+                return true
+            } else {
+                appLockManager.lock()
+                finish()
+                return true
+            }
+        } else {
+            currentFragment.getBreadcrumbs().removeBreadcrumb()
+            openPath(currentFragment.getBreadcrumbs().getLastItem().path)
+            return true
+        }
+    }
+
+    fun refreshMenuItems() {
+        val currentFragment = getCurrentFragment() ?: return
+        val isCreateDocumentIntent = intent.action == Intent.ACTION_CREATE_DOCUMENT
+        val currentViewType = config.getFolderViewType(currentFragment.currentPath)
+        val favorites = config.favorites
+
+        binding.mainMenu.requireToolbar().menu.apply {
+            findItem(R.id.sort).isVisible = currentFragment is ItemsFragment
+            findItem(R.id.change_view_type).isVisible = currentFragment !is StorageFragment
+
+            findItem(R.id.add_favorite).isVisible = currentFragment is ItemsFragment && !favorites.contains(currentFragment.currentPath)
+            findItem(R.id.remove_favorite).isVisible = currentFragment is ItemsFragment && favorites.contains(currentFragment.currentPath)
+            findItem(R.id.go_to_favorite).isVisible = currentFragment is ItemsFragment && favorites.isNotEmpty()
+
+            findItem(R.id.toggle_filename).isVisible = currentViewType == VIEW_TYPE_GRID && currentFragment !is StorageFragment
+            findItem(R.id.go_home).isVisible = currentFragment is ItemsFragment && currentFragment.currentPath != config.homeFolder
+            findItem(R.id.set_as_home).isVisible = currentFragment is ItemsFragment && currentFragment.currentPath != config.homeFolder
+
+            findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden() && currentFragment !is StorageFragment
+            findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden && currentFragment !is StorageFragment
+
+            findItem(R.id.column_count).isVisible = currentViewType == VIEW_TYPE_GRID && currentFragment !is StorageFragment
+
+            findItem(R.id.more_apps_from_us).isVisible = resources.getBoolean(R.bool.is_google_play_build)
+            findItem(R.id.settings).isVisible = !isCreateDocumentIntent
+            findItem(R.id.about).isVisible = !isCreateDocumentIntent
+        }
+    }
+
+    private fun setupOptionsMenu() {
+        binding.mainMenu.apply {
+            requireToolbar().inflateMenu(R.menu.menu)
+            toggleHideOnScroll(false)
+            setupMenu()
+
+            onSearchClosedListener = {
+                getAllFragments().forEach {
+                    it?.searchQueryChanged("")
+                }
+            }
+
+            onSearchTextChangedListener = { text ->
+                getCurrentFragment()?.searchQueryChanged(text)
+            }
+
+            requireToolbar().setOnMenuItemClickListener { menuItem ->
+                if (getCurrentFragment() == null) {
+                    return@setOnMenuItemClickListener true
+                }
+
+                when (menuItem.itemId) {
+                    R.id.go_home -> goHome()
+                    R.id.go_to_favorite -> goToFavorite()
+                    R.id.sort -> showSortingDialog()
+                    R.id.add_favorite -> addFavorite()
+                    R.id.remove_favorite -> removeFavorite()
+                    R.id.toggle_filename -> toggleFilenameVisibility()
+                    R.id.set_as_home -> setAsHome()
+                    R.id.change_view_type -> changeViewType()
+                    R.id.temporarily_show_hidden -> tryToggleTemporarilyShowHidden()
+                    R.id.stop_showing_hidden -> tryToggleTemporarilyShowHidden()
+                    R.id.column_count -> changeColumnCount()
+                    R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
+                    R.id.settings -> launchSettings()
+                    R.id.about -> launchAbout()
+                    else -> return@setOnMenuItemClickListener false
+                }
+                return@setOnMenuItemClickListener true
+            }
+        }
+    }
+
+    override fun onSaveInstanceState(outState: Bundle) {
+        super.onSaveInstanceState(outState)
+        outState.putString(PICKED_PATH, getItemsFragment()?.currentPath ?: "")
+    }
+
+    override fun onRestoreInstanceState(savedInstanceState: Bundle) {
+        super.onRestoreInstanceState(savedInstanceState)
+        val path = savedInstanceState.getString(PICKED_PATH) ?: internalStoragePath
+
+        if (binding.mainViewPager.adapter == null) {
+            binding.mainViewPager.onGlobalLayout {
+                openPath(path, true)
+            }
+        } else {
+            openPath(path, true)
+        }
+    }
+
+    private fun updateMenuColors() {
+        binding.mainMenu.updateColors()
+    }
+
+    private fun storeStateVariables() {
+        config.apply {
+            mStoredFontSize = fontSize
+            mStoredDateFormat = dateFormat
+            mStoredTimeFormat = context.getTimeFormat()
+            mStoredShowTabs = showTabs
+        }
+    }
+
+    private fun tryInitFileManager() {
+        val hadPermission = hasStoragePermission()
+        handleStoragePermission {
+            checkOTGPath()
+            if (it) {
+                if (binding.mainViewPager.adapter == null) {
+                    initFragments()
+                }
+
+                binding.mainViewPager.onGlobalLayout {
+                    initFileManager(!hadPermission)
+                }
+            } else {
+                toast(R.string.no_storage_permissions)
+                finish()
+            }
+        }
+    }
+
+    private fun initFileManager(refreshRecents: Boolean) {
+        if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
+            val data = intent.data
+            if (data?.scheme == "file") {
+                openPath(data.path!!)
+            } else {
+                val path = getRealPathFromURI(data!!)
+                if (path != null) {
+                    openPath(path)
+                } else {
+                    openPath(config.homeFolder)
+                }
+            }
+
+            if (!File(data.path!!).isDirectory) {
+                tryOpenPathIntent(data.path!!, false, finishActivity = true)
+            }
+
+            binding.mainViewPager.currentItem = 0
+        } else {
+            openPath(config.homeFolder)
+        }
+
+        if (refreshRecents) {
+            getRecentsFragment()?.refreshFragment()
+        }
+    }
+
+    private fun initFragments() {
+        binding.mainViewPager.apply {
+            adapter = ViewPagerAdapter(this@MainActivity, mTabsToShow)
+            offscreenPageLimit = 2
+            addOnPageChangeListener(object : ViewPager.OnPageChangeListener {
+                override fun onPageScrollStateChanged(state: Int) {}
+
+                override fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int) {}
+
+                override fun onPageSelected(position: Int) {
+                    binding.mainTabsHolder.getTabAt(position)?.select()
+                    getAllFragments().forEach {
+                        (it as? ItemOperationsListener)?.finishActMode()
+                    }
+                    refreshMenuItems()
+                }
+            })
+            currentItem = config.lastUsedViewPagerPage
+
+            onGlobalLayout {
+                refreshMenuItems()
+            }
+        }
+    }
+
+    private fun setupTabs() {
+        binding.mainTabsHolder.removeAllTabs()
+        val action = intent.action
+        val isPickFileIntent = action == RingtoneManager.ACTION_RINGTONE_PICKER
+                || action == Intent.ACTION_GET_CONTENT
+                || action == Intent.ACTION_PICK
+        val isCreateDocumentIntent = action == Intent.ACTION_CREATE_DOCUMENT
+
+        if (isPickFileIntent) {
+            mTabsToShow.remove(TAB_STORAGE_ANALYSIS)
+            if (mTabsToShow.none { it and config.showTabs != 0 }) {
+                config.showTabs = TAB_FILES
+                mStoredShowTabs = TAB_FILES
+                mTabsToShow = arrayListOf(TAB_FILES)
+            }
+        } else if (isCreateDocumentIntent) {
+            mTabsToShow.clear()
+            mTabsToShow = arrayListOf(TAB_FILES)
+        }
+
+        mTabsToShow.forEachIndexed { index, value ->
+            if (config.showTabs and value != 0) {
+                binding.mainTabsHolder.newTab().setCustomView(R.layout.bottom_tablayout_item).apply {
+                    customView?.findViewById<ImageView>(R.id.tab_item_icon)?.setImageDrawable(getTabIcon(index))
+                    customView?.findViewById<TextView>(R.id.tab_item_label)?.text = getTabLabel(index)
+                    AutofitHelper.create(customView?.findViewById(R.id.tab_item_label))
+                    binding.mainTabsHolder.addTab(this)
+                }
+            }
+        }
+
+        binding.mainTabsHolder.apply {
+            onTabSelectionChanged(
+                tabUnselectedAction = {
+                    updateBottomTabItemColors(it.customView, false, getDeselectedTabDrawableIds()[it.position])
+                },
+                tabSelectedAction = {
+                    binding.mainMenu.closeSearch()
+                    binding.mainViewPager.currentItem = it.position
+                    updateBottomTabItemColors(it.customView, true, getSelectedTabDrawableIds()[it.position])
+                }
+            )
+
+            beGoneIf(tabCount == 1)
+        }
+    }
+
+    private fun setupTabColors() {
+        binding.apply {
+            val activeView = mainTabsHolder.getTabAt(mainViewPager.currentItem)?.customView
+            updateBottomTabItemColors(activeView, true, getSelectedTabDrawableIds()[mainViewPager.currentItem])
+
+            getInactiveTabIndexes(mainViewPager.currentItem).forEach { index ->
+                val inactiveView = mainTabsHolder.getTabAt(index)?.customView
+                updateBottomTabItemColors(inactiveView, false, getDeselectedTabDrawableIds()[index])
+            }
+
+            val bottomBarColor = getBottomNavigationBackgroundColor()
+            mainTabsHolder.setBackgroundColor(bottomBarColor)
+        }
+    }
+
+    private fun getTabIcon(position: Int): Drawable {
+        val drawableId = when (position) {
+            0 -> R.drawable.ic_folder_vector
+            1 -> R.drawable.ic_clock_vector
+            else -> R.drawable.ic_storage_vector
+        }
+
+        return resources.getColoredDrawableWithColor(drawableId, getProperTextColor())
+    }
+
+    private fun getTabLabel(position: Int): String {
+        val stringId = when (position) {
+            0 -> R.string.files_tab
+            1 -> R.string.recents
+            else -> R.string.storage
+        }
+
+        return resources.getString(stringId)
+    }
+
+    private fun checkOTGPath() {
+        ensureBackgroundThread {
+            if (!config.wasOTGHandled && hasPermission(PERMISSION_WRITE_STORAGE) && hasOTGConnected() && config.OTGPath.isEmpty()) {
+                getStorageDirectories().firstOrNull { it.trimEnd('/') != internalStoragePath && it.trimEnd('/') != sdCardPath }?.apply {
+                    config.wasOTGHandled = true
+                    config.OTGPath = trimEnd('/')
+                }
+            }
+        }
+    }
+
+    private fun openPath(path: String, forceRefresh: Boolean = false) {
+        var newPath = path
+        val file = File(path)
+        if (config.OTGPath.isNotEmpty() && config.OTGPath == path.trimEnd('/')) {
+            newPath = path
+        } else if (file.exists() && !file.isDirectory) {
+            newPath = file.parent
+        } else if (!file.exists() && !isPathOnOTG(newPath)) {
+            newPath = internalStoragePath
+        }
+
+        getItemsFragment()?.openPath(newPath, forceRefresh)
+    }
+
+    private fun goHome() {
+        if (config.homeFolder != getCurrentFragment()!!.currentPath) {
+            openPath(config.homeFolder)
+        }
+    }
+
+    private fun showSortingDialog() {
+        ChangeSortingDialog(this, getCurrentFragment()!!.currentPath) {
+            (getCurrentFragment() as? ItemsFragment)?.refreshFragment()
+        }
+    }
+
+    private fun addFavorite() {
+        config.addFavorite(getCurrentFragment()!!.currentPath)
+        refreshMenuItems()
+    }
+
+    private fun removeFavorite() {
+        config.removeFavorite(getCurrentFragment()!!.currentPath)
+        refreshMenuItems()
+    }
+
+    private fun toggleFilenameVisibility() {
+        config.displayFilenames = !config.displayFilenames
+        getAllFragments().forEach {
+            (it as? ItemOperationsListener)?.toggleFilenameVisibility()
+        }
+    }
+
+    private fun changeColumnCount() {
+        val items = ArrayList<RadioItem>()
+        for (i in 1..MAX_COLUMN_COUNT) {
+            items.add(RadioItem(i, resources.getQuantityString(R.plurals.column_counts, i, i)))
+        }
+
+        val currentColumnCount = config.fileColumnCnt
+        RadioGroupDialog(this, items, config.fileColumnCnt) {
+            val newColumnCount = it as Int
+            if (currentColumnCount != newColumnCount) {
+                config.fileColumnCnt = newColumnCount
+                getAllFragments().forEach {
+                    (it as? ItemOperationsListener)?.columnCountChanged()
+                }
+            }
+        }
+    }
+
+    fun updateFragmentColumnCounts() {
+        getAllFragments().forEach {
+            (it as? ItemOperationsListener)?.columnCountChanged()
+        }
+    }
+
+    private fun goToFavorite() {
+        val favorites = config.favorites
+        val items = ArrayList<RadioItem>(favorites.size)
+        var currFavoriteIndex = -1
+
+        favorites.forEachIndexed { index, path ->
+            val visiblePath = humanizePath(path).replace("/", " / ")
+            items.add(RadioItem(index, visiblePath, path))
+            if (path == getCurrentFragment()!!.currentPath) {
+                currFavoriteIndex = index
+            }
+        }
+
+        RadioGroupDialog(this, items, currFavoriteIndex, R.string.go_to_favorite) {
+            openPath(it.toString())
+        }
+    }
+
+    private fun setAsHome() {
+        config.homeFolder = getCurrentFragment()!!.currentPath
+        toast(R.string.home_folder_updated)
+    }
+
+    private fun changeViewType() {
+        ChangeViewTypeDialog(this, getCurrentFragment()!!.currentPath, getCurrentFragment() is ItemsFragment) {
+            getAllFragments().forEach {
+                it?.refreshFragment()
+            }
+        }
+    }
+
+    private fun tryToggleTemporarilyShowHidden() {
+        if (config.temporarilyShowHidden) {
+            toggleTemporarilyShowHidden(false)
+        } else {
+            handleHiddenFolderPasswordProtection {
+                toggleTemporarilyShowHidden(true)
+            }
+        }
+    }
+
+    private fun toggleTemporarilyShowHidden(show: Boolean) {
+        config.temporarilyShowHidden = show
+        getAllFragments().forEach {
+            it?.refreshFragment()
+        }
+    }
+
+    private fun launchSettings() {
+        hideKeyboard()
+        startActivity(Intent(applicationContext, SettingsActivity::class.java))
+    }
+
+    private fun launchAbout() {
+        val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS or LICENSE_AUTOFITTEXTVIEW or LICENSE_ZIP4J
+
+        val faqItems = arrayListOf(
+            FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons),
+            FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons)
+        )
+
+        if (resources.getBoolean(R.bool.is_google_play_build)) {
+            faqItems.add(FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons))
+            faqItems.add(FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons))
+            faqItems.add(FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons))
+            faqItems.add(FAQItem(R.string.faq_10_title_commons, R.string.faq_10_text_commons))
+        }
+
+        startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
+    }
+
+    private fun checkIfRootAvailable() {
+        ensureBackgroundThread {
+            config.isRootAvailable = RootTools.isRootAvailable()
+            if (config.isRootAvailable && config.enableRootAccess) {
+                RootHelpers(this).askRootIfNeeded {
+                    config.enableRootAccess = it
+                }
+            }
+        }
+    }
+
+    private fun checkInvalidFavorites() {
+        ensureBackgroundThread {
+            config.favorites.forEach {
+                if (!isPathOnOTG(it) && !isPathOnSD(it) && !File(it).exists()) {
+                    config.removeFavorite(it)
+                }
+            }
+        }
+    }
+
+    fun pickedPath(path: String) {
+        val resultIntent = Intent()
+        val uri = getFilePublicUri(File(path), BuildConfig.APPLICATION_ID)
+        val type = path.getMimeType()
+        resultIntent.setDataAndType(uri, type)
+        resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
+        setResult(Activity.RESULT_OK, resultIntent)
+        finish()
+    }
+
+    // used at apps that have no file access at all, but need to work with files. For example Simple Calendar uses this at exporting events into a file
+    fun createDocumentConfirmed(path: String) {
+        val filename = intent.getStringExtra(Intent.EXTRA_TITLE) ?: ""
+        if (filename.isEmpty()) {
+            InsertFilenameDialog(this, internalStoragePath) { newFilename ->
+                finishCreateDocumentIntent(path, newFilename)
+            }
+        } else {
+            finishCreateDocumentIntent(path, filename)
+        }
+    }
+
+    private fun finishCreateDocumentIntent(path: String, filename: String) {
+        val resultIntent = Intent()
+        val uri = getFilePublicUri(File(path, filename), BuildConfig.APPLICATION_ID)
+        val type = path.getMimeType()
+        resultIntent.setDataAndType(uri, type)
+        resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION
+        setResult(Activity.RESULT_OK, resultIntent)
+        finish()
+    }
+
+    fun pickedRingtone(path: String) {
+        val uri = getFilePublicUri(File(path), BuildConfig.APPLICATION_ID)
+        val type = path.getMimeType()
+        Intent().apply {
+            setDataAndType(uri, type)
+            flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
+            putExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI, uri)
+            setResult(Activity.RESULT_OK, this)
+        }
+        finish()
+    }
+
+    fun pickedPaths(paths: ArrayList<String>) {
+        val newPaths = paths.map { getFilePublicUri(File(it), BuildConfig.APPLICATION_ID) } as ArrayList
+        val clipData = ClipData("Attachment", arrayOf(paths.getMimeType()), ClipData.Item(newPaths.removeAt(0)))
+
+        newPaths.forEach {
+            clipData.addItem(ClipData.Item(it))
+        }
+
+        Intent().apply {
+            this.clipData = clipData
+            flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
+            setResult(Activity.RESULT_OK, this)
+        }
+        finish()
+    }
+
+    fun openedDirectory() {
+        if (binding.mainMenu.isSearchOpen) {
+            binding.mainMenu.closeSearch()
+        }
+    }
+
+    private fun getInactiveTabIndexes(activeIndex: Int) = (0 until binding.mainTabsHolder.tabCount).filter { it != activeIndex }
+
+    private fun getSelectedTabDrawableIds(): ArrayList<Int> {
+        val showTabs = config.showTabs
+        val icons = ArrayList<Int>()
+
+        if (showTabs and TAB_FILES != 0) {
+            icons.add(R.drawable.ic_folder_vector)
+        }
+
+        if (showTabs and TAB_RECENT_FILES != 0) {
+            icons.add(R.drawable.ic_clock_filled_vector)
+        }
+
+        if (showTabs and TAB_STORAGE_ANALYSIS != 0) {
+            icons.add(R.drawable.ic_storage_vector)
+        }
+
+        return icons
+    }
+
+    private fun getDeselectedTabDrawableIds(): ArrayList<Int> {
+        val showTabs = config.showTabs
+        val icons = ArrayList<Int>()
+
+        if (showTabs and TAB_FILES != 0) {
+            icons.add(R.drawable.ic_folder_outline_vector)
+        }
+
+        if (showTabs and TAB_RECENT_FILES != 0) {
+            icons.add(R.drawable.ic_clock_vector)
+        }
+
+        if (showTabs and TAB_STORAGE_ANALYSIS != 0) {
+            icons.add(R.drawable.ic_storage_vector)
+        }
+
+        return icons
+    }
+
+    private fun getRecentsFragment() = findViewById<RecentsFragment>(R.id.recents_fragment)
+    private fun getItemsFragment() = findViewById<ItemsFragment>(R.id.items_fragment)
+    private fun getStorageFragment() = findViewById<StorageFragment>(R.id.storage_fragment)
+    private fun getAllFragments(): ArrayList<MyViewPagerFragment<*>?> =
+        arrayListOf(getItemsFragment(), getRecentsFragment(), getStorageFragment())
+
+    private fun getCurrentFragment(): MyViewPagerFragment<*>? {
+        val showTabs = config.showTabs
+        val fragments = arrayListOf<MyViewPagerFragment<*>>()
+        if (showTabs and TAB_FILES != 0) {
+            fragments.add(getItemsFragment())
+        }
+
+        if (showTabs and TAB_RECENT_FILES != 0) {
+            fragments.add(getRecentsFragment())
+        }
+
+        if (showTabs and TAB_STORAGE_ANALYSIS != 0) {
+            fragments.add(getStorageFragment())
+        }
+
+        return fragments.getOrNull(binding.mainViewPager.currentItem)
+    }
+
+    private fun getTabsList() = arrayListOf(TAB_FILES, TAB_RECENT_FILES, TAB_STORAGE_ANALYSIS)
+
+    private fun checkWhatsNewDialog() {
+        arrayListOf<Release>().apply {
+            checkWhatsNew(this, BuildConfig.VERSION_CODE)
+        }
+    }
+}

+ 489 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt

@@ -0,0 +1,489 @@
+package org.fossify.filemanager.activities
+
+import android.app.SearchManager
+import android.content.Context
+import android.os.Bundle
+import android.provider.MediaStore
+import android.view.Menu
+import android.view.MenuItem
+import androidx.appcompat.widget.SearchView
+import androidx.core.view.MenuItemCompat
+import androidx.recyclerview.widget.GridLayoutManager
+import org.fossify.commons.dialogs.RadioGroupDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.NavigationIcon
+import org.fossify.commons.helpers.VIEW_TYPE_GRID
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.models.RadioItem
+import org.fossify.commons.views.MyGridLayoutManager
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.R
+import org.fossify.filemanager.adapters.ItemsAdapter
+import org.fossify.filemanager.databinding.ActivityMimetypesBinding
+import org.fossify.filemanager.dialogs.ChangeSortingDialog
+import org.fossify.filemanager.dialogs.ChangeViewTypeDialog
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.isPathInHiddenFolder
+import org.fossify.filemanager.extensions.tryOpenPathIntent
+import org.fossify.filemanager.helpers.*
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import org.fossify.filemanager.models.ListItem
+import java.util.Locale
+
+class MimeTypesActivity : SimpleActivity(), ItemOperationsListener {
+    private val binding by viewBinding(ActivityMimetypesBinding::inflate)
+    private var isSearchOpen = false
+    private var currentMimeType = ""
+    private var lastSearchedText = ""
+    private var searchMenuItem: MenuItem? = null
+    private var zoomListener: MyRecyclerView.MyZoomListener? = null
+    private var storedItems = ArrayList<ListItem>()
+    private var currentViewType = VIEW_TYPE_LIST
+    private var currentVolume = PRIMARY_VOLUME_NAME
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        setupOptionsMenu()
+        refreshMenuItems()
+        binding.apply {
+            setupEdgeToEdge(padBottomImeAndSystem = listOf(mimetypesList))
+            setupMaterialScrollListener(binding.mimetypesList, binding.mimetypesAppbar)
+        }
+
+        currentMimeType = intent.getStringExtra(SHOW_MIMETYPE) ?: return
+        currentVolume = intent.getStringExtra(VOLUME_NAME) ?: currentVolume
+        binding.mimetypesToolbar.title = getString(
+            when (currentMimeType) {
+                IMAGES -> R.string.images
+                VIDEOS -> R.string.videos
+                AUDIO -> R.string.audio
+                DOCUMENTS -> R.string.documents
+                ARCHIVES -> R.string.archives
+                OTHERS -> R.string.others
+                else -> {
+                    toast(R.string.unknown_error_occurred)
+                    finish()
+                    return
+                }
+            }
+        )
+
+        ensureBackgroundThread {
+            reFetchItems()
+        }
+
+        binding.apply {
+            mimetypesFastscroller.updateColors(getProperPrimaryColor())
+            mimetypesPlaceholder.setTextColor(getProperTextColor())
+            mimetypesPlaceholder2.setTextColor(getProperTextColor())
+        }
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.mimetypesAppbar, NavigationIcon.Arrow, searchMenuItem = searchMenuItem)
+    }
+
+    private fun refreshMenuItems() {
+        val currentViewType = config.getFolderViewType(currentMimeType)
+
+        binding.mimetypesToolbar.menu.apply {
+            findItem(R.id.toggle_filename).isVisible = currentViewType == VIEW_TYPE_GRID
+
+            findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden()
+            findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden
+
+            findItem(R.id.column_count).isVisible = currentViewType == VIEW_TYPE_GRID
+        }
+    }
+
+    private fun setupOptionsMenu() {
+        setupSearch(binding.mimetypesToolbar.menu)
+        binding.mimetypesToolbar.setOnMenuItemClickListener { menuItem ->
+            when (menuItem.itemId) {
+                R.id.sort -> showSortingDialog()
+                R.id.toggle_filename -> toggleFilenameVisibility()
+                R.id.change_view_type -> changeViewType()
+                R.id.temporarily_show_hidden -> tryToggleTemporarilyShowHidden()
+                R.id.stop_showing_hidden -> tryToggleTemporarilyShowHidden()
+                R.id.column_count -> changeColumnCount()
+                else -> return@setOnMenuItemClickListener false
+            }
+            return@setOnMenuItemClickListener true
+        }
+    }
+
+    override fun refreshFragment() {
+        reFetchItems()
+    }
+
+    override fun deleteFiles(files: ArrayList<FileDirItem>) {
+        deleteFiles(files, false) {
+            if (!it) {
+                runOnUiThread {
+                    toast(R.string.unknown_error_occurred)
+                }
+            }
+        }
+    }
+
+    override fun selectedPaths(paths: ArrayList<String>) {}
+
+    fun searchQueryChanged(text: String) {
+        val normalizedText = text.normalizeString()
+        val searchNormalizedText = normalizedText.trim()
+        lastSearchedText = searchNormalizedText
+        when {
+            searchNormalizedText.isEmpty() -> {
+                binding.apply {
+                    mimetypesFastscroller.beVisible()
+                    getRecyclerAdapter()?.updateItems(storedItems)
+                    mimetypesPlaceholder.beGoneIf(storedItems.isNotEmpty())
+                    mimetypesPlaceholder2.beGone()
+                }
+            }
+
+            searchNormalizedText.length == 1 -> {
+                binding.apply {
+                    mimetypesFastscroller.beGone()
+                    mimetypesPlaceholder.beVisible()
+                    mimetypesPlaceholder2.beVisible()
+                }
+            }
+
+            else -> {
+                ensureBackgroundThread {
+                    if (lastSearchedText != searchNormalizedText) {
+                        return@ensureBackgroundThread
+                    }
+
+                    val listItems = storedItems.filter {
+                        it.name.normalizeString().contains(searchNormalizedText, true)
+                    } as ArrayList<ListItem>
+
+                    runOnUiThread {
+                        getRecyclerAdapter()?.updateItems(listItems, text)
+                        binding.apply {
+                            mimetypesFastscroller.beVisibleIf(listItems.isNotEmpty())
+                            mimetypesPlaceholder.beVisibleIf(listItems.isEmpty())
+                            mimetypesPlaceholder2.beGone()
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    override fun setupDateTimeFormat() {}
+
+    override fun setupFontSize() {}
+
+    override fun toggleFilenameVisibility() {
+        config.displayFilenames = !config.displayFilenames
+        getRecyclerAdapter()?.updateDisplayFilenamesInGrid()
+    }
+
+    private fun changeColumnCount() {
+        val items = ArrayList<RadioItem>()
+        for (i in 1..MAX_COLUMN_COUNT) {
+            items.add(RadioItem(i, resources.getQuantityString(R.plurals.column_counts, i, i)))
+        }
+
+        val currentColumnCount = config.fileColumnCnt
+        RadioGroupDialog(this, items, config.fileColumnCnt) {
+            val newColumnCount = it as Int
+            if (currentColumnCount != newColumnCount) {
+                config.fileColumnCnt = newColumnCount
+                columnCountChanged()
+            }
+        }
+    }
+
+    fun increaseColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            config.fileColumnCnt += 1
+            columnCountChanged()
+        }
+    }
+
+    fun reduceColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            config.fileColumnCnt -= 1
+            columnCountChanged()
+        }
+    }
+
+    override fun columnCountChanged() {
+        (binding.mimetypesList.layoutManager as MyGridLayoutManager).spanCount = config.fileColumnCnt
+        refreshMenuItems()
+        getRecyclerAdapter()?.apply {
+            notifyItemRangeChanged(0, listItems.size)
+        }
+    }
+
+    override fun finishActMode() {}
+
+    private fun setupSearch(menu: Menu) {
+        val searchManager = getSystemService(Context.SEARCH_SERVICE) as SearchManager
+        searchMenuItem = menu.findItem(R.id.search)
+        (searchMenuItem!!.actionView as SearchView).apply {
+            setSearchableInfo(searchManager.getSearchableInfo(componentName))
+            isSubmitButtonEnabled = false
+            queryHint = getString(R.string.search)
+            setOnQueryTextListener(object : SearchView.OnQueryTextListener {
+                override fun onQueryTextSubmit(query: String) = false
+
+                override fun onQueryTextChange(newText: String): Boolean {
+                    if (isSearchOpen) {
+                        searchQueryChanged(newText)
+                    }
+                    return true
+                }
+            })
+        }
+
+        MenuItemCompat.setOnActionExpandListener(searchMenuItem, object : MenuItemCompat.OnActionExpandListener {
+            override fun onMenuItemActionExpand(item: MenuItem?): Boolean {
+                isSearchOpen = true
+                searchOpened()
+                return true
+            }
+
+            override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
+                isSearchOpen = false
+                searchClosed()
+                return true
+            }
+        })
+    }
+
+    fun searchOpened() {
+        isSearchOpen = true
+        lastSearchedText = ""
+    }
+
+    fun searchClosed() {
+        isSearchOpen = false
+        lastSearchedText = ""
+        searchQueryChanged("")
+    }
+
+    private fun getProperFileDirItems(callback: (ArrayList<FileDirItem>) -> Unit) {
+        val fileDirItems = ArrayList<FileDirItem>()
+        val showHidden = config.shouldShowHidden()
+        val uri = MediaStore.Files.getContentUri(currentVolume)
+        val projection = arrayOf(
+            MediaStore.Files.FileColumns.MIME_TYPE,
+            MediaStore.Files.FileColumns.DATA,
+            MediaStore.Files.FileColumns.DISPLAY_NAME,
+            MediaStore.Files.FileColumns.SIZE,
+            MediaStore.Files.FileColumns.DATE_MODIFIED
+        )
+
+        try {
+            queryCursor(uri, projection) { cursor ->
+                try {
+                    val fullMimetype = cursor.getStringValue(MediaStore.Files.FileColumns.MIME_TYPE)?.lowercase(Locale.getDefault()) ?: return@queryCursor
+                    val name = cursor.getStringValue(MediaStore.Files.FileColumns.DISPLAY_NAME)
+                    val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA)
+                    
+                    val isHiddenFile = name.startsWith(".")
+                    if (!showHidden && (isHiddenFile || path.isPathInHiddenFolder())) {
+                        return@queryCursor
+                    }
+
+                    val size = cursor.getLongValue(MediaStore.Files.FileColumns.SIZE)
+                    if (size == 0L) {
+                        return@queryCursor
+                    }
+
+                    val lastModified = cursor.getLongValue(MediaStore.Files.FileColumns.DATE_MODIFIED) * 1000
+
+                    val mimetype = fullMimetype.substringBefore("/")
+                    when (currentMimeType) {
+                        IMAGES -> {
+                            if (mimetype == "image") {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+
+                        VIDEOS -> {
+                            if (mimetype == "video") {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+
+                        AUDIO -> {
+                            if (mimetype == "audio" || extraAudioMimeTypes.contains(fullMimetype)) {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+
+                        DOCUMENTS -> {
+                            if (mimetype == "text" || extraDocumentMimeTypes.contains(fullMimetype)) {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+
+                        ARCHIVES -> {
+                            if (archiveMimeTypes.contains(fullMimetype)) {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+
+                        OTHERS -> {
+                            if (mimetype != "image" && mimetype != "video" && mimetype != "audio" && mimetype != "text" &&
+                                !extraAudioMimeTypes.contains(fullMimetype) && !extraDocumentMimeTypes.contains(fullMimetype) &&
+                                !archiveMimeTypes.contains(fullMimetype)
+                            ) {
+                                fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                            }
+                        }
+                    }
+                } catch (e: Exception) {
+                }
+            }
+        } catch (e: Exception) {
+            showErrorToast(e)
+        }
+
+        callback(fileDirItems)
+    }
+
+    private fun addItems(items: ArrayList<ListItem>) {
+        FileDirItem.sorting = config.getFolderSorting(currentMimeType)
+        items.sort()
+
+        if (isDestroyed || isFinishing) {
+            return
+        }
+
+        storedItems = items
+        ItemsAdapter(this as SimpleActivity, storedItems, this, binding.mimetypesList, false, null) {
+            tryOpenPathIntent((it as ListItem).path, false)
+        }.apply {
+            setupZoomListener(zoomListener)
+            binding.mimetypesList.adapter = this
+        }
+
+        if (areSystemAnimationsEnabled) {
+            binding.mimetypesList.scheduleLayoutAnimation()
+        }
+
+        binding.mimetypesPlaceholder.beVisibleIf(items.isEmpty())
+    }
+
+    private fun getRecyclerAdapter() = binding.mimetypesList.adapter as? ItemsAdapter
+
+    private fun showSortingDialog() {
+        ChangeSortingDialog(this, currentMimeType) {
+            recreateList()
+        }
+    }
+
+    private fun changeViewType() {
+        ChangeViewTypeDialog(this, currentMimeType, true) {
+            recreateList()
+            setupLayoutManager()
+            refreshMenuItems()
+        }
+    }
+
+    private fun reFetchItems() {
+        getProperFileDirItems { fileDirItems ->
+            val listItems = getListItemsFromFileDirItems(fileDirItems)
+
+            runOnUiThread {
+                addItems(listItems)
+                if (currentViewType != config.getFolderViewType(currentMimeType)) {
+                    setupLayoutManager()
+                }
+            }
+        }
+    }
+
+    private fun recreateList() {
+        val listItems = getRecyclerAdapter()?.listItems
+        if (listItems != null) {
+            addItems(listItems as ArrayList<ListItem>)
+        }
+    }
+
+    private fun setupLayoutManager() {
+        if (config.getFolderViewType(currentMimeType) == VIEW_TYPE_GRID) {
+            currentViewType = VIEW_TYPE_GRID
+            setupGridLayoutManager()
+        } else {
+            currentViewType = VIEW_TYPE_LIST
+            setupListLayoutManager()
+        }
+
+        binding.mimetypesList.adapter = null
+        initZoomListener()
+        addItems(storedItems)
+    }
+
+    private fun setupGridLayoutManager() {
+        val layoutManager = binding.mimetypesList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = config.fileColumnCnt
+
+        layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() {
+            override fun getSpanSize(position: Int): Int {
+                return if (getRecyclerAdapter()?.isASectionTitle(position) == true) {
+                    layoutManager.spanCount
+                } else {
+                    1
+                }
+            }
+        }
+    }
+
+    private fun setupListLayoutManager() {
+        val layoutManager = binding.mimetypesList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = 1
+        zoomListener = null
+    }
+
+    private fun initZoomListener() {
+        if (config.getFolderViewType(currentMimeType) == VIEW_TYPE_GRID) {
+            val layoutManager = binding.mimetypesList.layoutManager as MyGridLayoutManager
+            zoomListener = object : MyRecyclerView.MyZoomListener {
+                override fun zoomIn() {
+                    if (layoutManager.spanCount > 1) {
+                        reduceColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+
+                override fun zoomOut() {
+                    if (layoutManager.spanCount < MAX_COLUMN_COUNT) {
+                        increaseColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+            }
+        } else {
+            zoomListener = null
+        }
+    }
+
+    private fun tryToggleTemporarilyShowHidden() {
+        if (config.temporarilyShowHidden) {
+            toggleTemporarilyShowHidden(false)
+        } else {
+            handleHiddenFolderPasswordProtection {
+                toggleTemporarilyShowHidden(true)
+            }
+        }
+    }
+
+    private fun toggleTemporarilyShowHidden(show: Boolean) {
+        config.temporarilyShowHidden = show
+        ensureBackgroundThread {
+            reFetchItems()
+        }
+    }
+}

+ 417 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/ReadTextActivity.kt

@@ -0,0 +1,417 @@
+package org.fossify.filemanager.activities
+
+import android.app.Activity
+import android.content.Context
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import android.print.PrintAttributes
+import android.print.PrintManager
+import android.util.Base64
+import android.view.inputmethod.EditorInfo
+import android.webkit.WebResourceRequest
+import android.webkit.WebView
+import android.webkit.WebViewClient
+import android.widget.ImageView
+import android.widget.TextView
+import org.fossify.commons.dialogs.ConfirmationAdvancedDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.NavigationIcon
+import org.fossify.commons.helpers.REAL_FILE_PATH
+import org.fossify.commons.helpers.SAVE_DISCARD_PROMPT_INTERVAL
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.views.MyEditText
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.ActivityReadTextBinding
+import org.fossify.filemanager.dialogs.SaveAsDialog
+import org.fossify.filemanager.extensions.openPath
+import org.fossify.filemanager.views.GestureEditText
+import java.io.File
+import java.io.OutputStream
+
+class ReadTextActivity : SimpleActivity() {
+    companion object {
+        private const val SELECT_SAVE_FILE_INTENT = 1
+        private const val SELECT_SAVE_FILE_AND_EXIT_INTENT = 2
+        private const val KEY_UNSAVED_TEXT = "KEY_UNSAVED_TEXT"
+    }
+
+    private val binding by viewBinding(ActivityReadTextBinding::inflate)
+
+    private var filePath = ""
+    private var originalText = ""
+    private var searchIndex = 0
+    private var lastSavePromptTS = 0L
+    private var searchMatches = emptyList<Int>()
+    private var isSearchActive = false
+
+    private lateinit var searchQueryET: MyEditText
+    private lateinit var searchPrevBtn: ImageView
+    private lateinit var searchNextBtn: ImageView
+    private lateinit var searchClearBtn: ImageView
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        setupOptionsMenu()
+        binding.apply {
+            setupEdgeToEdge(padBottomImeAndSystem = listOf(readTextView))
+            setupMaterialScrollListener(binding.readTextHolder, binding.readTextAppbar)
+        }
+
+        searchQueryET = findViewById(R.id.search_query)
+        searchPrevBtn = findViewById(R.id.search_previous)
+        searchNextBtn = findViewById(R.id.search_next)
+        searchClearBtn = findViewById(R.id.search_clear)
+
+        if (checkAppSideloading()) {
+            return
+        }
+
+        val uri = if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
+            Uri.fromFile(File(intent.extras?.get(REAL_FILE_PATH).toString()))
+        } else {
+            intent.data
+        }
+
+        if (uri == null) {
+            finish()
+            return
+        }
+
+        val filename = getFilenameFromUri(uri)
+        if (filename.isNotEmpty()) {
+            binding.readTextToolbar.title = Uri.decode(filename)
+        }
+
+        binding.readTextView.onGlobalLayout {
+            ensureBackgroundThread {
+                checkIntent(uri, savedInstanceState)
+            }
+        }
+
+        setupSearchButtons()
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.readTextAppbar, NavigationIcon.Arrow)
+    }
+
+    override fun onSaveInstanceState(outState: Bundle) {
+        super.onSaveInstanceState(outState)
+        if (originalText != binding.readTextView.text.toString()) {
+            outState.putString(KEY_UNSAVED_TEXT, binding.readTextView.text.toString())
+        }
+    }
+
+    override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
+        super.onActivityResult(requestCode, resultCode, resultData)
+        if (requestCode == SELECT_SAVE_FILE_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null) {
+            val outputStream = contentResolver.openOutputStream(resultData.data!!)
+
+            val shouldExitAfterSaving = requestCode == SELECT_SAVE_FILE_AND_EXIT_INTENT
+
+            val selectedFilePath = getRealPathFromURI(intent.data!!)
+            val shouldOverwriteOriginalText = selectedFilePath == filePath
+
+            saveTextContent(outputStream, shouldExitAfterSaving, shouldOverwriteOriginalText)
+        }
+    }
+
+    override fun onBackPressedCompat(): Boolean {
+        val hasUnsavedChanges = originalText != binding.readTextView.text.toString()
+        return when {
+            isSearchActive -> {
+                closeSearch()
+                true
+            }
+            hasUnsavedChanges && System.currentTimeMillis() - lastSavePromptTS > SAVE_DISCARD_PROMPT_INTERVAL -> {
+                lastSavePromptTS = System.currentTimeMillis()
+                ConfirmationAdvancedDialog(this, "", R.string.save_before_closing, R.string.save, R.string.discard) {
+                    if (it) {
+                        saveText(true)
+                    } else {
+                        performDefaultBack()
+                    }
+                }
+                true
+            }
+
+            else -> false
+        }
+    }
+
+    private fun setupOptionsMenu() {
+        binding.readTextToolbar.setOnMenuItemClickListener { menuItem ->
+            when (menuItem.itemId) {
+                R.id.menu_search -> openSearch()
+                R.id.menu_save -> saveText()
+                R.id.menu_save_as -> saveAsText()
+                R.id.menu_open_with -> openPath(intent.dataString!!, true)
+                R.id.menu_print -> printText()
+                else -> return@setOnMenuItemClickListener false
+            }
+            return@setOnMenuItemClickListener true
+        }
+    }
+
+    private fun openSearch() {
+        isSearchActive = true
+        binding.searchWrapper.beVisible()
+        showKeyboard(searchQueryET)
+
+        binding.readTextView.requestFocus()
+        binding.readTextView.setSelection(0)
+
+        searchQueryET.postDelayed({
+            searchQueryET.requestFocus()
+        }, 250)
+    }
+
+    private fun updateFilePath() {
+        if (filePath.isEmpty()) {
+            filePath = getRealPathFromURI(intent.data!!) ?: ""
+        }
+    }
+
+    private fun saveAsText(shouldExitAfterSaving: Boolean = false) {
+        updateFilePath()
+
+        if (filePath.isEmpty()) {
+            SaveAsDialog(this, filePath, true) { _, filename ->
+                Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
+                    type = "text/plain"
+                    putExtra(Intent.EXTRA_TITLE, filename)
+                    addCategory(Intent.CATEGORY_OPENABLE)
+
+                    val requestCode = if (shouldExitAfterSaving) {
+                        SELECT_SAVE_FILE_AND_EXIT_INTENT
+                    } else {
+                        SELECT_SAVE_FILE_INTENT
+                    }
+                    @Suppress("DEPRECATION")
+                    startActivityForResult(this, requestCode)
+                }
+            }
+        } else {
+            SaveAsDialog(this, filePath, false) { path, _ ->
+                if (hasStoragePermission()) {
+                    val file = File(path)
+                    getFileOutputStream(file.toFileDirItem(this), true) {
+                        val shouldOverwriteOriginalText = path == filePath
+                        saveTextContent(it, shouldExitAfterSaving, shouldOverwriteOriginalText)
+                    }
+                } else {
+                    toast(R.string.no_storage_permissions)
+                }
+            }
+        }
+    }
+
+    private fun saveText(shouldExitAfterSaving: Boolean = false) {
+        updateFilePath()
+
+        if (filePath.isEmpty()) {
+            saveAsText(shouldExitAfterSaving)
+        } else if (hasStoragePermission()) {
+            val file = File(filePath)
+            getFileOutputStream(file.toFileDirItem(this), true) {
+                saveTextContent(it, shouldExitAfterSaving, true)
+            }
+        } else {
+            toast(R.string.no_storage_permissions)
+        }
+    }
+
+    private fun saveTextContent(outputStream: OutputStream?, shouldExitAfterSaving: Boolean, shouldOverwriteOriginalText: Boolean) {
+        if (outputStream != null) {
+            val currentText = binding.readTextView.text.toString()
+            outputStream.bufferedWriter().use { it.write(currentText) }
+            toast(R.string.file_saved)
+            hideKeyboard()
+
+            if (shouldOverwriteOriginalText) {
+                originalText = currentText
+            }
+
+            if (shouldExitAfterSaving) {
+                performDefaultBack()
+            }
+        } else {
+            toast(R.string.unknown_error_occurred)
+        }
+    }
+
+    private fun printText() {
+        try {
+            val webView = WebView(this)
+            webView.webViewClient = object : WebViewClient() {
+                override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest) = false
+
+                override fun onPageFinished(view: WebView, url: String) {
+                    createWebPrintJob(view)
+                }
+            }
+
+            val text = binding.readTextView.text.toString()
+            ensureBackgroundThread {
+                try {
+                    val base64 = Base64.encodeToString(text.toByteArray(), Base64.DEFAULT)
+                    runOnUiThread {
+                        webView.loadData(base64, "text/plain", "base64")
+                    }
+                } catch (e: Exception) {
+                    showErrorToast(e)
+                }
+            }
+        } catch (e: Exception) {
+            showErrorToast(e)
+        }
+    }
+
+    private fun createWebPrintJob(webView: WebView) {
+        val jobName = if (filePath.isNotEmpty()) {
+            filePath.getFilenameFromPath()
+        } else {
+            getString(R.string.app_name)
+        }
+
+        val printAdapter = webView.createPrintDocumentAdapter(jobName)
+
+        (getSystemService(Context.PRINT_SERVICE) as? PrintManager)?.apply {
+            print(jobName, printAdapter, PrintAttributes.Builder().build())
+        }
+    }
+
+    private fun checkIntent(uri: Uri, savedInstanceState: Bundle?) {
+        originalText = if (uri.scheme == "file") {
+            filePath = uri.path!!
+            val file = File(filePath)
+            if (file.exists()) {
+                try {
+                    file.readText()
+                } catch (e: Exception) {
+                    showErrorToast(e)
+                    ""
+                }
+            } else {
+                toast(R.string.unknown_error_occurred)
+                ""
+            }
+        } else {
+            try {
+                contentResolver.openInputStream(uri)!!.bufferedReader().use { it.readText() }
+            } catch (e: OutOfMemoryError) {
+                showErrorToast(e.toString())
+                return
+            } catch (e: Exception) {
+                showErrorToast(e)
+                finish()
+                return
+            }
+        }
+
+        runOnUiThread {
+            var textToSet = originalText
+
+            if (savedInstanceState != null) {
+                textToSet = savedInstanceState.getString(KEY_UNSAVED_TEXT, originalText)
+            }
+
+            binding.readTextView.setText(textToSet)
+            if (originalText.isNotEmpty()) {
+                hideKeyboard()
+            } else {
+                showKeyboard(binding.readTextView)
+            }
+        }
+    }
+
+    private fun setupSearchButtons() {
+        searchQueryET.onTextChangeListener {
+            searchTextChanged(it)
+        }
+
+        searchPrevBtn.setOnClickListener {
+            goToPrevSearchResult()
+        }
+
+        searchNextBtn.setOnClickListener {
+            goToNextSearchResult()
+        }
+
+        searchClearBtn.setOnClickListener {
+            closeSearch()
+        }
+
+        searchQueryET.setOnEditorActionListener(TextView.OnEditorActionListener { _, actionId, _ ->
+            if (actionId == EditorInfo.IME_ACTION_SEARCH) {
+                searchNextBtn.performClick()
+                return@OnEditorActionListener true
+            }
+
+            false
+        })
+
+        binding.searchWrapper.setBackgroundColor(getProperPrimaryColor())
+        val contrastColor = getProperPrimaryColor().getContrastColor()
+        arrayListOf(searchPrevBtn, searchNextBtn, searchClearBtn).forEach {
+            it.applyColorFilter(contrastColor)
+        }
+    }
+
+    private fun searchTextChanged(text: String) {
+        binding.readTextView.text?.clearBackgroundSpans()
+
+        if (text.isNotBlank() && text.length > 1) {
+            searchMatches = binding.readTextView.text.toString().searchMatches(text)
+            binding.readTextView.highlightText(text, getProperPrimaryColor())
+        }
+
+        if (searchMatches.isNotEmpty()) {
+            binding.readTextView.requestFocus()
+            binding.readTextView.setSelection(searchMatches.getOrNull(searchIndex) ?: 0)
+        }
+
+        searchQueryET.postDelayed({
+            searchQueryET.requestFocus()
+        }, 50)
+    }
+
+    private fun goToPrevSearchResult() {
+        if (searchIndex > 0) {
+            searchIndex--
+        } else {
+            searchIndex = searchMatches.lastIndex
+        }
+
+        selectSearchMatch(binding.readTextView)
+    }
+
+    private fun goToNextSearchResult() {
+        if (searchIndex < searchMatches.lastIndex) {
+            searchIndex++
+        } else {
+            searchIndex = 0
+        }
+
+        selectSearchMatch(binding.readTextView)
+    }
+
+    private fun closeSearch() {
+        searchQueryET.text?.clear()
+        isSearchActive = false
+        binding.searchWrapper.beGone()
+        hideKeyboard()
+    }
+
+    private fun selectSearchMatch(editText: GestureEditText) {
+        if (searchMatches.isNotEmpty()) {
+            editText.requestFocus()
+            editText.setSelection(searchMatches.getOrNull(searchIndex) ?: 0)
+        } else {
+            hideKeyboard()
+        }
+    }
+}

+ 115 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt

@@ -0,0 +1,115 @@
+package org.fossify.filemanager.activities
+
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.NavigationIcon
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.ActivitySaveAsBinding
+import org.fossify.filemanager.extensions.config
+import java.io.File
+
+class SaveAsActivity : SimpleActivity() {
+    private val binding by viewBinding(ActivitySaveAsBinding::inflate)
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        tryInitFileManager()
+    }
+
+    private fun tryInitFileManager() {
+        handleStoragePermission { granted ->
+            if (granted) {
+                saveAsDialog()
+            } else {
+                toast(R.string.no_storage_permissions)
+                finish()
+            }
+        }
+    }
+
+    private fun saveAsDialog() {
+        if (intent.action == Intent.ACTION_SEND && intent.extras?.containsKey(Intent.EXTRA_STREAM) == true) {
+            FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden(), showFAB = true, showFavoritesButton = true) {
+                val destination = it
+                handleSAFDialog(destination) {
+                    toast(R.string.saving)
+                    ensureBackgroundThread {
+                        try {
+                            if (!getDoesFilePathExist(destination)) {
+                                if (needsStupidWritePermissions(destination)) {
+                                    val document = getDocumentFile(destination)
+                                    document!!.createDirectory(destination.getFilenameFromPath())
+                                } else {
+                                    File(destination).mkdirs()
+                                }
+                            }
+
+                            val source = intent.getParcelableExtra<Uri>(Intent.EXTRA_STREAM)!!
+                            val originalFilename = getFilenameFromContentUri(source)
+                                ?: source.toString().getFilenameFromPath()
+                            val filename = sanitizeFilename(originalFilename)
+                            val mimeType = contentResolver.getType(source)
+                                ?: intent.type?.takeIf { it != "*/*" }
+                                ?: filename.getMimeType()
+                            val inputStream = contentResolver.openInputStream(source)
+
+                            val destinationPath = getAvailablePath("$destination/$filename")
+                            val outputStream = getFileOutputStreamSync(destinationPath, mimeType, null)!!
+                            inputStream!!.copyTo(outputStream)
+                            rescanPaths(arrayListOf(destinationPath))
+                            toast(R.string.file_saved)
+                            finish()
+                        } catch (e: Exception) {
+                            showErrorToast(e)
+                            finish()
+                        }
+                    }
+                }
+            }
+        } else {
+            toast(R.string.unknown_error_occurred)
+            finish()
+        }
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.activitySaveAsAppbar, NavigationIcon.Arrow)
+    }
+
+    private fun sanitizeFilename(filename: String): String {
+        return filename.replace("[/\\\\<>:\"|?*\u0000-\u001F]".toRegex(), "_")
+            .takeIf { it.isNotBlank() } ?: "unnamed_file"
+    }
+
+    private fun getAvailablePath(destinationPath: String): String {
+        if (!getDoesFilePathExist(destinationPath)) {
+            return destinationPath
+        }
+
+        val file = File(destinationPath)
+        return findAvailableName(file)
+    }
+
+    private fun findAvailableName(file: File): String {
+        val parent = file.parent ?: return file.absolutePath
+        val name = file.nameWithoutExtension
+        val ext = if (file.extension.isNotEmpty()) ".${file.extension}" else ""
+
+        var index = 1
+        var newPath: String
+
+        do {
+            newPath = "$parent/${name}_$index$ext"
+            index++
+        } while (getDoesFilePathExist(newPath))
+
+        return newPath
+    }
+
+}

+ 275 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SettingsActivity.kt

@@ -0,0 +1,275 @@
+package org.fossify.filemanager.activities
+
+import android.content.Intent
+import android.os.Bundle
+import org.fossify.commons.dialogs.ChangeDateTimeFormatDialog
+import org.fossify.commons.dialogs.ConfirmationDialog
+import org.fossify.commons.dialogs.RadioGroupDialog
+import org.fossify.commons.dialogs.SecurityDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.*
+import org.fossify.commons.models.RadioItem
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.ActivitySettingsBinding
+import org.fossify.filemanager.dialogs.ManageVisibleTabsDialog
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.helpers.RootHelpers
+import java.util.Locale
+import kotlin.system.exitProcess
+
+class SettingsActivity : SimpleActivity() {
+    private val binding by viewBinding(ActivitySettingsBinding::inflate)
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        super.onCreate(savedInstanceState)
+        setContentView(binding.root)
+        binding.apply {
+            setupEdgeToEdge(padBottomSystem = listOf(settingsNestedScrollview))
+            setupMaterialScrollListener(binding.settingsNestedScrollview, binding.settingsAppbar)
+        }
+    }
+
+    override fun onResume() {
+        super.onResume()
+        setupTopAppBar(binding.settingsAppbar, NavigationIcon.Arrow)
+
+        setupCustomizeColors()
+        setupUseEnglish()
+        setupLanguage()
+        setupManageFavorites()
+        setupManageShownTabs()
+        setupChangeDateTimeFormat()
+        setupFontSize()
+        setupShowHidden()
+        setupEnablePullToRefresh()
+        setupPressBackTwice()
+        setupHiddenItemPasswordProtection()
+        setupAppPasswordProtection()
+        setupFileDeletionPasswordProtection()
+        setupKeepLastModified()
+        setupDeleteConfirmation()
+        setupEnableRootAccess()
+        updateTextColors(binding.settingsNestedScrollview)
+
+        binding.apply {
+            arrayOf(
+                settingsColorCustomizationSectionLabel,
+                settingsGeneralSettingsLabel,
+                settingsVisibilityLabel,
+                settingsScrollingLabel,
+                settingsFileOperationsLabel,
+                settingsSecurityLabel
+            ).forEach {
+                it.setTextColor(getProperPrimaryColor())
+            }
+        }
+    }
+
+    private fun setupCustomizeColors() {
+        binding.settingsColorCustomizationHolder.setOnClickListener {
+            startCustomizationActivity()
+        }
+    }
+
+    private fun setupUseEnglish() {
+        binding.apply {
+            settingsUseEnglishHolder.beVisibleIf((config.wasUseEnglishToggled || Locale.getDefault().language != "en") && !isTiramisuPlus())
+            settingsUseEnglish.isChecked = config.useEnglish
+            settingsUseEnglishHolder.setOnClickListener {
+                settingsUseEnglish.toggle()
+                config.useEnglish = settingsUseEnglish.isChecked
+                exitProcess(0)
+            }
+        }
+    }
+
+    private fun setupLanguage() {
+        binding.apply {
+            settingsLanguage.text = Locale.getDefault().displayLanguage
+            settingsLanguageHolder.beVisibleIf(isTiramisuPlus())
+            settingsLanguageHolder.setOnClickListener {
+                launchChangeAppLanguageIntent()
+            }
+        }
+    }
+
+    private fun setupManageFavorites() {
+        binding.settingsManageFavoritesHolder.setOnClickListener {
+            startActivity(Intent(this, FavoritesActivity::class.java))
+        }
+    }
+
+    private fun setupManageShownTabs() {
+        binding.settingsManageTabsHolder.setOnClickListener {
+            ManageVisibleTabsDialog(this)
+        }
+    }
+
+    private fun setupChangeDateTimeFormat() {
+        binding.settingsChangeDateTimeFormatHolder.setOnClickListener {
+            ChangeDateTimeFormatDialog(this) {}
+        }
+    }
+
+    private fun setupFontSize() {
+        binding.settingsFontSize.text = getFontSizeText()
+        binding.settingsFontSizeHolder.setOnClickListener {
+            val items = arrayListOf(
+                RadioItem(FONT_SIZE_SMALL, getString(R.string.small)),
+                RadioItem(FONT_SIZE_MEDIUM, getString(R.string.medium)),
+                RadioItem(FONT_SIZE_LARGE, getString(R.string.large)),
+                RadioItem(FONT_SIZE_EXTRA_LARGE, getString(R.string.extra_large))
+            )
+
+            RadioGroupDialog(this@SettingsActivity, items, config.fontSize) {
+                config.fontSize = it as Int
+                binding.settingsFontSize.text = getFontSizeText()
+            }
+        }
+    }
+
+    private fun setupShowHidden() {
+        binding.settingsShowHidden.isChecked = config.showHidden
+        binding.settingsShowHiddenHolder.setOnClickListener {
+            if (config.showHidden) {
+                toggleShowHidden()
+            } else {
+                handleHiddenFolderPasswordProtection {
+                    toggleShowHidden()
+                }
+            }
+        }
+    }
+
+    private fun toggleShowHidden() {
+        binding.settingsShowHidden.toggle()
+        config.showHidden = binding.settingsShowHidden.isChecked
+    }
+
+    private fun setupEnablePullToRefresh() {
+        binding.apply {
+            settingsEnablePullToRefresh.isChecked = config.enablePullToRefresh
+            settingsEnablePullToRefreshHolder.setOnClickListener {
+                settingsEnablePullToRefresh.toggle()
+                config.enablePullToRefresh = settingsEnablePullToRefresh.isChecked
+            }
+        }
+    }
+
+    private fun setupPressBackTwice() {
+        binding.apply {
+            settingsPressBackTwice.isChecked = config.pressBackTwice
+            settingsPressBackTwiceHolder.setOnClickListener {
+                settingsPressBackTwice.toggle()
+                config.pressBackTwice = settingsPressBackTwice.isChecked
+            }
+        }
+    }
+
+    private fun setupHiddenItemPasswordProtection() {
+        binding.settingsPasswordProtection.isChecked = config.isHiddenPasswordProtectionOn
+        binding.settingsPasswordProtectionHolder.setOnClickListener {
+            val tabToShow = if (config.isHiddenPasswordProtectionOn) config.hiddenProtectionType else SHOW_ALL_TABS
+            SecurityDialog(this, config.hiddenPasswordHash, tabToShow) { hash, type, success ->
+                if (success) {
+                    val hasPasswordProtection = config.isHiddenPasswordProtectionOn
+                    binding.settingsPasswordProtection.isChecked = !hasPasswordProtection
+                    config.isHiddenPasswordProtectionOn = !hasPasswordProtection
+                    config.hiddenPasswordHash = if (hasPasswordProtection) "" else hash
+                    config.hiddenProtectionType = type
+
+                    if (config.isHiddenPasswordProtectionOn) {
+                        val confirmationTextId = if (config.hiddenProtectionType == PROTECTION_FINGERPRINT)
+                            R.string.fingerprint_setup_successfully else R.string.protection_setup_successfully
+                        ConfirmationDialog(this, "", confirmationTextId, R.string.ok, 0) { }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun setupAppPasswordProtection() {
+        binding.settingsAppPasswordProtection.isChecked = config.isAppPasswordProtectionOn
+        binding.settingsAppPasswordProtectionHolder.setOnClickListener {
+            val tabToShow = if (config.isAppPasswordProtectionOn) config.appProtectionType else SHOW_ALL_TABS
+            SecurityDialog(this, config.appPasswordHash, tabToShow) { hash, type, success ->
+                if (success) {
+                    val hasPasswordProtection = config.isAppPasswordProtectionOn
+                    binding.settingsAppPasswordProtection.isChecked = !hasPasswordProtection
+                    config.isAppPasswordProtectionOn = !hasPasswordProtection
+                    config.appPasswordHash = if (hasPasswordProtection) "" else hash
+                    config.appProtectionType = type
+
+                    if (config.isAppPasswordProtectionOn) {
+                        val confirmationTextId = if (config.appProtectionType == PROTECTION_FINGERPRINT)
+                            R.string.fingerprint_setup_successfully else R.string.protection_setup_successfully
+                        ConfirmationDialog(this, "", confirmationTextId, R.string.ok, 0) { }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun setupFileDeletionPasswordProtection() {
+        binding.settingsFileDeletionPasswordProtection.isChecked = config.isDeletePasswordProtectionOn
+        binding.settingsFileDeletionPasswordProtectionHolder.setOnClickListener {
+            val tabToShow = if (config.isDeletePasswordProtectionOn) config.deleteProtectionType else SHOW_ALL_TABS
+            SecurityDialog(this, config.deletePasswordHash, tabToShow) { hash, type, success ->
+                if (success) {
+                    val hasPasswordProtection = config.isDeletePasswordProtectionOn
+                    binding.settingsFileDeletionPasswordProtection.isChecked = !hasPasswordProtection
+                    config.isDeletePasswordProtectionOn = !hasPasswordProtection
+                    config.deletePasswordHash = if (hasPasswordProtection) "" else hash
+                    config.deleteProtectionType = type
+
+                    if (config.isDeletePasswordProtectionOn) {
+                        val confirmationTextId = if (config.deleteProtectionType == PROTECTION_FINGERPRINT)
+                            R.string.fingerprint_setup_successfully else R.string.protection_setup_successfully
+                        ConfirmationDialog(this, "", confirmationTextId, R.string.ok, 0) { }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun setupKeepLastModified() {
+        binding.apply {
+            settingsKeepLastModified.isChecked = config.keepLastModified
+            settingsKeepLastModifiedHolder.setOnClickListener {
+                settingsKeepLastModified.toggle()
+                config.keepLastModified = settingsKeepLastModified.isChecked
+            }
+        }
+    }
+
+    private fun setupDeleteConfirmation() {
+        binding.apply {
+            settingsSkipDeleteConfirmation.isChecked = config.skipDeleteConfirmation
+            settingsSkipDeleteConfirmationHolder.setOnClickListener {
+                settingsSkipDeleteConfirmation.toggle()
+                config.skipDeleteConfirmation = settingsSkipDeleteConfirmation.isChecked
+            }
+        }
+    }
+
+    private fun setupEnableRootAccess() {
+        binding.apply {
+            settingsEnableRootAccessHolder.beVisibleIf(config.isRootAvailable)
+            settingsEnableRootAccess.isChecked = config.enableRootAccess
+            settingsEnableRootAccessHolder.setOnClickListener {
+                if (!config.enableRootAccess) {
+                    RootHelpers(this@SettingsActivity).askRootIfNeeded {
+                        toggleRootAccess(it)
+                    }
+                } else {
+                    toggleRootAccess(false)
+                }
+            }
+        }
+    }
+
+    private fun toggleRootAccess(enable: Boolean) {
+        binding.settingsEnableRootAccess.isChecked = enable
+        config.enableRootAccess = enable
+    }
+}

+ 100 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt

@@ -0,0 +1,100 @@
+package org.fossify.filemanager.activities
+
+import android.annotation.SuppressLint
+import android.content.Intent
+import android.os.Environment
+import android.provider.Settings
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.dialogs.ConfirmationAdvancedDialog
+import org.fossify.commons.extensions.hasPermission
+import android.net.Uri
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.extensions.toast
+import org.fossify.commons.helpers.PERMISSION_WRITE_STORAGE
+import org.fossify.commons.helpers.isRPlus
+import org.fossify.filemanager.R
+
+open class SimpleActivity : BaseSimpleActivity() {
+    override fun getAppIconIDs() = arrayListOf(
+        R.mipmap.ic_launcher_red,
+        R.mipmap.ic_launcher_pink,
+        R.mipmap.ic_launcher_purple,
+        R.mipmap.ic_launcher_deep_purple,
+        R.mipmap.ic_launcher_indigo,
+        R.mipmap.ic_launcher_blue,
+        R.mipmap.ic_launcher_light_blue,
+        R.mipmap.ic_launcher_cyan,
+        R.mipmap.ic_launcher_teal,
+        R.mipmap.ic_launcher,
+        R.mipmap.ic_launcher_light_green,
+        R.mipmap.ic_launcher_lime,
+        R.mipmap.ic_launcher_yellow,
+        R.mipmap.ic_launcher_amber,
+        R.mipmap.ic_launcher_orange,
+        R.mipmap.ic_launcher_deep_orange,
+        R.mipmap.ic_launcher_brown,
+        R.mipmap.ic_launcher_blue_grey,
+        R.mipmap.ic_launcher_grey_black
+    )
+
+    companion object {
+        private const val MANAGE_STORAGE_RC = 201
+    }
+
+    override fun getAppLauncherName() = getString(R.string.app_launcher_name)
+
+    override fun getRepositoryName() = "File-Manager"
+
+   @SuppressLint("NewApi")
+    override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
+        super.onActivityResult(requestCode, resultCode, resultData)
+        isAskingPermissions = false
+        if (requestCode == MANAGE_STORAGE_RC && isRPlus()) {
+            actionOnPermission?.invoke(Environment.isExternalStorageManager())
+        }
+    }
+
+    @SuppressLint("NewApi")
+    fun hasStoragePermission(): Boolean {
+        return if (isRPlus()) {
+            Environment.isExternalStorageManager()
+        } else {
+            hasPermission(PERMISSION_WRITE_STORAGE)
+        }
+    }
+
+    @SuppressLint("InlinedApi")
+    fun handleStoragePermission(callback: (granted: Boolean) -> Unit) {
+        actionOnPermission = null
+        if (hasStoragePermission()) {
+            callback(true)
+        } else {
+            if (isRPlus()) {
+                ConfirmationAdvancedDialog(this, "", R.string.access_storage_prompt, R.string.ok, 0, false) { success ->
+                    if (success) {
+                        isAskingPermissions = true
+                        actionOnPermission = callback
+                        try {
+                            val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
+                            intent.addCategory("android.intent.category.DEFAULT")
+                            intent.data = Uri.parse("package:$packageName")
+                            startActivityForResult(intent, MANAGE_STORAGE_RC)
+                        } catch (e: android.content.ActivityNotFoundException) {
+                            showErrorToast(e)
+                            val intent = Intent()
+                            intent.action = Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION
+                            startActivityForResult(intent, MANAGE_STORAGE_RC)
+                        } catch (e: SecurityException) {
+                            showErrorToast(e)
+                            finish()
+                        }
+                    } else {
+                        finish()
+                    }
+                }
+            } else {
+                handlePermission(PERMISSION_WRITE_STORAGE, callback)
+            }
+        }
+    }
+}

+ 19 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/activities/SplashActivity.kt

@@ -0,0 +1,19 @@
+package org.fossify.filemanager.activities
+
+import android.content.Intent
+import org.fossify.commons.activities.BaseSplashActivity
+
+class SplashActivity : BaseSplashActivity() {
+    override fun initActivity() {
+        if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
+            Intent(this, MainActivity::class.java).apply {
+                action = Intent.ACTION_VIEW
+                data = intent.data
+                startActivity(this)
+            }
+        } else {
+            startActivity(Intent(this, MainActivity::class.java))
+        }
+        finish()
+    }
+}

+ 139 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/DecompressItemsAdapter.kt

@@ -0,0 +1,139 @@
+package org.fossify.filemanager.adapters
+
+import android.content.pm.PackageManager
+import android.graphics.drawable.Drawable
+import android.util.TypedValue
+import android.view.Menu
+import android.view.View
+import android.view.ViewGroup
+import com.bumptech.glide.Glide
+import com.bumptech.glide.load.engine.DiskCacheStrategy
+import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
+import com.bumptech.glide.request.RequestOptions
+import org.fossify.commons.adapters.MyRecyclerViewAdapter
+import org.fossify.commons.extensions.getColoredDrawableWithColor
+import org.fossify.commons.extensions.getTextSize
+import org.fossify.commons.extensions.getTimeFormat
+import org.fossify.commons.helpers.getFilePlaceholderDrawables
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.databinding.ItemDecompressionListFileDirBinding
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.models.ListItem
+import java.util.Locale
+
+class DecompressItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem>, recyclerView: MyRecyclerView, itemClick: (Any) -> Unit) :
+    MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
+
+    private lateinit var fileDrawable: Drawable
+    private lateinit var folderDrawable: Drawable
+    private var fileDrawables = HashMap<String, Drawable>()
+    private var fontSize = 0f
+    private var smallerFontSize = 0f
+    private var dateFormat = ""
+    private var timeFormat = ""
+
+    init {
+        initDrawables()
+        fontSize = activity.getTextSize()
+        smallerFontSize = fontSize * 0.8f
+        dateFormat = activity.config.dateFormat
+        timeFormat = activity.getTimeFormat()
+    }
+
+    override fun getActionMenuId() = 0
+
+    override fun prepareActionMode(menu: Menu) {}
+
+    override fun actionItemPressed(id: Int) {}
+
+    override fun getSelectableItemCount() = 0
+
+    override fun getIsItemSelectable(position: Int) = false
+
+    override fun getItemSelectionKey(position: Int) = 0
+
+    override fun getItemKeyPosition(key: Int) = 0
+
+    override fun onActionModeCreated() {}
+
+    override fun onActionModeDestroyed() {}
+
+    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
+        return createViewHolder(ItemDecompressionListFileDirBinding.inflate(layoutInflater, parent, false).root)
+    }
+
+    override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
+        val fileDirItem = listItems[position]
+        holder.bindView(fileDirItem, true, false) { itemView, layoutPosition ->
+            setupView(itemView, fileDirItem)
+        }
+        bindViewHolder(holder)
+    }
+
+    override fun getItemCount() = listItems.size
+
+    override fun onViewRecycled(holder: ViewHolder) {
+        super.onViewRecycled(holder)
+        if (!activity.isDestroyed && !activity.isFinishing) {
+            ItemDecompressionListFileDirBinding.bind(holder.itemView).apply {
+                if (itemIcon != null) {
+                    Glide.with(activity).clear(itemIcon)
+                }
+            }
+        }
+    }
+
+    private fun setupView(view: View, listItem: ListItem) {
+        ItemDecompressionListFileDirBinding.bind(view).apply {
+            val fileName = listItem.name
+            itemName.text = fileName
+            itemName.setTextColor(textColor)
+            itemName.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
+
+            if (listItem.isDirectory) {
+                itemIcon.setImageDrawable(folderDrawable)
+            } else {
+                val drawable = fileDrawables.getOrElse(fileName.substringAfterLast(".").lowercase(Locale.getDefault()), { fileDrawable })
+                val options = RequestOptions()
+                    .signature(listItem.getKey())
+                    .diskCacheStrategy(DiskCacheStrategy.RESOURCE)
+                    .error(drawable)
+                    .centerCrop()
+
+                val itemToLoad = getImagePathToLoad(listItem.path)
+                if (!activity.isDestroyed) {
+                    Glide.with(activity)
+                        .load(itemToLoad)
+                        .transition(DrawableTransitionOptions.withCrossFade())
+                        .apply(options)
+                        .into(itemIcon)
+                }
+            }
+        }
+    }
+
+    private fun getImagePathToLoad(path: String): Any {
+        return if (path.endsWith(".apk", true)) {
+            val packageInfo = activity.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES)
+            val appInfo = packageInfo?.applicationInfo
+            if (appInfo != null) {
+                appInfo.sourceDir = path
+                appInfo.publicSourceDir = path
+                appInfo.loadIcon(activity.packageManager)
+            } else {
+                path
+            }
+        } else {
+            path
+        }
+    }
+
+    private fun initDrawables() {
+        folderDrawable = resources.getColoredDrawableWithColor(R.drawable.ic_folder_vector, properPrimaryColor)
+        folderDrawable.alpha = 180
+        fileDrawable = resources.getDrawable(R.drawable.ic_file_generic)
+        fileDrawables = getFilePlaceholderDrawables(activity)
+    }
+}

+ 1478 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt

@@ -0,0 +1,1478 @@
+package org.fossify.filemanager.adapters
+
+import android.annotation.SuppressLint
+import android.content.Intent
+import android.content.pm.PackageManager
+import android.content.pm.ShortcutInfo
+import android.content.pm.ShortcutManager
+import android.graphics.drawable.Drawable
+import android.graphics.drawable.Icon
+import android.graphics.drawable.LayerDrawable
+import android.net.Uri
+import android.util.TypedValue
+import android.view.LayoutInflater
+import android.view.Menu
+import android.view.View
+import android.view.ViewGroup
+import android.widget.FrameLayout
+import android.widget.ImageView
+import android.widget.TextView
+import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+import androidx.viewbinding.ViewBinding
+import com.bumptech.glide.Glide
+import com.bumptech.glide.load.DecodeFormat
+import com.bumptech.glide.load.engine.DiskCacheStrategy
+import com.bumptech.glide.load.resource.bitmap.CenterCrop
+import com.bumptech.glide.load.resource.bitmap.RoundedCorners
+import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
+import com.bumptech.glide.request.RequestOptions
+import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
+import com.stericson.RootTools.RootTools
+import net.lingala.zip4j.exception.ZipException
+import net.lingala.zip4j.io.inputstream.ZipInputStream
+import net.lingala.zip4j.io.outputstream.ZipOutputStream
+import net.lingala.zip4j.model.LocalFileHeader
+import net.lingala.zip4j.model.ZipParameters
+import net.lingala.zip4j.model.enums.EncryptionMethod
+import org.fossify.commons.adapters.MyRecyclerViewAdapter
+import org.fossify.commons.dialogs.ConfirmationDialog
+import org.fossify.commons.dialogs.EnterPasswordDialog
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.dialogs.PropertiesDialog
+import org.fossify.commons.dialogs.RadioGroupDialog
+import org.fossify.commons.dialogs.RenameDialog
+import org.fossify.commons.dialogs.RenameItemDialog
+import org.fossify.commons.dialogs.RenameItemsDialog
+import org.fossify.commons.extensions.applyColorFilter
+import org.fossify.commons.extensions.beGone
+import org.fossify.commons.extensions.beVisible
+import org.fossify.commons.extensions.beVisibleIf
+import org.fossify.commons.extensions.convertToBitmap
+import org.fossify.commons.extensions.copyToClipboard
+import org.fossify.commons.extensions.createDirectorySync
+import org.fossify.commons.extensions.deleteFile
+import org.fossify.commons.extensions.deleteFileBg
+import org.fossify.commons.extensions.deleteFolderBg
+import org.fossify.commons.extensions.formatDate
+import org.fossify.commons.extensions.formatSize
+import org.fossify.commons.extensions.getAndroidSAFFileItems
+import org.fossify.commons.extensions.getAndroidSAFUri
+import org.fossify.commons.extensions.getColoredDrawableWithColor
+import org.fossify.commons.extensions.getDefaultCopyDestinationPath
+import org.fossify.commons.extensions.getDocumentFile
+import org.fossify.commons.extensions.getDoesFilePathExist
+import org.fossify.commons.extensions.getFileCount
+import org.fossify.commons.extensions.getFileInputStreamSync
+import org.fossify.commons.extensions.getFileOutputStreamSync
+import org.fossify.commons.extensions.getFilenameFromPath
+import org.fossify.commons.extensions.getIsPathDirectory
+import org.fossify.commons.extensions.getMimeType
+import org.fossify.commons.extensions.getParentPath
+import org.fossify.commons.extensions.getProperSize
+import org.fossify.commons.extensions.getTextSize
+import org.fossify.commons.extensions.getTimeFormat
+import org.fossify.commons.extensions.handleDeletePasswordProtection
+import org.fossify.commons.extensions.hasOTGConnected
+import org.fossify.commons.extensions.highlightTextPart
+import org.fossify.commons.extensions.isPathOnOTG
+import org.fossify.commons.extensions.isRestrictedSAFOnlyRoot
+import org.fossify.commons.extensions.relativizeWith
+import org.fossify.commons.extensions.setupViewBackground
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.extensions.toFileDirItem
+import org.fossify.commons.extensions.toast
+import org.fossify.commons.helpers.CONFLICT_OVERWRITE
+import org.fossify.commons.helpers.CONFLICT_SKIP
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.helpers.getFilePlaceholderDrawables
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.models.RadioItem
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.activities.SplashActivity
+import org.fossify.filemanager.databinding.ItemDirGridBinding
+import org.fossify.filemanager.databinding.ItemEmptyBinding
+import org.fossify.filemanager.databinding.ItemFileDirListBinding
+import org.fossify.filemanager.databinding.ItemFileGridBinding
+import org.fossify.filemanager.databinding.ItemSectionBinding
+import org.fossify.filemanager.dialogs.CompressAsDialog
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.isPathOnRoot
+import org.fossify.filemanager.extensions.isZipFile
+import org.fossify.filemanager.extensions.setAs
+import org.fossify.filemanager.extensions.setLastModified
+import org.fossify.filemanager.extensions.sharePaths
+import org.fossify.filemanager.extensions.toggleItemVisibility
+import org.fossify.filemanager.extensions.tryOpenPathIntent
+import org.fossify.filemanager.helpers.OPEN_AS_AUDIO
+import org.fossify.filemanager.helpers.OPEN_AS_IMAGE
+import org.fossify.filemanager.helpers.OPEN_AS_OTHER
+import org.fossify.filemanager.helpers.OPEN_AS_TEXT
+import org.fossify.filemanager.helpers.OPEN_AS_VIDEO
+import org.fossify.filemanager.helpers.AlreadyEncryptedException
+import org.fossify.filemanager.helpers.CryptoHelper
+import org.fossify.filemanager.helpers.RootHelpers
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import org.fossify.filemanager.models.ListItem
+import java.io.BufferedInputStream
+import java.io.Closeable
+import java.io.File
+import java.util.LinkedList
+import java.util.Locale
+
+class ItemsAdapter(
+    activity: SimpleActivity,
+    var listItems: MutableList<ListItem>,
+    private val listener: ItemOperationsListener?,
+    recyclerView: MyRecyclerView,
+    private val isPickMultipleIntent: Boolean,
+    private val swipeRefreshLayout: SwipeRefreshLayout?,
+    canHaveIndividualViewType: Boolean = true,
+    itemClick: (Any) -> Unit,
+) : MyRecyclerViewAdapter(activity, recyclerView, itemClick),
+    RecyclerViewFastScroller.OnPopupTextUpdate {
+
+    private lateinit var fileDrawable: Drawable
+    private lateinit var folderDrawable: Drawable
+    private var fileDrawables = HashMap<String, Drawable>()
+    private var currentItemsHash = listItems.hashCode()
+    private var textToHighlight = ""
+    private val hasOTGConnected = activity.hasOTGConnected()
+    private var fontSize = 0f
+    private var smallerFontSize = 0f
+    private var dateFormat = ""
+    private var timeFormat = ""
+
+    private val config = activity.config
+    private val viewType = if (canHaveIndividualViewType) {
+        config.getFolderViewType(
+            path = listItems.firstOrNull { !it.isSectionTitle }?.mPath?.getParentPath().orEmpty()
+        )
+    } else {
+        config.viewType
+    }
+    private val isListViewType = viewType == VIEW_TYPE_LIST
+    private var displayFilenamesInGrid = config.displayFilenames
+
+    companion object {
+        private const val TYPE_FILE = 1
+        private const val TYPE_DIR = 2
+        private const val TYPE_SECTION = 3
+        private const val TYPE_GRID_TYPE_DIVIDER = 4
+    }
+
+    init {
+        setupDragListener(true)
+        initDrawables()
+        updateFontSizes()
+        dateFormat = config.dateFormat
+        timeFormat = activity.getTimeFormat()
+    }
+
+    override fun getActionMenuId() = R.menu.cab
+
+    override fun prepareActionMode(menu: Menu) {
+        menu.apply {
+            findItem(R.id.cab_decompress).isVisible =
+                getSelectedFileDirItems().map { it.path }.any { it.isZipFile() }
+            findItem(R.id.cab_confirm_selection).isVisible = isPickMultipleIntent
+            val selectedItems = getSelectedFileDirItems()
+            findItem(R.id.cab_encrypt).isVisible = selectedItems.isNotEmpty()
+            findItem(R.id.cab_decrypt).isVisible = selectedItems.isNotEmpty()
+            findItem(R.id.cab_copy_path).isVisible = isOneItemSelected()
+            findItem(R.id.cab_open_with).isVisible = isOneFileSelected()
+            findItem(R.id.cab_open_as).isVisible = isOneFileSelected()
+            findItem(R.id.cab_set_as).isVisible = isOneFileSelected()
+            findItem(R.id.cab_create_shortcut).isVisible = isOneItemSelected()
+
+            checkHideBtnVisibility(this)
+        }
+    }
+
+    override fun actionItemPressed(id: Int) {
+        if (selectedKeys.isEmpty()) {
+            return
+        }
+
+        when (id) {
+            R.id.cab_confirm_selection -> confirmSelection()
+            R.id.cab_rename -> displayRenameDialog()
+            R.id.cab_properties -> showProperties()
+            R.id.cab_share -> shareFiles()
+            R.id.cab_hide -> toggleFileVisibility(true)
+            R.id.cab_unhide -> toggleFileVisibility(false)
+            R.id.cab_create_shortcut -> createShortcut()
+            R.id.cab_copy_path -> copyPath()
+            R.id.cab_set_as -> setAs()
+            R.id.cab_open_with -> openWith()
+            R.id.cab_open_as -> openAs()
+            R.id.cab_copy_to -> copyMoveTo(true)
+            R.id.cab_move_to -> tryMoveFiles()
+            R.id.cab_compress -> compressSelection()
+            R.id.cab_decompress -> decompressSelection()
+            R.id.cab_encrypt -> encryptSelection()
+            R.id.cab_decrypt -> decryptSelection()
+            R.id.cab_select_all -> selectAll()
+            R.id.cab_delete -> if (config.skipDeleteConfirmation) deleteFiles() else askConfirmDelete()
+        }
+    }
+
+    override fun getSelectableItemCount(): Int {
+        return listItems.filter { !it.isSectionTitle && !it.isGridTypeDivider }.size
+    }
+
+    override fun getIsItemSelectable(position: Int): Boolean {
+        return !listItems[position].isSectionTitle && !listItems[position].isGridTypeDivider
+    }
+
+    override fun getItemSelectionKey(position: Int): Int? {
+        return listItems.getOrNull(position)?.path?.hashCode()
+    }
+
+    override fun getItemKeyPosition(key: Int): Int {
+        return listItems.indexOfFirst { it.path.hashCode() == key }
+    }
+
+    override fun onActionModeCreated() {
+        swipeRefreshLayout?.isRefreshing = false
+        swipeRefreshLayout?.isEnabled = false
+    }
+
+    override fun onActionModeDestroyed() {
+        swipeRefreshLayout?.isEnabled = config.enablePullToRefresh
+    }
+
+    override fun getItemViewType(position: Int): Int {
+        return when {
+            listItems[position].isGridTypeDivider -> TYPE_GRID_TYPE_DIVIDER
+            listItems[position].isSectionTitle -> TYPE_SECTION
+            listItems[position].mIsDirectory -> TYPE_DIR
+            else -> TYPE_FILE
+        }
+    }
+
+    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
+        val binding = Binding.getByItemViewType(viewType, isListViewType)
+            .inflate(layoutInflater, parent, false)
+
+        return createViewHolder(binding.root)
+    }
+
+    override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
+        val fileDirItem = listItems[position]
+        holder.bindView(
+            any = fileDirItem,
+            allowSingleClick = true,
+            allowLongClick = !fileDirItem.isSectionTitle
+        ) { itemView, layoutPosition ->
+            val viewType = getItemViewType(position)
+            setupView(
+                binding = Binding.getByItemViewType(viewType, isListViewType).bind(itemView),
+                listItem = fileDirItem
+            )
+        }
+        bindViewHolder(holder)
+    }
+
+    override fun getItemCount() = listItems.size
+
+    private fun getItemWithKey(key: Int): FileDirItem? {
+        return listItems.firstOrNull { it.path.hashCode() == key }
+    }
+
+    private fun isOneFileSelected(): Boolean {
+        return isOneItemSelected() && getItemWithKey(selectedKeys.first())?.isDirectory == false
+    }
+
+    private fun checkHideBtnVisibility(menu: Menu) {
+        var hiddenCnt = 0
+        var unhiddenCnt = 0
+        getSelectedFileDirItems().map { it.name }.forEach {
+            if (it.startsWith(".")) {
+                hiddenCnt++
+            } else {
+                unhiddenCnt++
+            }
+        }
+
+        menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0
+        menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0
+    }
+
+    private fun confirmSelection() {
+        if (selectedKeys.isNotEmpty()) {
+            val paths = getSelectedFileDirItems()
+                .asSequence()
+                .filter { !it.isDirectory }.map { it.path }
+                .toMutableList() as ArrayList<String>
+            if (paths.isEmpty()) {
+                finishActMode()
+            } else {
+                listener?.selectedPaths(paths)
+            }
+        }
+    }
+
+    private fun displayRenameDialog() {
+        val fileDirItems = getSelectedFileDirItems()
+        val paths = fileDirItems.asSequence().map { it.path }.toMutableList() as ArrayList<String>
+        when {
+            paths.size == 1 -> {
+                val oldPath = paths.first()
+                RenameItemDialog(activity, oldPath) {
+                    config.moveFavorite(oldPath, it)
+                    activity.runOnUiThread {
+                        listener?.refreshFragment()
+                        finishActMode()
+                    }
+                }
+            }
+
+            fileDirItems.any { it.isDirectory } -> RenameItemsDialog(activity, paths) {
+                activity.runOnUiThread {
+                    listener?.refreshFragment()
+                    finishActMode()
+                }
+            }
+
+            else -> RenameDialog(activity, paths, false) {
+                activity.runOnUiThread {
+                    listener?.refreshFragment()
+                    finishActMode()
+                }
+            }
+        }
+    }
+
+    private fun showProperties() {
+        if (selectedKeys.size <= 1) {
+            PropertiesDialog(activity, getFirstSelectedItemPath(), config.shouldShowHidden())
+        } else {
+            val paths = getSelectedFileDirItems().map { it.path }
+            PropertiesDialog(activity, paths, config.shouldShowHidden())
+        }
+    }
+
+    private fun shareFiles() {
+        val selectedItems = getSelectedFileDirItems()
+        val paths = ArrayList<String>(selectedItems.size)
+        selectedItems.forEach {
+            addFileUris(it.path, paths)
+        }
+        activity.sharePaths(paths)
+    }
+
+    private fun toggleFileVisibility(hide: Boolean) {
+        ensureBackgroundThread {
+            getSelectedFileDirItems().forEach {
+                activity.toggleItemVisibility(it.path, hide)
+            }
+            activity.runOnUiThread {
+                listener?.refreshFragment()
+                finishActMode()
+            }
+        }
+    }
+
+    @SuppressLint("NewApi")
+    private fun createShortcut() {
+        val manager = activity.getSystemService(ShortcutManager::class.java)
+        if (manager.isRequestPinShortcutSupported) {
+            val path = getFirstSelectedItemPath()
+            val drawable = resources.getDrawable(R.drawable.shortcut_folder).mutate()
+            getShortcutImage(path, drawable) {
+                val intent = Intent(activity, SplashActivity::class.java)
+                intent.action = Intent.ACTION_VIEW
+                intent.flags =
+                    intent.flags or
+                            Intent.FLAG_ACTIVITY_NEW_TASK or
+                            Intent.FLAG_ACTIVITY_CLEAR_TASK or
+                            Intent.FLAG_ACTIVITY_NO_HISTORY
+                intent.data = Uri.fromFile(File(path))
+
+                val shortcut = ShortcutInfo.Builder(activity, path)
+                    .setShortLabel(path.getFilenameFromPath())
+                    .setIcon(Icon.createWithBitmap(drawable.convertToBitmap()))
+                    .setIntent(intent)
+                    .build()
+
+                manager.requestPinShortcut(shortcut, null)
+            }
+        }
+    }
+
+    private fun getShortcutImage(path: String, drawable: Drawable, callback: () -> Unit) {
+        val appIconColor = baseConfig.appIconColor
+        (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_folder_background)
+            .applyColorFilter(appIconColor)
+        if (activity.getIsPathDirectory(path)) {
+            callback()
+        } else {
+            ensureBackgroundThread {
+                val options = RequestOptions()
+                    .format(DecodeFormat.PREFER_ARGB_8888)
+                    .skipMemoryCache(true)
+                    .diskCacheStrategy(DiskCacheStrategy.NONE)
+                    .fitCenter()
+
+                val size = activity.resources.getDimension(R.dimen.shortcut_size).toInt()
+                val builder = Glide.with(activity)
+                    .asDrawable()
+                    .load(getImagePathToLoad(path))
+                    .apply(options)
+                    .centerCrop()
+                    .into(size, size)
+
+                try {
+                    val bitmap = builder.get()
+                    drawable.findDrawableByLayerId(R.id.shortcut_folder_background)
+                        .applyColorFilter(0)
+                    drawable.setDrawableByLayerId(R.id.shortcut_folder_image, bitmap)
+                } catch (e: Exception) {
+                    val fileIcon = fileDrawables
+                        .getOrElse(
+                            key = path.substringAfterLast(".").lowercase(Locale.getDefault()),
+                            defaultValue = { fileDrawable }
+                        )
+                    drawable.setDrawableByLayerId(R.id.shortcut_folder_image, fileIcon)
+                }
+
+                activity.runOnUiThread {
+                    callback()
+                }
+            }
+        }
+    }
+
+    @SuppressLint("NewApi")
+    private fun addFileUris(path: String, paths: ArrayList<String>) {
+        if (activity.getIsPathDirectory(path)) {
+            val shouldShowHidden = config.shouldShowHidden()
+            when {
+                activity.isRestrictedSAFOnlyRoot(path) -> {
+                    activity.getAndroidSAFFileItems(path, shouldShowHidden, false) { files ->
+                        files.forEach {
+                            addFileUris(activity.getAndroidSAFUri(it.path).toString(), paths)
+                        }
+                    }
+                }
+
+                activity.isPathOnOTG(path) -> {
+                    activity.getDocumentFile(path)?.listFiles()
+                        ?.filter { if (shouldShowHidden) true else !it.name!!.startsWith(".") }
+                        ?.forEach {
+                            addFileUris(it.uri.toString(), paths)
+                        }
+                }
+
+                else -> {
+                    File(path).listFiles()
+                        ?.filter { if (shouldShowHidden) true else !it.name.startsWith('.') }
+                        ?.forEach {
+                            addFileUris(it.absolutePath, paths)
+                        }
+                }
+            }
+        } else {
+            paths.add(path)
+        }
+    }
+
+    private fun copyPath() {
+        activity.copyToClipboard(getFirstSelectedItemPath())
+        finishActMode()
+    }
+
+    private fun setAs() {
+        activity.setAs(getFirstSelectedItemPath())
+    }
+
+    private fun openWith() {
+        activity.tryOpenPathIntent(getFirstSelectedItemPath(), true)
+    }
+
+    private fun openAs() {
+        val res = activity.resources
+        val items = arrayListOf(
+            RadioItem(OPEN_AS_TEXT, res.getString(R.string.text_file)),
+            RadioItem(OPEN_AS_IMAGE, res.getString(R.string.image_file)),
+            RadioItem(OPEN_AS_AUDIO, res.getString(R.string.audio_file)),
+            RadioItem(OPEN_AS_VIDEO, res.getString(R.string.video_file)),
+            RadioItem(OPEN_AS_OTHER, res.getString(R.string.other_file))
+        )
+
+        RadioGroupDialog(activity, items) {
+            activity.tryOpenPathIntent(getFirstSelectedItemPath(), false, it as Int)
+        }
+    }
+
+    private fun tryMoveFiles() {
+        activity.handleDeletePasswordProtection {
+            copyMoveTo(false)
+        }
+    }
+
+    private fun copyMoveTo(isCopyOperation: Boolean) {
+        val files = getSelectedFileDirItems()
+        val firstFile = files[0]
+        val source = firstFile.getParentPath()
+        FilePickerDialog(
+            activity = activity,
+            currPath = activity.getDefaultCopyDestinationPath(config.shouldShowHidden(), source),
+            pickFile = false,
+            showHidden = config.shouldShowHidden(),
+            showFAB = true,
+            canAddShowHiddenButton = true,
+            showFavoritesButton = true
+        ) {
+            config.lastCopyPath = it
+            if (activity.isPathOnRoot(it) || activity.isPathOnRoot(firstFile.path)) {
+                copyMoveRootItems(files, it, isCopyOperation)
+            } else {
+                activity.copyMoveFilesTo(
+                    fileDirItems = files,
+                    source = source,
+                    destination = it,
+                    isCopyOperation = isCopyOperation,
+                    copyPhotoVideoOnly = false,
+                    copyHidden = config.shouldShowHidden()
+                ) {
+                    if (!isCopyOperation) {
+                        files.forEach { sourceFileDir ->
+                            val sourcePath = sourceFileDir.path
+                            if (
+                                activity.isRestrictedSAFOnlyRoot(sourcePath)
+                                && activity.getDoesFilePathExist(sourcePath)
+                            ) {
+                                activity.deleteFile(sourceFileDir, true) {
+                                    listener?.refreshFragment()
+                                    activity.runOnUiThread {
+                                        finishActMode()
+                                    }
+                                }
+                            } else {
+                                val sourceFile = File(sourcePath)
+                                if (
+                                    activity.getDoesFilePathExist(source)
+                                    && activity.getIsPathDirectory(source)
+                                    && sourceFile.list()?.isEmpty() == true
+                                    && sourceFile.getProperSize(true) == 0L
+                                    && sourceFile.getFileCount(true) == 0
+                                ) {
+                                    val sourceFolder = sourceFile.toFileDirItem(activity)
+                                    activity.deleteFile(sourceFolder, true) {
+                                        listener?.refreshFragment()
+                                        activity.runOnUiThread {
+                                            finishActMode()
+                                        }
+                                    }
+                                } else {
+                                    listener?.refreshFragment()
+                                    finishActMode()
+                                }
+                            }
+                        }
+                    } else {
+                        listener?.refreshFragment()
+                        finishActMode()
+                    }
+                }
+            }
+        }
+    }
+
+    private fun copyMoveRootItems(
+        files: ArrayList<FileDirItem>,
+        destinationPath: String,
+        isCopyOperation: Boolean
+    ) {
+        activity.toast(R.string.copying)
+        ensureBackgroundThread {
+            val fileCnt = files.size
+            RootHelpers(activity).copyMoveFiles(files, destinationPath, isCopyOperation) {
+                when (it) {
+                    fileCnt -> activity.toast(R.string.copying_success)
+                    0 -> activity.toast(R.string.copy_failed)
+                    else -> activity.toast(R.string.copying_success_partial)
+                }
+
+                activity.runOnUiThread {
+                    listener?.refreshFragment()
+                    finishActMode()
+                }
+            }
+        }
+    }
+
+    private fun compressSelection() {
+        val firstPath = getFirstSelectedItemPath()
+        if (activity.isPathOnOTG(firstPath)) {
+            activity.toast(R.string.unknown_error_occurred)
+            return
+        }
+
+        CompressAsDialog(activity, firstPath) { destination, password ->
+            activity.handleAndroidSAFDialog(firstPath) { granted ->
+                if (!granted) {
+                    return@handleAndroidSAFDialog
+                }
+                activity.handleSAFDialog(firstPath) {
+                    if (!it) {
+                        return@handleSAFDialog
+                    }
+
+                    activity.toast(R.string.compressing)
+                    val paths = getSelectedFileDirItems().map { it.path }
+                    ensureBackgroundThread {
+                        if (compressPaths(paths, destination, password)) {
+                            activity.runOnUiThread {
+                                activity.toast(R.string.compression_successful)
+                                listener?.refreshFragment()
+                                finishActMode()
+                            }
+                        } else {
+                            activity.toast(R.string.compressing_failed)
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun decompressSelection() {
+        val firstPath = getFirstSelectedItemPath()
+        if (activity.isPathOnOTG(firstPath)) {
+            activity.toast(R.string.unknown_error_occurred)
+            return
+        }
+
+        activity.handleSAFDialog(firstPath) {
+            if (!it) {
+                return@handleSAFDialog
+            }
+
+            val paths = getSelectedFileDirItems()
+                .asSequence()
+                .map { it.path }
+                .filter { it.isZipFile() }
+                .toList()
+            ensureBackgroundThread {
+                tryDecompressingPaths(paths) { success ->
+                    activity.runOnUiThread {
+                        if (success) {
+                            activity.toast(R.string.decompression_successful)
+                            listener?.refreshFragment()
+                            finishActMode()
+                        } else {
+                            activity.toast(R.string.decompressing_failed)
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    private data class EncDecCounts(val ok: Int, val skipped: Int, val failed: Int)
+
+    private fun encryptSelection() {
+        val selected = getSelectedFileDirItems()
+        if (selected.any { activity.isPathOnOTG(it.path) || activity.isRestrictedSAFOnlyRoot(it.path) }) {
+            activity.toast(R.string.unknown_error_occurred)
+            return
+        }
+
+        activity.handleAndroidSAFDialog(selected[0].path) { granted ->
+            if (!granted) {
+                return@handleAndroidSAFDialog
+            }
+            activity.handleSAFDialog(selected[0].path) {
+                if (!it) {
+                    return@handleSAFDialog
+                }
+
+                EnterPasswordDialog(activity, { password ->
+                    activity.toast(R.string.encrypting)
+                    ensureBackgroundThread {
+                        val counts = encryptItems(selected, password)
+                        activity.runOnUiThread {
+                            when {
+                                counts.failed > 0 -> activity.toast(R.string.encryption_failed)
+                                counts.ok == 0 -> activity.toast(R.string.nothing_encrypted)
+                                else -> activity.toast(R.string.encryption_successful)
+                            }
+                            listener?.refreshFragment()
+                            finishActMode()
+                        }
+                    }
+                }, {
+                    // user canceled the password prompt
+                })
+            }
+        }
+    }
+
+    private fun decryptSelection() {
+        val selected = getSelectedFileDirItems()
+        if (selected.any { activity.isPathOnOTG(it.path) || activity.isRestrictedSAFOnlyRoot(it.path) }) {
+            activity.toast(R.string.unknown_error_occurred)
+            return
+        }
+
+        activity.handleAndroidSAFDialog(selected[0].path) { granted ->
+            if (!granted) {
+                return@handleAndroidSAFDialog
+            }
+            activity.handleSAFDialog(selected[0].path) {
+                if (!it) {
+                    return@handleSAFDialog
+                }
+
+                EnterPasswordDialog(activity, { password ->
+                    activity.toast(R.string.decrypting)
+                    ensureBackgroundThread {
+                        val counts = decryptItems(selected, password)
+                        activity.runOnUiThread {
+                            when {
+                                counts.failed > 0 -> activity.toast(R.string.decryption_failed)
+                                counts.ok == 0 -> activity.toast(R.string.nothing_decrypted)
+                                else -> activity.toast(R.string.decryption_successful)
+                            }
+                            listener?.refreshFragment()
+                            finishActMode()
+                        }
+                    }
+                }, {
+                    // user canceled the password prompt
+                })
+            }
+        }
+    }
+
+    private fun encryptItems(items: List<FileDirItem>, password: String): EncDecCounts {
+        var ok = 0
+        var skipped = 0
+        var failed = 0
+        items.forEach { item ->
+            val files = if (item.isDirectory) {
+                File(item.path).walkTopDown().filter { it.isFile }.toList()
+            } else {
+                listOf(File(item.path))
+            }
+            files.forEach { f ->
+                try {
+                    if (f.exists() && f.length() > 0L) {
+                        CryptoHelper.encryptFile(f, password)
+                        ok++
+                    } else {
+                        skipped++
+                    }
+                } catch (e: AlreadyEncryptedException) {
+                    skipped++
+                } catch (e: Exception) {
+                    failed++
+                }
+            }
+        }
+        return EncDecCounts(ok, skipped, failed)
+    }
+
+    private fun decryptItems(items: List<FileDirItem>, password: String): EncDecCounts {
+        var ok = 0
+        var skipped = 0
+        var failed = 0
+        items.forEach { item ->
+            val files = if (item.isDirectory) {
+                File(item.path).walkTopDown()
+                    .filter { it.isFile && it.name.endsWith(CryptoHelper.LOCKED_SUFFIX) }
+                    .toList()
+            } else {
+                listOf(File(item.path))
+            }
+            files.forEach { f ->
+                if (!CryptoHelper.isEncrypted(f)) {
+                    skipped++
+                    return@forEach
+                }
+                try {
+                    CryptoHelper.decryptFile(f, password)
+                    ok++
+                } catch (e: Exception) {
+                    failed++
+                }
+            }
+        }
+        return EncDecCounts(ok, skipped, failed)
+    }
+
+    private fun tryDecompressingPaths(
+        sourcePaths: List<String>,
+        callback: (success: Boolean) -> Unit
+    ) {
+        sourcePaths.forEach { path ->
+            ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path))).use { zipInputStream ->
+                try {
+                    val fileDirItems = ArrayList<FileDirItem>()
+                    var entry = zipInputStream.nextEntry
+                    while (entry != null) {
+                        val currPath = if (entry.isDirectory) {
+                            path
+                        } else {
+                            "${path.getParentPath().trimEnd('/')}/${entry.fileName}"
+                        }
+                        val fileDirItem = FileDirItem(
+                            path = currPath,
+                            name = entry.fileName,
+                            isDirectory = entry.isDirectory,
+                            children = 0,
+                            size = entry.uncompressedSize
+                        )
+                        fileDirItems.add(fileDirItem)
+                        entry = zipInputStream.nextEntry
+                    }
+                    val destinationPath = fileDirItems.first().getParentPath().trimEnd('/')
+                    activity.runOnUiThread {
+                        activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) {
+                            ensureBackgroundThread {
+                                decompressPaths(sourcePaths, it, callback)
+                            }
+                        }
+                    }
+                } catch (zipException: ZipException) {
+                    if (zipException.type == ZipException.Type.WRONG_PASSWORD) {
+                        activity.showErrorToast(activity.getString(R.string.invalid_password))
+                    } else {
+                        activity.showErrorToast(zipException)
+                    }
+                } catch (exception: Exception) {
+                    activity.showErrorToast(exception)
+                }
+            }
+        }
+    }
+
+    private fun decompressPaths(
+        paths: List<String>,
+        conflictResolutions: LinkedHashMap<String, Int>,
+        callback: (success: Boolean) -> Unit
+    ) {
+        paths.forEach { path ->
+            val zipInputStream =
+                ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path)))
+
+            val foldersTimestamp = mutableListOf<Pair<File, LocalFileHeader>>()
+            zipInputStream.use {
+                try {
+                    var entry = zipInputStream.nextEntry
+                    val zipFileName = path.getFilenameFromPath()
+                    val newFolderName = zipFileName.subSequence(0, zipFileName.length - 4)
+                    while (entry != null) {
+                        val parentPath = path.getParentPath()
+                        val newPath = "$parentPath/$newFolderName/${entry.fileName.trimEnd('/')}"
+
+                        val resolution = getConflictResolution(conflictResolutions, newPath)
+                        val doesPathExist = activity.getDoesFilePathExist(newPath)
+                        if (doesPathExist && resolution == CONFLICT_OVERWRITE) {
+                            val fileDirItem = FileDirItem(
+                                path = newPath,
+                                name = newPath.getFilenameFromPath(),
+                                isDirectory = entry.isDirectory
+                            )
+                            if (activity.getIsPathDirectory(path)) {
+                                activity.deleteFolderBg(fileDirItem, false) {
+                                    if (it) {
+                                        extractEntry(newPath, entry, zipInputStream, foldersTimestamp)
+                                    } else {
+                                        callback(false)
+                                    }
+                                }
+                            } else {
+                                activity.deleteFileBg(fileDirItem, false, false) {
+                                    if (it) {
+                                        extractEntry(newPath, entry, zipInputStream, foldersTimestamp)
+                                    } else {
+                                        callback(false)
+                                    }
+                                }
+                            }
+                        } else if (!doesPathExist) {
+                            extractEntry(newPath, entry, zipInputStream, foldersTimestamp)
+                        }
+
+                        entry = zipInputStream.nextEntry
+                    }
+                    for ((dir, header) in foldersTimestamp.asReversed()) {
+                        dir.setLastModified(header)
+                    }
+                    callback(true)
+                } catch (e: Exception) {
+                    activity.showErrorToast(e)
+                    callback(false)
+                }
+            }
+        }
+    }
+
+    private fun extractEntry(
+        newPath: String,
+        entry: LocalFileHeader,
+        zipInputStream: ZipInputStream,
+        foldersTimestamp: MutableList<Pair<File, LocalFileHeader>>
+    ) {
+        if (entry.isDirectory) {
+            if (!activity.createDirectorySync(newPath) && !activity.getDoesFilePathExist(newPath)) {
+                val error =
+                    String.format(activity.getString(R.string.could_not_create_file), newPath)
+                activity.showErrorToast(error)
+            } else {
+                foldersTimestamp.add(Pair(File(newPath), entry))
+            }
+        } else {
+            val fos = activity.getFileOutputStreamSync(newPath, newPath.getMimeType())
+            if (fos != null) {
+                zipInputStream.copyTo(fos)
+                File(newPath).setLastModified(entry)
+            }
+        }
+    }
+
+    private fun getConflictResolution(
+        conflictResolutions: LinkedHashMap<String, Int>,
+        path: String
+    ): Int {
+        return if (conflictResolutions.size == 1 && conflictResolutions.containsKey("")) {
+            conflictResolutions[""]!!
+        } else if (conflictResolutions.containsKey(path)) {
+            conflictResolutions[path]!!
+        } else {
+            CONFLICT_SKIP
+        }
+    }
+
+    @SuppressLint("NewApi")
+    private fun compressPaths(
+        sourcePaths: List<String>,
+        targetPath: String,
+        password: String? = null
+    ): Boolean {
+        val queue = LinkedList<String>()
+        val fos = activity.getFileOutputStreamSync(targetPath, "application/zip") ?: return false
+
+        val zout =
+            password?.let { ZipOutputStream(fos, password.toCharArray()) } ?: ZipOutputStream(fos)
+        var res: Closeable = fos
+
+        fun zipEntry(name: String, lastModified: Long) = ZipParameters().also {
+            it.fileNameInZip = name
+            it.lastModifiedFileTime = lastModified
+            if (password != null) {
+                it.isEncryptFiles = true
+                it.encryptionMethod = EncryptionMethod.AES
+            }
+        }
+
+        try {
+            sourcePaths.forEach { currentPath ->
+                var name: String
+                var mainFilePath = currentPath
+                val base = "${mainFilePath.getParentPath()}/"
+                res = zout
+                queue.push(mainFilePath)
+                if (activity.getIsPathDirectory(mainFilePath)) {
+                    name = "${mainFilePath.getFilenameFromPath()}/"
+                    val dirModified = File(mainFilePath).lastModified()
+                    zout.putNextEntry(
+                        ZipParameters().also {
+                            it.fileNameInZip = name
+                            it.lastModifiedFileTime = dirModified
+                        }
+                    )
+                }
+
+                while (!queue.isEmpty()) {
+                    mainFilePath = queue.pop()
+                    if (activity.getIsPathDirectory(mainFilePath)) {
+                        if (activity.isRestrictedSAFOnlyRoot(mainFilePath)) {
+                            activity.getAndroidSAFFileItems(mainFilePath, true) { files ->
+                                for (file in files) {
+                                    name = file.path.relativizeWith(base)
+                                    if (activity.getIsPathDirectory(file.path)) {
+                                        queue.push(file.path)
+                                        name = "${name.trimEnd('/')}/"
+                                        zout.putNextEntry(zipEntry(name, file.modified))
+                                    } else {
+                                        zout.putNextEntry(zipEntry(name, file.modified))
+                                        activity.getFileInputStreamSync(file.path)!!.copyTo(zout)
+                                        zout.closeEntry()
+                                    }
+                                }
+                            }
+                        } else {
+                            val mainFile = File(mainFilePath)
+                            for (file in mainFile.listFiles()) {
+                                name = file.path.relativizeWith(base)
+                                if (activity.getIsPathDirectory(file.absolutePath)) {
+                                    queue.push(file.absolutePath)
+                                    name = "${name.trimEnd('/')}/"
+                                    zout.putNextEntry(zipEntry(name, file.lastModified()))
+                                } else {
+                                    zout.putNextEntry(zipEntry(name, file.lastModified()))
+                                    activity.getFileInputStreamSync(file.path)!!.copyTo(zout)
+                                    zout.closeEntry()
+                                }
+                            }
+                        }
+
+                    } else {
+                        name =
+                            if (base == currentPath) {
+                                currentPath.getFilenameFromPath()
+                            } else {
+                                mainFilePath.relativizeWith(base)
+                            }
+                        val fileModified = File(mainFilePath).lastModified()
+                        zout.putNextEntry(zipEntry(name, fileModified))
+                        activity.getFileInputStreamSync(mainFilePath)!!.copyTo(zout)
+                        zout.closeEntry()
+                    }
+                }
+            }
+        } catch (exception: Exception) {
+            activity.showErrorToast(exception)
+            return false
+        } finally {
+            res.close()
+        }
+        return true
+    }
+
+    private fun askConfirmDelete() {
+        activity.handleDeletePasswordProtection {
+            val itemsCnt = selectedKeys.size
+            val items = if (itemsCnt == 1) {
+                "\"${getFirstSelectedItemPath().getFilenameFromPath()}\""
+            } else {
+                resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)
+            }
+
+            val question = String.format(resources.getString(R.string.deletion_confirmation), items)
+            ConfirmationDialog(activity, question) {
+                deleteFiles()
+            }
+        }
+    }
+
+    private fun deleteFiles() {
+        if (selectedKeys.isEmpty()) {
+            return
+        }
+
+        val SAFPath = getFirstSelectedItemPath()
+        if (activity.isPathOnRoot(SAFPath) && !RootTools.isRootAvailable()) {
+            activity.toast(R.string.rooted_device_only)
+            return
+        }
+
+        activity.handleSAFDialog(SAFPath) { granted ->
+            if (!granted) {
+                return@handleSAFDialog
+            }
+
+            val files = ArrayList<FileDirItem>(selectedKeys.size)
+            val positions = ArrayList<Int>()
+
+            ensureBackgroundThread {
+                selectedKeys.forEach { key ->
+                    config.removeFavorite(getItemWithKey(key)?.path ?: "")
+                    val position = listItems.indexOfFirst { it.path.hashCode() == key }
+                    if (position != -1) {
+                        positions.add(position)
+                        files.add(listItems[position])
+                    }
+                }
+
+                positions.sortDescending()
+                activity.runOnUiThread {
+                    removeSelectedItems(positions)
+                    listener?.deleteFiles(files)
+                    positions.forEach {
+                        listItems.removeAt(it)
+                    }
+                }
+            }
+        }
+    }
+
+    private fun getFirstSelectedItemPath() = getSelectedFileDirItems().first().path
+
+    private fun getSelectedFileDirItems(): ArrayList<FileDirItem> {
+        return listItems.filter {
+            selectedKeys.contains(it.path.hashCode())
+        } as ArrayList<FileDirItem>
+    }
+
+    fun updateItems(newItems: ArrayList<ListItem>, highlightText: String = "") {
+        if (newItems.hashCode() != currentItemsHash) {
+            currentItemsHash = newItems.hashCode()
+            textToHighlight = highlightText
+            listItems = newItems.clone() as ArrayList<ListItem>
+            notifyDataSetChanged()
+            finishActMode()
+        } else if (textToHighlight != highlightText) {
+            textToHighlight = highlightText
+            notifyDataSetChanged()
+        }
+    }
+
+    fun updateFontSizes() {
+        fontSize = activity.getTextSize()
+        smallerFontSize = fontSize * 0.8f
+        notifyDataSetChanged()
+    }
+
+    fun updateDateTimeFormat() {
+        dateFormat = config.dateFormat
+        timeFormat = activity.getTimeFormat()
+        notifyDataSetChanged()
+    }
+
+    fun updateDisplayFilenamesInGrid() {
+        displayFilenamesInGrid = config.displayFilenames
+        notifyDataSetChanged()
+    }
+
+    fun updateChildCount(path: String, count: Int) {
+        val position = getItemKeyPosition(path.hashCode())
+        val item = listItems.getOrNull(position) ?: return
+        item.children = count
+        notifyItemChanged(position, Unit)
+    }
+
+    fun isASectionTitle(position: Int) = listItems.getOrNull(position)?.isSectionTitle ?: false
+
+    fun isGridTypeDivider(position: Int) = listItems.getOrNull(position)?.isGridTypeDivider ?: false
+
+    override fun onViewRecycled(holder: ViewHolder) {
+        super.onViewRecycled(holder)
+        if (!activity.isDestroyed && !activity.isFinishing) {
+            val icon = Binding.getByItemViewType(holder.itemViewType, isListViewType)
+                .bind(holder.itemView).itemIcon
+            if (icon != null) {
+                Glide.with(activity).clear(icon)
+            }
+        }
+    }
+
+    private fun setupView(binding: ItemViewBinding, listItem: ListItem) {
+        val isSelected = selectedKeys.contains(listItem.path.hashCode())
+        binding.apply {
+            if (listItem.isSectionTitle) {
+                itemIcon?.setImageDrawable(folderDrawable)
+                itemSection?.text =
+                    if (textToHighlight.isEmpty()) {
+                        listItem.mName
+                    } else {
+                        listItem.mName.highlightTextPart(
+                            textToHighlight = textToHighlight,
+                            color = properPrimaryColor
+                        )
+                    }
+                itemSection?.setTextColor(textColor)
+                itemSection?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
+            } else if (!listItem.isGridTypeDivider) {
+                root.setupViewBackground(activity)
+                itemFrame.isSelected = isSelected
+                val fileName = listItem.name
+                itemName?.text =
+                    if (textToHighlight.isEmpty()) {
+                        fileName
+                    } else {
+                        fileName.highlightTextPart(
+                            textToHighlight = textToHighlight,
+                            color = properPrimaryColor
+                        )
+                    }
+                itemName?.setTextColor(textColor)
+                itemName?.setTextSize(
+                    TypedValue.COMPLEX_UNIT_PX,
+                    if (isListViewType) fontSize else smallerFontSize
+                )
+
+                itemDetails?.setTextColor(textColor)
+                itemDetails?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
+
+                itemDate?.setTextColor(textColor)
+                itemDate?.setTextSize(TypedValue.COMPLEX_UNIT_PX, smallerFontSize)
+
+                itemCheck?.beVisibleIf(isSelected)
+                if (isSelected) {
+                    itemCheck?.background?.applyColorFilter(properPrimaryColor)
+                    itemCheck?.applyColorFilter(contrastColor)
+                }
+
+                if (!isListViewType && !listItem.isDirectory) {
+                    itemName?.beVisibleIf(displayFilenamesInGrid)
+                } else {
+                    itemName?.beVisible()
+                }
+
+                if (listItem.isDirectory) {
+                    itemIcon?.setImageDrawable(folderDrawable)
+                    itemDetails?.text = getChildrenCnt(listItem)
+                    itemDate?.beGone()
+                } else {
+                    itemDetails?.text = listItem.size.formatSize()
+                    itemDate?.beVisible()
+                    itemDate?.text = listItem.modified.formatDate(activity, dateFormat, timeFormat)
+
+                    val drawable = fileDrawables.getOrElse(
+                        key = fileName.substringAfterLast(".").lowercase(Locale.getDefault()),
+                        defaultValue = { fileDrawable }
+                    )
+                    val options = RequestOptions()
+                        .signature(listItem.getKey())
+                        .diskCacheStrategy(DiskCacheStrategy.RESOURCE)
+                        .error(drawable)
+                        .transform(CenterCrop(), RoundedCorners(10))
+
+                    val itemToLoad = getImagePathToLoad(listItem.path)
+                    if (!activity.isDestroyed && itemIcon != null) {
+                        Glide.with(activity)
+                            .load(itemToLoad)
+                            .transition(DrawableTransitionOptions.withCrossFade())
+                            .apply(options)
+                            .into(itemIcon!!)
+                    }
+                }
+            }
+        }
+    }
+
+    private fun getChildrenCnt(item: FileDirItem): String {
+        val children = item.children
+        return activity.resources.getQuantityString(R.plurals.items, children, children)
+    }
+
+    private fun getOTGPublicPath(itemToLoad: String): String {
+        return "${baseConfig.OTGTreeUri}/document/${baseConfig.OTGPartition}%3A${
+            itemToLoad.substring(baseConfig.OTGPath.length).replace("/", "%2F")
+        }"
+    }
+
+    private fun getImagePathToLoad(path: String): Any {
+        var itemToLoad = if (path.endsWith(".apk", true)) {
+            val packageInfo =
+                activity.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES)
+            val appInfo = packageInfo?.applicationInfo
+            if (appInfo != null) {
+                appInfo.sourceDir = path
+                appInfo.publicSourceDir = path
+                appInfo.loadIcon(activity.packageManager)
+            } else {
+                path
+            }
+        } else {
+            path
+        }
+
+        if (activity.isRestrictedSAFOnlyRoot(path)) {
+            itemToLoad = activity.getAndroidSAFUri(path)
+        } else if (hasOTGConnected && itemToLoad is String && activity.isPathOnOTG(itemToLoad) && baseConfig.OTGTreeUri.isNotEmpty() && baseConfig.OTGPartition.isNotEmpty()) {
+            itemToLoad = getOTGPublicPath(itemToLoad)
+        }
+
+        return itemToLoad
+    }
+
+    fun initDrawables() {
+        folderDrawable =
+            resources.getColoredDrawableWithColor(R.drawable.ic_folder_vector, properPrimaryColor)
+        folderDrawable.alpha = 180
+        fileDrawable = resources.getDrawable(R.drawable.ic_file_generic)
+        fileDrawables = getFilePlaceholderDrawables(activity)
+    }
+
+    override fun onChange(position: Int): String {
+        return listItems.getOrNull(position)?.getBubbleText(activity, dateFormat, timeFormat) ?: ""
+    }
+
+    private sealed interface Binding {
+        companion object {
+            fun getByItemViewType(viewType: Int, isListViewType: Boolean): Binding {
+                return when (viewType) {
+                    TYPE_SECTION -> ItemSection
+                    TYPE_GRID_TYPE_DIVIDER -> ItemEmpty
+                    else -> {
+                        if (isListViewType) {
+                            ItemFileDirList
+                        } else if (viewType == TYPE_DIR) {
+                            ItemDirGrid
+                        } else {
+                            ItemFileGrid
+                        }
+                    }
+                }
+            }
+        }
+
+        fun inflate(
+            layoutInflater: LayoutInflater,
+            viewGroup: ViewGroup,
+            attachToRoot: Boolean
+        ): ItemViewBinding
+
+        fun bind(view: View): ItemViewBinding
+
+        data object ItemSection : Binding {
+            override fun inflate(
+                layoutInflater: LayoutInflater,
+                viewGroup: ViewGroup,
+                attachToRoot: Boolean
+            ): ItemViewBinding {
+                return ItemSectionBindingAdapter(
+                    ItemSectionBinding.inflate(layoutInflater, viewGroup, attachToRoot)
+                )
+            }
+
+            override fun bind(view: View): ItemViewBinding {
+                return ItemSectionBindingAdapter(ItemSectionBinding.bind(view))
+            }
+        }
+
+        data object ItemEmpty : Binding {
+            override fun inflate(
+                layoutInflater: LayoutInflater,
+                viewGroup: ViewGroup,
+                attachToRoot: Boolean
+            ): ItemViewBinding {
+                return ItemEmptyBindingAdapter(
+                    ItemEmptyBinding.inflate(layoutInflater, viewGroup, attachToRoot)
+                )
+            }
+
+            override fun bind(view: View): ItemViewBinding {
+                return ItemEmptyBindingAdapter(ItemEmptyBinding.bind(view))
+            }
+        }
+
+        data object ItemFileDirList : Binding {
+            override fun inflate(
+                layoutInflater: LayoutInflater,
+                viewGroup: ViewGroup,
+                attachToRoot: Boolean
+            ): ItemViewBinding {
+                return ItemFileDirListBindingAdapter(
+                    ItemFileDirListBinding.inflate(layoutInflater, viewGroup, attachToRoot)
+                )
+            }
+
+            override fun bind(view: View): ItemViewBinding {
+                return ItemFileDirListBindingAdapter(ItemFileDirListBinding.bind(view))
+            }
+        }
+
+        data object ItemDirGrid : Binding {
+            override fun inflate(
+                layoutInflater: LayoutInflater,
+                viewGroup: ViewGroup,
+                attachToRoot: Boolean
+            ): ItemViewBinding {
+                return ItemDirGridBindingAdapter(
+                    ItemDirGridBinding.inflate(layoutInflater, viewGroup, attachToRoot)
+                )
+            }
+
+            override fun bind(view: View): ItemViewBinding {
+                return ItemDirGridBindingAdapter(ItemDirGridBinding.bind(view))
+            }
+        }
+
+        data object ItemFileGrid : Binding {
+            override fun inflate(
+                layoutInflater: LayoutInflater,
+                viewGroup: ViewGroup,
+                attachToRoot: Boolean
+            ): ItemViewBinding {
+                return ItemFileGridBindingAdapter(
+                    ItemFileGridBinding.inflate(layoutInflater, viewGroup, attachToRoot)
+                )
+            }
+
+            override fun bind(view: View): ItemViewBinding {
+                return ItemFileGridBindingAdapter(ItemFileGridBinding.bind(view))
+            }
+        }
+    }
+
+    private interface ItemViewBinding : ViewBinding {
+        val itemFrame: FrameLayout
+        val itemName: TextView?
+        val itemIcon: ImageView?
+        val itemCheck: ImageView?
+        val itemDetails: TextView?
+        val itemDate: TextView?
+        val itemSection: TextView?
+    }
+
+    private class ItemSectionBindingAdapter(val binding: ItemSectionBinding) : ItemViewBinding {
+        override val itemFrame: FrameLayout = binding.itemFrame
+        override val itemName: TextView? = null
+        override val itemIcon: ImageView = binding.itemIcon
+        override val itemDetails: TextView? = null
+        override val itemDate: TextView? = null
+        override val itemCheck: ImageView? = null
+        override val itemSection: TextView = binding.itemSection
+        override fun getRoot(): View = binding.root
+    }
+
+    private class ItemEmptyBindingAdapter(val binding: ItemEmptyBinding) : ItemViewBinding {
+        override val itemFrame: FrameLayout = binding.itemFrame
+        override val itemName: TextView? = null
+        override val itemIcon: ImageView? = null
+        override val itemDetails: TextView? = null
+        override val itemDate: TextView? = null
+        override val itemCheck: ImageView? = null
+        override val itemSection: TextView? = null
+
+        override fun getRoot(): View = binding.root
+    }
+
+    private class ItemFileDirListBindingAdapter(
+        val binding: ItemFileDirListBinding
+    ) : ItemViewBinding {
+        override val itemFrame: FrameLayout = binding.itemFrame
+        override val itemName: TextView = binding.itemName
+        override val itemIcon: ImageView = binding.itemIcon
+        override val itemDetails: TextView = binding.itemDetails
+        override val itemDate: TextView = binding.itemDate
+        override val itemCheck: ImageView? = null
+        override val itemSection: TextView? = null
+
+        override fun getRoot(): View = binding.root
+    }
+
+    private class ItemDirGridBindingAdapter(val binding: ItemDirGridBinding) : ItemViewBinding {
+        override val itemFrame: FrameLayout = binding.itemFrame
+        override val itemName: TextView = binding.itemName
+        override val itemIcon: ImageView = binding.itemIcon
+        override val itemDetails: TextView? = null
+        override val itemDate: TextView? = null
+        override val itemCheck: ImageView = binding.itemCheck
+        override val itemSection: TextView? = null
+
+        override fun getRoot(): View = binding.root
+    }
+
+    private class ItemFileGridBindingAdapter(val binding: ItemFileGridBinding) : ItemViewBinding {
+        override val itemFrame: FrameLayout = binding.itemFrame
+        override val itemName: TextView = binding.itemName
+        override val itemIcon: ImageView = binding.itemIcon
+        override val itemDetails: TextView? = null
+        override val itemDate: TextView? = null
+        override val itemCheck: ImageView? = null
+        override val itemSection: TextView? = null
+
+        override fun getRoot(): View = binding.root
+    }
+}

+ 138 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ManageFavoritesAdapter.kt

@@ -0,0 +1,138 @@
+package org.fossify.filemanager.adapters
+
+import android.view.*
+import androidx.appcompat.widget.PopupMenu
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.adapters.MyRecyclerViewAdapter
+import org.fossify.commons.extensions.getPopupMenuTheme
+import org.fossify.commons.extensions.getProperTextColor
+import org.fossify.commons.extensions.setupViewBackground
+import org.fossify.commons.interfaces.RefreshRecyclerViewListener
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.ItemManageFavoriteBinding
+import org.fossify.filemanager.extensions.config
+
+class ManageFavoritesAdapter(
+    activity: BaseSimpleActivity, var favorites: ArrayList<String>, val listener: RefreshRecyclerViewListener?,
+    recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
+) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
+
+    private val config = activity.config
+
+    init {
+        setupDragListener(true)
+    }
+
+    override fun getActionMenuId() = R.menu.cab_remove_only
+
+    override fun actionItemPressed(id: Int) {
+        when (id) {
+            R.id.cab_remove -> removeSelection()
+        }
+    }
+
+    override fun getSelectableItemCount() = favorites.size
+
+    override fun getIsItemSelectable(position: Int) = true
+
+    override fun getItemSelectionKey(position: Int) = favorites.getOrNull(position)?.hashCode()
+
+    override fun getItemKeyPosition(key: Int) = favorites.indexOfFirst { it.hashCode() == key }
+
+    override fun onActionModeCreated() {}
+
+    override fun onActionModeDestroyed() {}
+
+    override fun prepareActionMode(menu: Menu) {}
+
+    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
+        return createViewHolder(ItemManageFavoriteBinding.inflate(layoutInflater, parent, false).root)
+    }
+
+    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+        val favorite = favorites[position]
+        holder.bindView(favorite, true, true) { itemView, layoutPosition ->
+            setupView(itemView, favorite, selectedKeys.contains(favorite.hashCode()))
+        }
+        bindViewHolder(holder)
+    }
+
+    override fun getItemCount() = favorites.size
+
+    private fun setupView(view: View, favorite: String, isSelected: Boolean) {
+        ItemManageFavoriteBinding.bind(view).apply {
+            root.setupViewBackground(activity)
+            manageFavoriteTitle.apply {
+                text = favorite
+                setTextColor(activity.getProperTextColor())
+            }
+
+            manageFavoriteHolder.isSelected = isSelected
+
+            overflowMenuIcon.drawable.apply {
+                mutate()
+                setTint(activity.getProperTextColor())
+            }
+
+            overflowMenuIcon.setOnClickListener {
+                showPopupMenu(overflowMenuAnchor, favorite)
+            }
+        }
+    }
+
+    private fun showPopupMenu(view: View, favorite: String) {
+        finishActMode()
+        val theme = activity.getPopupMenuTheme()
+        val contextTheme = ContextThemeWrapper(activity, theme)
+
+        PopupMenu(contextTheme, view, Gravity.END).apply {
+            inflate(getActionMenuId())
+            setOnMenuItemClickListener { item ->
+                val eventTypeId = favorite.hashCode()
+                when (item.itemId) {
+                    R.id.cab_remove -> {
+                        executeItemMenuOperation(eventTypeId) {
+                            removeSelection()
+                        }
+                    }
+                }
+                true
+            }
+            show()
+        }
+    }
+
+    private fun executeItemMenuOperation(eventTypeId: Int, callback: () -> Unit) {
+        selectedKeys.clear()
+        selectedKeys.add(eventTypeId)
+        callback()
+    }
+
+    private fun removeSelection() {
+        val removeFavorites = ArrayList<String>(selectedKeys.size)
+        val positions = ArrayList<Int>()
+        selectedKeys.forEach { key ->
+            val position = favorites.indexOfFirst { it.hashCode() == key }
+            if (position != -1) {
+                positions.add(position)
+
+                val favorite = getItemWithKey(key)
+                if (favorite != null) {
+                    removeFavorites.add(favorite)
+                    config.removeFavorite(favorite)
+                }
+            }
+        }
+
+        positions.sortDescending()
+        removeSelectedItems(positions)
+
+        favorites.removeAll(removeFavorites.toSet())
+        if (favorites.isEmpty()) {
+            listener?.refreshItems()
+        }
+    }
+
+    private fun getItemWithKey(key: Int): String? = favorites.firstOrNull { it.hashCode() == key }
+}

+ 80 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/adapters/ViewPagerAdapter.kt

@@ -0,0 +1,80 @@
+package org.fossify.filemanager.adapters
+
+import android.content.Intent
+import android.media.RingtoneManager
+import android.view.View
+import android.view.ViewGroup
+import androidx.viewpager.widget.PagerAdapter
+import org.fossify.commons.extensions.getProperTextColor
+import org.fossify.commons.helpers.TAB_FILES
+import org.fossify.commons.helpers.TAB_RECENT_FILES
+import org.fossify.commons.helpers.TAB_STORAGE_ANALYSIS
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.fragments.MyViewPagerFragment
+
+class ViewPagerAdapter(val activity: SimpleActivity, val tabsToShow: ArrayList<Int>) : PagerAdapter() {
+    override fun instantiateItem(container: ViewGroup, position: Int): Any {
+        val layout = getFragment(position)
+        val view = activity.layoutInflater.inflate(layout, container, false)
+        container.addView(view)
+
+        (view as MyViewPagerFragment<*>).apply {
+            val isPickRingtoneIntent = activity.intent.action == RingtoneManager.ACTION_RINGTONE_PICKER
+            val isGetContentIntent = activity.intent.action == Intent.ACTION_GET_CONTENT
+                    || activity.intent.action == Intent.ACTION_PICK
+            val isCreateDocumentIntent = activity.intent.action == Intent.ACTION_CREATE_DOCUMENT
+            val allowPickingMultipleIntent = activity.intent.getBooleanExtra(Intent.EXTRA_ALLOW_MULTIPLE, false)
+            val getContentMimeType = if (isGetContentIntent) {
+                activity.intent.type ?: ""
+            } else {
+                ""
+            }
+
+            val passedExtraMimeTypes = activity.intent.getStringArrayExtra(Intent.EXTRA_MIME_TYPES)
+            val extraMimeTypes = if (isGetContentIntent && passedExtraMimeTypes != null) {
+                passedExtraMimeTypes
+            } else {
+                null
+            }
+
+            this.isGetRingtonePicker = isPickRingtoneIntent
+            this.isPickMultipleIntent = allowPickingMultipleIntent
+            this.isGetContentIntent = isGetContentIntent
+            wantedMimeTypes = extraMimeTypes?.toList() ?: listOf(getContentMimeType)
+            updateIsCreateDocumentIntent(isCreateDocumentIntent)
+
+            setupFragment(activity)
+            onResume(activity.getProperTextColor())
+        }
+
+        return view
+    }
+
+    override fun destroyItem(container: ViewGroup, position: Int, item: Any) {
+        container.removeView(item as View)
+    }
+
+    override fun getCount() = tabsToShow.filter { it and activity.config.showTabs != 0 }.size
+
+    override fun isViewFromObject(view: View, item: Any) = view == item
+
+    private fun getFragment(position: Int): Int {
+        val showTabs = activity.config.showTabs
+        val fragments = arrayListOf<Int>()
+        if (showTabs and TAB_FILES != 0) {
+            fragments.add(R.layout.items_fragment)
+        }
+
+        if (showTabs and TAB_RECENT_FILES != 0) {
+            fragments.add(R.layout.recents_fragment)
+        }
+
+        if (showTabs and TAB_STORAGE_ANALYSIS != 0) {
+            fragments.add(R.layout.storage_fragment)
+        }
+
+        return fragments[position]
+    }
+}

+ 88 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ChangeSortingDialog.kt

@@ -0,0 +1,88 @@
+package org.fossify.filemanager.dialogs
+
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.extensions.beVisibleIf
+import org.fossify.commons.extensions.getAlertDialogBuilder
+import org.fossify.commons.extensions.setupDialogStuff
+import org.fossify.commons.helpers.*
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogChangeSortingBinding
+import org.fossify.filemanager.extensions.config
+
+class ChangeSortingDialog(val activity: BaseSimpleActivity, val path: String = "", val callback: () -> Unit) {
+    private var currSorting = 0
+    private var config = activity.config
+    private val binding: DialogChangeSortingBinding
+
+    init {
+        currSorting = config.getFolderSorting(path)
+        binding = DialogChangeSortingBinding.inflate(activity.layoutInflater).apply {
+            sortingDialogUseForThisFolder.isChecked = config.hasCustomSorting(path)
+
+            sortingDialogNumericSorting.beVisibleIf(currSorting and SORT_BY_NAME != 0)
+            sortingDialogNumericSorting.isChecked = currSorting and SORT_USE_NUMERIC_VALUE != 0
+        }
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this, R.string.sort_by)
+            }
+
+        setupSortRadio()
+        setupOrderRadio()
+    }
+
+    private fun setupSortRadio() {
+        binding.apply {
+            sortingDialogRadioSorting.setOnCheckedChangeListener { group, checkedId ->
+                val isSortingByName = checkedId == sortingDialogRadioName.id
+                binding.sortingDialogNumericSorting.beVisibleIf(isSortingByName)
+            }
+
+            val sortBtn = when {
+                currSorting and SORT_BY_SIZE != 0 -> sortingDialogRadioSize
+                currSorting and SORT_BY_DATE_MODIFIED != 0 -> sortingDialogRadioLastModified
+                currSorting and SORT_BY_EXTENSION != 0 -> sortingDialogRadioExtension
+                else -> sortingDialogRadioName
+            }
+            sortBtn.isChecked = true
+        }
+    }
+
+    private fun setupOrderRadio() {
+        var orderBtn = binding.sortingDialogRadioAscending
+
+        if (currSorting and SORT_DESCENDING != 0) {
+            orderBtn = binding.sortingDialogRadioDescending
+        }
+        orderBtn.isChecked = true
+    }
+
+    private fun dialogConfirmed() {
+        val sortingRadio = binding.sortingDialogRadioSorting
+        var sorting = when (sortingRadio.checkedRadioButtonId) {
+            R.id.sorting_dialog_radio_name -> SORT_BY_NAME
+            R.id.sorting_dialog_radio_size -> SORT_BY_SIZE
+            R.id.sorting_dialog_radio_last_modified -> SORT_BY_DATE_MODIFIED
+            else -> SORT_BY_EXTENSION
+        }
+
+        if (binding.sortingDialogRadioOrder.checkedRadioButtonId == R.id.sorting_dialog_radio_descending) {
+            sorting = sorting or SORT_DESCENDING
+        }
+
+        if (binding.sortingDialogNumericSorting.isChecked) {
+            sorting = sorting or SORT_USE_NUMERIC_VALUE
+        }
+
+        if (binding.sortingDialogUseForThisFolder.isChecked) {
+            config.saveCustomSorting(path, sorting)
+        } else {
+            config.removeCustomSorting(path)
+            config.sorting = sorting
+        }
+        callback()
+    }
+}

+ 61 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ChangeViewTypeDialog.kt

@@ -0,0 +1,61 @@
+package org.fossify.filemanager.dialogs
+
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.extensions.beGone
+import org.fossify.commons.extensions.getAlertDialogBuilder
+import org.fossify.commons.extensions.setupDialogStuff
+import org.fossify.commons.helpers.VIEW_TYPE_GRID
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogChangeViewTypeBinding
+import org.fossify.filemanager.extensions.config
+
+class ChangeViewTypeDialog(val activity: BaseSimpleActivity, val path: String = "", showFolderCheck: Boolean = true, val callback: () -> Unit) {
+    private var binding: DialogChangeViewTypeBinding
+    private var config = activity.config
+
+    init {
+        binding = DialogChangeViewTypeBinding.inflate(activity.layoutInflater).apply {
+            val currViewType = config.getFolderViewType(this@ChangeViewTypeDialog.path)
+            val viewToCheck = if (currViewType == VIEW_TYPE_GRID) {
+                changeViewTypeDialogRadioGrid.id
+            } else {
+                changeViewTypeDialogRadioList.id
+            }
+
+            changeViewTypeDialogRadio.check(viewToCheck)
+            if (!showFolderCheck) {
+                useForThisFolderDivider.beGone()
+                changeViewTypeDialogUseForThisFolder.beGone()
+            }
+
+            changeViewTypeDialogUseForThisFolder.apply {
+                isChecked = config.hasCustomViewType(this@ChangeViewTypeDialog.path)
+            }
+        }
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this)
+            }
+    }
+
+    private fun dialogConfirmed() {
+        val viewType = if (binding.changeViewTypeDialogRadio.checkedRadioButtonId == binding.changeViewTypeDialogRadioGrid.id) {
+            VIEW_TYPE_GRID
+        } else {
+            VIEW_TYPE_LIST
+        }
+
+        if (binding.changeViewTypeDialogUseForThisFolder.isChecked) {
+            config.saveFolderViewType(this.path, viewType)
+        } else {
+            config.removeFolderViewType(this.path)
+            config.viewType = viewType
+        }
+
+        callback()
+    }
+}

+ 72 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/CompressAsDialog.kt

@@ -0,0 +1,72 @@
+package org.fossify.filemanager.dialogs
+
+import android.view.View
+import androidx.appcompat.app.AlertDialog
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.extensions.*
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogCompressAsBinding
+import org.fossify.filemanager.extensions.config
+
+class CompressAsDialog(val activity: BaseSimpleActivity, val path: String, val callback: (destination: String, password: String?) -> Unit) {
+    private val binding = DialogCompressAsBinding.inflate(activity.layoutInflater)
+
+    init {
+        val filename = path.getFilenameFromPath()
+        val indexOfDot = if (filename.contains('.') && !activity.getIsPathDirectory(path)) filename.lastIndexOf(".") else filename.length
+        val baseFilename = filename.substring(0, indexOfDot)
+        var realPath = path.getParentPath()
+
+        binding.apply {
+            filenameValue.setText(baseFilename)
+
+            folder.setText(activity.humanizePath(realPath))
+            folder.setOnClickListener {
+                FilePickerDialog(activity, realPath, false, activity.config.shouldShowHidden(), true, true, showFavoritesButton = true) {
+                    folder.setText(activity.humanizePath(it))
+                    realPath = it
+                }
+            }
+
+            passwordProtect.setOnCheckedChangeListener { _, _ ->
+                enterPasswordHint.beVisibleIf(passwordProtect.isChecked)
+            }
+        }
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok, null)
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this, R.string.compress_as) { alertDialog ->
+                    alertDialog.showKeyboard(binding.filenameValue)
+                    alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(View.OnClickListener {
+                        val name = binding.filenameValue.value
+                        var password: String? = null
+                        if (binding.passwordProtect.isChecked) {
+                            password = binding.password.value
+                            if (password.isEmpty()) {
+                                activity.toast(R.string.empty_password_new)
+                                return@OnClickListener
+                            }
+                        }
+                        when {
+                            name.isEmpty() -> activity.toast(R.string.empty_name)
+                            name.isAValidFilename() -> {
+                                val newPath = "$realPath/$name.zip"
+                                if (activity.getDoesFilePathExist(newPath)) {
+                                    activity.toast(R.string.name_taken)
+                                    return@OnClickListener
+                                }
+
+                                alertDialog.dismiss()
+                                callback(newPath, password)
+                            }
+
+                            else -> activity.toast(R.string.invalid_name)
+                        }
+                    })
+                }
+            }
+    }
+}

+ 167 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/CreateNewItemDialog.kt

@@ -0,0 +1,167 @@
+package org.fossify.filemanager.dialogs
+
+import android.view.View
+import androidx.appcompat.app.AlertDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.isRPlus
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.databinding.DialogCreateNewBinding
+import org.fossify.filemanager.helpers.RootHelpers
+import java.io.File
+import java.io.IOException
+
+class CreateNewItemDialog(val activity: SimpleActivity, val path: String, val callback: (success: Boolean) -> Unit) {
+    private val binding = DialogCreateNewBinding.inflate(activity.layoutInflater)
+
+    init {
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok, null)
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this, R.string.create_new) { alertDialog ->
+                    alertDialog.showKeyboard(binding.itemTitle)
+                    alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(View.OnClickListener {
+                        val name = binding.itemTitle.value
+                        if (name.isEmpty()) {
+                            activity.toast(R.string.empty_name)
+                        } else if (name.isAValidFilename()) {
+                            val newPath = "$path/$name"
+                            if (activity.getDoesFilePathExist(newPath)) {
+                                activity.toast(R.string.name_taken)
+                                return@OnClickListener
+                            }
+
+                            if (binding.dialogRadioGroup.checkedRadioButtonId == R.id.dialog_radio_directory) {
+                                createDirectory(newPath, alertDialog) {
+                                    callback(it)
+                                }
+                            } else {
+                                createFile(newPath, alertDialog) {
+                                    callback(it)
+                                }
+                            }
+                        } else {
+                            activity.toast(R.string.invalid_name)
+                        }
+                    })
+                }
+            }
+    }
+
+    private fun createDirectory(path: String, alertDialog: AlertDialog, callback: (Boolean) -> Unit) {
+        when {
+            activity.needsStupidWritePermissions(path) -> activity.handleSAFDialog(path) {
+                if (!it) {
+                    return@handleSAFDialog
+                }
+
+                val documentFile = activity.getDocumentFile(path.getParentPath())
+                if (documentFile == null) {
+                    val error = String.format(activity.getString(R.string.could_not_create_folder), path)
+                    activity.showErrorToast(error)
+                    callback(false)
+                    return@handleSAFDialog
+                }
+                documentFile.createDirectory(path.getFilenameFromPath())
+                success(alertDialog)
+            }
+
+            isRPlus() || path.startsWith(activity.internalStoragePath, true) -> {
+                if (activity.isRestrictedSAFOnlyRoot(path)) {
+                    activity.handleAndroidSAFDialog(path) {
+                        if (!it) {
+                            callback(false)
+                            return@handleAndroidSAFDialog
+                        }
+                        if (activity.createAndroidSAFDirectory(path)) {
+                            success(alertDialog)
+                        } else {
+                            val error = String.format(activity.getString(R.string.could_not_create_folder), path)
+                            activity.showErrorToast(error)
+                            callback(false)
+                        }
+                    }
+                } else {
+                    if (File(path).mkdirs()) {
+                        success(alertDialog)
+                    }
+                }
+            }
+
+            else -> {
+                RootHelpers(activity).createFileFolder(path, false) {
+                    if (it) {
+                        success(alertDialog)
+                    } else {
+                        callback(false)
+                    }
+                }
+            }
+        }
+    }
+
+    private fun createFile(path: String, alertDialog: AlertDialog, callback: (Boolean) -> Unit) {
+        try {
+            when {
+                activity.isRestrictedSAFOnlyRoot(path) -> {
+                    activity.handleAndroidSAFDialog(path) {
+                        if (!it) {
+                            callback(false)
+                            return@handleAndroidSAFDialog
+                        }
+                        if (activity.createAndroidSAFFile(path)) {
+                            success(alertDialog)
+                        } else {
+                            val error = String.format(activity.getString(R.string.could_not_create_file), path)
+                            activity.showErrorToast(error)
+                            callback(false)
+                        }
+                    }
+                }
+
+                activity.needsStupidWritePermissions(path) -> {
+                    activity.handleSAFDialog(path) {
+                        if (!it) {
+                            return@handleSAFDialog
+                        }
+
+                        val documentFile = activity.getDocumentFile(path.getParentPath())
+                        if (documentFile == null) {
+                            val error = String.format(activity.getString(R.string.could_not_create_file), path)
+                            activity.showErrorToast(error)
+                            callback(false)
+                            return@handleSAFDialog
+                        }
+                        documentFile.createFile(path.getMimeType(), path.getFilenameFromPath())
+                        success(alertDialog)
+                    }
+                }
+
+                isRPlus() || path.startsWith(activity.internalStoragePath, true) -> {
+                    if (File(path).createNewFile()) {
+                        success(alertDialog)
+                    }
+                }
+
+                else -> {
+                    RootHelpers(activity).createFileFolder(path, true) {
+                        if (it) {
+                            success(alertDialog)
+                        } else {
+                            callback(false)
+                        }
+                    }
+                }
+            }
+        } catch (exception: IOException) {
+            activity.showErrorToast(exception)
+            callback(false)
+        }
+    }
+
+    private fun success(alertDialog: AlertDialog) {
+        alertDialog.dismiss()
+        callback(true)
+    }
+}

+ 52 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/InsertFilenameDialog.kt

@@ -0,0 +1,52 @@
+package org.fossify.filemanager.dialogs
+
+import androidx.appcompat.app.AlertDialog
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.extensions.*
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogInsertFilenameBinding
+
+class InsertFilenameDialog(
+    val activity: BaseSimpleActivity, var path: String, val callback: (filename: String) -> Unit
+) {
+    init {
+        val binding = DialogInsertFilenameBinding.inflate(activity.layoutInflater)
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok, null)
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this, R.string.filename) { alertDialog ->
+                    alertDialog.showKeyboard(binding.insertFilenameTitle)
+                    alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+                        val filename = binding.insertFilenameTitle.value
+                        val extension = binding.insertFilenameExtensionTitle.value
+
+                        if (filename.isEmpty()) {
+                            activity.toast(R.string.filename_cannot_be_empty)
+                            return@setOnClickListener
+                        }
+
+                        var newFilename = filename
+                        if (extension.isNotEmpty()) {
+                            newFilename += ".$extension"
+                        }
+
+                        val newPath = "$path/$newFilename"
+                        if (!newFilename.isAValidFilename()) {
+                            activity.toast(R.string.filename_invalid_characters)
+                            return@setOnClickListener
+                        }
+
+                        if (activity.getDoesFilePathExist(newPath)) {
+                            val msg = String.format(activity.getString(R.string.file_already_exists), newFilename)
+                            activity.toast(msg)
+                        } else {
+                            callback(newFilename)
+                            alertDialog.dismiss()
+                        }
+                    }
+                }
+            }
+    }
+}

+ 53 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/ManageVisibleTabsDialog.kt

@@ -0,0 +1,53 @@
+package org.fossify.filemanager.dialogs
+
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.extensions.getAlertDialogBuilder
+import org.fossify.commons.extensions.setupDialogStuff
+import org.fossify.commons.helpers.TAB_FILES
+import org.fossify.commons.helpers.TAB_RECENT_FILES
+import org.fossify.commons.helpers.TAB_STORAGE_ANALYSIS
+import org.fossify.commons.views.MyAppCompatCheckbox
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogManageVisibleTabsBinding
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.helpers.ALL_TABS_MASK
+
+class ManageVisibleTabsDialog(val activity: BaseSimpleActivity) {
+    private val binding = DialogManageVisibleTabsBinding.inflate(activity.layoutInflater)
+    private val tabs = LinkedHashMap<Int, Int>()
+
+    init {
+        tabs.apply {
+            put(TAB_FILES, R.id.manage_visible_tabs_files)
+            put(TAB_RECENT_FILES, R.id.manage_visible_tabs_recent_files)
+            put(TAB_STORAGE_ANALYSIS, R.id.manage_visible_tabs_storage_analysis)
+        }
+
+        val showTabs = activity.config.showTabs
+        for ((key, value) in tabs) {
+            binding.root.findViewById<MyAppCompatCheckbox>(value).isChecked = showTabs and key != 0
+        }
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this)
+            }
+    }
+
+    private fun dialogConfirmed() {
+        var result = 0
+        for ((key, value) in tabs) {
+            if (binding.root.findViewById<MyAppCompatCheckbox>(value).isChecked) {
+                result += key
+            }
+        }
+
+        if (result == 0) {
+            result = ALL_TABS_MASK
+        }
+
+        activity.config.showTabs = result
+    }
+}

+ 89 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/dialogs/SaveAsDialog.kt

@@ -0,0 +1,89 @@
+package org.fossify.filemanager.dialogs
+
+import androidx.appcompat.app.AlertDialog
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.dialogs.ConfirmationDialog
+import org.fossify.commons.dialogs.FilePickerDialog
+import org.fossify.commons.extensions.*
+import org.fossify.filemanager.R
+import org.fossify.filemanager.databinding.DialogSaveAsBinding
+
+class SaveAsDialog(
+    val activity: BaseSimpleActivity, var path: String, val hidePath: Boolean,
+    val callback: (path: String, filename: String) -> Unit
+) {
+
+    init {
+        if (path.isEmpty()) {
+            path = "${activity.internalStoragePath}/${activity.getCurrentFormattedDateTime()}.txt"
+        }
+
+        var realPath = path.getParentPath()
+        val binding = DialogSaveAsBinding.inflate(activity.layoutInflater).apply {
+            folderValue.setText(activity.humanizePath(realPath))
+
+            val fullName = path.getFilenameFromPath()
+            val dotAt = fullName.lastIndexOf(".")
+            var name = fullName
+
+            if (dotAt > 0) {
+                name = fullName.substring(0, dotAt)
+                val extension = fullName.substring(dotAt + 1)
+                extensionValue.setText(extension)
+            }
+
+            filenameValue.setText(name)
+
+            if (hidePath) {
+                folderHint.beGone()
+            } else {
+                folderValue.setOnClickListener {
+                    FilePickerDialog(activity, realPath, false, false, true, true, showFavoritesButton = true) {
+                        folderValue.setText(activity.humanizePath(it))
+                        realPath = it
+                    }
+                }
+            }
+        }
+
+        activity.getAlertDialogBuilder()
+            .setPositiveButton(R.string.ok, null)
+            .setNegativeButton(R.string.cancel, null)
+            .apply {
+                activity.setupDialogStuff(binding.root, this, R.string.save_as) { alertDialog ->
+                    alertDialog.showKeyboard(binding.filenameValue)
+                    alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+                        val filename = binding.filenameValue.value
+                        val extension = binding.extensionValue.value
+
+                        if (filename.isEmpty()) {
+                            activity.toast(R.string.filename_cannot_be_empty)
+                            return@setOnClickListener
+                        }
+
+                        var newFilename = filename
+                        if (extension.isNotEmpty()) {
+                            newFilename += ".$extension"
+                        }
+
+                        val newPath = "$realPath/$newFilename"
+                        if (!newFilename.isAValidFilename()) {
+                            activity.toast(R.string.filename_invalid_characters)
+                            return@setOnClickListener
+                        }
+
+                        if (!hidePath && activity.getDoesFilePathExist(newPath)) {
+                            val title = String.format(activity.getString(R.string.file_already_exists_overwrite), newFilename)
+                            ConfirmationDialog(activity, title) {
+                                callback(newPath, newFilename)
+                                alertDialog.dismiss()
+                            }
+                        } else {
+                            callback(newPath, newFilename)
+                            alertDialog.dismiss()
+                        }
+                    }
+                }
+            }
+    }
+}

+ 85 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Activity.kt

@@ -0,0 +1,85 @@
+package org.fossify.filemanager.extensions
+
+import android.app.Activity
+import android.content.Intent
+import androidx.core.content.FileProvider
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.extensions.getFilenameFromPath
+import org.fossify.commons.extensions.getMimeTypeFromUri
+import org.fossify.commons.extensions.getParentPath
+import org.fossify.commons.extensions.launchActivityIntent
+import org.fossify.commons.extensions.openPathIntent
+import org.fossify.commons.extensions.renameFile
+import org.fossify.commons.extensions.setAsIntent
+import org.fossify.commons.extensions.sharePathsIntent
+import org.fossify.filemanager.BuildConfig
+import org.fossify.filemanager.helpers.OPEN_AS_AUDIO
+import org.fossify.filemanager.helpers.OPEN_AS_DEFAULT
+import org.fossify.filemanager.helpers.OPEN_AS_IMAGE
+import org.fossify.filemanager.helpers.OPEN_AS_TEXT
+import org.fossify.filemanager.helpers.OPEN_AS_VIDEO
+import java.io.File
+
+fun Activity.sharePaths(paths: ArrayList<String>) {
+    sharePathsIntent(paths, BuildConfig.APPLICATION_ID)
+}
+
+fun Activity.tryOpenPathIntent(path: String, forceChooser: Boolean, openAsType: Int = OPEN_AS_DEFAULT, finishActivity: Boolean = false) {
+    if (!forceChooser && path.endsWith(".apk", true)) {
+        val uri = FileProvider.getUriForFile(
+            this, "${BuildConfig.APPLICATION_ID}.provider", File(path)
+        )
+
+        Intent().apply {
+            action = Intent.ACTION_VIEW
+            setDataAndType(uri, getMimeTypeFromUri(uri))
+            addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+            launchActivityIntent(this)
+        }
+    } else {
+        openPath(path, forceChooser, openAsType)
+
+        if (finishActivity) {
+            finish()
+        }
+    }
+}
+
+fun Activity.openPath(path: String, forceChooser: Boolean, openAsType: Int = OPEN_AS_DEFAULT) {
+    openPathIntent(path, forceChooser, BuildConfig.APPLICATION_ID, getMimeType(openAsType))
+}
+
+private fun getMimeType(type: Int) = when (type) {
+    OPEN_AS_DEFAULT -> ""
+    OPEN_AS_TEXT -> "text/*"
+    OPEN_AS_IMAGE -> "image/*"
+    OPEN_AS_AUDIO -> "audio/*"
+    OPEN_AS_VIDEO -> "video/*"
+    else -> "*/*"
+}
+
+fun Activity.setAs(path: String) {
+    setAsIntent(path, BuildConfig.APPLICATION_ID)
+}
+
+fun BaseSimpleActivity.toggleItemVisibility(oldPath: String, hide: Boolean, callback: ((newPath: String) -> Unit)? = null) {
+    val path = oldPath.getParentPath()
+    var filename = oldPath.getFilenameFromPath()
+    if ((hide && filename.startsWith('.')) || (!hide && !filename.startsWith('.'))) {
+        callback?.invoke(oldPath)
+        return
+    }
+
+    filename = if (hide) {
+        ".${filename.trimStart('.')}"
+    } else {
+        filename.substring(1, filename.length)
+    }
+
+    val newPath = "$path/$filename"
+    if (oldPath != newPath) {
+        renameFile(oldPath, newPath, false) { success, useAndroid30Way ->
+            callback?.invoke(newPath)
+        }
+    }
+}

+ 26 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Context.kt

@@ -0,0 +1,26 @@
+package org.fossify.filemanager.extensions
+
+import android.content.Context
+import android.os.storage.StorageManager
+import org.fossify.commons.extensions.isPathOnOTG
+import org.fossify.commons.extensions.isPathOnSD
+import org.fossify.filemanager.helpers.Config
+import org.fossify.filemanager.helpers.PRIMARY_VOLUME_NAME
+import java.util.Locale
+
+val Context.config: Config get() = Config.newInstance(applicationContext)
+
+fun Context.isPathOnRoot(path: String) = !(path.startsWith(config.internalStoragePath) || isPathOnOTG(path) || (isPathOnSD(path)))
+
+fun Context.getAllVolumeNames(): List<String> {
+    val volumeNames = mutableListOf(PRIMARY_VOLUME_NAME)
+    val storageManager = getSystemService(Context.STORAGE_SERVICE) as StorageManager
+    getExternalFilesDirs(null)
+        .mapNotNull { storageManager.getStorageVolume(it) }
+        .filterNot { it.isPrimary }
+        .mapNotNull { it.uuid?.lowercase(Locale.US) }
+        .forEach {
+            volumeNames.add(it)
+        }
+    return volumeNames
+}

+ 15 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/String.kt

@@ -0,0 +1,15 @@
+package org.fossify.filemanager.extensions
+
+fun String.isZipFile() = endsWith(".zip", true)
+
+fun String.isPathInHiddenFolder(): Boolean {
+    val parts = split("/")
+    for (i in 1 until parts.size - 1) {
+        val part = parts[i]
+        val isHidden = part.startsWith(".") && part != "." && part != ".." && part.isNotEmpty()
+        if (isHidden) {
+            return true
+        }
+    }
+    return false
+}

+ 15 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/extensions/Zip4j.kt

@@ -0,0 +1,15 @@
+package org.fossify.filemanager.extensions
+
+import net.lingala.zip4j.model.LocalFileHeader
+import java.io.File
+
+fun File.setLastModified(localFileHeader: LocalFileHeader) {
+    setLastModified(localFileHeader.lastModifiedOrCurrentTimeMillis)
+}
+
+private val LocalFileHeader.lastModifiedOrCurrentTimeMillis
+    get() = if (lastModifiedTimeEpoch == 0L) {
+        System.currentTimeMillis()
+    } else {
+        lastModifiedTimeEpoch
+    }

+ 551 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt

@@ -0,0 +1,551 @@
+package org.fossify.filemanager.fragments
+
+import android.annotation.SuppressLint
+import android.content.Context
+import android.os.Parcelable
+import android.util.AttributeSet
+import androidx.recyclerview.widget.GridLayoutManager
+import org.fossify.commons.activities.BaseSimpleActivity
+import org.fossify.commons.dialogs.StoragePickerDialog
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.*
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.views.Breadcrumbs
+import org.fossify.commons.views.MyGridLayoutManager
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.MainActivity
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.adapters.ItemsAdapter
+import org.fossify.filemanager.databinding.ItemsFragmentBinding
+import org.fossify.filemanager.dialogs.CreateNewItemDialog
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.isPathOnRoot
+import org.fossify.filemanager.helpers.MAX_COLUMN_COUNT
+import org.fossify.filemanager.helpers.RootHelpers
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import org.fossify.filemanager.models.ListItem
+import java.io.File
+
+class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerFragment<MyViewPagerFragment.ItemsInnerBinding>(context, attributeSet),
+    ItemOperationsListener,
+    Breadcrumbs.BreadcrumbsListener {
+    private var showHidden = false
+    private var lastSearchedText = ""
+    private var scrollStates = HashMap<String, Parcelable>()
+    private var zoomListener: MyRecyclerView.MyZoomListener? = null
+
+    private var storedItems = ArrayList<ListItem>()
+    private var itemsIgnoringSearch = ArrayList<ListItem>()
+    private lateinit var binding: ItemsFragmentBinding
+
+    override fun onFinishInflate() {
+        super.onFinishInflate()
+        binding = ItemsFragmentBinding.bind(this)
+        innerBinding = ItemsInnerBinding(binding)
+    }
+
+    override fun setupFragment(activity: SimpleActivity) {
+        if (this.activity == null) {
+            this.activity = activity
+            binding.apply {
+                breadcrumbs.listener = this@ItemsFragment
+                itemsSwipeRefresh.setOnRefreshListener { refreshFragment() }
+                itemsFab.setOnClickListener {
+                    if (isCreateDocumentIntent) {
+                        (activity as MainActivity).createDocumentConfirmed(currentPath)
+                    } else {
+                        createNewItem()
+                    }
+                }
+            }
+        }
+    }
+
+    override fun onResume(textColor: Int) {
+        context!!.updateTextColors(this)
+        getRecyclerAdapter()?.apply {
+            updatePrimaryColor()
+            updateTextColor(textColor)
+            initDrawables()
+        }
+
+        binding.apply {
+            val properPrimaryColor = context!!.getProperPrimaryColor()
+            itemsFastscroller.updateColors(properPrimaryColor)
+            progressBar.setIndicatorColor(properPrimaryColor)
+            progressBar.trackColor = properPrimaryColor.adjustAlpha(LOWER_ALPHA)
+
+            if (currentPath != "") {
+                breadcrumbs.updateColor(textColor)
+            }
+
+            itemsSwipeRefresh.isEnabled = lastSearchedText.isEmpty() && activity?.config?.enablePullToRefresh != false
+        }
+    }
+
+    override fun setupFontSize() {
+        getRecyclerAdapter()?.updateFontSizes()
+        if (currentPath != "") {
+            binding.breadcrumbs.updateFontSize(context!!.getTextSize(), false)
+        }
+    }
+
+    override fun setupDateTimeFormat() {
+        getRecyclerAdapter()?.updateDateTimeFormat()
+    }
+
+    override fun finishActMode() {
+        getRecyclerAdapter()?.finishActMode()
+    }
+
+    fun openPath(path: String, forceRefresh: Boolean = false) {
+        if ((activity as? BaseSimpleActivity)?.isAskingPermissions == true) {
+            return
+        }
+
+        var realPath = path.trimEnd('/')
+        if (realPath.isEmpty()) {
+            realPath = "/"
+        }
+
+        scrollStates[currentPath] = getScrollState()!!
+        currentPath = realPath
+        showHidden = context!!.config.shouldShowHidden()
+        showProgressBar()
+        getItems(currentPath) { originalPath, listItems ->
+            if (currentPath != originalPath) {
+                return@getItems
+            }
+
+            FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
+            listItems.sort()
+
+            if (context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_GRID && listItems.none { it.isSectionTitle }) {
+                if (listItems.any { it.mIsDirectory } && listItems.any { !it.mIsDirectory }) {
+                    val firstFileIndex = listItems.indexOfFirst { !it.mIsDirectory }
+                    if (firstFileIndex != -1) {
+                        val sectionTitle = ListItem("", "", false, 0, 0, 0, false, true)
+                        listItems.add(firstFileIndex, sectionTitle)
+                    }
+                }
+            }
+
+            itemsIgnoringSearch = listItems
+            activity?.runOnUiThread {
+                (activity as? MainActivity)?.refreshMenuItems()
+                addItems(listItems, forceRefresh)
+                if (context != null && currentViewType != context!!.config.getFolderViewType(currentPath)) {
+                    setupLayoutManager()
+                }
+                hideProgressBar()
+            }
+        }
+    }
+
+    private fun addItems(items: ArrayList<ListItem>, forceRefresh: Boolean = false) {
+        activity?.runOnUiThread {
+            binding.itemsSwipeRefresh.isRefreshing = false
+            binding.breadcrumbs.setBreadcrumb(currentPath)
+            if (!forceRefresh && items.hashCode() == storedItems.hashCode()) {
+                return@runOnUiThread
+            }
+
+            storedItems = items
+            if (binding.itemsList.adapter == null) {
+                binding.breadcrumbs.updateFontSize(context!!.getTextSize(), true)
+            }
+
+            ItemsAdapter(activity as SimpleActivity, storedItems, this, binding.itemsList, isPickMultipleIntent, binding.itemsSwipeRefresh) {
+                if ((it as? ListItem)?.isSectionTitle == true) {
+                    openDirectory(it.mPath)
+                    searchClosed()
+                } else {
+                    itemClicked(it as FileDirItem)
+                }
+            }.apply {
+                setupZoomListener(zoomListener)
+                binding.itemsList.adapter = this
+            }
+
+            if (context.areSystemAnimationsEnabled) {
+                binding.itemsList.scheduleLayoutAnimation()
+            }
+
+            getRecyclerLayoutManager().onRestoreInstanceState(scrollStates[currentPath])
+        }
+    }
+
+    private fun getScrollState() = getRecyclerLayoutManager().onSaveInstanceState()
+
+    private fun getRecyclerLayoutManager() = (binding.itemsList.layoutManager as MyGridLayoutManager)
+
+    @SuppressLint("NewApi")
+    private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<ListItem>) -> Unit) {
+        ensureBackgroundThread {
+            if (activity?.isDestroyed == false && activity?.isFinishing == false) {
+                val config = context!!.config
+                if (context.isRestrictedSAFOnlyRoot(path)) {
+                    activity?.runOnUiThread { hideProgressBar() }
+                    activity?.handleAndroidSAFDialog(path, openInSystemAppAllowed = true) {
+                        if (!it) {
+                            activity?.toast(R.string.no_storage_permissions)
+                            return@handleAndroidSAFDialog
+                        }
+                        val getProperChildCount = context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_LIST
+                        context.getAndroidSAFFileItems(path, context.config.shouldShowHidden(), getProperChildCount) { fileItems ->
+                            callback(path, getListItemsFromFileDirItems(fileItems))
+                        }
+                    }
+                } else if (context!!.isPathOnOTG(path) && config.OTGTreeUri.isNotEmpty()) {
+                    val getProperFileSize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0
+                    context!!.getOTGItems(path, config.shouldShowHidden(), getProperFileSize) {
+                        callback(path, getListItemsFromFileDirItems(it))
+                    }
+                } else if (!config.enableRootAccess || !context!!.isPathOnRoot(path)) {
+                    getRegularItemsOf(path, callback)
+                } else {
+                    RootHelpers(activity!!).getFiles(path, callback)
+                }
+            }
+        }
+    }
+
+    private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList<ListItem>) -> Unit) {
+        val items = ArrayList<ListItem>()
+        val files = File(path).listFiles()?.filterNotNull()
+        if (context == null || files == null) {
+            callback(path, items)
+            return
+        }
+
+        val isSortingBySize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0
+        val getProperChildCount = context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_LIST
+        val lastModifieds = context!!.getFolderLastModifieds(path)
+
+        for (file in files) {
+            val listItem = getListItemFromFile(file, isSortingBySize, lastModifieds, false)
+            if (listItem != null) {
+                if (wantedMimeTypes.any { isProperMimeType(it, file.absolutePath, file.isDirectory) }) {
+                    items.add(listItem)
+                }
+            }
+        }
+
+        // send out the initial item list asap, get proper child count asynchronously as it can be slow
+        callback(path, items)
+
+        if (getProperChildCount) {
+            items.filter { it.mIsDirectory }.forEach {
+                if (context != null) {
+                    val childrenCount = it.getDirectChildrenCount(activity as BaseSimpleActivity, showHidden)
+                    if (childrenCount != 0) {
+                        activity?.runOnUiThread {
+                            getRecyclerAdapter()?.updateChildCount(it.mPath, childrenCount)
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun getListItemFromFile(file: File, isSortingBySize: Boolean, lastModifieds: HashMap<String, Long>, getProperChildCount: Boolean): ListItem? {
+        val curPath = file.absolutePath
+        val curName = file.name
+        if (!showHidden && curName.startsWith(".")) {
+            return null
+        }
+
+        var lastModified = lastModifieds.remove(curPath)
+        val isDirectory = file.isDirectory
+        val children = if (isDirectory && getProperChildCount) file.getDirectChildrenCount(context, showHidden) else 0
+        val size = if (isDirectory) {
+            if (isSortingBySize) {
+                file.getProperSize(showHidden)
+            } else {
+                0L
+            }
+        } else {
+            file.length()
+        }
+
+        if (lastModified == null) {
+            lastModified = file.lastModified()
+        }
+
+        return ListItem(curPath, curName, isDirectory, children, size, lastModified, false, false)
+    }
+
+    private fun getListItemsFromFileDirItems(fileDirItems: ArrayList<FileDirItem>): ArrayList<ListItem> {
+        val listItems = ArrayList<ListItem>()
+        fileDirItems.forEach {
+            val listItem = ListItem(it.path, it.name, it.isDirectory, it.children, it.size, it.modified, false, false)
+            if (wantedMimeTypes.any { mimeType -> isProperMimeType(mimeType, it.path, it.isDirectory) }) {
+                listItems.add(listItem)
+            }
+        }
+        return listItems
+    }
+
+    private fun itemClicked(item: FileDirItem) {
+        if (item.isDirectory) {
+            openDirectory(item.path)
+        } else {
+            clickedPath(item.path)
+        }
+    }
+
+    private fun openDirectory(path: String) {
+        (activity as? MainActivity)?.apply {
+            openedDirectory()
+        }
+        openPath(path)
+    }
+
+    override fun searchQueryChanged(text: String) {
+        lastSearchedText = text
+        if (context == null) {
+            return
+        }
+
+        binding.apply {
+            itemsSwipeRefresh.isEnabled = text.isEmpty() && activity?.config?.enablePullToRefresh != false
+            when {
+                text.isEmpty() -> {
+                    itemsFastscroller.beVisible()
+                    getRecyclerAdapter()?.updateItems(itemsIgnoringSearch)
+                    itemsPlaceholder.beGone()
+                    itemsPlaceholder2.beGone()
+                    hideProgressBar()
+                }
+
+                text.length == 1 -> {
+                    itemsFastscroller.beGone()
+                    itemsPlaceholder.beVisible()
+                    itemsPlaceholder2.beVisible()
+                    hideProgressBar()
+                }
+
+                else -> {
+                    showProgressBar()
+                    ensureBackgroundThread {
+                        val files = searchFiles(text, currentPath)
+                        files.sortBy { it.getParentPath() }
+
+                        if (lastSearchedText != text) {
+                            return@ensureBackgroundThread
+                        }
+
+                        val listItems = ArrayList<ListItem>()
+
+                        var previousParent = ""
+                        files.forEach {
+                            val parent = it.mPath.getParentPath()
+                            if (!it.isDirectory && parent != previousParent && context != null) {
+                                val sectionTitle = ListItem(parent, context!!.humanizePath(parent), false, 0, 0, 0, true, false)
+                                listItems.add(sectionTitle)
+                                previousParent = parent
+                            }
+
+                            if (it.isDirectory) {
+                                val sectionTitle = ListItem(it.path, context!!.humanizePath(it.path), true, 0, 0, 0, true, false)
+                                listItems.add(sectionTitle)
+                                previousParent = parent
+                            }
+
+                            if (!it.isDirectory) {
+                                listItems.add(it)
+                            }
+                        }
+
+                        activity?.runOnUiThread {
+                            getRecyclerAdapter()?.updateItems(listItems, text)
+                            itemsFastscroller.beVisibleIf(listItems.isNotEmpty())
+                            itemsPlaceholder.beVisibleIf(listItems.isEmpty())
+                            itemsPlaceholder2.beGone()
+                            hideProgressBar()
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    private fun searchFiles(text: String, path: String): ArrayList<ListItem> {
+        val files = ArrayList<ListItem>()
+        if (context == null) {
+            return files
+        }
+
+        val normalizedText = text.normalizeString()
+        val sorting = context!!.config.getFolderSorting(path)
+        FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
+        val isSortingBySize = sorting and SORT_BY_SIZE != 0
+        File(path).listFiles()?.sortedBy { it.isDirectory }?.forEach {
+            if (!showHidden && it.isHidden) {
+                return@forEach
+            }
+
+            if (it.isDirectory) {
+                if (it.name.normalizeString().contains(normalizedText, true)) {
+                    val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
+                    if (fileDirItem != null) {
+                        files.add(fileDirItem)
+                    }
+                }
+
+                files.addAll(searchFiles(text, it.absolutePath))
+            } else {
+                if (it.name.normalizeString().contains(normalizedText, true)) {
+                    val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
+                    if (fileDirItem != null) {
+                        files.add(fileDirItem)
+                    }
+                }
+            }
+        }
+        return files
+    }
+
+    private fun searchClosed() {
+        binding.apply {
+            lastSearchedText = ""
+            itemsSwipeRefresh.isEnabled = activity?.config?.enablePullToRefresh != false
+            itemsFastscroller.beVisible()
+            itemsPlaceholder.beGone()
+            itemsPlaceholder2.beGone()
+            hideProgressBar()
+        }
+    }
+
+    private fun createNewItem() {
+        CreateNewItemDialog(activity as SimpleActivity, currentPath) {
+            if (it) {
+                refreshFragment()
+            } else {
+                activity?.toast(R.string.unknown_error_occurred)
+            }
+        }
+    }
+
+    private fun getRecyclerAdapter() = binding.itemsList.adapter as? ItemsAdapter
+
+    private fun setupLayoutManager() {
+        if (context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_GRID) {
+            currentViewType = VIEW_TYPE_GRID
+            setupGridLayoutManager()
+        } else {
+            currentViewType = VIEW_TYPE_LIST
+            setupListLayoutManager()
+        }
+
+        binding.itemsList.adapter = null
+        initZoomListener()
+        addItems(storedItems, true)
+    }
+
+    private fun setupGridLayoutManager() {
+        val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = context?.config?.fileColumnCnt ?: 3
+
+        layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() {
+            override fun getSpanSize(position: Int): Int {
+                return if (getRecyclerAdapter()?.isASectionTitle(position) == true || getRecyclerAdapter()?.isGridTypeDivider(position) == true) {
+                    layoutManager.spanCount
+                } else {
+                    1
+                }
+            }
+        }
+    }
+
+    private fun setupListLayoutManager() {
+        val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = 1
+        zoomListener = null
+    }
+
+    private fun initZoomListener() {
+        if (context?.config?.getFolderViewType(currentPath) == VIEW_TYPE_GRID) {
+            val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager
+            zoomListener = object : MyRecyclerView.MyZoomListener {
+                override fun zoomIn() {
+                    if (layoutManager.spanCount > 1) {
+                        reduceColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+
+                override fun zoomOut() {
+                    if (layoutManager.spanCount < MAX_COLUMN_COUNT) {
+                        increaseColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+            }
+        } else {
+            zoomListener = null
+        }
+    }
+
+    private fun increaseColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            context!!.config.fileColumnCnt += 1
+            (activity as? MainActivity)?.updateFragmentColumnCounts()
+        }
+    }
+
+    private fun reduceColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            context!!.config.fileColumnCnt -= 1
+            (activity as? MainActivity)?.updateFragmentColumnCounts()
+        }
+    }
+
+    override fun columnCountChanged() {
+        (binding.itemsList.layoutManager as MyGridLayoutManager).spanCount = context!!.config.fileColumnCnt
+        (activity as? MainActivity)?.refreshMenuItems()
+        getRecyclerAdapter()?.apply {
+            notifyItemRangeChanged(0, listItems.size)
+        }
+    }
+
+    fun showProgressBar() {
+        binding.progressBar.show()
+    }
+
+    private fun hideProgressBar() {
+        binding.progressBar.hide()
+    }
+
+    fun getBreadcrumbs() = binding.breadcrumbs
+
+    override fun toggleFilenameVisibility() {
+        getRecyclerAdapter()?.updateDisplayFilenamesInGrid()
+    }
+
+    override fun breadcrumbClicked(id: Int) {
+        if (id == 0) {
+            StoragePickerDialog(activity as SimpleActivity, currentPath, context!!.config.enableRootAccess, true) {
+                getRecyclerAdapter()?.finishActMode()
+                openPath(it)
+            }
+        } else {
+            val item = binding.breadcrumbs.getItem(id)
+            openPath(item.path)
+        }
+    }
+
+    override fun refreshFragment() {
+        openPath(currentPath)
+    }
+
+    override fun deleteFiles(files: ArrayList<FileDirItem>) {
+        val hasFolder = files.any { it.isDirectory }
+        handleFileDeleting(files, hasFolder)
+    }
+
+    override fun selectedPaths(paths: ArrayList<String>) {
+        (activity as MainActivity).pickedPaths(paths)
+    }
+}

+ 114 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/MyViewPagerFragment.kt

@@ -0,0 +1,114 @@
+package org.fossify.filemanager.fragments
+
+import android.content.Context
+import android.util.AttributeSet
+import android.widget.RelativeLayout
+import org.fossify.commons.extensions.*
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.views.MyFloatingActionButton
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.MainActivity
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.databinding.ItemsFragmentBinding
+import org.fossify.filemanager.databinding.RecentsFragmentBinding
+import org.fossify.filemanager.databinding.StorageFragmentBinding
+import org.fossify.filemanager.extensions.isPathOnRoot
+import org.fossify.filemanager.extensions.tryOpenPathIntent
+import org.fossify.filemanager.helpers.RootHelpers
+
+abstract class MyViewPagerFragment<BINDING : MyViewPagerFragment.InnerBinding>(context: Context, attributeSet: AttributeSet) :
+    RelativeLayout(context, attributeSet) {
+    protected var activity: SimpleActivity? = null
+    protected var currentViewType = VIEW_TYPE_LIST
+
+    var currentPath = ""
+    var isGetContentIntent = false
+    var isGetRingtonePicker = false
+    var isPickMultipleIntent = false
+    var wantedMimeTypes = listOf("")
+    protected var isCreateDocumentIntent = false
+    protected lateinit var innerBinding: BINDING
+
+    protected fun clickedPath(path: String) {
+        if (isGetContentIntent || isCreateDocumentIntent) {
+            (activity as MainActivity).pickedPath(path)
+        } else if (isGetRingtonePicker) {
+            if (path.isAudioFast()) {
+                (activity as MainActivity).pickedRingtone(path)
+            } else {
+                activity?.toast(R.string.select_audio_file)
+            }
+        } else {
+            activity?.tryOpenPathIntent(path, false)
+        }
+    }
+
+    fun updateIsCreateDocumentIntent(isCreateDocumentIntent: Boolean) {
+        val iconId = if (isCreateDocumentIntent) {
+            R.drawable.ic_check_vector
+        } else {
+            R.drawable.ic_plus_vector
+        }
+
+        this.isCreateDocumentIntent = isCreateDocumentIntent
+        val fabIcon = context.resources.getColoredDrawableWithColor(iconId, context.getProperPrimaryColor().getContrastColor())
+        innerBinding.itemsFab?.setImageDrawable(fabIcon)
+    }
+
+    fun handleFileDeleting(files: ArrayList<FileDirItem>, hasFolder: Boolean) {
+        val firstPath = files.firstOrNull()?.path
+        if (firstPath == null || firstPath.isEmpty() || context == null) {
+            return
+        }
+
+        if (context!!.isPathOnRoot(firstPath)) {
+            RootHelpers(activity!!).deleteFiles(files)
+        } else {
+            (activity as SimpleActivity).deleteFiles(files, hasFolder) {
+                if (!it) {
+                    activity!!.runOnUiThread {
+                        activity!!.toast(R.string.unknown_error_occurred)
+                    }
+                }
+            }
+        }
+    }
+
+    protected fun isProperMimeType(wantedMimeType: String, path: String, isDirectory: Boolean): Boolean {
+        return if (wantedMimeType.isEmpty() || wantedMimeType == "*/*" || isDirectory) {
+            true
+        } else {
+            val fileMimeType = path.getMimeType()
+            if (wantedMimeType.endsWith("/*")) {
+                fileMimeType.substringBefore("/").equals(wantedMimeType.substringBefore("/"), true)
+            } else {
+                fileMimeType.equals(wantedMimeType, true)
+            }
+        }
+    }
+
+    abstract fun setupFragment(activity: SimpleActivity)
+
+    abstract fun onResume(textColor: Int)
+
+    abstract fun refreshFragment()
+
+    abstract fun searchQueryChanged(text: String)
+
+    interface InnerBinding {
+        val itemsFab: MyFloatingActionButton?
+    }
+
+    class ItemsInnerBinding(val binding: ItemsFragmentBinding) : InnerBinding {
+        override val itemsFab: MyFloatingActionButton = binding.itemsFab
+    }
+
+    class RecentsInnerBinding(val binding: RecentsFragmentBinding) : InnerBinding {
+        override val itemsFab: MyFloatingActionButton? = null
+    }
+
+    class StorageInnerBinding(val binding: StorageFragmentBinding) : InnerBinding {
+        override val itemsFab: MyFloatingActionButton? = null
+    }
+}

+ 264 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/RecentsFragment.kt

@@ -0,0 +1,264 @@
+package org.fossify.filemanager.fragments
+
+import android.content.ContentResolver
+import android.content.Context
+import android.provider.MediaStore.Files
+import android.provider.MediaStore.Files.FileColumns
+import android.util.AttributeSet
+import androidx.core.os.bundleOf
+import org.fossify.commons.extensions.areSystemAnimationsEnabled
+import org.fossify.commons.extensions.beVisibleIf
+import org.fossify.commons.extensions.getDoesFilePathExist
+import org.fossify.commons.extensions.getFilenameFromPath
+import org.fossify.commons.extensions.getLongValue
+import org.fossify.commons.extensions.getStringValue
+import org.fossify.commons.extensions.normalizeString
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.helpers.VIEW_TYPE_GRID
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.views.MyGridLayoutManager
+import org.fossify.commons.views.MyRecyclerView
+import org.fossify.filemanager.activities.MainActivity
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.adapters.ItemsAdapter
+import org.fossify.filemanager.databinding.RecentsFragmentBinding
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.isPathInHiddenFolder
+import org.fossify.filemanager.helpers.MAX_COLUMN_COUNT
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import org.fossify.filemanager.models.ListItem
+import java.io.File
+
+class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerFragment<MyViewPagerFragment.RecentsInnerBinding>(context, attributeSet),
+    ItemOperationsListener {
+    private val RECENTS_LIMIT = 50
+    private var filesIgnoringSearch = ArrayList<ListItem>()
+    private var lastSearchedText = ""
+    private var zoomListener: MyRecyclerView.MyZoomListener? = null
+    private lateinit var binding: RecentsFragmentBinding
+
+    override fun onFinishInflate() {
+        super.onFinishInflate()
+        binding = RecentsFragmentBinding.bind(this)
+        innerBinding = RecentsInnerBinding(binding)
+    }
+
+    override fun setupFragment(activity: SimpleActivity) {
+        if (this.activity == null) {
+            this.activity = activity
+            binding.recentsSwipeRefresh.setOnRefreshListener { refreshFragment() }
+        }
+
+        refreshFragment()
+    }
+
+    override fun refreshFragment() {
+        ensureBackgroundThread {
+            getRecents { recents ->
+                binding.apply {
+                    recentsSwipeRefresh.isRefreshing = false
+                    recentsList.beVisibleIf(recents.isNotEmpty())
+                    recentsPlaceholder.beVisibleIf(recents.isEmpty())
+                }
+                filesIgnoringSearch = recents
+                addItems(recents, false)
+
+                if (context != null && currentViewType != context!!.config.getFolderViewType("")) {
+                    setupLayoutManager()
+                }
+            }
+        }
+    }
+
+    private fun addItems(recents: ArrayList<ListItem>, forceRefresh: Boolean) {
+        if (!forceRefresh && recents.hashCode() == (binding.recentsList.adapter as? ItemsAdapter)?.listItems.hashCode()) {
+            return
+        }
+
+        ItemsAdapter(activity as SimpleActivity, recents, this, binding.recentsList, isPickMultipleIntent, binding.recentsSwipeRefresh, false) {
+            clickedPath((it as FileDirItem).path)
+        }.apply {
+            setupZoomListener(zoomListener)
+            binding.recentsList.adapter = this
+        }
+
+        if (context.areSystemAnimationsEnabled) {
+            binding.recentsList.scheduleLayoutAnimation()
+        }
+    }
+
+    override fun onResume(textColor: Int) {
+        binding.recentsPlaceholder.setTextColor(textColor)
+
+        getRecyclerAdapter()?.apply {
+            updatePrimaryColor()
+            updateTextColor(textColor)
+            initDrawables()
+        }
+
+        binding.recentsSwipeRefresh.isEnabled = lastSearchedText.isEmpty() && activity?.config?.enablePullToRefresh != false
+    }
+
+    private fun setupLayoutManager() {
+        if (context!!.config.getFolderViewType("") == VIEW_TYPE_GRID) {
+            currentViewType = VIEW_TYPE_GRID
+            setupGridLayoutManager()
+        } else {
+            currentViewType = VIEW_TYPE_LIST
+            setupListLayoutManager()
+        }
+
+        val oldItems = (binding.recentsList.adapter as? ItemsAdapter)?.listItems?.toMutableList() as ArrayList<ListItem>
+        binding.recentsList.adapter = null
+        initZoomListener()
+        addItems(oldItems, true)
+    }
+
+    private fun setupGridLayoutManager() {
+        val layoutManager = binding.recentsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = context?.config?.fileColumnCnt ?: 3
+    }
+
+    private fun setupListLayoutManager() {
+        val layoutManager = binding.recentsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = 1
+        zoomListener = null
+    }
+
+    private fun initZoomListener() {
+        if (context?.config?.getFolderViewType("") == VIEW_TYPE_GRID) {
+            val layoutManager = binding.recentsList.layoutManager as MyGridLayoutManager
+            zoomListener = object : MyRecyclerView.MyZoomListener {
+                override fun zoomIn() {
+                    if (layoutManager.spanCount > 1) {
+                        reduceColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+
+                override fun zoomOut() {
+                    if (layoutManager.spanCount < MAX_COLUMN_COUNT) {
+                        increaseColumnCount()
+                        getRecyclerAdapter()?.finishActMode()
+                    }
+                }
+            }
+        } else {
+            zoomListener = null
+        }
+    }
+
+    private fun getRecents(callback: (recents: ArrayList<ListItem>) -> Unit) {
+        val showHidden = context?.config?.shouldShowHidden() ?: return
+        val listItems = arrayListOf<ListItem>()
+
+        val uri = Files.getContentUri("external")
+        val projection = arrayOf(
+            FileColumns.DATA,
+            FileColumns.DISPLAY_NAME,
+            FileColumns.DATE_MODIFIED,
+            FileColumns.SIZE
+        )
+
+        try {
+            val queryArgs = bundleOf(
+                ContentResolver.QUERY_ARG_LIMIT to RECENTS_LIMIT,
+                ContentResolver.QUERY_ARG_SORT_COLUMNS to arrayOf(FileColumns.DATE_MODIFIED),
+                ContentResolver.QUERY_ARG_SORT_DIRECTION to ContentResolver.QUERY_SORT_DIRECTION_DESCENDING
+            )
+
+            context?.contentResolver?.query(uri, projection, queryArgs, null)?.use { cursor ->
+                if (cursor.moveToFirst()) {
+                    do {
+                        val path = cursor.getStringValue(FileColumns.DATA)
+                        if (File(path).isDirectory) {
+                            continue
+                        }
+
+                        val name = cursor.getStringValue(FileColumns.DISPLAY_NAME) ?: path.getFilenameFromPath()
+                        val size = cursor.getLongValue(FileColumns.SIZE)
+                        val modified = cursor.getLongValue(FileColumns.DATE_MODIFIED) * 1000
+                        val isHiddenFile = name.startsWith(".")
+                        val shouldShow = showHidden || (!isHiddenFile && !path.isPathInHiddenFolder())
+                        if (shouldShow && activity?.getDoesFilePathExist(path) == true) {
+                            if (wantedMimeTypes.any { isProperMimeType(it, path, false) }) {
+                                val fileDirItem = ListItem(path, name, false, 0, size, modified, false, false)
+                                listItems.add(fileDirItem)
+                            }
+                        }
+                    } while (cursor.moveToNext())
+                }
+            }
+        } catch (e: Exception) {
+            activity?.showErrorToast(e)
+        }
+
+        activity?.runOnUiThread {
+            callback(listItems)
+        }
+    }
+
+    private fun getRecyclerAdapter() = binding.recentsList.adapter as? ItemsAdapter
+
+    override fun toggleFilenameVisibility() {
+        getRecyclerAdapter()?.updateDisplayFilenamesInGrid()
+    }
+
+    private fun increaseColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            context!!.config.fileColumnCnt += 1
+            (activity as? MainActivity)?.updateFragmentColumnCounts()
+        }
+    }
+
+    private fun reduceColumnCount() {
+        if (currentViewType == VIEW_TYPE_GRID) {
+            context!!.config.fileColumnCnt -= 1
+            (activity as? MainActivity)?.updateFragmentColumnCounts()
+        }
+    }
+
+    override fun columnCountChanged() {
+        (binding.recentsList.layoutManager as MyGridLayoutManager).spanCount = context!!.config.fileColumnCnt
+        (activity as? MainActivity)?.refreshMenuItems()
+        getRecyclerAdapter()?.apply {
+            notifyItemRangeChanged(0, listItems.size)
+        }
+    }
+
+    override fun setupFontSize() {
+        getRecyclerAdapter()?.updateFontSizes()
+    }
+
+    override fun setupDateTimeFormat() {
+        getRecyclerAdapter()?.updateDateTimeFormat()
+    }
+
+    override fun selectedPaths(paths: ArrayList<String>) {
+        (activity as MainActivity).pickedPaths(paths)
+    }
+
+    override fun deleteFiles(files: ArrayList<FileDirItem>) {
+        handleFileDeleting(files, false)
+    }
+
+    override fun searchQueryChanged(text: String) {
+        lastSearchedText = text
+        val normalizedText = text.normalizeString()
+        val filtered = filesIgnoringSearch.filter {
+            it.mName.normalizeString().contains(normalizedText, true)
+        }.toMutableList() as ArrayList<ListItem>
+
+        binding.apply {
+            (recentsList.adapter as? ItemsAdapter)?.updateItems(filtered, text)
+            recentsPlaceholder.beVisibleIf(filtered.isEmpty())
+            recentsSwipeRefresh.isEnabled = lastSearchedText.isEmpty() && activity?.config?.enablePullToRefresh != false
+        }
+    }
+
+    override fun finishActMode() {
+        getRecyclerAdapter()?.finishActMode()
+    }
+}

+ 522 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt

@@ -0,0 +1,522 @@
+package org.fossify.filemanager.fragments
+
+import android.annotation.SuppressLint
+import android.app.Activity
+import android.app.usage.StorageStatsManager
+import android.content.ContentResolver
+import android.content.Context
+import android.content.Intent
+import android.os.Handler
+import android.os.Looper
+import android.os.storage.StorageManager
+import android.provider.MediaStore
+import android.provider.Settings
+import android.util.AttributeSet
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.os.bundleOf
+import androidx.core.view.children
+import androidx.core.view.isVisible
+import org.fossify.commons.extensions.adjustAlpha
+import org.fossify.commons.extensions.applyColorFilter
+import org.fossify.commons.extensions.beGone
+import org.fossify.commons.extensions.beVisible
+import org.fossify.commons.extensions.beVisibleIf
+import org.fossify.commons.extensions.fadeIn
+import org.fossify.commons.extensions.formatSize
+import org.fossify.commons.extensions.getIsPathDirectory
+import org.fossify.commons.extensions.getLongValue
+import org.fossify.commons.extensions.getProperBackgroundColor
+import org.fossify.commons.extensions.getProperPrimaryColor
+import org.fossify.commons.extensions.getStringValue
+import org.fossify.commons.extensions.normalizeString
+import org.fossify.commons.extensions.queryCursor
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.extensions.updateTextColors
+import org.fossify.commons.helpers.LOWER_ALPHA
+import org.fossify.commons.helpers.SHORT_ANIMATION_DURATION
+import org.fossify.commons.helpers.VIEW_TYPE_GRID
+import org.fossify.commons.helpers.VIEW_TYPE_LIST
+import org.fossify.commons.helpers.ensureBackgroundThread
+import org.fossify.commons.models.FileDirItem
+import org.fossify.commons.views.MyGridLayoutManager
+import org.fossify.filemanager.R
+import org.fossify.filemanager.activities.MimeTypesActivity
+import org.fossify.filemanager.activities.SimpleActivity
+import org.fossify.filemanager.adapters.ItemsAdapter
+import org.fossify.filemanager.databinding.ItemStorageVolumeBinding
+import org.fossify.filemanager.databinding.StorageFragmentBinding
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.extensions.getAllVolumeNames
+import org.fossify.filemanager.helpers.ARCHIVES
+import org.fossify.filemanager.helpers.AUDIO
+import org.fossify.filemanager.helpers.DOCUMENTS
+import org.fossify.filemanager.helpers.IMAGES
+import org.fossify.filemanager.helpers.OTHERS
+import org.fossify.filemanager.helpers.PRIMARY_VOLUME_NAME
+import org.fossify.filemanager.helpers.SHOW_MIMETYPE
+import org.fossify.filemanager.helpers.VIDEOS
+import org.fossify.filemanager.helpers.VOLUME_NAME
+import org.fossify.filemanager.helpers.archiveMimeTypes
+import org.fossify.filemanager.helpers.extraAudioMimeTypes
+import org.fossify.filemanager.helpers.extraDocumentMimeTypes
+import org.fossify.filemanager.helpers.getListItemsFromFileDirItems
+import org.fossify.filemanager.interfaces.ItemOperationsListener
+import org.fossify.filemanager.models.ListItem
+import java.util.Locale
+
+class StorageFragment(
+    context: Context,
+    attributeSet: AttributeSet
+) : MyViewPagerFragment<MyViewPagerFragment.StorageInnerBinding>(context, attributeSet), ItemOperationsListener {
+    private val SIZE_DIVIDER = 100000
+    private var allDeviceListItems = ArrayList<ListItem>()
+    private var lastSearchedText = ""
+    private lateinit var binding: StorageFragmentBinding
+    private val volumes = mutableMapOf<String, ItemStorageVolumeBinding>()
+
+    override fun onFinishInflate() {
+        super.onFinishInflate()
+        binding = StorageFragmentBinding.bind(this)
+        innerBinding = StorageInnerBinding(binding)
+    }
+
+    override fun setupFragment(activity: SimpleActivity) {
+        if (this.activity == null) {
+            this.activity = activity
+        }
+
+        val volumeNames = activity.getAllVolumeNames()
+        volumeNames.forEach { volumeName ->
+            val volumeBinding = ItemStorageVolumeBinding.inflate(activity.layoutInflater)
+            volumes[volumeName] = volumeBinding
+            volumeBinding.apply {
+                if (volumeName == PRIMARY_VOLUME_NAME) {
+                    storageName.setText(R.string.internal)
+                } else {
+                    storageName.setText(R.string.sd_card)
+                }
+
+                totalSpace.text = String.format(context.getString(R.string.total_storage), "…")
+
+                if (volumeNames.size > 1) {
+                    root.children.forEach { it.beGone() }
+                    freeSpaceHolder.beVisible()
+                    expandButton.applyColorFilter(context.getProperPrimaryColor())
+                    expandButton.setImageResource(R.drawable.ic_arrow_down_vector)
+
+                    expandButton.setOnClickListener { _ ->
+                        if (imagesHolder.isVisible) {
+                            root.children.filterNot { it == freeSpaceHolder }.forEach { it.beGone() }
+                            expandButton.setImageResource(R.drawable.ic_arrow_down_vector)
+                        } else {
+                            root.children.filterNot { it == freeSpaceHolder }.forEach { it.beVisible() }
+                            expandButton.setImageResource(R.drawable.ic_arrow_up_vector)
+                        }
+                    }
+                } else {
+                    expandButton.beGone()
+                }
+
+                freeSpaceHolder.setOnClickListener {
+                    try {
+                        val storageSettingsIntent = Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS)
+                        activity.startActivity(storageSettingsIntent)
+                    } catch (e: Exception) {
+                        activity.showErrorToast(e)
+                    }
+                }
+
+                imagesHolder.setOnClickListener { launchMimetypeActivity(IMAGES, volumeName) }
+                videosHolder.setOnClickListener { launchMimetypeActivity(VIDEOS, volumeName) }
+                audioHolder.setOnClickListener { launchMimetypeActivity(AUDIO, volumeName) }
+                documentsHolder.setOnClickListener { launchMimetypeActivity(DOCUMENTS, volumeName) }
+                archivesHolder.setOnClickListener { launchMimetypeActivity(ARCHIVES, volumeName) }
+                othersHolder.setOnClickListener { launchMimetypeActivity(OTHERS, volumeName) }
+            }
+            binding.storageVolumesHolder.addView(volumeBinding.root)
+        }
+
+        ensureBackgroundThread {
+            getVolumeStorageStats(context)
+        }
+
+        Handler(Looper.getMainLooper()).postDelayed({
+            refreshFragment()
+        }, 2000)
+    }
+
+    override fun onResume(textColor: Int) {
+        context.updateTextColors(binding.root)
+
+        val properPrimaryColor = context.getProperPrimaryColor()
+        val redColor = context.resources.getColor(R.color.md_red_700)
+        val greenColor = context.resources.getColor(R.color.md_green_700)
+        val lightBlueColor = context.resources.getColor(R.color.md_light_blue_700)
+        val yellowColor = context.resources.getColor(R.color.md_yellow_700)
+        val tealColor = context.resources.getColor(R.color.md_teal_700)
+        val pinkColor = context.resources.getColor(R.color.md_pink_700)
+
+        volumes.values.forEach { volumeBinding ->
+            volumeBinding.apply {
+                mainStorageUsageProgressbar.setIndicatorColor(properPrimaryColor)
+                mainStorageUsageProgressbar.trackColor = properPrimaryColor.adjustAlpha(LOWER_ALPHA)
+
+                imagesProgressbar.setIndicatorColor(redColor)
+                imagesProgressbar.trackColor = redColor.adjustAlpha(LOWER_ALPHA)
+
+                videosProgressbar.setIndicatorColor(greenColor)
+                videosProgressbar.trackColor = greenColor.adjustAlpha(LOWER_ALPHA)
+
+                audioProgressbar.setIndicatorColor(lightBlueColor)
+                audioProgressbar.trackColor = lightBlueColor.adjustAlpha(LOWER_ALPHA)
+
+                documentsProgressbar.setIndicatorColor(yellowColor)
+                documentsProgressbar.trackColor = yellowColor.adjustAlpha(LOWER_ALPHA)
+
+                archivesProgressbar.setIndicatorColor(tealColor)
+                archivesProgressbar.trackColor = tealColor.adjustAlpha(LOWER_ALPHA)
+
+                othersProgressbar.setIndicatorColor(pinkColor)
+                othersProgressbar.trackColor = pinkColor.adjustAlpha(LOWER_ALPHA)
+
+                expandButton.applyColorFilter(context.getProperPrimaryColor())
+            }
+        }
+
+        binding.apply {
+            searchHolder.setBackgroundColor(context.getProperBackgroundColor())
+            progressBar.setIndicatorColor(properPrimaryColor)
+            progressBar.trackColor = properPrimaryColor.adjustAlpha(LOWER_ALPHA)
+        }
+
+        ensureBackgroundThread {
+            getVolumeStorageStats(context)
+        }
+    }
+
+    private fun launchMimetypeActivity(mimetype: String, volumeName: String) {
+        Intent(context, MimeTypesActivity::class.java).apply {
+            putExtra(SHOW_MIMETYPE, mimetype)
+            putExtra(VOLUME_NAME, volumeName)
+            context.startActivity(this)
+        }
+    }
+
+    private fun getSizes(volumeName: String) {
+        ensureBackgroundThread {
+            val filesSize = getSizesByMimeType(volumeName)
+            val fileSizeImages = filesSize[IMAGES]!!
+            val fileSizeVideos = filesSize[VIDEOS]!!
+            val fileSizeAudios = filesSize[AUDIO]!!
+            val fileSizeDocuments = filesSize[DOCUMENTS]!!
+            val fileSizeArchives = filesSize[ARCHIVES]!!
+            val fileSizeOthers = filesSize[OTHERS]!!
+
+            post {
+                volumes[volumeName]!!.apply {
+                    imagesSize.text = fileSizeImages.formatSize()
+                    imagesProgressbar.progress = (fileSizeImages / SIZE_DIVIDER).toInt()
+
+                    videosSize.text = fileSizeVideos.formatSize()
+                    videosProgressbar.progress = (fileSizeVideos / SIZE_DIVIDER).toInt()
+
+                    audioSize.text = fileSizeAudios.formatSize()
+                    audioProgressbar.progress = (fileSizeAudios / SIZE_DIVIDER).toInt()
+
+                    documentsSize.text = fileSizeDocuments.formatSize()
+                    documentsProgressbar.progress = (fileSizeDocuments / SIZE_DIVIDER).toInt()
+
+                    archivesSize.text = fileSizeArchives.formatSize()
+                    archivesProgressbar.progress = (fileSizeArchives / SIZE_DIVIDER).toInt()
+
+                    othersSize.text = fileSizeOthers.formatSize()
+                    othersProgressbar.progress = (fileSizeOthers / SIZE_DIVIDER).toInt()
+                }
+            }
+        }
+    }
+
+    private fun getSizesByMimeType(volumeName: String): HashMap<String, Long> {
+        val uri = MediaStore.Files.getContentUri(volumeName)
+        val projection = arrayOf(
+            MediaStore.Files.FileColumns.SIZE,
+            MediaStore.Files.FileColumns.MIME_TYPE,
+            MediaStore.Files.FileColumns.DATA
+        )
+
+        var imagesSize = 0L
+        var videosSize = 0L
+        var audioSize = 0L
+        var documentsSize = 0L
+        var archivesSize = 0L
+        var othersSize = 0L
+        try {
+            context.queryCursor(uri, projection) { cursor ->
+                try {
+                    val mimeType =
+                        cursor.getStringValue(MediaStore.Files.FileColumns.MIME_TYPE)?.lowercase(Locale.getDefault())
+                    val size = cursor.getLongValue(MediaStore.Files.FileColumns.SIZE)
+                    if (mimeType == null) {
+                        if (size > 0 && size != 4096L) {
+                            val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA)
+                            if (!context.getIsPathDirectory(path)) {
+                                othersSize += size
+                            }
+                        }
+                        return@queryCursor
+                    }
+
+                    when (mimeType.substringBefore("/")) {
+                        "image" -> imagesSize += size
+                        "video" -> videosSize += size
+                        "audio" -> audioSize += size
+                        "text" -> documentsSize += size
+                        else -> {
+                            when {
+                                extraDocumentMimeTypes.contains(mimeType) -> documentsSize += size
+                                extraAudioMimeTypes.contains(mimeType) -> audioSize += size
+                                archiveMimeTypes.contains(mimeType) -> archivesSize += size
+                                else -> othersSize += size
+                            }
+                        }
+                    }
+                } catch (e: Exception) {
+                }
+            }
+        } catch (e: Exception) {
+        }
+
+        val mimeTypeSizes = HashMap<String, Long>().apply {
+            put(IMAGES, imagesSize)
+            put(VIDEOS, videosSize)
+            put(AUDIO, audioSize)
+            put(DOCUMENTS, documentsSize)
+            put(ARCHIVES, archivesSize)
+            put(OTHERS, othersSize)
+        }
+
+        return mimeTypeSizes
+    }
+
+    @SuppressLint("NewApi")
+    private fun getVolumeStorageStats(context: Context) {
+        val externalDirs = context.getExternalFilesDirs(null)
+        val storageManager = context.getSystemService(AppCompatActivity.STORAGE_SERVICE) as StorageManager
+
+        externalDirs.forEach { file ->
+            val volumeName: String
+            val totalStorageSpace: Long
+            val freeStorageSpace: Long
+            val storageVolume = storageManager.getStorageVolume(file) ?: return
+            if (storageVolume.isPrimary) {
+                // internal storage
+                volumeName = PRIMARY_VOLUME_NAME
+                val storageStatsManager =
+                    context.getSystemService(AppCompatActivity.STORAGE_STATS_SERVICE) as StorageStatsManager
+                val uuid = StorageManager.UUID_DEFAULT
+                totalStorageSpace = storageStatsManager.getTotalBytes(uuid)
+                freeStorageSpace = storageStatsManager.getFreeBytes(uuid)
+            } else {
+                volumeName = storageVolume.uuid!!.lowercase(Locale.US)
+                totalStorageSpace = file.totalSpace
+                freeStorageSpace = file.freeSpace
+            }
+
+            post {
+                volumes[volumeName]?.apply {
+                    arrayOf(
+                        mainStorageUsageProgressbar,
+                        imagesProgressbar,
+                        videosProgressbar,
+                        audioProgressbar,
+                        documentsProgressbar,
+                        archivesProgressbar,
+                        othersProgressbar
+                    ).forEach {
+                        it.max = (totalStorageSpace / SIZE_DIVIDER).toInt()
+                    }
+
+                    mainStorageUsageProgressbar.progress =
+                        ((totalStorageSpace - freeStorageSpace) / SIZE_DIVIDER).toInt()
+
+                    mainStorageUsageProgressbar.beVisible()
+                    freeSpaceValue.text = freeStorageSpace.formatSize()
+                    totalSpace.text =
+                        String.format(context.getString(R.string.total_storage), totalStorageSpace.formatSize())
+                    freeSpaceLabel.beVisible()
+                    getSizes(volumeName)
+                }
+            }
+        }
+    }
+
+    override fun searchQueryChanged(text: String) {
+        val normalizedText = text.normalizeString()
+        lastSearchedText = text
+        binding.apply {
+            if (text.isNotEmpty()) {
+                if (searchHolder.alpha < 1f) {
+                    searchHolder.fadeIn()
+                }
+            } else {
+                searchHolder.animate().alpha(0f).setDuration(SHORT_ANIMATION_DURATION).withEndAction {
+                    searchHolder.beGone()
+                    (searchResultsList.adapter as? ItemsAdapter)?.updateItems(allDeviceListItems, text)
+                }.start()
+            }
+
+            if (text.length == 1) {
+                searchResultsList.beGone()
+                searchPlaceholder.beVisible()
+                searchPlaceholder2.beVisible()
+                hideProgressBar()
+            } else if (text.isEmpty()) {
+                searchResultsList.beGone()
+                hideProgressBar()
+            } else {
+                showProgressBar()
+                ensureBackgroundThread {
+                    val filtered = allDeviceListItems.filter {
+                        it.mName.normalizeString().contains(normalizedText, true)
+                    }.toMutableList() as ArrayList<ListItem>
+
+                    if (lastSearchedText != text) {
+                        return@ensureBackgroundThread
+                    }
+
+                    (context as? Activity)?.runOnUiThread {
+                        (searchResultsList.adapter as? ItemsAdapter)?.updateItems(filtered, text)
+                        searchResultsList.beVisible()
+                        searchPlaceholder.beVisibleIf(filtered.isEmpty())
+                        searchPlaceholder2.beGone()
+                        hideProgressBar()
+                    }
+                }
+            }
+        }
+    }
+
+    private fun setupLayoutManager() {
+        if (context!!.config.getFolderViewType("") == VIEW_TYPE_GRID) {
+            currentViewType = VIEW_TYPE_GRID
+            setupGridLayoutManager()
+        } else {
+            currentViewType = VIEW_TYPE_LIST
+            setupListLayoutManager()
+        }
+
+        binding.searchResultsList.adapter = null
+        addItems()
+    }
+
+    private fun setupGridLayoutManager() {
+        val layoutManager = binding.searchResultsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = context?.config?.fileColumnCnt ?: 3
+    }
+
+    private fun setupListLayoutManager() {
+        val layoutManager = binding.searchResultsList.layoutManager as MyGridLayoutManager
+        layoutManager.spanCount = 1
+    }
+
+    private fun addItems() {
+        ItemsAdapter(context as SimpleActivity, ArrayList(), this, binding.searchResultsList, false, null, false) {
+            clickedPath((it as FileDirItem).path)
+        }.apply {
+            binding.searchResultsList.adapter = this
+        }
+    }
+
+    private fun getAllFiles(volumeName: String): ArrayList<FileDirItem> {
+        val fileDirItems = ArrayList<FileDirItem>()
+        val showHidden = context?.config?.shouldShowHidden() ?: return fileDirItems
+        val uri = MediaStore.Files.getContentUri(volumeName)
+        val projection = arrayOf(
+            MediaStore.Files.FileColumns.DATA,
+            MediaStore.Files.FileColumns.DISPLAY_NAME,
+            MediaStore.Files.FileColumns.SIZE,
+            MediaStore.Files.FileColumns.DATE_MODIFIED
+        )
+
+        try {
+            val queryArgs = bundleOf(
+                ContentResolver.QUERY_ARG_SORT_COLUMNS to arrayOf(MediaStore.Files.FileColumns.DATE_MODIFIED),
+                ContentResolver.QUERY_ARG_SORT_DIRECTION to ContentResolver.QUERY_SORT_DIRECTION_DESCENDING
+            )
+
+            context?.contentResolver?.query(uri, projection, queryArgs, null)?.use { cursor ->
+                if (cursor.moveToFirst()) {
+                    do {
+                        try {
+                            val name = cursor.getStringValue(MediaStore.Files.FileColumns.DISPLAY_NAME)
+                            if (!showHidden && name.startsWith(".")) {
+                                continue
+                            }
+
+                            val size = cursor.getLongValue(MediaStore.Files.FileColumns.SIZE)
+                            if (size == 0L) {
+                                continue
+                            }
+
+                            val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA)
+                            val lastModified = cursor.getLongValue(MediaStore.Files.FileColumns.DATE_MODIFIED) * 1000
+                            fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
+                        } catch (e: Exception) {
+                        }
+                    } while (cursor.moveToNext())
+                }
+            }
+        } catch (e: Exception) {
+            context?.showErrorToast(e)
+        }
+
+        return fileDirItems
+    }
+
+    private fun showProgressBar() {
+        binding.progressBar.show()
+    }
+
+    private fun hideProgressBar() {
+        binding.progressBar.hide()
+    }
+
+    private fun getRecyclerAdapter() = binding.searchResultsList.adapter as? ItemsAdapter
+
+    override fun refreshFragment() {
+        ensureBackgroundThread {
+            val fileDirItems = volumes.keys.map { getAllFiles(it) }.flatten()
+            allDeviceListItems = getListItemsFromFileDirItems(ArrayList(fileDirItems))
+        }
+        setupLayoutManager()
+    }
+
+    override fun deleteFiles(files: ArrayList<FileDirItem>) {
+        handleFileDeleting(files, false)
+    }
+
+    override fun selectedPaths(paths: ArrayList<String>) {}
+
+    override fun setupDateTimeFormat() {
+        getRecyclerAdapter()?.updateDateTimeFormat()
+    }
+
+    override fun setupFontSize() {
+        getRecyclerAdapter()?.updateFontSizes()
+    }
+
+    override fun toggleFilenameVisibility() {
+        getRecyclerAdapter()?.updateDisplayFilenamesInGrid()
+    }
+
+    override fun columnCountChanged() {
+        (binding.searchResultsList.layoutManager as MyGridLayoutManager).spanCount = context!!.config.fileColumnCnt
+        getRecyclerAdapter()?.apply {
+            notifyItemRangeChanged(0, listItems.size)
+        }
+    }
+
+    override fun finishActMode() {
+        getRecyclerAdapter()?.finishActMode()
+    }
+}

+ 124 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/Config.kt

@@ -0,0 +1,124 @@
+package org.fossify.filemanager.helpers
+
+import android.content.Context
+import android.content.res.Configuration
+import org.fossify.commons.extensions.getInternalStoragePath
+import org.fossify.commons.helpers.BaseConfig
+import java.io.File
+import java.util.Locale
+
+class Config(context: Context) : BaseConfig(context) {
+    companion object {
+        fun newInstance(context: Context) = Config(context)
+    }
+
+    var showHidden: Boolean
+        get() = prefs.getBoolean(SHOW_HIDDEN, false)
+        set(show) = prefs.edit().putBoolean(SHOW_HIDDEN, show).apply()
+
+    var temporarilyShowHidden: Boolean
+        get() = prefs.getBoolean(TEMPORARILY_SHOW_HIDDEN, false)
+        set(temporarilyShowHidden) = prefs.edit().putBoolean(TEMPORARILY_SHOW_HIDDEN, temporarilyShowHidden).apply()
+
+    fun shouldShowHidden() = showHidden || temporarilyShowHidden
+
+    var pressBackTwice: Boolean
+        get() = prefs.getBoolean(PRESS_BACK_TWICE, true)
+        set(pressBackTwice) = prefs.edit().putBoolean(PRESS_BACK_TWICE, pressBackTwice).apply()
+
+    var homeFolder: String
+        get(): String {
+            var path = prefs.getString(HOME_FOLDER, "")!!
+            if (path.isEmpty() || !File(path).isDirectory) {
+                path = context.getInternalStoragePath()
+                homeFolder = path
+            }
+            return path
+        }
+        set(homeFolder) = prefs.edit().putString(HOME_FOLDER, homeFolder).apply()
+
+    fun addFavorite(path: String) {
+        val currFavorites = HashSet<String>(favorites)
+        currFavorites.add(path)
+        favorites = currFavorites
+    }
+
+    fun moveFavorite(oldPath: String, newPath: String) {
+        if (!favorites.contains(oldPath)) {
+            return
+        }
+
+        val currFavorites = HashSet<String>(favorites)
+        currFavorites.remove(oldPath)
+        currFavorites.add(newPath)
+        favorites = currFavorites
+    }
+
+    fun removeFavorite(path: String) {
+        if (!favorites.contains(path)) {
+            return
+        }
+
+        val currFavorites = HashSet<String>(favorites)
+        currFavorites.remove(path)
+        favorites = currFavorites
+    }
+
+    var isRootAvailable: Boolean
+        get() = prefs.getBoolean(IS_ROOT_AVAILABLE, false)
+        set(isRootAvailable) = prefs.edit().putBoolean(IS_ROOT_AVAILABLE, isRootAvailable).apply()
+
+    var enableRootAccess: Boolean
+        get() = prefs.getBoolean(ENABLE_ROOT_ACCESS, false)
+        set(enableRootAccess) = prefs.edit().putBoolean(ENABLE_ROOT_ACCESS, enableRootAccess).apply()
+
+    var editorTextZoom: Float
+        get() = prefs.getFloat(EDITOR_TEXT_ZOOM, 1.2f)
+        set(editorTextZoom) = prefs.edit().putFloat(EDITOR_TEXT_ZOOM, editorTextZoom).apply()
+
+    fun saveFolderViewType(path: String, value: Int) {
+        if (path.isEmpty()) {
+            viewType = value
+        } else {
+            prefs.edit().putInt(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault()), value).apply()
+        }
+    }
+
+    fun getFolderViewType(path: String) = prefs.getInt(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault()), viewType)
+
+    fun removeFolderViewType(path: String) {
+        prefs.edit().remove(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault())).apply()
+    }
+
+    fun hasCustomViewType(path: String) = prefs.contains(VIEW_TYPE_PREFIX + path.lowercase(Locale.getDefault()))
+
+    var fileColumnCnt: Int
+        get() = prefs.getInt(getFileColumnsField(), getDefaultFileColumnCount())
+        set(fileColumnCnt) = prefs.edit().putInt(getFileColumnsField(), fileColumnCnt).apply()
+
+    private fun getFileColumnsField(): String {
+        val isPortrait = context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT
+        return if (isPortrait) {
+            FILE_COLUMN_CNT
+        } else {
+            FILE_LANDSCAPE_COLUMN_CNT
+        }
+    }
+
+    private fun getDefaultFileColumnCount(): Int {
+        val isPortrait = context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT
+        return if (isPortrait) 4 else 8
+    }
+
+    var displayFilenames: Boolean
+        get() = prefs.getBoolean(DISPLAY_FILE_NAMES, true)
+        set(displayFilenames) = prefs.edit().putBoolean(DISPLAY_FILE_NAMES, displayFilenames).apply()
+
+    var showTabs: Int
+        get() = prefs.getInt(SHOW_TABS, ALL_TABS_MASK)
+        set(showTabs) = prefs.edit().putInt(SHOW_TABS, showTabs).apply()
+
+    var wasStorageAnalysisTabAdded: Boolean
+        get() = prefs.getBoolean(WAS_STORAGE_ANALYSIS_TAB_ADDED, false)
+        set(wasStorageAnalysisTabAdded) = prefs.edit().putBoolean(WAS_STORAGE_ANALYSIS_TAB_ADDED, wasStorageAnalysisTabAdded).apply()
+}

+ 78 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/Constants.kt

@@ -0,0 +1,78 @@
+package org.fossify.filemanager.helpers
+
+import org.fossify.commons.helpers.TAB_FILES
+import org.fossify.commons.helpers.TAB_RECENT_FILES
+import org.fossify.commons.helpers.TAB_STORAGE_ANALYSIS
+import org.fossify.commons.models.FileDirItem
+import org.fossify.filemanager.models.ListItem
+
+const val MAX_COLUMN_COUNT = 15
+
+// shared preferences
+const val SHOW_HIDDEN = "show_hidden"
+const val PRESS_BACK_TWICE = "press_back_twice"
+const val HOME_FOLDER = "home_folder"
+const val TEMPORARILY_SHOW_HIDDEN = "temporarily_show_hidden"
+const val IS_ROOT_AVAILABLE = "is_root_available"
+const val ENABLE_ROOT_ACCESS = "enable_root_access"
+const val EDITOR_TEXT_ZOOM = "editor_text_zoom"
+const val VIEW_TYPE_PREFIX = "view_type_folder_"
+const val FILE_COLUMN_CNT = "file_column_cnt"
+const val FILE_LANDSCAPE_COLUMN_CNT = "file_landscape_column_cnt"
+const val DISPLAY_FILE_NAMES = "display_file_names"
+const val SHOW_TABS = "show_tabs"
+const val WAS_STORAGE_ANALYSIS_TAB_ADDED = "was_storage_analysis_tab_added"
+
+// open as
+const val OPEN_AS_DEFAULT = 0
+const val OPEN_AS_TEXT = 1
+const val OPEN_AS_IMAGE = 2
+const val OPEN_AS_AUDIO = 3
+const val OPEN_AS_VIDEO = 4
+const val OPEN_AS_OTHER = 5
+
+const val ALL_TABS_MASK = TAB_FILES or TAB_RECENT_FILES or TAB_STORAGE_ANALYSIS
+
+const val IMAGES = "images"
+const val VIDEOS = "videos"
+const val AUDIO = "audio"
+const val DOCUMENTS = "documents"
+const val ARCHIVES = "archives"
+const val OTHERS = "others"
+const val SHOW_MIMETYPE = "show_mimetype"
+
+const val VOLUME_NAME = "volume_name"
+const val PRIMARY_VOLUME_NAME = "external_primary"
+
+// what else should we count as an audio except "audio/*" mimetype
+val extraAudioMimeTypes = arrayListOf("application/ogg")
+val extraDocumentMimeTypes = arrayListOf(
+    "application/pdf",
+    "application/msword",
+    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
+    "application/javascript"
+)
+
+val archiveMimeTypes = arrayListOf(
+    "application/zip",
+    "application/octet-stream",
+    "application/json",
+    "application/x-tar",
+    "application/x-rar-compressed",
+    "application/x-zip-compressed",
+    "application/x-7z-compressed",
+    "application/x-compressed",
+    "application/x-gzip",
+    "application/java-archive",
+    "multipart/x-zip"
+)
+
+fun getListItemsFromFileDirItems(fileDirItems: ArrayList<FileDirItem>): ArrayList<ListItem> {
+    val listItems = ArrayList<ListItem>()
+    fileDirItems.forEach {
+        val listItem = ListItem(it.path, it.name, false, 0, it.size, it.modified, false, false)
+        listItems.add(listItem)
+    }
+    return listItems
+}

+ 357 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/CryptoHelper.kt

@@ -0,0 +1,357 @@
+package org.fossify.filemanager.helpers
+
+import org.bouncycastle.crypto.generators.SCrypt
+import java.io.File
+import java.io.RandomAccessFile
+import java.security.SecureRandom
+import java.util.zip.CRC32
+import javax.crypto.Mac
+import javax.crypto.spec.SecretKeySpec
+
+class NotAFileException : Exception()
+class AlreadyEncryptedException : Exception()
+class NotEncryptedException : Exception()
+class FileCorruptedException : Exception()
+class TargetFileExistsException : Exception()
+class InvalidPasswordException : Exception()
+
+object CryptoHelper {
+    const val DEFAULT_CHUNK_MB = 8
+    const val LOCKED_SUFFIX = ".lockx"
+    const val TRAILER_SIZE = 80
+
+    private const val MAGIC = "FMLKv1!!"
+    private const val VERSION = 1
+    private const val SALT_SIZE = 16
+    private const val NONCE_SIZE = 16
+    private const val VERIFIER_SIZE = 16
+    private const val IO_CHUNK_SIZE = 4 * 1024 * 1024
+    private const val SCRYPT_N = 1 shl 14
+    private const val SCRYPT_R = 8
+    private const val SCRYPT_P = 1
+    private const val DERIVED_KEY_LENGTH = 64
+    private const val HMAC_BLOCK_SIZE = 32
+
+    fun isEncrypted(file: File): Boolean {
+        val meta = readTrailer(file) ?: return false
+        return meta.originalSize + TRAILER_SIZE == file.length()
+    }
+
+    fun lockedName(path: String): String =
+        if (path.endsWith(LOCKED_SUFFIX)) path else "$path$LOCKED_SUFFIX"
+
+    fun unlockedName(path: String): String =
+        if (path.endsWith(LOCKED_SUFFIX)) path.removeSuffix(LOCKED_SUFFIX) else path
+
+    private fun deriveKeys(password: String, salt: ByteArray): Pair<ByteArray, ByteArray> {
+        val dk = SCrypt.generate(
+            password.toByteArray(Charsets.UTF_8),
+            salt,
+            SCRYPT_N,
+            SCRYPT_R,
+            SCRYPT_P,
+            DERIVED_KEY_LENGTH
+        )
+        return dk.sliceArray(0..31) to dk.sliceArray(32..63)
+    }
+
+    private fun buildVerifier(checkKey: ByteArray): ByteArray {
+        return hmacSha256(checkKey, "FMLK-PASSWORD-CHECK".toByteArray(Charsets.UTF_8))
+            .take(VERIFIER_SIZE)
+            .toByteArray()
+    }
+
+    private fun buildTrailer(
+        chunkSize: Long,
+        originalSize: Long,
+        salt: ByteArray,
+        nonce: ByteArray,
+        verifier: ByteArray
+    ): ByteArray {
+        val head = ByteArray(TRAILER_SIZE - 4)
+        var off = 0
+        for (b in MAGIC.toByteArray()) {
+            head[off++] = b
+        }
+        head[off++] = VERSION.toByte()
+        for (i in 0 until 3) {
+            head[off++] = 0
+        }
+        packBigEndian(head, off, chunkSize)
+        off += 8
+        packBigEndian(head, off, originalSize)
+        off += 8
+        salt.copyInto(head, off)
+        off += SALT_SIZE
+        nonce.copyInto(head, off)
+        off += NONCE_SIZE
+        verifier.copyInto(head, off)
+
+        val crc = crc32(head)
+        val trailer = ByteArray(TRAILER_SIZE)
+        head.copyInto(trailer)
+        packBigEndian4(trailer, TRAILER_SIZE - 4, crc)
+        return trailer
+    }
+
+    fun readTrailer(file: File): TrailerMeta? {
+        if (file.length() < TRAILER_SIZE) {
+            return null
+        }
+        val raw = ByteArray(TRAILER_SIZE)
+        file.inputStream().use { input ->
+            input.skip(file.length() - TRAILER_SIZE)
+            var total = 0
+            while (total < raw.size) {
+                val n = input.read(raw, total, raw.size - total)
+                if (n <= 0) {
+                    break
+                }
+                total += n
+            }
+        }
+        return parseTrailer(raw)
+    }
+
+    data class TrailerMeta(
+        val chunkSize: Long,
+        val originalSize: Long,
+        val salt: ByteArray,
+        val nonce: ByteArray,
+        val verifier: ByteArray
+    )
+
+    private fun parseTrailer(raw: ByteArray): TrailerMeta? {
+        if (raw.size != TRAILER_SIZE) {
+            return null
+        }
+        var off = 0
+        val magic = raw.sliceArray(off until off + 8).toString(Charsets.UTF_8)
+        off += 8
+        if (magic != MAGIC) {
+            return null
+        }
+        val version = raw[off++].toInt()
+        if (version != VERSION) {
+            return null
+        }
+        off += 3
+        val chunkSize = unpackBigEndian(raw, off)
+        off += 8
+        val originalSize = unpackBigEndian(raw, off)
+        off += 8
+        val salt = raw.sliceArray(off until off + SALT_SIZE)
+        off += SALT_SIZE
+        val nonce = raw.sliceArray(off until off + NONCE_SIZE)
+        off += NONCE_SIZE
+        val verifier = raw.sliceArray(off until off + VERIFIER_SIZE)
+        off += VERIFIER_SIZE
+        val storedCrc = unpackBigEndian4(raw, off)
+        val expectedCrc = crc32(raw.copyOfRange(0, TRAILER_SIZE - 4))
+        if (storedCrc != expectedCrc) {
+            return null
+        }
+        return TrailerMeta(chunkSize, originalSize, salt, nonce, verifier)
+    }
+
+    fun encryptFile(file: File, password: String, chunkMb: Int = DEFAULT_CHUNK_MB) {
+        if (!file.exists() || !file.isFile) {
+            throw NotAFileException()
+        }
+        if (isEncrypted(file)) {
+            throw AlreadyEncryptedException()
+        }
+        if (file.length() == 0L) {
+            throw NotAFileException()
+        }
+
+        val originalSize = file.length()
+        val lockedPath = lockedName(file.absolutePath)
+        val lockedFile = File(lockedPath)
+
+        if (lockedFile.exists() && lockedPath != file.absolutePath) {
+            throw TargetFileExistsException()
+        }
+
+        val chunkSize = chunkMb.toLong() * 1024 * 1024
+        val encryptLength = minOf(chunkSize, originalSize)
+
+        val salt = ByteArray(SALT_SIZE).also { SecureRandom().nextBytes(it) }
+        val nonce = ByteArray(NONCE_SIZE).also { SecureRandom().nextBytes(it) }
+        val (streamKey, checkKey) = deriveKeys(password, salt)
+        val verifier = buildVerifier(checkKey)
+        val trailer = buildTrailer(chunkSize, originalSize, salt, nonce, verifier)
+
+        RandomAccessFile(file, "rw").use { raf ->
+            var processed = 0L
+            var blockOffset = 0
+            val buffer = ByteArray(minOf(IO_CHUNK_SIZE, encryptLength.toInt()))
+
+            while (processed < encryptLength) {
+                val remaining = encryptLength - processed
+                val readSize = minOf(buffer.size.toLong(), remaining).toInt()
+
+                raf.seek(processed)
+                val bytesRead = raf.read(buffer, 0, readSize)
+                if (bytesRead <= 0) {
+                    break
+                }
+
+                val plain = buffer.copyOfRange(0, bytesRead)
+                val cipher = xorBytes(plain, streamKey, nonce, blockOffset)
+
+                raf.seek(processed)
+                raf.write(cipher)
+
+                processed += bytesRead
+                blockOffset += (bytesRead + HMAC_BLOCK_SIZE - 1) / HMAC_BLOCK_SIZE
+            }
+
+            raf.seek(originalSize)
+            raf.write(trailer)
+        }
+
+        if (lockedPath != file.absolutePath) {
+            if (!file.renameTo(lockedFile)) {
+                file.copyTo(lockedFile, overwrite = true)
+                file.delete()
+            }
+        }
+    }
+
+    fun decryptFile(file: File, password: String) {
+        if (!file.exists() || !file.isFile) {
+            throw NotAFileException()
+        }
+
+        val meta = readTrailer(file) ?: throw NotEncryptedException()
+        if (meta.originalSize + TRAILER_SIZE != file.length()) {
+            throw FileCorruptedException()
+        }
+
+        val unlockedPath = unlockedName(file.absolutePath)
+        val unlockedFile = File(unlockedPath)
+
+        if (unlockedFile.exists() && unlockedPath != file.absolutePath) {
+            throw TargetFileExistsException()
+        }
+
+        val (streamKey, checkKey) = deriveKeys(password, meta.salt)
+        val verifier = buildVerifier(checkKey)
+        if (!verifier.contentEquals(meta.verifier)) {
+            throw InvalidPasswordException()
+        }
+
+        val decryptLength = minOf(meta.chunkSize, meta.originalSize)
+
+        RandomAccessFile(file, "rw").use { raf ->
+            var processed = 0L
+            var blockOffset = 0
+            val buffer = ByteArray(minOf(IO_CHUNK_SIZE, decryptLength.toInt()))
+
+            while (processed < decryptLength) {
+                val remaining = decryptLength - processed
+                val readSize = minOf(buffer.size.toLong(), remaining).toInt()
+
+                raf.seek(processed)
+                val bytesRead = raf.read(buffer, 0, readSize)
+                if (bytesRead <= 0) {
+                    break
+                }
+
+                val cipher = buffer.copyOfRange(0, bytesRead)
+                val plain = xorBytes(cipher, streamKey, meta.nonce, blockOffset)
+
+                raf.seek(processed)
+                raf.write(plain)
+
+                processed += bytesRead
+                blockOffset += (bytesRead + HMAC_BLOCK_SIZE - 1) / HMAC_BLOCK_SIZE
+            }
+
+            raf.setLength(meta.originalSize)
+        }
+
+        if (unlockedPath != file.absolutePath) {
+            if (!file.renameTo(unlockedFile)) {
+                file.copyTo(unlockedFile, overwrite = true)
+                file.delete()
+            }
+        }
+    }
+
+    private fun xorBytes(data: ByteArray, key: ByteArray, nonce: ByteArray, blockOffset: Int): ByteArray {
+        if (data.isEmpty()) {
+            return ByteArray(0)
+        }
+        val out = ByteArray(data.size)
+        var i = 0
+        while (i < data.size) {
+            val blockSize = minOf(HMAC_BLOCK_SIZE, data.size - i)
+            val counter = (blockOffset + i / HMAC_BLOCK_SIZE).toLong().toBEBytes(8)
+            val combined = ByteArray(nonce.size + counter.size)
+            nonce.copyInto(combined, 0)
+            counter.copyInto(combined, nonce.size)
+            val keyStream = hmacSha256(key, combined)
+            for (j in 0 until blockSize) {
+                out[i + j] = ((data[i + j].toInt() xor keyStream[j].toInt()) and 0xFF).toByte()
+            }
+            i += blockSize
+        }
+        return out
+    }
+
+    private fun Long.toBEBytes(size: Int): ByteArray {
+        val bytes = ByteArray(size)
+        var value = this
+        for (i in size - 1 downTo 0) {
+            bytes[i] = (value and 0xFFL).toByte()
+            value = value ushr 8
+        }
+        return bytes
+    }
+
+    private fun hmacSha256(key: ByteArray, data: ByteArray): ByteArray {
+        val mac = Mac.getInstance("HmacSHA256")
+        mac.init(SecretKeySpec(key, "HmacSHA256"))
+        return mac.doFinal(data)
+    }
+
+    private fun packBigEndian4(buf: ByteArray, offset: Int, value: Long) {
+        var v = value
+        for (i in 3 downTo 0) {
+            buf[offset + i] = (v and 0xFFL).toByte()
+            v = v shr 8
+        }
+    }
+
+    private fun unpackBigEndian4(buf: ByteArray, offset: Int): Long {
+        var result = 0L
+        for (i in offset until offset + 4) {
+            result = (result shl 8) or (buf[i].toLong() and 0xFFL)
+        }
+        return result
+    }
+
+    private fun packBigEndian(buf: ByteArray, offset: Int, value: Long) {
+        var v = value
+        for (i in 7 downTo 0) {
+            buf[offset + i] = (v and 0xFFL).toByte()
+            v = v shr 8
+        }
+    }
+
+    private fun unpackBigEndian(buf: ByteArray, offset: Int): Long {
+        var result = 0L
+        for (i in offset until offset + 8) {
+            result = (result shl 8) or (buf[i].toLong() and 0xFFL)
+        }
+        return result
+    }
+
+    private fun crc32(data: ByteArray): Long {
+        val crc = CRC32()
+        crc.update(data)
+        return crc.value
+    }
+}

+ 299 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/helpers/RootHelpers.kt

@@ -0,0 +1,299 @@
+package org.fossify.filemanager.helpers
+
+import android.app.Activity
+import com.stericson.RootShell.execution.Command
+import com.stericson.RootTools.RootTools
+import org.fossify.commons.extensions.areDigitsOnly
+import org.fossify.commons.extensions.showErrorToast
+import org.fossify.commons.extensions.toast
+import org.fossify.commons.helpers.SORT_BY_SIZE
+import org.fossify.commons.models.FileDirItem
+import org.fossify.filemanager.R
+import org.fossify.filemanager.extensions.config
+import org.fossify.filemanager.models.ListItem
+import java.io.File
+
+class RootHelpers(val activity: Activity) {
+    fun askRootIfNeeded(callback: (success: Boolean) -> Unit) {
+        val cmd = "ls -lA"
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                callback(true)
+                super.commandOutput(id, line)
+            }
+        }
+
+        try {
+            RootTools.getShell(true).add(command)
+        } catch (exception: Exception) {
+            activity.showErrorToast(exception)
+            callback(false)
+        }
+    }
+
+    fun getFiles(path: String, callback: (originalPath: String, listItems: ArrayList<ListItem>) -> Unit) {
+        getFullLines(path) {
+            val fullLines = it
+
+            val files = ArrayList<ListItem>()
+            val hiddenArgument = if (activity.config.shouldShowHidden()) "-A " else ""
+            val cmd = "ls $hiddenArgument$path"
+
+            val command = object : Command(0, cmd) {
+                override fun commandOutput(id: Int, line: String) {
+                    val file = File(path, line)
+                    val fullLine = fullLines.firstOrNull { it.endsWith(" $line") }
+                    val isDirectory = fullLine?.startsWith('d') ?: file.isDirectory
+                    val fileDirItem = ListItem(file.absolutePath, line, isDirectory, 0, 0, 0, false, false)
+                    files.add(fileDirItem)
+                    super.commandOutput(id, line)
+                }
+
+                override fun commandCompleted(id: Int, exitcode: Int) {
+                    if (files.isEmpty()) {
+                        callback(path, files)
+                    } else {
+                        getChildrenCount(files, path, callback)
+                    }
+
+                    super.commandCompleted(id, exitcode)
+                }
+            }
+
+            runCommand(command)
+        }
+    }
+
+    private fun getFullLines(path: String, callback: (ArrayList<String>) -> Unit) {
+        val fullLines = ArrayList<String>()
+        val hiddenArgument = if (activity.config.shouldShowHidden()) "-Al " else "-l "
+        val cmd = "ls $hiddenArgument$path"
+
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                fullLines.add(line)
+                super.commandOutput(id, line)
+            }
+
+            override fun commandCompleted(id: Int, exitcode: Int) {
+                callback(fullLines)
+                super.commandCompleted(id, exitcode)
+            }
+        }
+
+        runCommand(command)
+    }
+
+    private fun getChildrenCount(files: ArrayList<ListItem>, path: String, callback: (originalPath: String, listItems: ArrayList<ListItem>) -> Unit) {
+        val hiddenArgument = if (activity.config.shouldShowHidden()) "-A " else ""
+        var cmd = ""
+        files.filter { it.isDirectory }.forEach {
+            cmd += "ls $hiddenArgument${it.path} |wc -l;"
+        }
+        cmd = cmd.trimEnd(';') + " | cat"
+
+        val lines = ArrayList<String>()
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                lines.add(line)
+                super.commandOutput(id, line)
+            }
+
+            override fun commandCompleted(id: Int, exitcode: Int) {
+                files.filter { it.isDirectory }.forEachIndexed { index, fileDirItem ->
+                    val childrenCount = lines[index]
+                    if (childrenCount.areDigitsOnly()) {
+                        fileDirItem.children = childrenCount.toInt()
+                    }
+                }
+
+                if (activity.config.getFolderSorting(path) and SORT_BY_SIZE == 0) {
+                    callback(path, files)
+                } else {
+                    getFileSizes(files, path, callback)
+                }
+                super.commandCompleted(id, exitcode)
+            }
+        }
+
+        runCommand(command)
+    }
+
+    private fun getFileSizes(files: ArrayList<ListItem>, path: String, callback: (originalPath: String, listItems: ArrayList<ListItem>) -> Unit) {
+        var cmd = ""
+        files.filter { !it.isDirectory }.forEach {
+            cmd += "stat -t ${it.path};"
+        }
+
+        val lines = ArrayList<String>()
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                lines.add(line)
+                super.commandOutput(id, line)
+            }
+
+            override fun commandCompleted(id: Int, exitcode: Int) {
+                files.filter { !it.isDirectory }.forEachIndexed { index, fileDirItem ->
+                    var line = lines[index]
+                    if (line.isNotEmpty() && line != "0") {
+                        if (line.length >= fileDirItem.path.length) {
+                            line = line.substring(fileDirItem.path.length).trim()
+                            val size = line.split(" ")[0]
+                            if (size.areDigitsOnly()) {
+                                fileDirItem.size = size.toLong()
+                            }
+                        }
+                    }
+                }
+
+                callback(path, files)
+                super.commandCompleted(id, exitcode)
+            }
+        }
+
+        runCommand(command)
+    }
+
+    private fun runCommand(command: Command) {
+        try {
+            RootTools.getShell(true).add(command)
+        } catch (e: Exception) {
+            activity.showErrorToast(e)
+        }
+    }
+
+    fun createFileFolder(path: String, isFile: Boolean, callback: (success: Boolean) -> Unit) {
+        if (!RootTools.isRootAvailable()) {
+            activity.toast(R.string.rooted_device_only)
+            return
+        }
+
+        tryMountAsRW(path) {
+            val mountPoint = it
+            val targetPath = path.trim('/')
+            val mainCommand = if (isFile) "touch" else "mkdir"
+            val cmd = "$mainCommand \"/$targetPath\""
+            val command = object : Command(0, cmd) {
+                override fun commandCompleted(id: Int, exitcode: Int) {
+                    callback(exitcode == 0)
+                    mountAsRO(mountPoint)
+                    super.commandCompleted(id, exitcode)
+                }
+            }
+
+            runCommand(command)
+        }
+    }
+
+    private fun mountAsRO(mountPoint: String?) {
+        if (mountPoint != null) {
+            val cmd = "umount -r \"$mountPoint\""
+            val command = object : Command(0, cmd) {}
+            runCommand(command)
+        }
+    }
+
+    // inspired by Amaze File Manager
+    private fun tryMountAsRW(path: String, callback: (mountPoint: String?) -> Unit) {
+        val mountPoints = ArrayList<String>()
+        val cmd = "mount"
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                mountPoints.add(line)
+                super.commandOutput(id, line)
+            }
+
+            override fun commandCompleted(id: Int, exitcode: Int) {
+                var mountPoint = ""
+                var types: String? = null
+                for (line in mountPoints) {
+                    val words = line.split(" ").filter { it.isNotEmpty() }
+
+                    if (path.contains(words[2])) {
+                        if (words[2].length > mountPoint.length) {
+                            mountPoint = words[2]
+                            types = words[5]
+                        }
+                    }
+                }
+
+                if (mountPoint.isNotEmpty() && types != null) {
+                    if (types.contains("rw")) {
+                        callback(null)
+                    } else if (types.contains("ro")) {
+                        val mountCommand = "mount -o rw,remount $mountPoint"
+                        mountAsRW(mountCommand) {
+                            callback(it)
+                        }
+                    }
+                }
+
+                super.commandCompleted(id, exitcode)
+            }
+        }
+
+        runCommand(command)
+    }
+
+    private fun mountAsRW(cmd: String, callback: (mountPoint: String) -> Unit) {
+        val command = object : Command(0, cmd) {
+            override fun commandOutput(id: Int, line: String) {
+                callback(line)
+                super.commandOutput(id, line)
+            }
+        }
+
+        runCommand(command)
+    }
+
+    fun deleteFiles(fileDirItems: ArrayList<FileDirItem>) {
+        if (!RootTools.isRootAvailable()) {
+            activity.toast(R.string.rooted_device_only)
+            return
+        }
+
+        tryMountAsRW(fileDirItems.first().path) {
+            fileDirItems.forEach {
+                val targetPath = it.path.trim('/')
+                if (targetPath.isEmpty()) {
+                    return@forEach
+                }
+
+                val mainCommand = if (it.isDirectory) "rm -rf" else "rm"
+                val cmd = "$mainCommand \"/$targetPath\""
+                val command = object : Command(0, cmd) {}
+
+                runCommand(command)
+            }
+        }
+    }
+
+    fun copyMoveFiles(fileDirItems: ArrayList<FileDirItem>, destination: String, isCopyOperation: Boolean, successes: Int = 0, callback: (Int) -> Unit) {
+        if (!RootTools.isRootAvailable()) {
+            activity.toast(R.string.rooted_device_only)
+            return
+        }
+
+        val fileDirItem = fileDirItems.first()
+        val mainCommand = if (isCopyOperation) {
+            if (fileDirItem.isDirectory) "cp -R" else "cp"
+        } else {
+            "mv"
+        }
+
+        val cmd = "$mainCommand \"${fileDirItem.path}\" \"$destination\""
+        val command = object : Command(0, cmd) {
+            override fun commandCompleted(id: Int, exitcode: Int) {
+                val newSuccesses = successes + (if (exitcode == 0) 1 else 0)
+                if (fileDirItems.size == 1) {
+                    callback(newSuccesses)
+                } else {
+                    fileDirItems.removeAt(0)
+                    copyMoveFiles(fileDirItems, destination, isCopyOperation, newSuccesses, callback)
+                }
+                super.commandCompleted(id, exitcode)
+            }
+        }
+        runCommand(command)
+    }
+}

+ 21 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/interfaces/ItemOperationsListener.kt

@@ -0,0 +1,21 @@
+package org.fossify.filemanager.interfaces
+
+import org.fossify.commons.models.FileDirItem
+
+interface ItemOperationsListener {
+    fun refreshFragment()
+
+    fun deleteFiles(files: ArrayList<FileDirItem>)
+
+    fun selectedPaths(paths: ArrayList<String>)
+
+    fun setupDateTimeFormat()
+
+    fun setupFontSize()
+
+    fun toggleFilenameVisibility()
+
+    fun columnCountChanged()
+
+    fun finishActMode()
+}

+ 91 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/views/GestureEditText.kt

@@ -0,0 +1,91 @@
+package org.fossify.filemanager.views
+
+import android.content.Context
+import android.util.AttributeSet
+import android.util.TypedValue
+import android.view.MotionEvent
+import androidx.appcompat.widget.AppCompatEditText
+import com.alexvasilkov.gestures.GestureController
+import com.alexvasilkov.gestures.State
+import com.alexvasilkov.gestures.views.interfaces.GestureView
+import org.fossify.commons.extensions.getProperPrimaryColor
+import org.fossify.commons.extensions.getProperTextColor
+import org.fossify.commons.extensions.onGlobalLayout
+import org.fossify.filemanager.extensions.config
+
+// inspired by
+// https://github.com/alexvasilkov/GestureViews/blob/f0a4c266e31dcad23bd0d9013531bc1c501b9c9f/sample/src/main/java/com/alexvasilkov/gestures/sample/ex/custom/text/GestureTextView.java
+class GestureEditText : AppCompatEditText, GestureView {
+    constructor(context: Context) : super(context)
+
+    constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
+
+    constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(context, attrs, defStyle)
+
+    private val controller: GestureController = GestureController(this)
+    private var origSize = 0f
+    private var size = 0f
+
+    init {
+        controller.settings.setOverzoomFactor(1f).isPanEnabled = false
+        controller.addOnStateChangeListener(object : GestureController.OnStateChangeListener {
+            override fun onStateChanged(state: State) {
+                applyState(state)
+            }
+
+            override fun onStateReset(oldState: State, newState: State) {
+                applyState(newState)
+            }
+        })
+
+        origSize = textSize
+        setTextColor(context.getProperTextColor())
+        setLinkTextColor(context.getProperPrimaryColor())
+
+        val storedTextZoom = context.config.editorTextZoom
+        if (storedTextZoom != 0f) {
+            onGlobalLayout {
+                controller.state.zoomTo(storedTextZoom, width / 2f, height / 2f)
+                controller.updateState()
+            }
+        }
+    }
+
+    override fun getController() = controller
+
+    override fun onTouchEvent(event: MotionEvent): Boolean {
+        controller.onTouch(this, event)
+        return super.onTouchEvent(event)
+    }
+
+    override fun setTextSize(size: Float) {
+        super.setTextSize(size)
+        origSize = textSize
+        applyState(controller.state)
+    }
+
+    override fun setTextSize(unit: Int, size: Float) {
+        super.setTextSize(unit, size)
+        origSize = textSize
+        applyState(controller.state)
+    }
+
+    override fun onSizeChanged(width: Int, height: Int, oldWidth: Int, oldHeight: Int) {
+        super.onSizeChanged(width, height, oldWidth, oldHeight)
+        controller.settings.setViewport(width, height).setImage(width, height)
+        controller.updateState()
+    }
+
+    private fun applyState(state: State) {
+        var size = origSize * state.zoom
+        val maxSize = origSize * controller.stateController.getMaxZoom(state)
+        size = Math.max(origSize, Math.min(size, maxSize))
+
+        size = Math.round(size).toFloat()
+        if (!State.equals(this.size, size)) {
+            this.size = size
+            super.setTextSize(TypedValue.COMPLEX_UNIT_PX, size)
+            context.config.editorTextZoom = state.zoom
+        }
+    }
+}

+ 46 - 0
File-Manager-1.6.4/app/src/main/kotlin/org/fossify/filemanager/views/MySwipeRefreshLayout.kt

@@ -0,0 +1,46 @@
+package org.fossify.filemanager.views
+
+import android.content.Context
+import android.util.AttributeSet
+import android.view.MotionEvent
+import android.view.View
+import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
+
+class MySwipeRefreshLayout @JvmOverloads constructor(
+    context: Context,
+    attrs: AttributeSet? = null,
+) : SwipeRefreshLayout(context, attrs) {
+    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
+        // Setting "isEnabled = false" is recommended for users of this ViewGroup
+        // who who are not interested in the pull to refresh functionality
+        // Setting this easily avoids executing code needlessly before the check for "canChildScrollUp".
+        if (!isEnabled) {
+            return false
+        }
+        return super.onInterceptTouchEvent(ev)
+    }
+
+    override fun onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int): Boolean {
+        // Ignoring nested scrolls from descendants.
+        // Allowing descendants to trigger nested scrolls would defeat the purpose of this class
+        // and result in pull to refresh to happen for all movements on the Y axis
+        // (even as part of scale/quick scale gestures) while also doubling the throbber with the overscroll shadow.
+        return if (isEnabled) {
+            return false
+        } else {
+            super.onStartNestedScroll(child, target, nestedScrollAxes)
+        }
+    }
+
+    override fun canChildScrollUp(): Boolean {
+        val directChild = getChildAt(0)
+        return when (directChild) {
+            is RecyclerViewFastScroller -> {
+                val innerRecyclerView = directChild.getChildAt(0)
+                innerRecyclerView?.canScrollVertically(-1) == true
+            }
+            else -> super.canChildScrollUp()
+        }
+    }
+}

+ 7 - 0
File-Manager-1.6.4/app/src/main/res/drawable/gradient_background_flipped.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <gradient
+        android:angle="270"
+        android:endColor="@android:color/transparent"
+        android:startColor="@color/gradient_grey_start"/>
+</shape>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_arrow_down_vector.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:tint="#FFFFFF" android:viewportWidth="24" android:viewportHeight="24">
+    <path android:fillColor="@android:color/white" android:pathData="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_arrow_up_vector.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:tint="#FFFFFF" android:viewportWidth="24" android:viewportHeight="24">
+    <path android:fillColor="@android:color/white" android:pathData="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_decompress_vector.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
+    <path android:pathData="M16.3 10.3c-0.39-0.39-1.01-0.39-1.4 0L13 12.2V3c0-0.55-0.45-1-1-1s-1 0.45-1 1v9.2l-1.9-1.9c-0.39-0.39-1.01-0.39-1.4 0-0.39 0.39-0.39 1.01 0 1.4l3.59 3.59c0.39 0.39 1.02 0.39 1.41 0l3.6-3.59c0.39-0.39 0.39-1.01 0-1.4zM5 20v-7c0-0.55-0.45-1-1-1s-1 0.45-1 1v7c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-7c0-0.55-0.45-1-1-1s-1 0.45-1 1v7z" android:fillColor="#FFFFFFFF"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_home_vector.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
+    <path android:pathData="M10 19v-5h4v5c0 0.55 0.45 1 1 1h3c0.55 0 1-0.45 1-1v-7h1.7c0.46 0 0.68-0.57 0.33-0.87L12.67 3.6c-0.38-0.34-0.96-0.34-1.34 0l-8.36 7.53C2.63 11.43 2.84 12 3.3 12H5v7c0 0.55 0.45 1 1 1h3c0.55 0 1-0.45 1-1z" android:fillColor="#FFFFFFFF"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_launcher_foreground.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp" android:viewportWidth="512" android:viewportHeight="512">
+    <path android:fillColor="#ffffff" android:pathData="M353.72 215.26H209.59q-15.79 0-27.5 9.93t-11.71 25.21v66.72l20.12-66.97q2.04-6.62 7.51-10.57 5.48-3.95 12.1-3.95h131.4q10.44 0 16.43 8.28 5.98 8.28 3.18 17.95l-18.33 61.12q-2.04 6.62-7.51 10.57-5.48 3.95-12.1 3.95H170.37q-8.4 0-14.39-5.98-5.98-6-5.98-14.4V194.88q0-8.4 5.98-14.39 5.98-5.98 14.39-5.98h52.71q4.07 0 7.77 1.53 3.69 1.53 6.49 4.33l14.52 14.52h81.49q8.4 0 14.39 5.98 5.98 5.98 5.98 14.39z" android:strokeWidth="0.254652"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_launcher_monochrome.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp" android:viewportWidth="512" android:viewportHeight="512">
+    <path android:fillColor="#ffffff" android:pathData="M353.72 215.26H209.59q-15.79 0-27.5 9.93t-11.71 25.21v66.72l20.12-66.97q2.04-6.62 7.51-10.57 5.48-3.95 12.1-3.95h131.4q10.44 0 16.43 8.28 5.98 8.28 3.18 17.95l-18.33 61.12q-2.04 6.62-7.51 10.57-5.48 3.95-12.1 3.95H170.37q-8.4 0-14.39-5.98-5.98-6-5.98-14.4V194.88q0-8.4 5.98-14.39 5.98-5.98 14.39-5.98h52.71q4.07 0 7.77 1.53 3.69 1.53 6.49 4.33l14.52 14.52h81.49q8.4 0 14.39 5.98 5.98 5.98 5.98 14.39z" android:strokeWidth="0.254652"/>
+</vector>

+ 3 - 0
File-Manager-1.6.4/app/src/main/res/drawable/ic_storage_vector.xml

@@ -0,0 +1,3 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
+    <path android:pathData="M4 20h16c1.1 0 2-0.9 2-2s-0.9-2-2-2H4c-1.1 0-2 0.9-2 2s0.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2s-0.9-2-2-2H4C2.9 4 2 4.9 2 6zm4 1H4V5h2v2zm-2 7h16c1.1 0 2-0.9 2-2s-0.9-2-2-2H4c-1.1 0-2 0.9-2 2s0.9 2 2 2zm0-3h2v2H4v-2z" android:fillColor="#FFFFFFFF"/>
+</vector>

+ 17 - 0
File-Manager-1.6.4/app/src/main/res/drawable/shortcut_folder.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:id="@+id/shortcut_folder_background">
+        <shape android:shape="oval">
+            <solid android:color="@color/color_primary" />
+        </shape>
+    </item>
+
+    <item
+        android:id="@+id/shortcut_folder_image"
+        android:bottom="@dimen/medium_margin"
+        android:drawable="@drawable/ic_folder_vector"
+        android:left="@dimen/medium_margin"
+        android:right="@dimen/medium_margin"
+        android:top="@dimen/medium_margin" />
+
+</layer-list>

+ 50 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_decompress.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/decompress_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/decompress_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/decompress_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:menu="@menu/menu_decompress"
+            app:title="@string/decompress"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <RelativeLayout
+        android:id="@+id/decompress_wrapper"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:fillViewport="true"
+        android:scrollbars="none"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <org.fossify.commons.views.MyRecyclerView
+            android:id="@+id/decompress_list"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:clipToPadding="false"
+            android:paddingTop="@dimen/small_margin"
+            android:scrollbars="none"
+            app:layoutManager="org.fossify.commons.views.MyLinearLayoutManager" />
+
+    </RelativeLayout>
+
+    <com.google.android.material.progressindicator.CircularProgressIndicator
+        android:id="@+id/progress_indicator"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:indeterminate="true"
+        android:visibility="gone" />
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 73 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_favorites.xml

@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/manage_favorites_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/manage_favorites_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/manage_favorites_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:menu="@menu/menu_favorites"
+            app:title="@string/manage_favorites"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <RelativeLayout
+        android:id="@+id/manage_favorites_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:fillViewport="true"
+        android:scrollbars="none"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <org.fossify.commons.views.MyRecyclerView
+            android:id="@+id/manage_favorites_list"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:clipToPadding="false"
+            app:layoutManager="org.fossify.commons.views.MyLinearLayoutManager"
+            tools:itemCount="4"
+            tools:listitem="@layout/item_manage_favorite" />
+
+        <org.fossify.commons.views.MyTextView
+            android:id="@+id/manage_favorites_placeholder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_centerHorizontal="true"
+            android:layout_marginBottom="@dimen/small_margin"
+            android:alpha="0.8"
+            android:gravity="center"
+            android:lineSpacingExtra="@dimen/tiny_margin"
+            android:paddingStart="@dimen/activity_margin"
+            android:paddingTop="@dimen/activity_margin"
+            android:paddingEnd="@dimen/activity_margin"
+            android:text="@string/favorites_activity_placeholder"
+            android:textSize="@dimen/bigger_text_size"
+            android:textStyle="italic"
+            android:visibility="gone" />
+
+        <org.fossify.commons.views.MyTextView
+            android:id="@+id/manage_favorites_placeholder_2"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_below="@+id/manage_favorites_placeholder"
+            android:layout_centerHorizontal="true"
+            android:background="@drawable/ripple_all_corners"
+            android:gravity="center"
+            android:padding="@dimen/normal_margin"
+            android:text="@string/add_favorites"
+            android:textSize="@dimen/bigger_text_size"
+            android:visibility="gone" />
+
+    </RelativeLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 35 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_main.xml

@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/main_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MySearchMenu
+        android:id="@+id/main_menu"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" />
+
+    <RelativeLayout
+        android:id="@+id/main_holder"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <org.fossify.commons.views.MyViewPager
+            android:id="@+id/main_view_pager"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:layout_above="@+id/main_tabs_holder" />
+
+        <com.google.android.material.tabs.TabLayout
+            android:id="@+id/main_tabs_holder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_alignParentBottom="true"
+            app:tabIndicator="@null"
+            app:tabMinWidth="150dp"
+            app:tabRippleColor="@null" />
+
+    </RelativeLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 78 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_mimetypes.xml

@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/mimetypes_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/mimetypes_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/mimetypes_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:menu="@menu/menu_mimetypes"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <RelativeLayout
+        android:id="@+id/mimetypes_holder"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:fillViewport="true"
+        android:scrollbars="none"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <org.fossify.commons.views.MyTextView
+            android:id="@+id/mimetypes_placeholder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_centerHorizontal="true"
+            android:alpha="0.8"
+            android:gravity="center"
+            android:paddingStart="@dimen/activity_margin"
+            android:paddingTop="@dimen/activity_margin"
+            android:paddingEnd="@dimen/activity_margin"
+            android:text="@string/no_items_found"
+            android:textSize="@dimen/bigger_text_size"
+            android:textStyle="italic"
+            android:visibility="gone" />
+
+        <org.fossify.commons.views.MyTextView
+            android:id="@+id/mimetypes_placeholder_2"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_below="@+id/mimetypes_placeholder"
+            android:layout_centerHorizontal="true"
+            android:alpha="0.8"
+            android:background="?attr/selectableItemBackground"
+            android:gravity="center"
+            android:padding="@dimen/activity_margin"
+            android:text="@string/type_2_characters"
+            android:textSize="@dimen/bigger_text_size"
+            android:textStyle="italic"
+            android:visibility="gone" />
+
+        <com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
+            android:id="@+id/mimetypes_fastscroller"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content">
+
+            <org.fossify.commons.views.MyRecyclerView
+                android:id="@+id/mimetypes_list"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:clipToPadding="false"
+                android:layoutAnimation="@anim/layout_animation"
+                android:paddingTop="@dimen/small_margin"
+                android:scrollbars="none"
+                app:layoutManager="org.fossify.commons.views.MyGridLayoutManager" />
+
+        </com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
+    </RelativeLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 56 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_read_text.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/read_text_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/read_text_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/read_text_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:menu="@menu/menu_editor"
+            app:title="@string/file_editor"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <LinearLayout
+        android:id="@+id/read_text_wrapper"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:fillViewport="true"
+        android:orientation="vertical"
+        android:scrollbars="none"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <include
+            android:id="@+id/search_wrapper"
+            layout="@layout/search_bar" />
+
+        <androidx.core.widget.NestedScrollView
+            android:id="@+id/read_text_holder"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:fillViewport="true">
+
+            <org.fossify.filemanager.views.GestureEditText
+                android:id="@+id/read_text_view"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:background="@null"
+                android:gravity="top"
+                android:inputType="textMultiLine|textNoSuggestions"
+                android:padding="@dimen/medium_margin"
+                android:textCursorDrawable="@null"
+                android:textSize="@dimen/smaller_text_size" />
+
+        </androidx.core.widget.NestedScrollView>
+    </LinearLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 29 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_save_as.xml

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/activity_save_as_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/activity_save_as_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/activity_save_as_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:title="@string/save_as"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <RelativeLayout
+        android:id="@+id/activity_save_as_holder"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 364 - 0
File-Manager-1.6.4/app/src/main/res/layout/activity_settings.xml

@@ -0,0 +1,364 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/settings_coordinator"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <org.fossify.commons.views.MyAppBarLayout
+        android:id="@+id/settings_appbar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <com.google.android.material.appbar.MaterialToolbar
+            android:id="@+id/settings_toolbar"
+            android:layout_width="match_parent"
+            android:layout_height="?attr/actionBarSize"
+            android:background="@color/color_primary"
+            app:title="@string/settings"
+            app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
+
+    </org.fossify.commons.views.MyAppBarLayout>
+
+    <androidx.core.widget.NestedScrollView
+        android:id="@+id/settings_nested_scrollview"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:fillViewport="true"
+        android:scrollbars="none"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <LinearLayout
+            android:id="@+id/settings_holder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="vertical">
+
+            <TextView
+                android:id="@+id/settings_color_customization_section_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/color_customization" />
+
+            <androidx.constraintlayout.widget.ConstraintLayout
+                android:id="@+id/settings_color_customization_holder"
+                style="@style/SettingsHolderTextViewOneLinerStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_color_customization_label"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/customize_colors"
+                    app:layout_constraintStart_toStartOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+            </androidx.constraintlayout.widget.ConstraintLayout>
+
+            <include
+                android:id="@+id/settings_color_customization_divider"
+                layout="@layout/divider" />
+
+            <TextView
+                android:id="@+id/settings_general_settings_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/general_settings" />
+
+            <org.fossify.commons.views.PurchaseThankYouItem
+                android:id="@+id/settings_purchase_thank_you_holder"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"/>
+
+            <RelativeLayout
+                android:id="@+id/settings_use_english_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_use_english"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/use_english_language" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_language_holder"
+                style="@style/SettingsHolderTextViewStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_language_label"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/language" />
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_language"
+                    style="@style/SettingsTextValueStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_below="@+id/settings_language_label"
+                    tools:text="English" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_manage_favorites_holder"
+                style="@style/SettingsHolderTextViewOneLinerStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_manage_favorites"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/manage_favorites" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_manage_tabs_holder"
+                style="@style/SettingsHolderTextViewOneLinerStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_manage_tabs"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/manage_shown_tabs" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_change_date_time_format_holder"
+                style="@style/SettingsHolderTextViewOneLinerStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_change_date_time_format"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/change_date_and_time_format" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_font_size_holder"
+                style="@style/SettingsHolderTextViewStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_font_size_label"
+                    style="@style/SettingsTextLabelStyle"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/font_size" />
+
+                <org.fossify.commons.views.MyTextView
+                    android:id="@+id/settings_font_size"
+                    style="@style/SettingsTextValueStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_below="@+id/settings_font_size_label"
+                    tools:text="@string/medium" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_press_back_twice_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_press_back_twice"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/press_back_twice" />
+
+            </RelativeLayout>
+
+            <include
+                android:id="@+id/settings_general_settings_divider"
+                layout="@layout/divider" />
+
+            <TextView
+                android:id="@+id/settings_visibility_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/visibility" />
+
+            <RelativeLayout
+                android:id="@+id/settings_show_hidden_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_show_hidden"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/show_hidden_items" />
+
+            </RelativeLayout>
+
+            <include
+                android:id="@+id/settings_visibility_divider"
+                layout="@layout/divider" />
+
+            <TextView
+                android:id="@+id/settings_scrolling_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/scrolling" />
+
+            <RelativeLayout
+                android:id="@+id/settings_enable_pull_to_refresh_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_enable_pull_to_refresh"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/enable_pull_to_refresh" />
+
+            </RelativeLayout>
+
+            <include
+                android:id="@+id/settings_scrolling_divider"
+                layout="@layout/divider" />
+
+            <TextView
+                android:id="@+id/settings_file_operations_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/file_operations" />
+
+            <RelativeLayout
+                android:id="@+id/settings_keep_last_modified_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_keep_last_modified"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/keep_last_modified" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_skip_delete_confirmation_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_skip_delete_confirmation"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/skip_delete_confirmation" />
+
+            </RelativeLayout>
+
+            <include
+                android:id="@+id/settings_file_operations_divider"
+                layout="@layout/divider" />
+
+            <TextView
+                android:id="@+id/settings_security_label"
+                style="@style/SettingsSectionLabelStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/security" />
+
+            <RelativeLayout
+                android:id="@+id/settings_password_protection_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_password_protection"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/password_protect_hidden_items" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_app_password_protection_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_app_password_protection"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/password_protect_whole_app" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_file_deletion_password_protection_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_file_deletion_password_protection"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/password_protect_file_deletion" />
+
+            </RelativeLayout>
+
+            <RelativeLayout
+                android:id="@+id/settings_enable_root_access_holder"
+                style="@style/SettingsHolderSwitchStyle"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
+                <org.fossify.commons.views.MyMaterialSwitch
+                    android:id="@+id/settings_enable_root_access"
+                    style="@style/SettingsSwitchStyle"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/enable_root_access" />
+
+            </RelativeLayout>
+        </LinearLayout>
+    </androidx.core.widget.NestedScrollView>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 104 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_change_sorting.xml

@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/sorting_dialog_scrollview"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <LinearLayout
+        android:id="@+id/sorting_dialog_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="vertical"
+        android:paddingStart="@dimen/activity_margin"
+        android:paddingTop="@dimen/activity_margin"
+        android:paddingEnd="@dimen/activity_margin">
+
+        <RadioGroup
+            android:id="@+id/sorting_dialog_radio_sorting"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="@dimen/medium_margin">
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_name"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/name" />
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_size"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/size" />
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_last_modified"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/last_modified" />
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_extension"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/extension" />
+
+        </RadioGroup>
+
+        <include layout="@layout/divider" />
+
+        <RadioGroup
+            android:id="@+id/sorting_dialog_radio_order"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="@dimen/medium_margin"
+            android:paddingBottom="@dimen/medium_margin">
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_ascending"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/ascending" />
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/sorting_dialog_radio_descending"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/descending" />
+        </RadioGroup>
+
+        <include
+            android:id="@+id/use_for_this_folder_divider"
+            layout="@layout/divider" />
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/sorting_dialog_numeric_sorting"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="@dimen/small_margin"
+            android:paddingTop="@dimen/normal_margin"
+            android:paddingBottom="@dimen/normal_margin"
+            android:text="@string/sort_numeric_parts" />
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/sorting_dialog_use_for_this_folder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingTop="@dimen/normal_margin"
+            android:paddingBottom="@dimen/normal_margin"
+            android:text="@string/use_for_this_folder" />
+
+    </LinearLayout>
+</ScrollView>

+ 54 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_change_view_type.xml

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/change_view_type_dialog_scrollview"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <LinearLayout
+        android:id="@+id/change_view_type_dialog_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="vertical"
+        android:paddingStart="@dimen/activity_margin"
+        android:paddingTop="@dimen/activity_margin"
+        android:paddingEnd="@dimen/activity_margin">
+
+        <RadioGroup
+            android:id="@+id/change_view_type_dialog_radio"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="@dimen/medium_margin">
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/change_view_type_dialog_radio_grid"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/grid" />
+
+            <org.fossify.commons.views.MyCompatRadioButton
+                android:id="@+id/change_view_type_dialog_radio_list"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:paddingTop="@dimen/medium_margin"
+                android:paddingBottom="@dimen/medium_margin"
+                android:text="@string/list" />
+
+        </RadioGroup>
+
+        <include
+            android:id="@+id/use_for_this_folder_divider"
+            layout="@layout/divider" />
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/change_view_type_dialog_use_for_this_folder"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="@dimen/medium_margin"
+            android:paddingTop="@dimen/medium_margin"
+            android:paddingBottom="@dimen/medium_margin"
+            android:text="@string/use_for_this_folder" />
+
+    </LinearLayout>
+</ScrollView>

+ 74 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_compress_as.xml

@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/dialog_holder"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingStart="@dimen/activity_margin"
+    android:paddingTop="@dimen/medium_margin"
+    android:paddingEnd="@dimen/activity_margin">
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/folder_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/folder">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/folder"
+            style="@style/UnclickableEditText"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/filename_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/folder_hint"
+        android:hint="@string/filename_without_zip">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/filename_value"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:inputType="textCapSentences"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <org.fossify.commons.views.MyAppCompatCheckbox
+        android:id="@+id/password_protect"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/filename_hint"
+        android:layout_marginTop="@dimen/small_margin"
+        android:paddingTop="@dimen/normal_margin"
+        android:paddingBottom="@dimen/normal_margin"
+        android:text="@string/add_password" />
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/enter_password_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/password_protect"
+        android:hint="@string/password"
+        android:visibility="gone"
+        app:passwordToggleEnabled="true">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/password"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="@dimen/activity_margin"
+            android:inputType="textPassword"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/normal_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+</RelativeLayout>

+ 47 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_create_new.xml

@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/dialog_holder"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:paddingStart="@dimen/activity_margin"
+    android:paddingTop="@dimen/activity_margin"
+    android:paddingEnd="@dimen/activity_margin">
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/item_title_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/title">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/item_title"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:inputType="textCapSentences"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <RadioGroup
+        android:id="@+id/dialog_radio_group"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <org.fossify.commons.views.MyCompatRadioButton
+            android:id="@+id/dialog_radio_directory"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:checked="true"
+            android:text="@string/folder" />
+
+        <org.fossify.commons.views.MyCompatRadioButton
+            android:id="@+id/dialog_radio_file"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/file" />
+    </RadioGroup>
+</LinearLayout>

+ 44 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_insert_filename.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/insert_filename_holder"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:padding="@dimen/activity_margin">
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/insert_filename_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/filename">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/insert_filename_title"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:inputType="textCapSentences"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/insert_filename_extension_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/extension">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/insert_filename_extension_title"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:inputType="textCapSentences"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+</LinearLayout>

+ 41 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_manage_visible_tabs.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/manage_visible_tabs_scroll_view"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content">
+
+    <LinearLayout
+        android:id="@+id/manage_visible_tabs_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="vertical"
+        android:paddingStart="@dimen/activity_margin"
+        android:paddingTop="@dimen/activity_margin"
+        android:paddingEnd="@dimen/activity_margin">
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/manage_visible_tabs_files"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingTop="@dimen/activity_margin"
+            android:paddingBottom="@dimen/activity_margin"
+            android:text="@string/files_tab" />
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/manage_visible_tabs_recent_files"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingTop="@dimen/activity_margin"
+            android:paddingBottom="@dimen/activity_margin"
+            android:text="@string/recent_files_tab" />
+
+        <org.fossify.commons.views.MyAppCompatCheckbox
+            android:id="@+id/manage_visible_tabs_storage_analysis"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:paddingTop="@dimen/activity_margin"
+            android:paddingBottom="@dimen/activity_margin"
+            android:text="@string/storage_analysis" />
+
+    </LinearLayout>
+</ScrollView>

+ 57 - 0
File-Manager-1.6.4/app/src/main/res/layout/dialog_save_as.xml

@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/save_as_holder"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:padding="@dimen/activity_margin">
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/folder_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/path">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/folder_value"
+            style="@style/UnclickableEditText"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/filename_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/activity_margin"
+        android:hint="@string/filename">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/filename_value"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:inputType="textCapSentences"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+
+    <org.fossify.commons.views.MyTextInputLayout
+        android:id="@+id/extension_hint"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:hint="@string/extension">
+
+        <com.google.android.material.textfield.TextInputEditText
+            android:id="@+id/extension_value"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:singleLine="true"
+            android:textCursorDrawable="@null"
+            android:textSize="@dimen/bigger_text_size" />
+
+    </org.fossify.commons.views.MyTextInputLayout>
+</LinearLayout>

+ 33 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_decompression_list_file_dir.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/item_holder"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:background="?attr/selectableItemBackground"
+    android:paddingEnd="@dimen/activity_margin">
+
+    <ImageView
+        android:id="@+id/item_icon"
+        android:layout_width="@dimen/file_picker_icon_size"
+        android:layout_height="@dimen/file_picker_icon_size"
+        android:layout_centerVertical="true"
+        android:padding="@dimen/medium_margin"
+        android:src="@drawable/ic_folder_vector" />
+
+    <TextView
+        android:id="@+id/item_name"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_alignTop="@+id/item_icon"
+        android:layout_alignBottom="@+id/item_icon"
+        android:layout_toEndOf="@+id/item_icon"
+        android:ellipsize="end"
+        android:gravity="center_vertical"
+        android:maxLines="1"
+        android:paddingStart="@dimen/tiny_margin"
+        android:paddingTop="@dimen/small_margin"
+        android:textSize="@dimen/bigger_text_size"
+        tools:text="Directory" />
+
+</RelativeLayout>

+ 56 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_dir_grid.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/item_frame"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:background="?attr/selectableItemBackground"
+    android:clickable="true"
+    android:focusable="true"
+    android:foreground="@drawable/selector"
+    android:paddingStart="@dimen/small_margin"
+    android:paddingTop="@dimen/tiny_margin"
+    android:paddingEnd="@dimen/small_margin"
+    android:paddingBottom="@dimen/tiny_margin">
+
+    <RelativeLayout
+        android:id="@+id/item_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/medium_margin">
+
+        <ImageView
+            android:id="@+id/item_icon"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_centerHorizontal="true"
+            android:adjustViewBounds="true"
+            android:padding="@dimen/small_margin"
+            android:src="@drawable/ic_folder_vector" />
+
+        <TextView
+            android:id="@+id/item_name"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_below="@+id/item_icon"
+            android:ellipsize="middle"
+            android:gravity="center_horizontal"
+            android:paddingStart="@dimen/small_margin"
+            android:paddingEnd="@dimen/small_margin"
+            android:singleLine="true"
+            tools:text="Directory" />
+
+        <ImageView
+            android:id="@+id/item_check"
+            android:layout_width="@dimen/selection_check_size"
+            android:layout_height="@dimen/selection_check_size"
+            android:layout_alignEnd="@+id/item_icon"
+            android:layout_alignParentTop="true"
+            android:background="@drawable/circle_background"
+            android:contentDescription="@null"
+            android:padding="@dimen/tiny_margin"
+            android:src="@drawable/ic_check_vector"
+            android:visibility="gone" />
+
+    </RelativeLayout>
+</FrameLayout>

+ 5 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_empty.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/item_frame"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content" />

+ 72 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_file_dir_list.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/item_frame"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:layout_marginBottom="@dimen/tiny_margin"
+    android:paddingTop="@dimen/tiny_margin"
+    android:paddingBottom="@dimen/tiny_margin">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:id="@+id/item_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:paddingStart="@dimen/small_margin"
+        android:paddingEnd="@dimen/bigger_margin">
+
+        <ImageView
+            android:id="@+id/item_icon"
+            android:layout_width="@dimen/file_picker_icon_size"
+            android:layout_height="@dimen/file_picker_icon_size"
+            android:padding="@dimen/medium_margin"
+            android:src="@drawable/ic_folder_vector"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent" />
+
+        <TextView
+            android:id="@+id/item_name"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:ellipsize="middle"
+            android:maxLines="1"
+            android:paddingStart="@dimen/tiny_margin"
+            android:textSize="@dimen/normal_text_size"
+            app:layout_constraintBottom_toTopOf="@+id/item_details"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toEndOf="@id/item_icon"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintVertical_bias="0.5"
+            app:layout_constraintVertical_chainStyle="packed"
+            tools:text="Directory" />
+
+        <TextView
+            android:id="@+id/item_details"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:alpha="0.6"
+            android:paddingStart="@dimen/tiny_margin"
+            android:textSize="@dimen/smaller_text_size"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintEnd_toStartOf="@+id/item_date"
+            app:layout_constraintStart_toEndOf="@id/item_icon"
+            app:layout_constraintTop_toBottomOf="@+id/item_name"
+            app:layout_constraintVertical_bias="0.5"
+            tools:text="1 KB" />
+
+        <TextView
+            android:id="@+id/item_date"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:alpha="0.6"
+            android:gravity="end"
+            android:textSize="@dimen/smaller_text_size"
+            app:layout_constraintBottom_toBottomOf="@+id/item_details"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintTop_toTopOf="@+id/item_details"
+            tools:text="1.1.1970" />
+
+    </androidx.constraintlayout.widget.ConstraintLayout>
+</FrameLayout>

+ 56 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_file_grid.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/item_frame"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:background="?attr/selectableItemBackground"
+    android:clickable="true"
+    android:focusable="true"
+    android:foreground="@drawable/selector"
+    android:paddingStart="@dimen/small_margin"
+    android:paddingTop="@dimen/tiny_margin"
+    android:paddingEnd="@dimen/small_margin"
+    android:paddingBottom="@dimen/tiny_margin">
+
+    <RelativeLayout
+        android:id="@+id/item_holder"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="@dimen/normal_margin">
+
+        <org.fossify.commons.views.MySquareImageView
+            android:id="@+id/item_icon"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:layout_centerHorizontal="true"
+            android:padding="@dimen/small_margin"
+            android:src="@drawable/ic_file_generic" />
+
+        <TextView
+            android:id="@+id/item_name"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_below="@+id/item_icon"
+            android:ellipsize="middle"
+            android:gravity="center_horizontal"
+            android:paddingStart="@dimen/small_margin"
+            android:paddingEnd="@dimen/small_margin"
+            android:singleLine="true"
+            tools:text="Directory" />
+
+        <ImageView
+            android:id="@+id/item_check"
+            android:layout_width="@dimen/selection_check_size"
+            android:layout_height="@dimen/selection_check_size"
+            android:layout_alignEnd="@+id/item_icon"
+            android:layout_alignParentTop="true"
+            android:layout_margin="@dimen/small_margin"
+            android:background="@drawable/circle_background"
+            android:contentDescription="@null"
+            android:padding="@dimen/tiny_margin"
+            android:src="@drawable/ic_check_vector"
+            android:visibility="gone" />
+
+    </RelativeLayout>
+</FrameLayout>

+ 37 - 0
File-Manager-1.6.4/app/src/main/res/layout/item_manage_favorite.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/manage_favorite_holder"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:layout_marginBottom="@dimen/tiny_margin"
+    android:paddingStart="@dimen/activity_margin"
+    android:paddingEnd="0dp">
+
+    <org.fossify.commons.views.MyTextView
+        android:id="@+id/manage_favorite_title"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_centerVertical="true"
+        android:layout_marginTop="@dimen/medium_margin"
+        android:layout_toStartOf="@+id/overflow_menu_icon"
+        tools:text="/Internal/DCIM" />
+
+    <ImageView
+        android:id="@+id/overflow_menu_icon"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentEnd="true"
+        android:layout_centerVertical="true"
+        android:background="?attr/selectableItemBackgroundBorderless"
+        android:padding="@dimen/activity_margin"
+        android:src="@drawable/ic_three_dots_vector" />
+
+    <View
+        android:id="@+id/overflow_menu_anchor"
+        style="@style/OverflowMenuAnchorStyle"
+        android:layout_alignParentEnd="true"
+        android:layout_centerVertical="true" />
+
+</RelativeLayout>

Деякі файли не було показано, через те що забагато файлів було змінено