We have moved to a new Sailfish OS Forum. Please start new discussions there.
22

Possible to overcome Google Play Services dependencies?

asked 2014-11-13 20:55:58 +0300

AnaT gravatar image

I started to think that wouldn't it be possible to write a library that would mimic the Google Play Services? For example, when an app requests for a map, this library would feed it OSM, instead of Google Maps.

On the other hand, Blackberry users seem to be fighting with the same issue. Maybe these would work on Jolla also: http://forums.crackberry.com/android-apps-amazon-store-apk-files-f413/how-remove-google-play-services-dependencies-lucky-patcher-947141/ http://forums.crackberry.com/android-apps-amazon-store-apk-files-f413/how-patch-android-apps-depending-google-maps-google-play-services-914930/ http://forums.crackberry.com/bb10-android-app-sideloading-f279/how-fix-any-android-app-dependent-google-maps-api-make-maps-working-862184/

Any ideas?

edit retag flag offensive close delete

Comments

8

my idea would be to have all necessary things native that we dont need any android bulk :)

NuklearFart ( 2014-11-13 21:22:12 +0300 )edit
9

A lot of apps are years away from being ported to Sailfish. Many may never come. Not trying to find an interim fix is stupid.

midnightoil ( 2014-11-13 21:26:28 +0300 )edit

I did not say that I would not search for interim fixes, e.g. I installed here maps android beta to be able to have maps available offline. But in my opinion sailfish has much more potential. I personally don't need that much apps.

NuklearFart ( 2014-11-13 22:29:07 +0300 )edit
6

IMHO I think that the opposite is necessary: services that allow alien dalvik to use Sailfish APIs instead of Google Play Services. So, we don't need Google's services, but Jolla Play Services in Dalvik, and something that tells Android apps "use these services".

palikao ( 2016-07-29 10:51:37 +0300 )edit

2 Answers

Sort by » oldest newest most voted
8

answered 2016-10-16 20:14:27 +0300

bomo gravatar image

updated 2016-10-17 21:46:47 +0300

When its about android apps that don't install because of missing google maps v1 api you can use the open implementation (that replaces google maps with OSM) of the great nogapps/microg project. To install the libraries, download this and extract the files in the

system/etc
system/framework

of the archive to

/opt/apt/alien/system/etc
/opt/apt/alien/system/framework

set the permission correctly (like to other files in the respective folders) and restart aliendalvik

Edit: Here the hopefully complete commands:

[nemo@jollas ~]$ devel-su 
Password: 
[root@jollas nemo]# pwd
/home/nemo
[root@jollas nemo]# wget https://github.com/microg/android_frameworks_mapsv1/releases/download/v0.1.0/mapsv1.flashable.zip
[root@jollas nemo]# unzip mapsv1.flashable.zip -d mapsv1
[root@jollas nemo]# cp mapsv1/system/framework/com.google.android.maps.jar /opt/alien/system/framework/
[root@jollas nemo]# cp mapsv1/system/etc/permissions/com.google.android.maps.xml /opt/alien/system/etc/permissions/
[root@jollas nemo]# chmod 664 /opt/alien/system/etc/permissions/com.google.android.maps.xml 
[root@jollas nemo]# chmod 664 /opt/alien/system/framework/com.google.android.maps.jar 
[root@jollas nemo]# systemctl restart aliendalvik.service
edit flag offensive delete publish link more

Comments

1

Nogapps is old, the successor is microG. The mapsv1 of microG is here.

ale5000 ( 2016-10-16 20:40:25 +0300 )edit
1

@ale5000 perfect, didn't know that he is still working on the v1 api.

bomo ( 2016-10-16 23:19:14 +0300 )edit

bomo can you further describe the process? there is a flashable zip then there is a sourcecode zip and a tar.gz. Where should those archives be extracted? Do all three files need to be copied into system/etc?

DarkTuring ( 2016-10-17 02:26:23 +0300 )edit

@DarkTuring Look at these instructions for further help on using microg on Sailfish, I got quite a few things up and running well both on Jolla C and the Jolla tablet!

jwalck ( 2016-10-17 02:51:14 +0300 )edit

I have created Tingle (a fork of Needle) to simplify patching (it support also Jolla phones).

ale5000 ( 2016-10-17 12:13:12 +0300 )edit
7

answered 2014-11-14 03:45:42 +0300

dsilveira gravatar image

updated 2016-09-12 12:19:09 +0300

nadir gravatar image

I believe this is possible, but it requires a few services to be created by Jolla, to be exposed via the emulated API. Some might be harder than other to implement, if you think of all the services that Google provides.

It also requires Alien Dalvik to implement those wrapper classes to be available system wide.

edit flag offensive delete publish link more

Comments

3

We are still facing the issue, so I don't see a reason to accept this answer

AnaT ( 2015-11-16 21:05:21 +0300 )edit
9

There's already a library available called micro G for this reason. Still in development.

nadir ( 2016-07-29 10:12:18 +0300 )edit

Why couldnt they just be normal android services running in dalvik?

tortoisedoc ( 2016-07-29 10:25:48 +0300 )edit

@nadir, would you have an idea on how to get microG working on Sailfish?

AnaT ( 2016-08-14 21:08:23 +0300 )edit
3

@AnaT on Maemo.org is a discussion about how to get Pokemon Go working on the Jolla. In that topic there is an explanation how to get microG working. I didn't try it myself yet. I don't play Pokemon Go.

http://talk.maemo.org/showpost.php?p=1509945&postcount=85

Jozz ( 2016-08-17 22:00:02 +0300 )edit
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2014-11-13 20:55:58 +0300

Seen: 3,177 times

Last updated: Oct 17 '16