We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-05-08 12:20:09 +0200 |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d <path>/system.img Temp/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
2 | No.2 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d <path>/system.img Temp/system.imgTemp/system
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
3 | No.3 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d <path>/system.img yourpath/system.img Temp/system
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
4 | No.4 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d yourpath/system.img Temp/system
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
5 | No.5 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d yourpath/system.img Temp/systemTemp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
6 | No.6 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
7 | No.7 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
gmscore-arm
is rather gmscore-arm64
and the directory and apk inside are not PrebuiltGmsCore
but PrebuiltGmsCorePix
.8 | No.8 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
gmscore-arm
is rather gmscore-arm64
and the directory and apk inside are not PrebuiltGmsCore
but PrebuiltGmsCorePix
.9 | No.9 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
gmscore-arm
is rather gmscore-arm64
and the directory and apk inside are not PrebuiltGmsCore
but PrebuiltGmsCorePix
10 | No.10 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
gmscore-arm
is rather gmscore-arm64
and the PrebuiltGmsCore
but PrebuiltGmsCorePix
. This has been changed between 2018 and 2019 (the new version should be a Pixel-specific one). Anybody was successful with a recent opengapps archive?11 | No.11 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working.working. The procedure currently available must be collected from a number of different posts on TJC, mostly vague and missing important details. I tried to sum up what I gathered from them in the following procedure, but could not get Android support to start. Corrections by someone who managed to get Play Services working are encouraged.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
PrebuiltGmsCore
but PrebuiltGmsCorePix
. This has been changed between 2018 and 2019 (the new version should be a Pixel-specific one). Anybody was successful with a recent opengapps archive?12 | No.12 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working. The procedure currently available must be collected from a number of different posts on TJC, mostly vague and missing important details. I tried to sum up what I gathered from them in the following procedure, but could not get Android support to start. Corrections by someone who managed to get Play Services working are encouraged.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
PrebuiltGmsCore
but PrebuiltGmsCorePix
. This has been changed between 2018 and 2019 (the new version should be a Pixel-specific one). Anybody was successful with a recent opengapps archive?EDIT: I just checked and found that file attributes are all messed up. That's obvious since Windows file systems don't have Unix attributes. Anybody can suggest a way to keep the files in a Unix-like file system, possibly on an external device? Maybe an ext4-formatted USB stick could do the job.
13 | No.13 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working. The procedure currently available must be collected from a number of different posts on TJC, mostly vague and missing important details. I tried to sum up what I gathered from them in the following procedure, but could not get Android support to start. Corrections by someone who managed to get Play Services working are encouraged.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
Possible fault causes:
PrebuiltGmsCore
but PrebuiltGmsCorePix
. This has been changed between 2018 and 2019 (the new version should be a Pixel-specific one). Anybody was successful with a recent opengapps archive?EDIT: I just checked and found that file attributes are all messed up. That's obvious since Windows file systems don't have Unix attributes. Anybody can suggest a way to keep the files in a Unix-like file system, possibly on an external device? Maybe an ext4-formatted USB stick could do the job.get lzip and squashfs-tools running on it.
14 | No.14 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working. The procedure currently available must be collected from a number of different posts on TJC, mostly vague and missing important details. I tried to sum up what I gathered from them in the following procedure, but could not get Android support to start. Corrections by someone who managed to get Play Services working are encouraged.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
EDIT: The most likely cause for malfunction is Windows not preserving Unix file permissions. I can't think of an easy workaround for this. Maybe it would be easier to carry out all the same operations on the phone itself, provided I can get lzip and squashfs-tools running on it.
EDIT 2: I have thought of a possible workaround. I can try appending to the system.img, rather than unpacking and repacking it. I will try it as soon as I can.
15 | No.15 Revision |
This wants to be a comprehensive guide for installing Android support on baseport 8 devices, currently the Xperia XA2 series. This procedure has not worked for me, so support is required by someone who got it working. The procedure currently available must be collected from a number of different posts on TJC, mostly vague and missing important details. I tried to sum up what I gathered from them in the following procedure, but could not get Android support to start. Corrections by someone who managed to get Play Services working are encouraged.
The steps are the following:
/opt/alien/system.img
file from the device. You can do so by copying it to the /home/nemo/Downloads
directory and accessing the phone via USB in MTP mode.Temp
). Unsquash thesystem.img
file in a folder called system/
inside the temporary folder: unsquashfs.exe -d Temp/system yourpath/system.img
.Core
directory from the opengapps archive into a Core
subdirectory of the Temp directory.Core
subdirectory on the PC, decompress the following archives using lzip -d archivename
:
vending-arm
, gsfcore-all
, gmscore-arm64
, gmssetup-all
, googleonetimeinitializer-all
, googlepartnersetup-all
.priv-app
directories. If more than one is present, take the one under the nodpi
path. Take the contents of the selected priv-app
directory, one for each archive (in all cases it is another single directory), and copy them to the system/priv-app
directory located inside the Temp/system
directory (Temp/system/system/priv-app
).mksquashfs.exe system\ system.img -comp lz4 -Xhc -noappend -no-exports -no-duplicates -no-fragments
./home/nemo/Downloads
directory on the phone via USB.devel-su
.mv /opt/alien/system.img /opt/alien/system.img.old
. cp /home/nemo/Downloads/system.img /opt/alien/
.What am I doing wrong?
EDIT: The most likely cause for malfunction is Windows not preserving Unix file permissions. I can't think of an easy workaround for this. Maybe it There would be easier to carry out all the same operations on the phone itself, provided I can get lzip and squashfs-tools running on it.
EDIT 2: I have thought of a possible workaround. I can try appending to the the immediate solution of merging the files to the existing system.img, were it not that mksquashfs has been written in the moronic way that if it detects two identical directories, rather than unpacking adding the new files to the existing directory, it will create a new directory with a different name and repacking put the new files in it. I will try it as soon as I can.If somebody has a workaround for this idiotic behaviour of mksquashfs, suggestions are welcome.