Samsung S20+ und Softwareversion UA3 in Android 11

58 views
Skip to first unread message

ToTo GSA Rider

unread,
Jan 24, 2021, 6:34:15 AM1/24/21
to OSM Android bikerouting
Hallo Entwickler, ich habe auf meinem Samsung S20+ die App BRouter und wollte mir jetzt aus dem kurviger Forum ein Routingprofil importieren. Leider hat Android 11 / Samsung die Unterverzeichnisse aus dem sichtbaren Bereich genommen. Könnt ihr mit einem Update das Problem lösen? Ich würde gerne in meiner Auswahl der Profile kurviger Profile importieren.

Üersetzt durch deepL:
Hello developers, I have on my Samsung S20+ the app BRouter and wanted to import me now from the kurviger forum a routing profile. Unfortunately, Android 11 / Samsung has taken the subdirectories from the visible area. Can you solve the problem with an update? I would like to import in my selection of profiles kurviger profiles.

Ess Bee

unread,
Feb 3, 2021, 6:11:26 AM2/3/21
to OSM Android bikerouting
I am quit sure, the brouter-data are still visible and updated (as example using a file manager...)

The brouter-data should be found / visible in one of this 2 directories:
/Android/data/btools.routingapp/files/brouter/profiles2
or (not longer sure, something like this..check on your phone with a file manager)
/Android/data/brouter/profiles2

(If you have a SD card, the brouter data can also be installed on it !!!, so check every place)

ToTo GSA Rider

unread,
Feb 3, 2021, 1:27:13 PM2/3/21
to OSM Android bikerouting
Hallo,
also ich habe von google das Tool Files installiert. Hier komme ich bis: interner Speicher - Android - data, dann habe ich ein Männchen was mir sagt keine Daten. 
Über das Tool Total Commander: interner Speicher - Android - data - installierte Apps - btools.routingapp - files, dann kommen auch hier keine weiteren Ordner.
Ich habe auf einem Android 9 Gerät den Gegentest gemacht und da ging es.
Rückfrage bei Samsung ergab, dass sie die Ebenen für die Anwender mit Android 11 gesperrt haben, da diese sonst zu viel löschen und sich wundern wenn das Handy nicht mehr geht.

Hello,
so I have installed from google the tool Files. Here I get to: internal memory - Android - data, then I have a male what tells me no data. 
About the tool Total Commander: internal memory - Android - data - installed apps - btools.routingapp - files, then also here no more folders come.
I did the counter test on an Android 9 device and it worked.
Inquiry with Samsung revealed that they have locked the levels for users with Android 11, because otherwise they delete too much and wonder if the phone no longer works.
Greetings
Translated with www.DeepL.com/Translator (free version)

Ess Bee

unread,
Feb 3, 2021, 2:14:14 PM2/3/21
to OSM Android bikerouting
very strange and new for me (have nothing todo with brouter...)
Last thing I would try :
Install the app "FX file explorer", grant the fx "storage access" by start..
If you do not get access to the brouter files, I would change the smartphone provider!
Regards

Miklós Horváth

unread,
Feb 15, 2021, 1:15:06 PM2/15/21
to OSM Android bikerouting
Hi, Google introduced a new restriction from android 11:
the applications can use the "old-fashion" file-system only within the limited "own sandbox" area of the application.
Normal (not file-commander or virus scanner style) applications can use (see, read, write) data outside of this own sandbox only via StorageAccessFramework.
That means transporting large amont of data between applications (for example: a genereted route as xml from brouter to the navigation app) can be done only referencing via uri, and not path.
Brouter seems not to be prepared for this requirement yet.
The partner application can call brouter with the parameter "pathToFileResult" as a string, which should contain the path to the required result xml file.
From android 11 on, this method cannot work any further, because the caller app cannot send such a path. It can only send an uri (text).
An example: brouter is installed and defined so, that its main (brouter) directory lies on the internal storage of the phone.
The path is "storage/emulated/0/brouter" on most devices.
From android11 the caller app can only know the uri of this folder, that is mostly:
"content://com.android.externalstorage.documents/tree/primary:brouter"
brouter should be prepared to be able to receive and handle such uri texts (in an newly introduced "uriForFileResult" parameter for example).

Regards,
Bigmick

ToTo GSA Rider

unread,
Feb 15, 2021, 3:55:04 PM2/15/21
to OSM Android bikerouting
Danke für die sehr ausführliche Beschreibung. Wird BRouter eine Anpassung machen und die Ebene an eine andere Stelle schieben wo man diese auch erreichen kann?

Thank you for the very detailed description. Will BRouter make an adjustment and move the layer to another place where you can reach it?

Miklós Horváth

unread,
Feb 16, 2021, 9:55:50 AM2/16/21
to OSM Android bikerouting
Leider kenne ich die technishe Details von brouter nicht wirklich gut.
Ich vermute (aber nur vermute, weiss ich mit Sicherheit nicht) dass, web-brouter und android-brouter haben viele gemeinsame Teillösungen, und das macht die nötige android spezifische Anpassungen ein bisschen schwer.
Für web-brouter braucht man die klassische File-System, das gilt auch für android (bis zur version 10), aber braucht eine ganz andere Logik, andere Funktionen (Storage Access Framework) für android 11 (und höher).
Es sieht aus, viele Teillösungen sollten verdoppelt programmiert werden (ein Alptraum für den Entwickler), aber Google lässt keine andere Wahl.
---
Sorry, I don't know all the technical details of brouter.
I believe (only believe, do not know with certain), web-brouter and android-brouter have a lot of common solutions, and this fact makes a bit hard to adjust the code to satisfy this new android requirements.
You need the classic File-system for web-based brouter, that works also on android (till version 10).
But you must use a total other logic and functions from android 11 on.
It looks like you must develeop parallel solutions for the same problem (developer's nightmare), but Google lets no other choice...
Reply all
Reply to author
Forward
0 new messages