How does Total Commander write to Ext. SD card in Android?

Support for Android version of Total Commander

Moderators: Hacker, Stefan2, white, sheep

Post Reply
matrix.wizard
Junior Member
Junior Member
Posts: 5
Joined: 2018-05-16, 20:05 UTC

How does Total Commander write to Ext. SD card in Android?

Post by *matrix.wizard » 2018-05-16, 20:23 UTC

I'd first like to say thanks for one of the most useful programs ever! Total Commander is the best.

I have a Xiaomi phone with Android OS 7.0 (Nougat) and it seems Total Commander is able to write to the External SD card when I attempt to copy a file onto it. However what happens is it warns first that on Android 5 (and above) the external SD card is write protected and you need to choose a directory from a special Android dialog to give T.C. write rights. and a bit more.
But if I hit cancel it copies it anyway to the folder I selected on the external SD card. The phone is on a stock ROM and is rooted but currently has no patches implemented for the external SD write fix.
What I wonder is how it does this and if it is possible this method might be a way to create a permanent external SD card write fix. So far the methods I have tried - various patches (on this rooted phone) only ended up creating some serious problems - Google Services quit working and numerous force closes on some apps. I ended having to reinstall the stock ROM. While it's nice T.C. seems to bypass this block when I hit cancel I would like to understand how it does this. Thank you for any help with this!

matrix.wizard
Junior Member
Junior Member
Posts: 5
Joined: 2018-05-16, 20:05 UTC

Post by *matrix.wizard » 2018-05-16, 20:35 UTC

Just to add a little more info hitting the cancel buttons seems to do the same exact thing as following the rest of the directions in the popup dialog warning about the external card write protection. Instead of going the choose the external SD card and hitting select at the bottom I seem to be able to avoid that operation by just hitting cancel.

matrix.wizard
Junior Member
Junior Member
Posts: 5
Joined: 2018-05-16, 20:05 UTC

Post by *matrix.wizard » 2018-05-16, 20:43 UTC

One more note of a discovery I just made. Since this phone is rooted I was able to convert Total Commander to a System app. Once that was done it copies files from the internal to the external SD card without any popups or warnings at all. That's great news for anyone with a rooted phone.

User avatar
Hacker
Moderator
Moderator
Posts: 11011
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker » 2018-05-16, 21:43 UTC

matrix.wizard,
Are we talking about TC for Windows or TC for Android?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36418
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-05-17, 10:20 UTC

TC first tries to write to the card with the new documents api functions. For this it has to request write access via the warning dialog. If this fails, it tries with root rights.
Author of Total Commander
http://www.ghisler.com

matrix.wizard
Junior Member
Junior Member
Posts: 5
Joined: 2018-05-16, 20:05 UTC

Post by *matrix.wizard » 2018-05-28, 15:53 UTC

Hacker wrote:matrix.wizard,
Are we talking about TC for Windows or TC for Android?

Roman
As seen in my first post this is about use on Android.

matrix.wizard
Junior Member
Junior Member
Posts: 5
Joined: 2018-05-16, 20:05 UTC

Post by *matrix.wizard » 2018-05-28, 15:55 UTC

ghisler(Author) wrote:TC first tries to write to the card with the new documents api functions. For this it has to request write access via the warning dialog. If this fails, it tries with root rights.
Thank you sir! I've been using it a couple weeks now as a system app and it works great. No popup dialog even - it just copies without hesitation.

Post Reply