zhanghai / zhanghai/MaterialFiles

[BUG] MaterialFiles ERROR SAVE (rewrite) file ON SDCARD if file exist ;(

Open
#1,463 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

MaterialFiles ERROR SAVE (rewrite) file ON SDCARD if file exist ;(

Android 12
MaterialFiles 1.7.4 (39)

Reproduce bug:

  1. in fdroid 3dot and click share apk
Image
  1. select folder icon MaterialFiles (Save)
Image
  1. select folder on SDCARD and click save
Image
  1. get first error
Image
  1. press repeat button and get next error
Image
  1. press dissmiss (cancel) button

If after press dissmiss (cancel) button we try again share apk from fdroid to SDCARD, then file saved success, but next try be fail:
1st try fail, press dissmiss (cancel) button;
2st try saved ok;
3st try fail, press dissmiss (cancel) button;
4st try saved ok;
5...fail;
6...etc

This very OLD BUG that very ...

Save file on internal storage ok, only save (rewrite exist file) on sdcard have problem (1 ok 1 fail).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the share-to-save flow on Android 12 with MaterialFiles 1.7.4, comparing an existing file on an SD card with the same operation on internal storage. Trace the save and overwrite handling from the share flow; done means repeated saves reliably handle an existing SD-card file without alternating errors or requiring dismissal.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.