We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-11-22 22:41:51 +0200 |
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 (tested on latest version 3.2.0.12). Following this guide you will have full Google Play Services with minimum number of google components. This method test and developed by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
from hereLet's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt/AndroidMigratePrebuilt.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices/GoogleExtServices.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback/GoogleFeedback.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard/SetupWizard.apk;
rm -rf mindthegapps_sfos/system/priv-app/Velvet/Velvet.apk;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
mount -o loop,ro system.img.orig ./tmp-mount;
rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
umount ./tmp-mount;
rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
2 | No.2 Revision |
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 (tested on latest version 3.2.0.12). Following this guide you will have full Google Play Services with minimum number of google components. This method test and developed by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
from hereLet's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt/AndroidMigratePrebuilt.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices/GoogleExtServices.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback/GoogleFeedback.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard/SetupWizard.apk;
rm -rf mindthegapps_sfos/system/priv-app/Velvet/Velvet.apk;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
mount -o loop,ro system.img.orig ./tmp-mount;
rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
umount ./tmp-mount;
rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
3 | No.3 Revision |
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 with minimum number of google components (tested on latest version 3.2.0.12). Following this guide you will have full Google Play Services with minimum number of google components. This method test and was developed and tested by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
from hereLet's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt/AndroidMigratePrebuilt.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices/GoogleExtServices.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback/GoogleFeedback.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard/SetupWizard.apk;
rm -rf mindthegapps_sfos/system/priv-app/Velvet/Velvet.apk;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
mount -o loop,ro system.img.orig ./tmp-mount;
rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
umount ./tmp-mount;
rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
4 | No.4 Revision |
###Updated for version 3.2.1.19!
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 with minimum number of google components (tested on latest version 3.2.0.12). 3.2.0.12 and 3.2.1.19). This method was developed and tested by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
Let's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt/AndroidMigratePrebuilt.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices/GoogleExtServices.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback/GoogleFeedback.apk;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard/SetupWizard.apk;
rm -rf mindthegapps_sfos/system/priv-app/Velvet/Velvet.apk;mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard;
rm -rf mindthegapps_sfos/system/priv-app/Velvet;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
sudo mount -o loop,ro system.img.orig ./tmp-mount;
sudo rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
sudo umount ./tmp-mount;
sudo rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
sudo cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
sudo mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)If this is your first time setting up patched system.img you can additionally:
4. Go to aliendalvik settings Users & accounts and add google account (or open play store and sign in) in)
5. Open play store and disable Play protect and auto-updates
Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
5 | No.5 Revision |
###Updated for version 3.2.1.19!3.3.0.14!
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 with minimum number of google components (tested on 3.2.0.12 and 3.2.1.19). 3.2.0.12, 3.2.1.20 and 3.3.0.14). This method was developed and tested by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
for 3.2.0.12, 3.2.1.20 or Let's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard;
rm -rf mindthegapps_sfos/system/priv-app/Velvet;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
sudo mount -o loop,ro system.img.orig ./tmp-mount;
sudo rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
sudo umount ./tmp-mount;
sudo rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
sudo cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
sudo mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)If this is your first time setting up patched system.img you can additionally: 4. Go to aliendalvik settings Users & accounts and add google account (or open play store and sign in) 5. Open play store and disable Play protect and auto-updates
Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
6 | No.6 Revision |
###Updated for version 3.3.0.14!
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 with minimum number of google components (tested on 3.2.0.12, 3.2.1.20 and 3.3.0.14). This method was developed and tested by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
for 3.2.0.12, 3.2.1.20 or Let's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard;
rm -rf mindthegapps_sfos/system/priv-app/Velvet;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
sudo mount -o loop,ro system.img.orig ./tmp-mount;
sudo rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
sudo umount ./tmp-mount;
sudo rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
sudo cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
sudo mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)If this is your first time setting up patched system.img you can additionally: 4. Go to aliendalvik settings Users & accounts and add google account (or open play store and sign in) 5. Open play store and disable Play protect and auto-updates
Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!
7 | No.7 Revision |
###Updated for version 3.3.0.14!3.3.0.16!
Inspired by this OpenGapps Wiki here is the simple guide how to get fully functioning Google Play Services on your Xperia X2 with minimum number of google components (tested on 3.2.0.12, 3.2.1.20 and 3.3.0.14). 3.3.0.16). This method was developed and tested by @mjun.
Couple of notes:
system.img
on your computer and not on the phone itself. The reason is rsync crashing sfos.system.img
for 3.2.0.12, 3.2.1.20 or Let's get started
/opt/alien/system.img
/opt/alien/system.img
to your computer as system.img.orig
unzip MindTheGapps zip:
unzip MindTheGapps-8.1.0-arm64-20180808_153856.zip -d mindthegapps_sfos;
Remove unnecessary google components and config:
rm -rf mindthegapps_sfos/system/addon.d;
rm -rf mindthegapps_sfos/system/app/GoogleExtShared;
rm -rf mindthegapps_sfos/system/app/PrebuiltExchange3Google;
rm -rf mindthegapps_sfos/system/etc/permissions/com.google.android.dialer.support.xml;
rm -rf mindthegapps_sfos/system/etc/sysconfig/google_build.xml;
rm -rf mindthegapps_sfos/system/framework/com.google.android.dialer.support.jar;
rm -rf mindthegapps_sfos/system/priv-app/AndroidMigratePrebuilt;
rm -rf mindthegapps_sfos/system/priv-app/GoogleExtServices;
rm -rf mindthegapps_sfos/system/priv-app/GoogleFeedback;
rm -rf mindthegapps_sfos/system/priv-app/GoogleOneTimeInitializer;
rm -rf mindthegapps_sfos/system/priv-app/GooglePartnerSetup;
rm -rf mindthegapps_sfos/system/priv-app/SetupWizard;
rm -rf mindthegapps_sfos/system/priv-app/Velvet;
Unsquash system.img.orig with rsync (we use rsync to avoid file permissions problems)
mkdir -p tmp-mount squashfs-root;
sudo mount -o loop,ro system.img.orig ./tmp-mount;
sudo rsync -avPSHAX --inplace tmp-mount/ squashfs-root;
sudo umount ./tmp-mount;
sudo rmdir tmp-mount;
Copy google apps to unsquashed system.img.org:
sudo cp -r mindthegapps_sfos/system/* squashfs-root/system/
Create new system.img:
sudo mksquashfs squashfs-root system.img.gapps -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
Almost done! Now let's update the image on the phone itself!
system.img.gapps
to your XA2 as /opt/alien/system.img
(thus overwriting the original image)If this is your first time setting up patched system.img you can additionally: 4. Go to aliendalvik settings Users & accounts and add google account (or open play store and sign in) 5. Open play store and disable Play protect and auto-updates
Known problems
Tested google apps that work OK
Other non-google apps tested (latest versions)
Feel free to improve this guide and/or ask any questions!