LAN Plugin: no file access for some local folders on Android 13

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hawkeye
Junior Member
Junior Member
Posts: 3
Joined: 2013-09-14, 14:37 UTC

LAN Plugin: no file access for some local folders on Android 13

Post by *hawkeye »

Hi,

device: xiomi mi mix 2s, polaris
tc version: most recent stable 3.40, tcplugins lan 3.31
android 13 (lineage 20, patchlevel 2022.12)

I've recently updated my devices from android 10 to android 13. Rooted with current magisk. TC has root permissions granted.

When i try to copy files from /storage/emulated/0/* to a LAN target, a 0 byte file gets created at the lan target (and an open file handle remains, the file is locked at the server), and TC throws "Fehler beim Lesen der Datei <path to local file>"

This is what the adb logcat shows:

Code: Select all

01-04 17:40:56.877  1832  8745 D CoreBackPreview: Window{159f15a u0 Kopieren/Verschieb.}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@af87314, mPriority=0}
01-04 17:40:58.180  1832  8745 D CoreBackPreview: Window{159f15a u0 Kopieren/Verschieb.}: Setting back callback null
01-04 17:40:58.226  1832  8745 D CoreBackPreview: Window{341ac29 u0 Kopiervorgang}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@cbd7f6b, mPriority=0}
01-04 17:40:58.472  1832  8745 D CoreBackPreview: Window{82a39a4 u0 Fehler beim Lesen der Datei!}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@1b7e90e, mPriority=0}
01-04 17:40:59.694  1832 11537 D CoreBackPreview: Window{82a39a4 u0 Fehler beim Lesen der Datei!}: Setting back callback null
01-04 17:40:59.729  1832  8745 D CoreBackPreview: Window{341ac29 u0 Kopiervorgang}: Setting back callback null
01-04 17:41:24.271  1832  5080 D CoreBackPreview: Window{c83f94a u0 com.ghisler.android.TotalCommander/com.ghisler.android.TotalCommander.TCEditActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@ec7d9d8, mPriority=0}
tc.log

Code: Select all

2023-01-04 17:40:58.284 HOST:LAN:get dir: /host/transfer/test/
2023-01-04 17:40:58.391 tc:Copy 1 files:/storage/emulated/0/DCIM/Camera/->///LAN/host/transfer/test/
2023-01-04 17:41:01.403 HOST:LAN:get dir: /host/transfer/test/
When i copy the file from /storage/emulated/0 to, say, /data/app/ first, i can copy the file from there to the kan target without issues.

I've seen some posts about similar issues on android 13, but nothing that matches this exact behaviour.
Feature has been working fine on android 10.

Any advice how to analyze this further?

Thanks in advance!

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

Re: LAN Plugin: no file access for some local folders on Android 13

Post by *ghisler(Author) »

All my plugins now call Environment.isExternalStorageLegacy to check whether they still have file system access or not. If not, they request content: URLs from Total Commander for uploads and downloads. This should happen on Android 13. Fr unknown reasons, it seems to not work on your device. Sorry, I have no idea what could be wrong. Maybe it helps to uninstall and re-install the plugin, but then you would lose your connections.
Author of Total Commander
https://www.ghisler.com
hawkeye
Junior Member
Junior Member
Posts: 3
Joined: 2013-09-14, 14:37 UTC

Re: LAN Plugin: no file access for some local folders on Android 13

Post by *hawkeye »

> Maybe it helps to uninstall and re-install the plugin
Awsome, that worked. Should have tested that in the first place, sorry.

Thank you very much!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: LAN Plugin: no file access for some local folders on Android 13

Post by *ghisler(Author) »

Looks like the plugin inherits some limited rights from the older version when updating. I will add some code to TC to always send content: URLs to plugins on Android 13 and newer.
Author of Total Commander
https://www.ghisler.com
Post Reply