T0biasCZe / AdbFileManager

Fast Android <-> Windows file manager using ADB protocol
444 stars 29 forks source link

[BUG] WhatsApp/Media/*/ containing no images or folders #25

Open Beastelson opened 3 months ago

Beastelson commented 3 months ago

Any subfolder of WhatsApp/Media/ is showing as containing no files when clicked, though there are clearly files present.

image

No errors are thrown, and when copying WhatsApp Images (the entire folder) from the WhatsApp/Media/ folder, the folder copied as expected, including all images and subfolders. This holds for any of the folders present in the WhatsApp/Media/ folder.

Using android 9 on Motorola Moto g6 plus.

T0biasCZe commented 3 months ago

in the bottom right corner, there is a small button that will show debug console image

could you try looking into there if it prints the contents of the whatsapp folder in there?

T0biasCZe commented 3 months ago

In the debug console it should look similar to this: image

I cant unfortunately test it myself because whatsapp doesnt use that folder anymore on android 11+ phones

ChrisRahme commented 3 months ago

I have the same problem, here's the relevant debug part:

adb shell ls "/sdcard/Android/media/com.whatsapp/WhatsApp/Media/"
WallPaper
WhatsApp Images
WhatsApp Stickers
WhatsApp Video
WhatsApp Voice Notes

fastchecking if "/sdcard/Android/media/com.whatsapp/WhatsApp/Media//WhatsApp Images" is a folder: False
fastchecking if "/sdcard/Android/media/com.whatsapp/WhatsApp/Media//WhatsApp Stickers" is a folder: False
fastchecking if "/sdcard/Android/media/com.whatsapp/WhatsApp/Media//WhatsApp Video" is a folder: False
fastchecking if "/sdcard/Android/media/com.whatsapp/WhatsApp/Media//WhatsApp Voice Notes" is a folder: False
T0biasCZe commented 3 months ago

and in the left list it shows the "no files found"?

ChrisRahme commented 3 months ago

Yup. I did the same thing and it gave a different output in the console now, but still no files are found. Output above was with compatibily enabled, output below is with compatibility disabled (I have Android 14).

cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls -lL "/sdcard/Android/media/com.whatsapp/WhatsApp/Media/"
total 1138
drwxrws---  2 u0_a257 media_rw    3452 2022-03-20 03:16 WallPaper
drwxrws---  4 u0_a257 media_rw 1036288 2024-03-17 17:54 WhatsApp Images
drwxrws---  2 u0_a257 media_rw    3452 2024-03-17 21:46 WhatsApp Stickers
drwxrws---  4 u0_a257 media_rw  122880 2024-03-17 18:22 WhatsApp Video
drwxrws--- 37 u0_a257 media_rw    4096 2024-03-17 22:41 WhatsApp Voice Notes

CellMouseDoubleClick()
cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls -lL "/sdcard/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/"
Beastelson commented 3 months ago

Sorry for not getting back earlier!

Compatibility Disabled:

CellMouseDoubleClick()
cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls -lL "/sdcard/WhatsApp/Media/"
total 796
drwxrwx--x   2 root sdcard_rw   4096 2023-07-02 00:30 WallPaper
drwxrwx--x   4 root sdcard_rw  36864 2024-03-13 12:18 WhatsApp Animated Gifs
drwxrwx--x   4 root sdcard_rw   4096 2024-01-31 10:53 WhatsApp Audio
drwxrwx--x   4 root sdcard_rw  16384 2024-03-10 14:39 WhatsApp Documents
drwxrwx--x   4 root sdcard_rw 540672 2024-03-25 20:57 WhatsApp Images
drwxrwx--x   2 root sdcard_rw   4096 2023-07-02 00:30 WhatsApp Profile Photos
drwxrwx--x   2 root sdcard_rw 135168 2024-03-20 14:21 WhatsApp Stickers
drwxrwx--x   4 root sdcard_rw  12288 2024-03-25 11:51 WhatsApp Video
drwxrwx--x   3 root sdcard_rw   4096 2023-08-06 10:04 WhatsApp Video Notes
drwxrwx--x 132 root sdcard_rw   4096 2024-03-15 19:21 WhatsApp Voice Notes

CellMouseDoubleClick()
cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls -lL "/sdcard/WhatsApp/Media/WhatsApp Images/"

Compatibility Enabled:

CellMouseDoubleClick()
checking if "d---------" is a folder: True
cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls "/sdcard/WhatsApp/Media/"
WallPaper
WhatsApp Animated Gifs
WhatsApp Audio
WhatsApp Documents
WhatsApp Images
WhatsApp Profile Photos
WhatsApp Stickers
WhatsApp Video
WhatsApp Video Notes
WhatsApp Voice Notes

checking if "/sdcard/WhatsApp/Media//WhatsApp Animated Gifs" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Audio" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Documents" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Images" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Profile Photos" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Stickers" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Video" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Video Notes" is a folder: True
checking if "/sdcard/WhatsApp/Media//WhatsApp Voice Notes" is a folder: True
CellMouseDoubleClick()
checking if "d---------" is a folder: True
cur_path_TextChanged();
cur_path_TextChanged false
adb shell ls "/sdcard/WhatsApp/Media/WhatsApp Images/"

As the others reported, no files are shown in either case. Let me know if I can provide anything else!