answered
2019-02-05 02:20:14 +0200
I've been digging into this for the last couple of days and I think I have some bad news here but there is hope.
So the mistake we all been doing is following instructions for an older version of android. We need gapps for android 8.1, and not 4.4 that the original Jolla (and everything else up to XA2) is running. So following the same steps mentioned by @Zastin91 answerof unsquashing the image file I downloaded the earliest pico version of opengapps for 8.1 from here https://github.com/opengapps/arm/releases/tag/20180301 (01/03/2018).
The zip file is a bit different compared to the older versions of gapps we had as each individual package is also compressed to lz files. All the required files are in the Core folder.
I extracted:
vending-arm.tar.lz
and copied the Phonesky
folder gfs-core.tar.lz
for the GoogleServicesFramework
folder gmscore-arm.tar.lz
for thePrebuiltGmsCore
folder gmssetup-all.tar.lz
for the GmsCoreSetupPrebuilt
folder googleonetimeinitializer-all.tar.lz
for the GoogleOneTimeInitializer
folder googlepartnersetup-all.tar.lz
for the GooglePartnerSetup
folder
(don't just extract the files to the priv-app folder but check the contents and find the appropriate folder that has the apk file with the same name, I also don't know if you really need all those, but that specific combination worked for me to get the play services running to... some extend...keep reading to get what I mean).
Now after packing back the img file, replacing the original in my xa2 and restarting alien dalvik I had to deal with this https://www.xda-developers.com/how-to-fix-device-not-certified-by-google-error/
After downloading the device id app with yalp store and following the procedure for white listing my device as described in the link above I was still getting the error until I managed to add my account and restarted the phone a couple of times as well as updated both the play store and play services by dowloading the latest versions through apkmirror.
At that point everything seemed to work fine but we are back to the same problem we had with every other sailfish device that was running the latest play services. You can't install any app from play store as they are stuck in pending. Apps installed through yalp though work as expected with no problems accessing the play services. (at least after some initial testing)
I believe we will have better luck with microg and some file modifications for signature spoofing than with opengapps.
PS: I also tried the MindTheGApps packages to no luck as play services were constantly crashing.
system packed to squashfs imgage. you have to repack it to add any modifications.
coderus ( 2019-02-01 10:08:08 +0200 )editPlease specify when you are referring to the XA2 version of Sailfish X. Generic subjects can confuse readers.
Giacomo Di Giacomo ( 2019-02-01 12:00:04 +0200 )edit