MLS Manager

Rating: 
5
Your rating: None Average: 5 (18 votes)

This app is a manager for Mozilla Location Service offline packages for Sailfish OS.

!!! Warning !!!

When using this app deinstall all other mls offline packages from other users first! This software overrides this data otherwise.

Mozilla Location Service

This app uses the offline data from Mozilla Location Service. The data is licensed under Public Domain.

Intention of project

I had alread released some offline packages on OpenRepos.net but I realized keeping all of them up to date will be a very hard job. An other problem is the big package sizes, taking away a lot of ressources from OpenRepos.

So I decided to host my own repository with packages and create a manager app. And here we are...

All of this is only intended as a temporary solution until Jolla presents an alternative.

Development Status

The main functionality is given (I hope) but code is a bit hacky at the moment. It needs to be improved in the future.

Automatic Updates

My plan is to update the packages every month. I have created an automatic package creation pipeline to make the job a bit easier for me. Maybe I'll increase the frequency in the future.

Available Countries

At the moment 185 different countries are available. That should be almost all. If you need more let me know in comment section.

How to use

In order to make use of the offline data, the option "High-accuracy positioning" or at least "Battery saving mode" must be active in the location settings of Sailfish OS .

Storage Location

Packages with version >2021.02.10-1 the installation path is in "/home/.system/usr/share/geoclue-provider-mlsdb/".  So no worry about size on ROOT partition. Thanks abranson for his suggestion.

Translations

  • English
  • German
  • Norwegian (by comradekingu)
  • Polish (by atlochowski)
  • Slovak (by okruhliak)

Your language is not available? You are welcome to support this project by translating it on my self hosted Weblate server:

https://weblate.nubecula.org/projects/harbour-mlsmanager

 

Thanks

I want to thank Petr Tsymbarovich(osetr) for his work on Storeman. His code helped me to get an idea how to handle repositories.

Source code is available on Github:

https://github.com/black-sheep-dev/harbour-mlsmanager

Donation

If you like my work you can buy me a beer.

Donate

Donate using Liberapay

Application versions: 
AttachmentSizeDate
File harbour-mlsmanager-0.1.0-1.armv7hl.rpm208.35 KB06/02/2021 - 20:39
File harbour-mlsmanager-0.1.1-1.armv7hl.rpm208.86 KB06/02/2021 - 23:05
File harbour-mlsmanager-0.1.2-1.armv7hl.rpm391.21 KB07/02/2021 - 13:30
File harbour-mlsmanager-0.1.2-1.i486.rpm398.46 KB09/02/2021 - 20:19
File harbour-mlsmanager-0.1.3-1.armv7hl.rpm392.46 KB09/02/2021 - 22:18
File harbour-mlsmanager-0.1.3-1.i486.rpm399.93 KB09/02/2021 - 22:18
File harbour-mlsmanager-0.1.4-1.armv7hl.rpm393.36 KB11/02/2021 - 20:50
File harbour-mlsmanager-0.1.4-1.i486.rpm401.02 KB11/02/2021 - 20:50
File harbour-mlsmanager-0.1.5-1.armv7hl.rpm393.16 KB13/02/2021 - 12:45
File harbour-mlsmanager-0.1.5-1.i486.rpm400.89 KB13/02/2021 - 12:45
File harbour-mlsmanager-0.1.6-1.armv7hl.rpm393.42 KB19/02/2021 - 23:02
File harbour-mlsmanager-0.1.6-1.i486.rpm401.26 KB19/02/2021 - 23:02
File harbour-mlsmanager-0.1.7-1.armv7hl.rpm394.88 KB02/03/2021 - 11:30
File harbour-mlsmanager-0.1.9-1.i486.rpm404.11 KB02/03/2021 - 23:16
File harbour-mlsmanager-0.1.9-1.armv7hl.rpm396.25 KB02/03/2021 - 23:19
File harbour-mlsmanager-0.1.10-1.armv7hl.rpm398.91 KB03/03/2021 - 13:50
File harbour-mlsmanager-0.1.10-1.i486.rpm406.55 KB03/03/2021 - 13:50
Changelog: 
* Wed Mar 03 2021 Black Sheep <blacksheep@nubecula.org> 0.1.10-1
- Add translation information with self hosted weblate server

* Tue Mar 02 2021 Black Sheep <blacksheep@nubecula.org> 0.1.9-1
- Polish translation added (atlochowski)

* Tue Mar 02 2021 Black Sheep <blacksheep@nubecula.org> 0.1.7-1
- Norwegian translation added (comradekingu) 
- Slovak translation added (okruhliak)

* Fri Feb 19 2021 Black Sheep <blacksheep@nubecula.org> 0.1.6-1
- Add page busy indicator

* Sat Feb 13 2021 Black Sheep <blacksheep@nubecula.org> 0.1.5-1
- Error notifications
- Bugfixes

* Thu Feb 11 2021 Black Sheep <blacksheep@nubecula.org> 0.1.4-1
- Fixed bug when install all available package updates
- Fixed translations
- Optimizations

* Tue Feb 09 2021 Black Sheep <blacksheep@nubecula.org> 0.1.3-1
- Show progress of install / remove / update operation of package

* Sun Feb 07 2021 Black Sheep <blacksheep@nubecula.org> 0.1.2-1
- Update notifications
- Update all packages at once in pulley menu
- Remorse timer for actions
- No need to make a new version of this app when new country is available
- Code cleanup and improvments

* Sat Feb 06 2021 Black Sheep <blacksheep@nubecula.org> 0.1.1-1
- Added Russia (thanks to osetr again)

* Sat Feb 06 2021 Black Sheep <blacksheep@nubecula.org> 0.1.0-1
- Intitial release

