[G2 and Desire Z Android Development] guhl99:
Hi,

This are some pictures of Sailfish OS Version 1.x and 2.x ported to the Vision. This is still very Alpha but I wanted to show you that I am working on it again and that there is some progress.

[IMG="G2 - Sailfish OS 1.x"]https://www.thinkthinkdo.com/g2ics/G2_SF_20140923.png[/IMG] [IMG="G2 - Sailfish OS 2.0.4.13"]https://www.thinkthinkdo.com/g2ics/vision_2-0-4-13.png[/IMG] [IMG="G2 - Sailfish OS 2.0.4.13_1"]https://www.thinkthinkdo.com/g2ics/vision_2-0-4-13_1.png[/IMG]

Download:

Sailfish OS Version 1.x

ROM cm-10.1-20131028-UNOFFICIAL-vision-pff.zip (only for version 1.x)

Pre Alpha 1: ROM sailfishos-vision-release-1.0.8.19-guhl141001.zip (old)

Pre Alpha 2: ROM sailfishos-vision-release-1.0.8.19-guhl141025.zip (old)

Pre Alpha 3: ROM sailfishos-vision-release-1.0.8.19-guhl141028.zip (old)

Pre Alpha 4: ROM sailfishos-vision-release-1.1.0.39-guhl141109.zip (old)

Sailfish OS Version 2.x

ROM cm-11-20140405-UNOFFICIAL-vision-pff.zip (for version 2.x)

Alpha 1: ROM sailfishos-vision-release-2.0.0.10-guhl151229.zip (old)

Alpha 2: ROM sailfishos-vision-release-2.0.0.10-guhl151231.zip (old)

Alpha 3: ROM sailfishos-vision-release-2.0.0.10-guhl160102.zip (old)

Alpha 4: ROM sailfishos-vision-release-2.0.0.10-guhl160116.zip (current)

Sailfish OS Version 2.0.4.x (old)

ROM cm-11-20161225-UNOFFICIAL-vision.zip (for version 2.0.4.x)

Alpha 5: sailfishos-vision-release-2.0.4.13-guhl161120.zip (old)

Alpha 6: sailfishos-vision-release-2.0.4.13-guhl161125.zip (old)

Alpha 7: sailfishos-vision-release-2.0.4.13-guhl161206.zip (current)

Sailfish OS Version 2.1.x.x (current)

ROM cm-11-20171119-UNOFFICIAL-vision.zip (for version 2.1.x.x)

Alpha 8: hybris-boot-vision-29171119.img (current boot)

Alpha 8: sfe-vision-2.1.2.3-guhl171119.tar.bz2 (current rom)

Installation prior to 2.1.x.x:

Remark: The installation of the correct CM (10.1 for SF 1.x and 11 for SF 2.x) image is only necessary once. So if you already did this the first time you can skip steps 2 and 4.2

1. Boot into Android Recovery and make sure that the sdcard is mounted

2. Upload the CM release: adb push cm-11-20161225-UNOFFICIAL-vision.zip /storage/sdcard0/

3. Upload Sailfish OS: adb push sailfishos-vision-release-2.0.4.13-guhl161206.zip /storage/sdcard0/

4. In the Recovery on the device:

4.1. Clear data and cache (factory reset)

4.2. Install the CM release by picking the CM image (this is needed so that the correct version of the binary libraries and firmware files are in place)

4.3. Install Sailfish OS by picking the SFOS image (this will take quite some time)

5. Reboot the device

Installation for 2.1.x.x:

The installation of the 2.1.x.x does not work by regular recovery method. Below you find instructions on how to install it manually.

1. Boot into Android Recovery and make sure that the sdcard is mounted

2. Upload the CM release: adb push cm-11-20171119-UNOFFICIAL-vision.zip /storage/sdcard0/

3. Upload Sailfish OS: adb push sfe-vision-2.1.2.3-guhl171119.tar.bz2 /storage/sdcard0/

4. In the Recovery on the device:

4.1. Clear data and cache (factory reset)

