Code:
* I am 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!
Continuation from 2.0 thread to keep most important information in first post. Thanks to vevgeniev for initial port, without it I would never buy Photon Q.
Repo with my apps is added to image. Packages can by installed via terminal:
Code:
devel-su zypper in "package name"
Installation
- Download and flash cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip via twrp-3.0.2-0-asanti_c.img according to ordinary cm instruction. Boot to android and make sure everything works.
Download SailfishOS 3 image (open it in private mode if onedrive ask you to login) and flash it over cyanogenmod. It's compressed tarball so installation may take even 10 minutes.
OTA
Read about Stop Releases
Code:
# Transition from 3.0.2 to 3.0.3 reqires few more steps
devel-su
/bin/rm -rf /etc/firmware
ssu ar glibc-tmp http://repo.merproject.org/obs/home:/elros34:/glibc/sailfishos_3.0.3.9/
# [B]After[/B] succesfull system upgrade remove glibc-tmp repo
# ssu rr glibc-tmp
Code:
devel-su
RELEASE="$(curl http://repo.merproject.org/obs/nemo:/testing:/hw:/motorola:/moto_msm8960_jbbl/ 2>/dev/null | pcregrep -o1 '"sailfishos_([\d\.]+)' | tail -n1)"
ssu lr
# ^ double-triple check that no -two- enabled repos point to the same URL and all versioned repos points to correct release
ssu release $RELEASE
# You may have many of OpenRepos enabled. It's recommended to disable them, even
# though version --dup will do its best-effort to isolate repositories:
# disable openrepos
OPENREPOS="$(ssu lr | sed -n '/Enabled repositories (user)/,/Disabled/p' | awk '/openrepos/{print $2}')"
for repo in $OPENREPOS; do
ssu disablerepo $repo
done
ssu lr
zypper clean -a
zypper ref -f
version --dup
# if above fails, try again
# version --dup
/usr/share/sfos-moto_msm8960_jbbl-adaptation/moto_msm8960_jbbl.sh
zypper in --force patterns-sailfish-device-configuration-moto_msm8960_jbbl
for repo in $OPENREPOS; do
ssu enablerepo $repo
done
sync
reboot
# after reboot execute pkcon refresh to update all repositories
Code:
/usr/share/sfos-moto_msm8960_jbbl-adaptation/upgrade.sh
Code:
tracker reset --hard
Custom Bootlogo
vevgeniev created a custom bootlogo:
Instruction how to use it
Known issues
- Half screen mirror glitch occurs sometimes. Blank/unblank display fixes it
- Sometimes removing files does not have any effect, i.e. free space doesn't increase and sdcard can't be unmounted. Could be easily triggered by mtp or dd usage. For sdcard access use FileZilla (SFTP).
- Some mp4 videos with aac fails to play due to unsupported codec format by android hal. Try my video player orangeplayer (you need gstreamer1.0-libav package)
- QProcess:startDetached can hang randomly. Workaround added to fingerterm. Looks like it's not photon q specific: https://together.jolla.com/question/202337/bug-fingerterm-terminal-freezes-after-opening-new-window
- There are no 2.XG, 3.XG network indicators.
- glReadPixels() always returns empty content. It means no screen recording, screenshots and thumbnails in browser. Workaround for screenshots added to lipstick.
- All bugs at first boot are features.
FAQ
Q: How to run apk?
A: It's not android, you can't
Q: Can I switch hardware keyboard layout?
A: Default xkb layout switch shortcut: "shift + sym". You need to also set second keyboard layout:
Tipsdconf write /desktop/lipstick-jolla-home/layout "'us,ru'"
- Fast way to restart lipstick:
shift + tab + k - Alt + Tab like switching (if you have sailfishos-alttab-patch installed):
OK + tab - To disable volume media keys:
dconf write /apps/photonq-helper/mediaKeysEnabled 0 - batt_health can cause reported battery capacity decrease which I am not sure works correctly at least on my aging battery. It's disabled since 3.3.0 in 2 places in /init.target.rc. Therefore btry will not report Aged Capacity anymore.
- To use h264 (hardware accelerated) decoder in youtube set in about:config media.mediasource.webm.enabled to false
Changelog
3.4.0.24
- Fix memory leak when taking screenshot
- Add workaround for remembering wlan state after reboot in airplane mode
- Media keys works only in locked screen
3.3.0.16
- NFC pn544 plugin added
- batt_health disabled in /init.target.rc
- glibc 2.30, gcc 8.3
3.1.0.12
- kernel: hold volume up/down to select next/previous song
- droid-hal-init: disable mpdecision due to constant cpu usage
3.0.3.9
- Patch glibc for 3.0 kernel
3.0.2.8
- Handle system and data partition automatically
- New methods to wake up sensors
3.0.1.11
- kernel: Fix crashes caused by new firewall rules
- kernel: Experimental multi LUNs support
- droidmedia: Fix random audio/video fail in browser
- usb-moded: Mass storage was dropped in upstream. Use patched one
XDA:DevDB Information
SailfishOS 3 for Photon Q, ROM for the Motorola Photon Q 4G LTE
Contributors
elros34, vevgeniev
Source Code: https://github.com/elros34?utf8=%E2%9C%93&tab=repositories&q=msm8960&type=&language=
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.0.x
Based On: CyanogenMod
Version Information
Status: Alpha
Created 2018-11-23
Last Updated 2019-08-20
Last edited: