abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
504 stars 120 forks source link

The profile mappings get reset on device restart #395

Open RURon opened 2 years ago

RURon commented 2 years ago

I just did a fresh install of LineageOS (Android 11) as I hoped this would improve my situation (before was on Android 7) on my XPeria Z5 Compact because I experience profile mapping resets (which happen quite often as my phone crashes in the cold outside quite often, mounted on handle bars of a bicycle).

Additionally all the default profiles get populated into the profile directory again (I dont need all those profiles and I already learned that when I edit a profile I have to use a different name or else it will be overwritten as well to it's default setup) everytime this happens.

I have root access and maybe there is a quick fix?

The profile folder is /storage/emulated/0/Android/media/btools.routingapp/brouter/profiles2/ and I am on BRouter 1.6.3

RURon commented 2 years ago

I finally managed to build BRouter on my Windows machine (which was not easy, given the fact that I'm no Java nor Android developer). The main issue being that I needed an older Java JDK than the current V17 (I used V14 now).

Now I can simply circumvent this bug/behaviour on my device by editing the serviceconfig.dat and the profiles2.zip in the assets.