maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

marmagas 2022-12-15 22:05

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
thanks guys!
fixed the vol- button(35 euros) and got it working ...finally!
@edp17 and @moodroid you are the men!
thanks!
now lets enjoy Jolla!
so what do we need to install for android apps?

edp17 2022-12-16 01:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Anyone fancy using AD on the Nexus5 with sfos 4.4 ?


https://i.ibb.co/vVwvRmz/Nexus5-SFOS...6-576x1204.jpg

https://i.ibb.co/qFr7n3J/Nexus5-SFOS...2012-12-16.jpg

marmagas 2022-12-16 07:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@edp17, of course we want!
https://i.postimg.cc/SKH9WM3Y/IMG-20...-36-30-490.jpg

edp17 2022-12-16 11:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I thought you would. :D

Here are the steps:
  1. Symlink /usr/lib/systemd to /lib.
    Command to run in Fingerterm:
    Code:

    devel-su ln -s /usr/lib/systemd /lib
  2. Download all following rpms into ~/Donwloads:
  3. Install all downloaded rpms:
    Commands to run in Fingerterm:
    Code:

      cd ~/Downloads
      devel-su zypper install *.rpm

  4. Downgrade qt5-qtpim-contacts:
    Download it: qt5-qtpim-contacts-5.2.0+git2-1.2.1.jolla.armv7hl.rpm
    Command to run in Fingerterm:
    Code:

    devel-su zypper install --oldpackage qt5-qtpim-contacts-5.2.0+git2-1.2.1.jolla.armv7hl.rpm
  5. Change all lines in /opt/alien/system/script/start_app.sh where FAKE_HOME_PID is used
    (remove the w from one parameter)
    FAKE_HOME_PID=$(ps -efw | grep $FAKE_HOME | grep -v grep |awk '{print $2}')
    to this:
    FAKE_HOME_PID=$(ps -ef | grep $FAKE_HOME | grep -v grep |awk '{print $2}')

    For this I recommend to use vi. Example:
    - start Fingerterm
    - run following command: devel-su vi /opt/alien/system/script/start_app.sh
    - press left SHIFT+I (capital i)
    - navigate to the lines I mentioned above and remove the w
    - press ESC
    - type: qw!
    - press enter and you're done

  6. Reboot & enjoy!

Update (01/01/2023):

I've found a problem.
When "qt5-qtpim-contacts" is downgraded, neither the Messages nor the People app starts. Unfortunately, both require the latest version of "qt5-qtpim-contacts". However, aliendalvik doesn't start with that version.

Workaround:
Download the new package of qt5-qtpim-contacts-5.6.0+git15-1.6.1.jolla.armv7hl.rpm so later won't need internet access to download it again. Save it into ~/Downloads folder.
In Settings, at Android App Support, do not let the Android App Support start on bootup. Instead, start manually once the system is booted.
Then, before starting the App Support, downgrade the "qt5-qtpim-contacts" to the version the Android Support requires. (Command is at Step 4. above.)
Once the App Support started, upgrade "qt5-qtpim-contacts" to the latest version. (Command: devel-su zypper in qt5-qtpim-contacts)
With this, all, the Messages and People apps and aliendalvik will be happy and running fine.
I admit, doing this after every reboot, can be a bit too much but it can be easily done with a short .sh script that does all these tricks. Then, you can run that script with Shellex or add an icon to the App grid for it.

(I've created a little script that is doing the trick for you: startad.sh
It requires sudo installed and configured to not to ask for password.)

edp17 2022-12-16 11:36

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by marmagas (Post 1574853)

You also made it! Congrats!

edp17 2022-12-20 10:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I don't know the original battery life of the Nexus5 but I've tested my latest build with my three and a half year old battery.

Stand by time:
  • over 4 days (SIM card in it and wifi always on) After 4 days, the battery is still on 15%
  • over 6 days (SIM card in it and wifi always OFF) After 6 days, the battery is still on 5%

Normal usage:
<will coming...>

edp17 2023-01-01 15:30

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I've found a problem with downgrading the "qt5-qtpim-contacts" package. Also figured out a workaround and added that into the post above.

moodroid 2023-01-07 09:30

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Yeah, I'm getting excellent battery life too :)
At least double what I was getting on UBPorts.

xlucn 2023-05-08 17:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Could anyone share the CM12.1 base ROM (cm-12.1-20160704-unofficial-hammerhead.zip) again? Or fix the mediafire share link, which is now showing file missing.

I also want to make sure that the rom above is the only working one, right? Because I tried some available ones (cm-12.1-20150901-SNAPSHOT-YOG4PAO237-hammerhead.zip, and cm-12.1-20151030-UNOFFICIAL-hammerhead.zip), both end up stucking in the google logo at boot. Wonder if it's due to the wrong base ROM.

Here is how I installed them:
Install twrp 2.8.7
Do factory reset in twrp
Flash cm12.1 (either of those two I tried)
Flash sailfish zip (e.g. sailfishos-hammerhead-release-4.4.0.72-CM121-20221207.zip)
reboot

edp17 2023-05-09 06:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by xlucn (Post 1575237)

Here is how I installed them:
Install twrp 2.8.7
Do factory reset in twrp
Flash cm12.1 (either of those two I tried)
Flash sailfish zip (e.g. sailfishos-hammerhead-release-4.4.0.72-CM121-20221207.zip)
reboot

My Sailfish Os builds ONLY work when installed as secondary rom in MultiRom.
I've uploaded the two cm bases for you:

cm-12.1-20150901-SNAPSHOT-YOG4PAO237-hammerhead.zip
cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip


All times are GMT. The time now is 23:23.

vBulletin® Version 3.8.8