AdbFileManager icon indicating copy to clipboard operation
AdbFileManager copied to clipboard

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

Open Beastelson opened this issue 1 year ago • 6 comments

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.

Beastelson avatar Mar 07 '24 23:03 Beastelson

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 avatar Mar 09 '24 22:03 T0biasCZe

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

T0biasCZe avatar Mar 10 '24 22:03 T0biasCZe

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

ChrisRahme avatar Mar 17 '24 20:03 ChrisRahme

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

T0biasCZe avatar Mar 17 '24 20:03 T0biasCZe

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/"

ChrisRahme avatar Mar 17 '24 20:03 ChrisRahme

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!

Beastelson avatar Mar 25 '24 20:03 Beastelson

The bug seems to happen to me only when the path contains spaces. All folders "Whatsapp Images", "Whatsapp videos" etc contain a space. I've checked some other local paths and whenever it contains a space, if I access that folder ADBFileManager shows "no files" in it. Although there are. Maybe it's related to some kind of space-escaping problem in the adb command?

angelbla avatar Aug 04 '24 17:08 angelbla

yeah it was inproper space escaping the directory was escaped with just " image adding ' fixed the issue image

T0biasCZe avatar Aug 04 '24 23:08 T0biasCZe

fixed in v1.9 @ChrisRahme @Beastelson @angelbla https://github.com/T0biasCZe/AdbFileManager/releases/tag/v1.9

T0biasCZe avatar Aug 05 '24 00:08 T0biasCZe

Feel free to reopen the issue if the issue sometimes still occurs (I tested only on Android 4.4 with compatibility mode, however it should be fixed on newer android versions too)

T0biasCZe avatar Aug 05 '24 00:08 T0biasCZe