-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current speed limit is not shown while navigating #604
Comments
That doesn't work on Ubuntu Touch as you don't have DBus communication possible between apps. At least that is my understanding and please correct me if I am wrong (@jonnius). Hence there is no speed limit nor showing current street on UT |
Same problem using Pure maps in Xperia 10 II (no speed limit sign). |
Yes, on SFOS it is due to Sailjail restrictions, similar to UT in this respect. There will be separate version from the next update that disables Sailjail for SFOS. |
Thank you so much. |
@rinigus would local UNIX / IP socket RPC interface help? Speaking of UT, AppArmor does have ability to write DBus rules, allowing applications to communicate using specifiied DBus services. Here's some examples for AppArmor built-in abstractions (includes) for allowing quering network information from NetworkManager: https://gitlab.com/apparmor/apparmor/-/blob/master/profiles/apparmor.d/abstractions/dbus-network-manager-strict Of course, all that needs UT explicit support, to add some sort of DBus permissions for published app... But maybe just having non-DBus-socket implementation would help? Or that would be considered too much for this "niche" issue? |
@rinigus I believe I should speak (open issue, etc) with UT developers themselves, how could we allow some apps to do DBus requests, how to specify AppArmor policy, etc. Only when this works in principle we could the talk about proper packaging... First I'll check if there's AppArmor "DENIED" kernel messages produces by PureMaps. Or this feature is simply disabled on UT at compile time..? |
I am a wrong person to ask about UT specifics, as I don't run it on UT. Hopefully @jonnius can reply |
I wonder whether DBus should work in our case as OSM Scout Server is unconfined and it is the one offering the service. |
I wonder, what would be easiest way to make OSMScout and PureMaps unconfined apps, so they would not have For example, maybe I somehow could modify
Or I would have to just to rebuild these two clicks as unconfined apps (must first find docs for that...) and install manually? |
I've modified
But after reboot I still see AppArmor delials:
Probably generated AppArmor profile is cached somewere..? |
I've removed Simpler would probably be to build app myself? |
I don't think that changing the apparmor file on the device will take effect. You'd need to rebuild (see instructions). |
@rinigus yeah I've managed to build with unconfined AppArmor template. Had to use Will try driving some time later. |
I have set "Speed limit: Always", but.. I see speed limit extremely rarely, and for a split second only. For example, I was driving approximately this route, but seen speed limits only in this section and this one. I did try to drive through second section mentioned today and I can confirm it does show (50) sign for a split second, somewhere around this way: https://www.openstreetmap.org/way/85694140 . Interestingly, it does not have speed limit set, only way before and after. So maybe it sown next upcoming way's (https://www.openstreetmap.org/way/38826951) limit. I understand that not all ways has set speed limit, but looking at https://www.openstreetbrowser.org/#map=13/55.9184/23.2891&categories=car_maxspeed we can see that there should be quite some speed limit notifications, but I got only two, maybe missed a few more. P.S. I have updated speed limits to match reality. |
Hard to comment whether it is related to different coverage or not. Will have to test over here with speed limit: always set. |
I have successfully reproduced speed notification (for a split second) here: So the key point is, there's rather concrete, reproducible, specific "places" where I do get short notifications of speed. I thought maybe Volla Phone X provided coordinates has rather bad precision and gets mostly discarded? But the fact that I can reproduce these notifications probably disprove that idea? Also, I don't know how all that works so... |
My setup;
Pure Maps 2.9.0
OSM Scout Server 1.17.1
Ubutnu Touch OTA-22
Volla Phone X
Pure Maps settings:
Maps: OSM Scout
Navigation: Every option (including "Snap position to road enabled") is On, Speed limit: Always.
Result: I only see current speed:
I was driving this road, which has
maxspeed
set:https://www.openstreetmap.org/way/60441895#map=12/55.7706/23.0411
The text was updated successfully, but these errors were encountered: