[SOLVED] Can't save bookmarks - user defined location

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

[SOLVED] Can't save bookmarks - user defined location

Post by *gravel »

Hello,

On TC Android I am unable to save bookmarks and/or user defined locations, I create a bookmark but whenever I close TC and re-enter the bookmark is gone, also the same if i create a "user defined location". I also tried to change language and other settings and the problem is the same, seems like TC can't write his config data.
I am on Android 11 (Lineage Microg - https://lineage.microg.org/).
Is there something I am missing?

Let me know if you need more details.

Thanks
Last edited by gravel on 2022-11-16, 13:42 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't save bookmarks - user defined location

Post by *ghisler(Author) »

Total Commander stores its data in the usual place for apps, as xml files:
/data/data/com.ghisler.android.TotalCommander/shared_prefs
The bookmarks are stored in bookmarks.xml. Maybe the file was damaged? Or the folder was deleted or has strang permissions?

You can go there in Total Commander even without root rights and check what's wrong.
Author of Total Commander
https://www.ghisler.com
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

Hello,

thanks for your answer, I've checked where you suggest with TC (i can use root):
inside the /data/data/ there are only 2 items, the com.ghisler.android.TotalCommander folder with permissions: drwx------ UID: 10109 Sim App Dialog GID: 10109 Sim App Dialog
and a "link" to /data_mirror/data_ce/null/0 where there are all the other apps data folders, and there's also another com.ghisler.android.TotalCommander folder with the same permissions/UID/GID..
in the same folder there are also the com.ghisler.tcplugins.FTP/LAN/SFTP/wifitransfer folders and these have the permission on the UID with a name similar to the app name...

I think that, as you said, the problem is here, but I don't know how to fix it.

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

Re: Can't save bookmarks - user defined location

Post by *ghisler(Author) »

Is there a shared_prefs folder in the TotalCommander folder below /data_mirror/data_ce/null/0?
Author of Total Commander
https://www.ghisler.com
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

Yes, the folder has this properties:
permissions: drwxrwx--x
UID: 10109 Sim App Dialog
GID: 10109 Sim App Dialog

And contains:
Total commander file list (copy)
Total files: 14
/data_mirror/data_ce/null/0/com.ghisler.android.TotalCommander/shared_prefs
_has_set_default_values.xml 130 2019-10-28 18:20:12
com.ghisler.android.TotalCommander_preferences.xml 1295 2022-03-03 12:28:41
dirTokens.xml 411 2020-11-01 14:27:44
fingerprintStore.xml 65 2020-07-14 00:39:10
historyPrefs.xml 384 2022-03-04 10:41:19
lastplaylist.xml 326 2020-01-22 22:48:42
MediaPlayer.xml 293 2019-11-26 23:06:48
OpenWithFileOld.xml 129 2021-03-29 23:49:32
plugin_pass_new_FTP.xml 65 2022-02-23 14:53:30
plugin_pass_new_LAN.xml 65 2020-07-14 00:41:39
RootCheck.xml 164 2022-03-10 17:39:54
TCEditor.xml 252 2019-10-28 18:20:29
TotalCommander.xml 1410 2022-03-09 01:32:36
WebViewChromiumPrefs.xml 127 2019-12-15 22:19:09
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't save bookmarks - user defined location

Post by *ghisler(Author) »

bookmarks.xml is missing. Can you try to create it manually via long click on "..", then "New text file"?
Author of Total Commander
https://www.ghisler.com
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

Hello, I created the file and obviuosly it was created with root as owner, I tried to save a bookmark but it won't save it. Then I changed the UID/GID of bookmark.xml and also permissions to match the permissions of other files in the same folder:
permissions: rw-rw----
UID: 10109 Sim App Dialog
GID: 10109 Sim App Dialog
And also with this parameters the boomarks aren't saved (also ther settings). I noticed that in the UID/GID there is also: 10177 Total Commander
Observing the other apps permissions e.g. TotalCmd-SFTP plugin every app has a UID/GID that matches his name set as UID/GID e.g. UID/GID 10213 TotalCmd-SFTP
I think that TC has the wrong UID/GID set, if you tell me what folders/files to change to the UID/GID I could try...

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

Re: Can't save bookmarks - user defined location

Post by *ghisler(Author) »

Indeed the UID/GID of /data_mirror/data_ce/null/0/com.ghisler.android.TotalCommander
and all files and folders inside should be set to the UID/GID of Total Commander, that's how Android protects the files from access by other apps.
Author of Total Commander
https://www.ghisler.com
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

Hello, tried to change the UID/GID of all files/foders:
from inside /data_mirror/data_ce/null/0/com.ghisler.android.TotalCommander
#chgrp -R u0_a177
#chown -R u0_a177 *
but the settings/bookmarks aren't saved..
I'll try to remove Total Commander and reinstall it.
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

Hello, removed TC with standard Android UI, checked inside /data_mirror/data_ce/null/0/ and the folder com.ghisler.android.TotalCommander is still there, removed with termux:
#rm -R /data_mirror/data_ce/null/0/com.ghisler.android.TotalCommander

reinstalled TC from apk (tcandroid340b4d-universal.apk) and now IT WORKS!!
I can save bookmarks/user defined locations and also settings!

Many thanks for pointing me to the right direction!!

Have I to add to the subject [solved]?
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Can't save bookmarks - user defined location

Post by *white »

gravel wrote: 2022-11-16, 10:50 UTC Have I to add to the subject [solved]?
You can, if you want to. Just edit your first post and edit the subject field.
gravel
Junior Member
Junior Member
Posts: 7
Joined: 2022-10-28, 09:39 UTC

Re: Can't save bookmarks - user defined location

Post by *gravel »

white wrote: 2022-11-16, 11:02 UTC
gravel wrote: 2022-11-16, 10:50 UTC Have I to add to the subject [solved]?
You can, if you want to. Just edit your first post and edit the subject field.
Thanks!
Post Reply