Comments

greatneon's picture

Hi @blak_sheep_dev.  Thank you for this. I've installed it but I'm not sure if everything is working correctly. I've enabled High Accuracy Mode, under Location but I don't get gps fix as fast as one would expect (within seconds) I get it within minutes. Mobile data is enabled.

ls /home/.system/usr/share/geoclue-provider-mlsdb/

gives me: hr si

Any ideas? Should I remove these 2 directories and start over? I hope this will return obtaining agps to previous state when it got fix in seconds.

black_sheep_dev's picture

Hi, I don't know how good / complete the cell info is in Croatia and Slovenia. This data only helps to get a first inaccurate position, which should help to get a faster fix for regular GPS.. You can check if it works when you open GPSInfo or PureMaps and you get a horizontal accuracy. This can be several 1000 meters, depending on the cell tower information. For me with XA2 I dont get a GPS fix in 100% at all, but this is an other issue.

black_sheep_dev's picture

Ok. Fixed it. New offline packages are out.

ABreen's picture

That seems to work. At least at my current location

ABreen's picture

Thanks for the reply.
When I first tried using your mlsdb data I was able to get a quick location close to where I was located but not anymore.
Is the problem that there is two geoclue provider folders?
Otherwise do you have any other things for me to try?
Thank you

black_sheep_dev's picture

Hi there,

after some investigations, it seems to me that the problem is moving the mlsdb data to "/home/.system/usr/share/geoclue-provider-mlsdb" and create a symlink instead.
This I did some days ago and it seemed to work, unfortunatley not  :-S.

Can you please do the following in console:

  1. devel-su
  2. rm /usr/share/geoclue-provider-mlsdb/[country_code] (replace [country_code] with e.g. nz)
  3. cp -r /home/.system/usr/share/geoclue-provider-mlsdb/[country_code] /usr/share/geoclue-provider-mlsdb/[country_code]

Then restart your device and look if it works again. In the meantime I will prepare new packages installing the data in system partition again, until I have a solution for that.

ABreen's picture

One thing I've noticed is each time I launch MLS Manager is that there is always a message saying "No offline packages available, check your internet connection " After a few seconds the list of offline packages is displayed with a tick mark by my downloaded packages.
Is the app operating correctly?

black_sheep_dev's picture

This is normal. At start i refresh the repo which takes some seconds. This can fail when you have no internet connection. This message is displayed when the list is empty. Maybe I replace this with an busy indicator on app start.

ABreen's picture

Those folders and links are there and there's 8 mlsdb.data files.

I note in the share/geoclue-providers folder there is two provider folders. geoclue-hybris.provider and geoclue-mlsdb.provider. Is the hybris option supposed to be there?

ABreen's picture

My country is New Zealand. High accuracy is turned on. I'll try uninstalling and re installing and have a look in that folder. Thanks

ABreen's picture

Something has happened recently which is preventing me getting an approximate location. It worked right at the start but doesn't appear to be working anymore. Xperia XA2 Sailfish 4.

black_sheep_dev's picture

For me it is working (germany). Which is your country? Did you try to deinstall and install the specific package? You should check if in "/usr/share/geoglue-provider-mlsdb" there is a symlink with your country code to "/home/.system/usr/share/geoclue-provider-mlsdb/", also with country code. Is this folder empty? There should be some mlsdb.data files in it e.g "1/mlsdb.data".
Is GPS turned on with high accuracy mode?

rob_k's picture

Thanks, black_sheep_dev! Earlier I installed it all manually; removed it all including geoclue-provider-mlsdb-tool before installing this app. I guess this should just work now. Or do I still need to geoclue-provider-mlsdb-tool?

black_sheep_dev's picture

You don't need the geoclue-provider-mlsdb-tool for this.

claustn's picture

I get No offline packages available. Check your internet connection. on Sailfish 3.3.0.16 on XA2. Just updated to the latest version of MLS 0.1.4

black_sheep_dev's picture

I didn't test is on 3.3.016. Did a previous version of MLS Manager work?

planetos_store's picture

Thanks alot for your tremendously useful work. May I kindly request a few more countries? Brasil, Jordan, Iraq and Saudi Arabia could be useful as well.

nthn's picture

Hello, please consider applying for translation hosting at https://hosted.weblate.org/, this will make it easier for people to translate your application.

black_sheep_dev's picture

Thank you for your consideration!

I added translation over Transifex and weblate.org (I don't know if i configured it the right way). First time for me ;-)

explit's picture

Please add i486 version

black_sheep_dev's picture

Now available as i486...

ABreen's picture

Thanks for the reply. That was quick. I now get my approximate location in seconds. Thank you

ABreen's picture

Great work on the app. Is New Zealand not included in the list? I don't see it listed in the app.

black_sheep_dev's picture

It is not available at the moment. I needed to release 0.1.2 first. With this version I am able to provide more without releasing a app new version every time.

Next step is to add more country bounding rects to geoclue-mlsdb-tool and update the whole repository.

trial's picture

Worx as expected! 10x!

lxmx's picture

Great idea! Unfortunately the app only shows "no offline packages available" for me despite refreshing a few times. Is there a way to refresh through CLI to see what's wrong?

black_sheep_dev's picture

Try a "devel-su pkcon refresh" in console and/ or restart your device. I had this one time and it helped.

yomark's picture

Tnx for this!! Question: how should I configure the GPS settings in the Phone settings?

nephros's picture

Custom settings, enable GPS plus offline Mozilla Service.

black_sheep_dev's picture

You need to activate one of the options in the gps settings that mentions the online services (e.g. High Accuracy Mode)