deckerst / aves

Aves is a gallery and metadata explorer app, built for Android with Flutter.
BSD 3-Clause "New" or "Revised" License
2.42k stars 93 forks source link

Gallery auto-update does not work #760

Open snooppr opened 11 months ago

snooppr commented 11 months ago

The essence of the problem

Open "Aves". Take a screenshot. The gallery should update and the screenshot should appear in "Aves". Does not update automatically. Try updating the gallery manually: click the three dots in the upper left corner -> rescan, this also does not work, new photos/screenshots do not appear in Aves. The decision to close Aves and open it again, all new photos will appear. Inconvenient.

Aves v1.9.3 f-droid, Android 9.

deckerst commented 11 months ago

I don't think it's a bug with Aves but with the Android Media Store on your device. On older device, the Media Store was often taking time to update.

snooppr commented 11 months ago

As you wish. The problem only occurs with Aves; third-party gallery applications and the native one work normally. So I'm sure the problem is on Aves' side.

And yes, this does not depend on the waiting time, Aves will never update files either automatically or manually. Only restarting the application solves the problem.

deckerst commented 11 months ago

Could you provide the system info and logs you get from following instructions at "About" > "But Report"?

snooppr commented 11 months ago

I can probably send the log, but can I do it not as publicly as suggested? For example, to the developer's email?

deckerst commented 11 months ago

Sure (and the system info too).

snooppr commented 11 months ago

Sent.

deckerst commented 11 months ago

Possibly related:

deckerst commented 4 months ago

@snooppr do you still have the issue with the latest version of Aves?

snooppr commented 4 months ago

@snooppr do you still have the issue with the latest version of Aves?

The problem persists v.1.10.8

SeeleVolleri commented 1 month ago
Package: deckers.thibault.aves.libre
Installer: com.android.packageinstaller
Aves version: 1.11.4-libre, build 12302
Flutter: stable 3.22.2
Android version: 11, API 30
Android build: TYH 11.0.0.10Q
Device: ChinaTelecom TYH212U
Support: dynamic colors=false, geocoder=true, HDR=true
Mobile services: not available
Connectivity: wifi
System locales: zh_CN
Storage volumes: /storage/emulated/0/
Storage grants: /storage/emulated/0/
Error reporting: false

Can we just re-add the ability to rescan all folders by manual? For unknown reason even I tried moving the folder of photos (png jpg it worked before) in every folder(DCIM Pictures etc.) it just won't show up. But if I takes a picture it shows up immediately. Immediately showed up only include the photo taken by camera or snapshot, not my lots photo in a folder.

deckerst commented 1 month ago

Can we just re-add the ability to rescan all folders by manual?

The "rescan" action in Aves has never done what you think it does. It only reads and interprets metadata of known items, it does not discover new items.

even I tried moving the folder of photos

How do you move them?

SeeleVolleri commented 1 month ago

How do you move them?

Let's just say, adb shell mv /sdcard/randommemes /sdcard/Pictures/ back and forward

SeeleVolleri commented 1 month ago

structure be like:

$  adb shell ls -alh /sdcard/DCIM/randommemes/
total 273M
-rwxrwx--- 1 u0_a164 u0_a164 4.6M 2023-02-19 16:06 -3c5f95a3d0c3ae81.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.6M 2023-02-19 16:06 2023-02-19 144712.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.8M 2023-02-19 16:06 2023-02-19 144813.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.7M 2023-02-19 16:06 2023-02-19 144858.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.4M 2023-02-19 16:06 2023-02-19 145101.jpg
-rwxrwx--- 1 u0_a164 u0_a164 3.7M 2023-02-19 16:06 2023-02-19 145232.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.6M 2023-02-19 16:06 2023-02-19 145353.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.5M 2023-02-19 16:06 2023-02-19 145438.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.6M 2023-02-19 16:06 2023-02-19 145508.jpg
-rwxrwx--- 1 u0_a164 u0_a164 4.6M 2023-02-19 16:06 2023-02-19 145523.jpg
deckerst commented 1 month ago

I see. Then it's normal the media are not registered. You're not transferring media files using appropriate protocols like MTP. If for some reason you have to use adb, maybe you could find a way to trigger media store scan on these files via adb too.

SeeleVolleri commented 1 month ago

I tried MTP, it worked...

SeeleVolleri commented 1 month ago

But without mtp it never refreshes. Can Aves try to trigger that?

deckerst commented 1 month ago

Depending on Aves is a bad idea. It means that until you would use that magic rescan, no other app is aware of the new media.

It's better to fix the media registration at the source. In essence it means using MTP for inter-device transfers, and well-written file managers for intra-device transfers.