• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GNU/LINUX][4.3.0.12] Sailfish OS for Xperia Tama devices

Search This thread

rinigus

Senior Member
Nov 15, 2015
232
260
(as common on XDA, see below. work is released under MIT license)
Code:
#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

I am happy to announce a port of Sailfish OS to Sony Xperia XZ2. It is expected that this port would allow us to add support to XZ2 compact and XZ3 in a rather simple manner. As I have a single-sim device, that's the model its ported to first. To cover all six devices in Tama family, I may need some assistance from the owners. Please open an issue in the project's main repo to discuss specific model and what's needed to make it possible.

As this announcement is made at TMO and XDA, I will keep it short and avoid repetition.

Current features, state, download links: https://github.com/sailfishos-sony-tama/main/blob/master/README.md

The port was made possible thanks to the help from Sailfish porters (mal, piggz, deathmist, Mister_Magister,*vknecht, spiiroin) as well as Sony AOSP community (MartinX3, jerpelea, oshmoun,*Marijn,*kholk). And I suspect that I forgot someone, as very many contributed. Thank you very much!

I will be following on XDA and TMO. Please file issues centrally, at Github.

Sailfish OS, ROM for the Xperia XZ2

Contributors
rinigus Thaodan
ROM OS Version: 10.x
ROM Kernel: Linux 4.14.x
Based On: AOSP

Version Information
Status:
Stable
Current Stable Version: 4.3.0.12
Stable Release Date: 2021-12-02

Created 2019-11-24
Last Updated 2021-12-02
 
Last edited:

ozamyatin

Member
Oct 23, 2016
37
23
Moscow
XZ3 are here. Not bootable at the moment however. Just black screen after unlocked bootloader message. No sign of sony logo. Not sure if it even should be displayed btw
 
Last edited:
  • Like
Reactions: rinigus

rinigus

Senior Member
Nov 15, 2015
232
260
XZ3 are here. Not bootable at the moment however. Just black screen after unlocked bootloader message. No sign of sony logo. Not sure if it even should be displayed btw

Great to hear that someone tried, thanks!

I have not made any images for XZ3 yet. So, which image did you flash?

To make XZ3 image, I need to know how partitions are organized on XZ3. As I don't have XZ3, interested user has to provide such list. Please upload list either here or at https://github.com/sailfishos-sony-tama/main/issues/41 - its expected that its the same for dual and single sim variants.

Command to generate the list is given at with example result

https://github.com/sailfishos-sony-tama/main/issues/38#issuecomment-558017361

You could run it via adb (Android full OS or TWRP). As soon as I have that list, I will need to compile base AOSP for XZ3, kernel, few other packages and will be able to make images (XZ3 single/dual).

Meanwhile I set up CI and other build envs. Soon, images for XZ2 dual and XZ2c (single/dual) are coming for testing. But that's a separate post later a bit.
 
  • Like
Reactions: ozamyatin

rinigus

Senior Member
Nov 15, 2015
232
260
development builds for XZ2 and XZ2c variants

I am expanding a raster of devices with the images from Tama family. As mentioned above, XZ3 is
still missing mount points, hence its builds are not ready. However, as large fraction of the build if offloaded to the build servers, including generation of the images, it will be 'easy' to extend it to XZ3.

Currently, there are development builds for

- XZ2 single sim - release build is available as well and better use that
- XZ2 dual sim
- XZ2 compact single and dual

The images are available at https://thaodan.de/public/sailfishos/community/images/sony/tama/ (select appropriate device image, as based on its code https://developer.sony.com/develop/open-devices/get-started/supported-devices-and-functionality). Thanks to Thaodan for providing server space!

I have not tested those images as mine is from earlier days. In particular, I am looking for feedback regarding

- whether images work on any of the devices. They do share the same vbmeta (see flashing instructions) which maybe a wrong assumption of mine.
- whether dual sim support works on dual-sim devices

In short, if you flashed it, please do report back. Even if its just report all is OK.

Boot sequence is as follows:

- screen regarding unlocked bootloader
- SONY logo
- white brighter led while on SONY logo
- white dimmer led while on SONY logo
- blank screen
- Sailfish greeting

Please note these are development images. If all works as intended (boots and functionality is as for XZ2 single sim), we will make new release images. The difference is in over-the-air update support - this is available to release images only.
 

