I
Immich•2mo ago
zsert3

Android app access to albums/folders restricted through bad android permissions GIT #16020

On request of @shenlong-tanwen creation of this help desk support. With the goal to enable further testing. See here link to GIT issue: https://github.com/immich-app/immich/issues/16020
52 Replies
Immich
Immich•2mo ago
:wave: Hey @zsert3, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
shenlong-tanwen
shenlong-tanwen•2mo ago
@zsert3 Thanks a lot for opening a help desk thread. Did you always have this issue or is this something from a recent app update? If it used to work in a previous version, do you happen to know when you started experiencing this issue?
zsert3
zsert3OP•2mo ago
@shenlong-tanwen Happy to help. Indeed this is from a app update. I had no issues with earlier versions. I started using Immich arround the end of december 2024. The exact version I used at that time, I do not remember. I guess it would be around v1.123.0.
shenlong-tanwen
shenlong-tanwen•2mo ago
Also, I'd give you a test apk from the library we are using. Would you mind checking if you face the same issue there as well?
zsert3
zsert3OP•2mo ago
sure, I would love to try
shenlong-tanwen
shenlong-tanwen•2mo ago
@zsert3 Can you install this APK, go to advanced usage -> gallery list and check if all the assets are listed? You can play around with the filters in the gallery list as well. Once all the photos are listed, can you share me the list of filters used.
zsert3
zsert3OP•2mo ago
No description
zsert3
zsert3OP•2mo ago
@shenlong-tanwen could it be that part of the issue is in what is writen in the permission menu? the subtext 'accessed in past 24 hours'?
shenlong-tanwen
shenlong-tanwen•2mo ago
No. Android shows the subtext if the permission was accessed recently. Can you see all your photos in the test app shared?
zsert3
zsert3OP•2mo ago
@shenlong-tanwen Without change of filters or with change of filters, I see only what is currently available in the immich app. This happens in menu 'gallery list'. If I use a 'custom filter example' --> 'custom filter with sql' I am able to see all assets.
No description
zsert3
zsert3OP•2mo ago
No description
zsert3
zsert3OP•2mo ago
Sometimes I get this message
No description
shenlong-tanwen
shenlong-tanwen•2mo ago
That is super helpful. Thank you! Can you go to gallery list -> Change filter options, and change the start date to an older time, and test? Enable ignore size with image and need title option as well
zsert3
zsert3OP•2mo ago
No description
No description
No description
zsert3
zsert3OP•2mo ago
added three images. filter options before change. filter options after change. and results in gallery list
Hannes
Hannes•2mo ago
Hey, I was one of the others that had the same Problem. Is further help still needed?
shenlong-tanwen
shenlong-tanwen•2mo ago
No, Thank you! I'll build a debug version of Immich with the custom filter and share it later for testing. However, if you can, do test the above shared app and check if you experience the same behaviour with custom filters. If confirmed, I'll check how the library uses the two different filters and why we are getting different results between them.
Hannes
Hannes•2mo ago
Can confirm, 'custom filter with sql' and 'advanced custom filter' both showed all images
shenlong-tanwen
shenlong-tanwen•2mo ago
Thanks a lot! @zsert3 Do you mind me creating an issue in the library to check with the maintainers for this inconsistency by including your screenshots for reference? Do you also mind sharing your device specifications for the issue
zsert3
zsert3OP•2mo ago
I do not mind! Lets go, I want a fix 🤩. My device info is already in the GitHub issue, if I remember correctly. But to be sure: motorola edge 20 pro, android 13. Or do you need more detailed information?
shenlong-tanwen
shenlong-tanwen•2mo ago
That should do for now, I'll let you know if anything else is required. Sharing the screenshot will also expose your albums name, are you okay with that?
zsert3
zsert3OP•2mo ago
Thanks for asking, but for me that is okay. I see currently no information that should not be shared. (Or do you see something?)
shenlong-tanwen
shenlong-tanwen•2mo ago
I don't. Just wanted to confirm it with you 😄 Thank you! Will keep you posted
shenlong-tanwen
shenlong-tanwen•4w ago
@zsert3 / @Hannes Apologies for the ping. But can one of you install the following debug build (It can be installed alongside the production app), in the login page, go to setting -> advanced -> and enable the "use alternate device sync filter" option, come back to the login page, double tap the logo to login to the demo instance, and check if you can find all your local albums listed in the backup albums page?
shenlong-tanwen
shenlong-tanwen•4w ago
You can also download the app from the PR artifact if that's how you prefer them https://github.com/immich-app/immich/pull/17344
Immich
Immich•4w ago
[Pull Request] fix(mobile): use custom filter to fetch asset path entities (immich-app/immich#17344)
MrRazamataz
MrRazamataz•4w ago
Yes, this can see all of them now Uh, although, on the normal app, clicking that button shows them all
shenlong-tanwen
shenlong-tanwen•4w ago
Can you select the album for backup in the debug app and check if the timeline is populated with all of your assets? The normal app should have a different count for your camera folder when compared with the debug app, or are they the same?
MrRazamataz
MrRazamataz•4w ago
(normal app)
No description
No description
shenlong-tanwen
shenlong-tanwen•4w ago
Can you select recents in the debug app and check the timeline as well?
MrRazamataz
MrRazamataz•4w ago
Yes, sorry, they are now there
zsert3
zsert3OP•4w ago
@shenlong-tanwen I will check, but am searching for time. I will tag you when I have tried
shenlong-tanwen
shenlong-tanwen•4w ago
Sure, Thanks for the update
zsert3
zsert3OP•4w ago
@shenlong-tanwen Downloaded the debug build from the link in discord. Followed the instructions to try alternate device sync option. See image for result, it is stuck on the searching for local albums
No description
shenlong-tanwen
shenlong-tanwen•4w ago
do you have any error in the logs?
zsert3
zsert3OP•3w ago
No description
zsert3
zsert3OP•3w ago
@shenlong-tanwen With logging on 'fine', the above image could maybe help The logs are telling me that indeed more local albums are found, however they are not shown in the backup window
shenlong-tanwen
shenlong-tanwen•3w ago
Thanks for testing it, the change is merged but it probably might not help you. I am currently working on rewriting the entire sync logic for a future release. I believe it might be addressed then. Fixing this in the current codebase is sadly not trivial
Alex Tran
Alex Tran•3w ago
Hey I have an idea, let me build something to try out
zsert3
zsert3OP•3w ago
@Alex I do not mind. What do you wish me to do? I have downloaded the .apk but did not install it yet
shenlong-tanwen
shenlong-tanwen•3w ago
You just need to check if all of your albums are being listed and choosing them lists all of your local assets as well
dermm
dermm•5d ago
I have the same problem since 3 weeks. The App don't show all folders. When I try the fix-album-querying apk the log shows that they found 39 albums but stocks at loading. Without the special option it says 6 folders. @alex.tran1502 @shenlong-tanwen I attached my log
Alex Tran
Alex Tran•5d ago
Can you go to the app settings > advanced > turn on use alternative album query method?
dermm
dermm•5d ago
Yeah. That is the special option that I mentioned. With this setting the log show 39 albums but stucks with the load circle.
Alex Tran
Alex Tran•5d ago
Can you help capture a screen recording?
dermm
dermm•4d ago
I've already waited several times for over 30 minutes and more but it is still hangs when loading the folders with the setting. A new installation of the app has already been made and a reset too. Nothing helps.
No description
Alex Tran
Alex Tran•4d ago
And do you see any album without that experimental settings turned on?
dermm
dermm•3d ago
Without the experimental setting, only I see 6 folders. None of the 6 are of interest.
No description
shenlong-tanwen
shenlong-tanwen•3d ago
Looks like it is detecting the other albums but failing at a later point. We can probably experiment around the filters to handle this. However, the new sync already uses a different way to fetch the albums. You might have to wait for the new sync implementation to be released which might fix this.

Did you find this page helpful?