Step to reproduce
- enable root functions
- left panel browse to /data/data/
- right panel browse to /sdcard/
- select a file from left panel
- copy file to right panel
- copy file to right panel again
Intended behaviour
- second copy should produce overwrite dialog then overwrite file
Observed behaviour
- target file cannot be overwritten and is deleted
Bug: copying from root
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, cannot reproduce. There are no files directly in /data/data, so I tried to copy an xml file from one of the apps. It worked, also with overwriting, both to /sdcard/ (which is just a link) and to /storage/emulated/0.
I tried on both Android 4.4 and 6.0 (which doesn't have /sdcard/ any more, just /storage/emulated/0).
I tried on both Android 4.4 and 6.0 (which doesn't have /sdcard/ any more, just /storage/emulated/0).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Not the internal SD card, but the external one, mine is formatted as FAT32 and is at /storage/XXXX-XXXX (serial number id).
I just tried with /data/data/com.ghsler.android.TotalCommander/shared_prefs/TotalCommander.xml to /storage/XXXX-XXXX/ - strange things happen:
Sometimes it works correctly, sometimes it refuses to overwrite, sometimes it ends up deleting the file.
One thing that seems consistent:
- copy the file from left to right
- copy the file again to overwrite
- delete the file from the right panel
- copy the file from left to right
- dialog pops up asking to overwrite
But there is no file to overwrite as it has been deleted!
Is there some kind of delayed deletion or caching going on?
This may explain the other error that I am seeing.
Maybe I am clicking things too fast...
EDIT: forgot to say that I am on Android 7.1.1
I just tried with /data/data/com.ghsler.android.TotalCommander/shared_prefs/TotalCommander.xml to /storage/XXXX-XXXX/ - strange things happen:
Sometimes it works correctly, sometimes it refuses to overwrite, sometimes it ends up deleting the file.
One thing that seems consistent:
- copy the file from left to right
- copy the file again to overwrite
- delete the file from the right panel
- copy the file from left to right
- dialog pops up asking to overwrite
But there is no file to overwrite as it has been deleted!
Is there some kind of delayed deletion or caching going on?
This may explain the other error that I am seeing.
Maybe I am clicking things too fast...
EDIT: forgot to say that I am on Android 7.1.1
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
com.ghsler.android.TotalCommander and subdirs is special, it can be accessed without root rights because it's TC's private files. You may get different results for this folders and other folders under /data/data.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I used that file as an example because it is a file that every user of TC4A definitely has and can check, but you are correct that it was a bad choice. The files that I was actually working with were elsewhere in /data but I do not know if it is relevant. My tests did show that Total Commander behaviour was unreliable whereas Ghost Commander had no issues. Is there a way of generating a log from TC4A?
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, you can create a log, but it's mainly for plugins:
1. Switch to the internal SD card by going to the home folder, and then tap on the first entry in the list
2. Create a new folder named .TotalCommander including the dot at the beginning (if it doesn't exist yet)
3. You may need to enable the display of hidden files in the TC configuration if you cannot see that folder.
4. Go inside this folder .TotalCommander
5. Create a new file named log.txt by holding down a finger on the first line (..)
6. Close Total Commander via "X" button and restart it
1. Switch to the internal SD card by going to the home folder, and then tap on the first entry in the list
2. Create a new folder named .TotalCommander including the dot at the beginning (if it doesn't exist yet)
3. You may need to enable the display of hidden files in the TC configuration if you cannot see that folder.
4. Go inside this folder .TotalCommander
5. Create a new file named log.txt by holding down a finger on the first line (..)
6. Close Total Commander via "X" button and restart it
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com