Ask / Submit
18

[How to] install/remove google play services with a script on sailfish X and Jolla C

asked 2018-10-17 18:45:23 +0300

itdoesntmatt gravatar image

updated 2018-10-22 11:06:26 +0300

jiit gravatar image

Hi I am daily user of sailfish and unfortunately I am not amongst those who can happily go just with native apps, since some apps are not available as native apps or as web-apps. Even worse, for some app I do want to use, AD layer isn't enough, since they ask me to install google play services in order to be able to use them. On the other hand I really dislike to have google spyware services constantly running on my device and consuming battery power. So I wished to find a way to use those hated services only when really needed, without having to manually digit all the terminal commands. Looking here and there to "create" a script that allow me to install and remove google services (and play store) as quickly as possibile. Since I am using it quite happily I would just like to share it in case anybody is interested. I am not able to convert this script to an app, even though I really would like to have in the app grid or in settings a button to launch the aforementioned script. If anybody more skilled can improve any aspect of this simple trick or to modify something I would be more than happy. If a dev want to convert this in an app I would be glad.

premise: I am not a developer, I don't have any linux skill- this is just a stupid, little dirty "trick" I am using to solve an issue I faced in daily use of sailfish on my xperia x.

EDIT1: I modified the old procedure and the script in order to make that easier. now you dont need to update playservices with aptoide during the first time- the script will do that for you. I also corrected a little bug in removal script

this are the steps to follow for the first time:

1) download all necessary files here

2) extract the folder.

3) move "system", "GmsCore.apk", "GoogleLoginService.apk", GoogleServiceFramework.apk", "Phonesky.apk" ""com.google.android.gms-1.apk" to /nemo/Downloads.

4) move install.sh and remove.sh to /nemo

5) to make them executable

  chmod +x install.sh

  chmod +x remove.sh

6) go to terminal as root (devel-su -> insert password -> enter)

7) type

./install.sh

and press enter to install google play services and playstore. Then it will start an update of play services- press yes

PS: I suggest to download and install from aptoid "Play services info" and then click on play store - in this way you can also verify if google play services are installed and which version

7) if you need to update google play services just open android store (aptoide) and update play services in the
download section.

8) if you want to remove google play services type

 ./ remove.sh

1) go to terminal as root (devel-su -> insert password -> enter)

2) when you need google play services just type ./install.sh or press the up arrow until you find that command. PS: if you want to update google play services it will be quicker since they have been already downloaded.

3) when you dont need google play services anymore type ./remove.sh or press the up arrow until you find that command

I described every single step so it could seems complicated, but after the first time it will be a very quick operation to do.

I hope this could be useful in someway to someone.

PS: I noticed that some apps do require google play services for the first log in/registration, but then they work almost completely even if you remove them.

edit retag flag offensive close delete

Comments

2

how to download and unpack this file on phone?

coderus ( 2018-10-17 19:12:11 +0300 )edit
1

right. I have actually transferred file with winscp. there is a way to unzip file from the phone, and i think you know that for sure, but i cant remember the commands right now. I am out, but i will look for that once I ll come home.

itdoesntmatt ( 2018-10-17 19:20:59 +0300 )edit
1

https://openrepos.net/content/schturman/unrar-unzip-extractor

this is a way!

I have just edited the first post.

itdoesntmatt ( 2018-10-17 20:40:54 +0300 )edit
1

@itdoesntmatt An easier way than terminal to run your scripts is to install ShellEx from jolla Store! Even it is not updated since May 2014, hopefully works perfectly!

nas ( 2018-10-18 15:09:15 +0300 )edit
1

does it work for multiple commands like a script? can you try it?

itdoesntmatt ( 2018-10-18 15:57:08 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2018-12-30 15:31:05 +0300

kadotux gravatar image

Hi, the download link is expired, can we get a new one? :)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2018-10-17 18:45:23 +0300

Seen: 1,845 times

Last updated: Dec 30 '18