bartys

Senior Member
Dec 15, 2014
153
34
Hi you did great job with this port. I installed it without problems and everything is working fine. Sailfish is beautiful and smooth but without android apps support i can't use it as daily driver.
 
  • Like
Reactions: rinigus

rinigus

Senior Member
Nov 15, 2015
232
260
Hi you did great job with this port. I installed it without problems and everything is working fine. Sailfish is beautiful and smooth but without android apps support i can't use it as daily driver.

Thanks! Yes, Android support is missing. For myself, I found that live without Android apps is fine. For banking apps, and that's all what I have to use once in a while, I use another device. But your mileage may vary.

Would you mind telling which device did you test it on and which build did you use?
 
  • Like
Reactions: MartinX3

bartys

Senior Member
Dec 15, 2014
153
34
Thanks! Yes, Android support is missing. For myself, I found that live without Android apps is fine. For banking apps, and that's all what I have to use once in a while, I use another device. But your mileage may vary.

Would you mind telling which device did you test it on and which build did you use?

I used build from github on xperia xz2 h8216
 
  • Like
Reactions: rinigus

ozamyatin

Member
Oct 23, 2016
37
23
Moscow
Great to hear that someone tried, thanks!

I have not made any images for XZ3 yet. So, which image did you flash?

To make XZ3 image, I need to know how partitions are organized on XZ3. As I don't have XZ3, interested user has to provide such list. Please upload list either here or at https://github.com/sailfishos-sony-tama/main/issues/41 - its expected that its the same for dual and single sim variants.

Command to generate the list is given at with example result

https://github.com/sailfishos-sony-tama/main/issues/38#issuecomment-558017361

You could run it via adb (Android full OS or TWRP). As soon as I have that list, I will need to compile base AOSP for XZ3, kernel, few other packages and will be able to make images (XZ3 single/dual).

Meanwhile I set up CI and other build envs. Soon, images for XZ2 dual and XZ2c (single/dual) are coming for testing. But that's a separate post later a bit.

Thank you for your great effort in making things clear. :good:
I tried to flash XZ2 version. Naive maybe :)
Followed your request to upload the partition scheme for XZ3. You might check it out on GitHub. Just in case, my hardware is XZ3 4GB/64GB Dual Sim akatsuki 9436.
 
  • Like
Reactions: rinigus

rinigus

Senior Member
Nov 15, 2015
232
260
Thank you for your great effort in making things clear. :good:
I tried to flash XZ2 version. Naive maybe :)
Followed your request to upload the partition scheme for XZ3. You might check it out on GitHub. Just in case, my hardware is XZ3 4GB/64GB Dual Sim akatsuki 9436.

Thanks! Looks like mount points are the same as for other devices in Tama family. Now I will have to build AOSP and Sailfish components for XZ3. After that, images will be generated using CI and uploaded to the same server as development builds above. Give me couple of days and it will be ready for testing.
 

ozamyatin

Member
Oct 23, 2016
37
23
Moscow
New development builds are out covering all Tama variants. See https://forum.xda-developers.com/showpost.php?p=81060529&postcount=6 for instructions.

Ironically enough, after reflashing the right image files according to the instruction, the boot sequence for me is as follows:
- screen regarding unlocked bootloader
- SONY logo
- white brighter led while on SONY logo
- white dimmer led while on SONY logo
- no led while on SONY logo
- SONY LOGO for a lot of time
Stuck. What can be done for debugging such case on Sailfish?
 
  • Like
Reactions: rinigus

rinigus

Senior Member
Nov 15, 2015
232
260
Ironically enough, after reflashing the right image files according to the instruction, the boot sequence for me is as follows:
- screen regarding unlocked bootloader
- SONY logo
- white brighter led while on SONY logo
- white dimmer led while on SONY logo
- no led while on SONY logo
- SONY LOGO for a lot of time
Stuck. What can be done for debugging such case on Sailfish?

Thanks a lot for reporting. There are ways to debug it, just will require some patience. Looks like Sailfish as such boots, just it cannot start GUI for one or another reason.

First, let's see if we get lucky. Hold power button for some time. Led should turn red and device will shut down. Try to start again. Do you have the same issue or GUI starts?

