TC 9.12: Unstable list of content of Android device

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Slavic
Senior Member
Senior Member
Posts: 290
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

TC 9.12: Unstable list of content of Android device

Post by *Slavic »

Total Commander is not always able to re-read the Android 8 device (Nexus 5X with Android 8.1 in my case) and show the content of internal storage. Often (but not always) the list is empty. Windows Explorer, on the other side, shows the content correctly.

How to reproduce:

1) Connect the device to PC. By default, it is connected for charging, so switch to "Transfer files" USB mode on the device (it was called MTP mode on previous Android versions).

2) On TC, select the device in the drop-down list, you should see "Internal shared storage", go into it and after a very small delay, like a half of second, you will see the directory list.

3) On device, change USB mode to "Charge this device", then re-read the content on TC (Ctrl+R or the toolbar icon). You will see the empty "Internal shared storage". (This is only a remembrance of previous path; if you go up, it disappears and you will see the empty device. But please don't change it for test.)

4) On device, switch back to "Transfer files". On TC, re-read the content again. In most cases, nothing appears. Sometimes it apparently works, but the content disappears after the second Ctrl+R. At this point, you may open Windows Explorer and navigate to the same device. Explorer shows the content well, while TC doesn't.

5) Try to switch the USB mode on the device back and forth several times, and use Ctrl+R (once or twice) every time after switch.

In many cases, re-reading the source on TC gives nothing, the list remains empty. Sometimes the content appears after noticeable delay or after other events like switching the tasks in Windows. So, this bug is not always reproducible, but occurs quite often. TC needs another event or "nudge" to re-read the source properly, other than Ctrl+R. Exiting TC and starting it again always shows the full content correctly.

It seems that the problem is in re-reading the empty cache in the situation when the full reading of device is obviously required. But I cannot exactly say whether this is TC bug or OS bug. It does not occur with Android 7.1 (tested on Lenovo tablet), so it may be a problem in interaction between Windows 7 and Android 8. Anyway I hope that there should be a way to force OS to refresh this cache, because Explorer can do it.
Desktop: Windows 11 Pro 23H2, TC 11.03(RC). Mobile: Pixel 5a, Android 14, TC 3.42b5
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It woks fine here with Android 6.0 - so it is probably related to Android 8.1
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is actually a Windows 7 bug. Windows 7 seems to do some kind of caching of these virtual folders. The only way to fix it is to close and re-open Total Commander. On Windows 10, it works correctly - refreshing the lists shows/hides the files as expected.
Author of Total Commander
https://www.ghisler.com
Post Reply