4.2. Install the CM release by picking the CM image (this is needed so that the correct version of the binary libraries and firmware files are in place)

5. Mount /data

6. On you PC open a adb shell to the device and in the shell do:

mkdir -p /data/.stowaways/sailfishos
tar --numeric-owner -xvjf /storage/sdcard0/sfe-vision-2.1.2.3-guhl171119.tar.bz2 -C /data/.stowaways/sailfishos

When it's done -> exit the adb shell and boot the phone do bootloader (i.e. using "adb reboot bootloader")

7. flash the boot using fastboot

fastboot flash boot hybris-boot-vision-29171119.img

Afterwards boot the phone (i.e. using "fastboot reboot")

After the initial boot (that will take some time) the language selection and initial setup will show (it might happen that the screen turns of before the language selection comes up -> press power from time to time.

Then it will take some time and you will be asked to enter a security code twice.

At the step where it asks you to set up a Jolla Account you can skip this (the option to skip it is at the end of the text - scroll down do see the line)

After that it will take a while and then the Jolla tutorial should come up. You can skip the tutorial by clicking the corners of the screen in the following sequence: Top-Left, Top-Right, Bottom-Right, Bottom-Left.

Remark

- During the tutorial the screen will hang several times (you might better skip it). The best thing to go forward is to press the power button to turn the screen off and on and then continue. This is very annoying, but I did not trace done the reason for this hangs yet.

- In Settings - Text Input: change the layout of the hardware keyboard to T-Mobile G2

- Proximity sensor does not work properly yet (it's stuck). Therefore one can not answer an incoming call as the screen will always stay blank. The proximity sensor can be disabled by triple pressing the powerbutton (phone will vibrate as a confirmation). After this phone calls work.

- Overclocking: in a terminal (ssh or telnet), after gaining root via devel-su you can set the maximum cpu scaling frequency with the following command: echo 1516800 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

This is still a Alpha ROM so do not expect it to work properly. See the change-log about the current status.

Change-log:

Current Version

Version 171119

complete rebuild based on Sailfish OS 2.1.2.3

switched screen composition to surfaceflinger -> screen does not hang anymore

Version 2.0.x.x

CM-11 Version 20161225

fixed Camera support in the basic CM-11 rom (did not work before) this will be needed to make Camera work in SF

Version 161206

mobile data connection works. (needs to be enabled in settings after first reboot)

added zram swap

Version 161125

updated ofono (telephony server) to 1.8. Disabled 4G. (phone needs reboot after initial setup to connect to network)

Added telephony app

Version 161120

initial working port of 2.0.4.13 based on a new CM11 rom

Currently not working: mobile data, camera, ...

Old Versions

Version 160116

fixed layout of the hardware keyboard (for the regular keys and based on the english G2 layout)

improved screen hangs somewhat

Added Openrepos warehouse

Version 160102

disabled proximity sensor in mce

fixed statfs access to battery status by mce

Version 151231

working: mobile data connection

Version 151230

Sailfish OS version 2.0.0.10 based on CM11

Working: screen (some hangs), cell phone connection, sound (including phone calls), wifi, most of the sensors, hw-keyboard (without proper mapping)

Not working: mobile data connection, camera

Version 141109

Sailfish OS update to 1.1.0.39

Version 141028

Keyboard mapping for the hardware keyboard (G2 based)

Version 141025

Sound (output only, no routing)

GSM - Incoming/Outgoing calls (but unusable as screen turns off caused by missing proximity sensor and no sound in)

SMS - Incoming/Outgoing (usable besides screen distortions cause by the virtual keyboard)

Mobile Data connection

Warehouse pre-installed to install additional apps

Version 141001

Screen (with some distortions in some places)

Touchscreen

Keyboard (very basic)

WiFi

Credits:

sledges, piggz, alin, mal- et al. from the #sailfish-porters IRC channel on freenode

These guys are doing amazing work and their competence and readiness to help reminds me of the good old days on #G2ROOT.

Without their support this would not have been possible!

Have fun - Guhl