If we are not lucky, let me check if recovery image is fine. For speeding up debugging - do you have Linux PC or something else?

Its late over here, I am off for tonight. Will be able to continue tomorrow evening.
 
  • Like
Reactions: ozamyatin

rinigus

Senior Member
Nov 15, 2015
232
260
There is no Android app support
So can't I download any apps?:crying:

No, there is no Android support. It also doesn't support iOS apps, Windows apps, Playstation games, and programs compiled for VAX.

Yes, you can download apps written for Sailfish OS.

On constructive note: all devices that are not XZ2 single sim will have to be tested first with few commands to get access to Jolla Store. If you happen to have such device, get in touch with me and I will ask you to make these tests. You could open an issue at Github for it (Jolla Store access for HYYYY) or ask here.
 

MartinX3

Recognized Contributor
Sep 14, 2014
5,868
2,936
Mars
martinx3.github.io
No, there is no Android support. It also doesn't support iOS apps, Windows apps, Playstation games, and programs compiled for VAX.



Yes, you can download apps written for Sailfish OS.



On constructive note: all devices that are not XZ2 single sim will have to be tested first with few commands to get access to Jolla Store. If you happen to have such device, get in touch with me and I will ask you to make these tests. You could open an issue at Github for it (Jolla Store access for HYYYY) or ask here.
What is needed to add the android support?
A bought license from sailfish?
Because on their website there is a payable version with android support for specific phones.

"Sailfish licensing customers choose if they wish to use, or not to use, the Android application compatibility part in the OS."
 

rinigus

Senior Member
Nov 15, 2015
232
260
What is needed to add the android support?
A bought license from sailfish?
Because on their website there is a payable version with android support for specific phones.

"Sailfish licensing customers choose if they wish to use, or not to use, the Android application compatibility part in the OS."

In practice, there are two ways to get Android support:

- get an officially supported device (xperia x, xa2, 10) and buy license. That will allow you to use their Aliendalvik software which provides Android support. Not perfect support, but works for decent amount of apps.

- develop open-source Android compatibility stack, for example Anbox. I don't know much about Anbox development, though. From the outsider perspective, such as mine, it looks rather slow.

At this moment, none will work on Xperia Tama. As mentioned earlier in the thread, look what you really need and, if it is missing, develop it. Obviously, it will not work for closed-protocols apps. But then you have to choose, whether to stay on Android, get dumb phone for few Android apps that you need, or ditch the closed-protocol apps. In some respect, trying to emulate Android on other platforms seems to me unproductive, but that's my personal opinion.
 

rinigus

Senior Member
Nov 15, 2015
232
260
XZ3 dual/single and XZ2 dual released

XZ3 dual has been yesterday fixed together with ljo. Turned out that the touchscreen device had a different name and I forgot to adjust boot cmd line. I have uploaded XZ3 dual/single and XZ2 dual to the released images.

If you get any issues with Jolla Store access, please let me know

XZ2c is expected to be released in a week or so. Device has been ordered by one of Sailfish users and I think we will be able to finalize its release soon.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    How did you unlock the bootloader?

    see:
  • 19
    (as common on XDA, see below. work is released under MIT license)
    Code:
    #include <std_disclaimer.h>
    /*
    *
    * We are not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    *
    */

    I am happy to announce a port of Sailfish OS to Sony Xperia XZ2. It is expected that this port would allow us to add support to XZ2 compact and XZ3 in a rather simple manner. As I have a single-sim device, that's the model its ported to first. To cover all six devices in Tama family, I may need some assistance from the owners. Please open an issue in the project's main repo to discuss specific model and what's needed to make it possible.

    As this announcement is made at TMO and XDA, I will keep it short and avoid repetition.

    Current features, state, download links: https://github.com/sailfishos-sony-tama/main/blob/master/README.md

    The port was made possible thanks to the help from Sailfish porters (mal, piggz, deathmist, Mister_Magister,*vknecht, spiiroin) as well as Sony AOSP community (MartinX3, jerpelea, oshmoun,*Marijn,*kholk). And I suspect that I forgot someone, as very many contributed. Thank you very much!

    I will be following on XDA and TMO. Please file issues centrally, at Github.

    Sailfish OS, ROM for the Xperia XZ2

    Contributors
    rinigus Thaodan
    ROM OS Version: 10.x
    ROM Kernel: Linux 4.14.x
    Based On: AOSP

    Version Information
    Status:
    Stable
    Current Stable Version: 4.3.0.12
    Stable Release Date: 2021-12-02

    Created 2019-11-24
    Last Updated 2021-12-02
    7
    This is to announce 4.0.1.48 Sailfish release for Sony Tama devices. Update is available via OTA and as flashable images (images uploaded right now).

    Before updating read the release notes at https://github.com/sailfishos-sony-tama/main/releases/tag/4.0.1.48. Pay attention to the bugs that have been associated with the update and referred to in the release notes.

    Work on the update was started by Thaodan which allowed me to continue from already good state.

    Note that while I have tested final release for a day, it has not been tested extensively. So, as usual, for those who want to be on the safe side, wait bit longer and see if issues will start popping up in github repository or forum threads (TMO and XDA).

    I have started the work on switching to AOSP10 and aarch64 base. It boots, WiFi, calls, cellular network, GPS, camera all work. With the calls, there is a huge echo and there is a host of other issues that need to be resolved before getting it out as a beta. I will try to tag the current issues with that port using hybris-10 label to make them accessible via https://github.com/sailfishos-sony-tama/main/issues?q=is:issue+is:open+label:hybris-10.

    Plan is, after some testing as a beta release, that we will switch over to AOSP10/aarch64 and retire the current AOSP9/arm32 version. But that would require fixing the issues to ensure that we wouldn't loose daily driver quality of the port.
    7
    This is to announce the first release based on AOSP10 and using aarch64 for Sony Xperia Tama platform.

    Release is based on 4.1.0.24 Sailfish and is using the latest AOSP10 as a base. I consider it alpha right now due to limited testing. Most of the testing was done on development device while fixing the port bugs. Now it is installed on my daily driver and I will be able to test it further.

    This release has changed the base and switched to aarch64. As a result, you have to reflash it. In documentation, I wrote down the instructions for those who switch from AOSP9 based port.

    The port was started in the end of February, including the development of TBuilder to automate the builds. There are still some rough corners, see issues labeled with hybris-10 tag in the issue tracker. While it is not using OBS, future OTA are supported (see documentation for details).

    Compared to AOSP9, I couldn't make hardware acceleration work on Flatpak apps. So, right now, Flatpak support is not there. Not sure whether I can make it work.

    I would like to invite others to test the release. For XZ3 device owners - please check whether your phone calls work as expected. I have reverted some changes introduced in AOSP10 to cancel echo during the phone calls (issue 125) and it worked fine on XZ2 and XZ2c. So, please pay attention and test it by calling others, check whether microphone levels are OK and whether there is any echo in the call. Please report back your findings.

    I plan to maintain only one base. If AOSP10 will work fine, it will be used as a base for the port.

    Release available at: https://github.com/sailfishos-sony-tama/main/releases/tag/4.1.0.24-aosp10-alpha1

    See release notes and read the documentation before flashing.
    7
    What is needed to add the android support?
    A bought license from sailfish?
    Because on their website there is a payable version with android support for specific phones.

    "Sailfish licensing customers choose if they wish to use, or not to use, the Android application compatibility part in the OS."

    In practice, there are two ways to get Android support:

    - get an officially supported device (xperia x, xa2, 10) and buy license. That will allow you to use their Aliendalvik software which provides Android support. Not perfect support, but works for decent amount of apps.

    - develop open-source Android compatibility stack, for example Anbox. I don't know much about Anbox development, though. From the outsider perspective, such as mine, it looks rather slow.

    At this moment, none will work on Xperia Tama. As mentioned earlier in the thread, look what you really need and, if it is missing, develop it. Obviously, it will not work for closed-protocols apps. But then you have to choose, whether to stay on Android, get dumb phone for few Android apps that you need, or ditch the closed-protocol apps. In some respect, trying to emulate Android on other platforms seems to me unproductive, but that's my personal opinion.
    6
    New release is out based on AOSP10/aarch64. After testing and discussion on SFO, I am switching the port to AOSP10/aarch64 base and will continue releases on that base from now on.

    While it is inconvenient to reflash the device and set it up again, I think a better camera does justify it. On my side, it will be just too much work to support multiple bases / ports, so I had to make a choice.