Skip to content

Failed to load updated m-time #1167

Open

Description

@mementomori248

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.13.1

Affected Android/Custom ROM version

HyperOS 3.0.301.0 WGTIDXM.C11

Affected device model

Redmi 14C

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Bulk update m-time with touch cli on termux and gallery doesn't load the updated m-time value.

Expected behavior

Should be able to read updated m-time value.

Actual behavior

The app don't correctly read updated m-time value.

Screenshots/Screen recordings

No response

Additional information

No response

Activity

  1. added
    bug
    needs triage
    on Oct 8, 2026
  2. PedroFlores199 commented on Nov 27, 2026

    @PedroFlores199

    I looked into this. When Gallery has a modification date from MediaStore, it uses that (DATE_MODIFIED in MediaFetcher) instead of reading the file itself. touch only changes the file, and MediaStore keeps the old value until the file is scanned again.

    I checked it on an emulator (Android 17) with adb shell:

    1. After a media scan: file mtime 1577876400, MediaStore date_modified 1577876400
    2. After touch -m -t 201901011200: file mtime 1546340400, MediaStore still 1577876400
    3. After scanning the file again: both 1546340400

    So as a workaround, running a media scan after the bulk touch should make Gallery pick up the new times. In Termux that's termux-media-scan -r <folder> from the Termux:API package.

    Fixing it in the app would mean also checking the file's own mtime, which costs an extra file access per item, so I'll leave it to the maintainers to decide whether that's wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions