yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] prateek80:
I was one of those few people who worked it out and i was away for a while so i was expecting a propoer solution for dual booting also i agree multirom is not priority right now but also it wont require much of efforts..
[Nexus 4 General] DrGit:
I've gotten Sailfish to work as a second option in MultiROM, so I can switch without swapping primary/secondary ROMs. It wasn't very easy though - I had to do a lot of manual moving files around and change a few other things to make it work. Here's the process:

As root:

1) Extract the Sailfish root filesystem (sailfishos-mako-release-1.0.7.16-EA3.tar.bz2) to /data/media/0/multirom/roms/sailfishos

2) Make a link from /data/media/0/multirom/roms to /data/.stowaways: "ln -s /data/media/0/multirom/roms /data/.stowaways"

3) Convince MultiROM that Sailfish is an Android ROM: "cd /data/.stowaways/sailfishos && mkdir system data cache"

4) Convince Sailfish that you're running CM10.1:

4a) Download a suitable modem/radio firmware image (I used an 84/33 hybrid modem), move it to /data/.stowaways/sailfishos/firmware.img, and edit lib/systemd/system/firmware.mount to change /dev/mmcblk0p1 to /firmware.img

4b) Download cm-10.1.3-mako.zip, unzip in the sailfishos folder, remove the META-INF folder, and make everything in system/bin and system/xbin executable.

5) Move lib/systemd/system/system.mount somewhere else (e.g. /opt) and make sure it doesn't get recreated if you decide to update Sailfish

6) Move hybris-boot.img to the root of the Sailfish filesystem and rename to boot.img (overwriting the CM one if necessary)

I don't recommend this as a permanent solution - it's very hackish and updates will probably break it terribly. That being said, to my knowledge, when an update is released, all you have to do to update - again, this is not recommended and it might result in a non-booting Sailfish - is the following: Extract the tar.bz2 to your sailfishos folder, update the kernel (step 6), and make sure the firmware.img (radio/modem) and system mounts (systemd .mount files, steps 4a and 5) are correct.

It's very tedious and ugly, but it works if you know what you're doing and you're dying to try out Sailfish without changing your current Android setup.
[Nexus 4 General] TheXorg:
why the hell do they remove android support? :confused:
[Nexus 4 General] Kingzak34:
They didnt remove it, they dont include it, not the same.

And it's beacause liscencing issue at the first time.

---------- Post added at 10:08 PM ---------- Previous post was at 10:06 PM ----------

Thank you ! That's great, why didnt I think of it myself !
[Nexus 4 General] castk:
some duly authorized member "gtan64" could do a mini tutorial to be added on the front page of the topic with respect to the use of multi rom to install as a second Sailfish OS ROM.
[Nexus 4 General] rcolistete:
This new release, v1.0.7.16, of Sailfish for Nexus 4 gives me more than a week of battery use without SIM card (no 2G or 3G), only with WiFi in most of time, light use every day. 6 days of use and it still has 33% of battery. So 11% per day. Excellent work, Jolla sailors !
[Nexus 4 General] Floydfire:
I think is good also with sin because it seems to use only two core, bad thing is that camera doesn't work and there's less app, and other thing that I don't use.. Well if they fix the camera it's my kind of os, really bring nexus for me to another level.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] RumoredNow:
Thanks. That's the kind of detailed report I was waiting for... and the sort of use I'd put my N4 to. You just kicked me in the a$$ to get flashing.
[Nexus 4 General] LuHe:
I've followed these instructions, but it always hangs at the Google boot logo.

Tried it twice and made sure it is exactly as described.

Was anybody else successful in booting Sailfish with MultiROM using this method?
[Nexus 4 General] sublinhado:
I got it working, but I changed the process a little bit to make it easier. All of it can be done from the recovery.

0-Have cm-10.1.3 and sailfishos on your sdcard partition

1-Install cm-10.1.3 as a secondary rom (from menu menu)

2-Flash a compatible radio image (from menu menu)

3-Rename the rom to sailfishos (all lower case)

4-Unzip the sailfishos zip file if you haven't already.

5-Extract the Sailfish root filesystem (sailfishos-mako-release-1.0.7.16-EA3.tar.bz2) to /data/media/0/multirom/roms/sailfishos

6-Make the link from /data/media/0/multirom/roms to /data/.stowaways: "ln -s /data/media/0/multirom/roms /data/.stowaways"

7-Move lib/systemd/system/system.mount to somewhere else, ex: opt/

8-Move hybris-boot.img to the root of the Sailfish filesystem and rename to boot.img (/data/media/0/multirom/roms/sailfishos)
[Nexus 4 General] DrGit:
I'm not sure why I didn't think about approaching it that way.

That sounds much easier, and it eliminates the unnecessary step of fixing permissions.

[MENTION=3396029]LuHe[/MENTION], try sublinhado's instructions. The stuck-on-the-Google-logo issue is likely due to wrong permissions, or I may have missed something else important.

If you still have trouble after reinstalling using sublinhado's instructions, Sailfish on the Nexus 4 enumerates the USB as RNDIS Ethernet - not ADB - so you might be able to telnet or ssh in to find out what went wrong.
[Nexus 4 General] LuHe:
Thank you, this worked perfectly! :)

I think installing cm instead of just unzipping and fixing some permissions did it

(the only step missing in your tutorial was editing lib/systemd/system/firmware.mount)
[Nexus 4 General] Kingzak34:
I just tried, and bootloop, what's the missing step exactly ?
[Nexus 4 General] DrGit:
Moving /lib/systemd/system/firmware.mount to a different location, e.g. /opt, is necessary so Sailfish doesn't use the primary ROM's radio firmware, which is unlikely to work if you're using a recent version of Android.

I also just remembered that unless you want all of your Android apps showing up in the launcher (since they obviously don't work), and if you want WiFi to work - very important! - moving or modifying /lib/systemd/system/data.mount is also necessary.

You may want to manually mount your internal storage (/dev/mmcblk0p23, containing /data/media) somewhere else to share media between Android and Sailfish - if you decide to do this, leave data.mount where it is and change the "Where" line to something else.

I forgot that there is no data.mount file. Unfortunately, changing /data's mount point involves changing the initramfs. What I did to work around WiFi is rather ugly: change /usr/bin/droid/droid-wlan-fwreload.sh to point to both firmware files to their /system/etc/wifi locations and replace the links there with the actual files expected, which can be found in /data/.stowaways/sailfishos/data/misc/wifi if you installed Sailfish from recovery.

I'm still trying to find a cleaner solution. Sorry.
[Nexus 4 General] Kingzak34:
Thanks, I'll give it a shot.

I restarted 2 times, and 2 times, it didnt boot. That will probably not fix the bootloop, but I'll try.
[Nexus 4 General] Sobaro:
i mean all the android versions are the same , no big changes but now with Android L , i believe that Nothing is better than Android . although Sailfish os looks promising.
[Nexus 4 General] aironeous:
The next release is out for the Jolla phone.

https://together.jolla.com/question/50175/release-notes-software-version-10819-tahkalampi/
[Nexus 4 General] syedyasin:
Wow.. Great, we can can expect port of nexus 4 in a week..
[Nexus 4 General] syedyasin:
[MENTION=3234690]sledges[/MENTION], do we need to wait for update mail with full installable links or we need to get update from settings??
[Nexus 4 General] suarez1907:
How is the battery life?
[Nexus 4 General] guimendes:
Probably we'll need to install everything up again, like previous versions, but let's wait the new version and see.
[Nexus 4 General] syedyasin:
[MENTION=5684778]stskeeps[/MENTION], do we need to wait for update mail with full installable links or we need to get update from settings??
[Nexus 4 General] RumoredNow:
I asked the same thing about EA3 back on page 46...

...and got an almost instant reply on that same page.

Some while later on page 48 I got a more detailed response:

I put EA3 on my Nexus 4 yesterday and played around quite a bit. Like rclistete I'm WiFi only this round of testing. IMHO, the battery seems optimized. It's probably worth the plunge just due to Jolla Store being in the image. Remember that this is not a daily and you will enjoy the experience.

I believe I'll move my enthusiasm and testing efforts over here from Ubuntu for Devices as they just have dragged on too long trying to come up with a version they can brand and make into a public release. I also feel they have taken some wrong terns since releasing Ubuntu for Devices and have strayed too far from the original UX / UI that was promised.

Sailfish is at least a working OS out in the field via Jolla Phone. A pity I can't get the dedicated hardware here in the USA. At least I was lucky enough or smart enough to get a Nexus 4. This thing has been such a workhorse. I've flashed the stuffing out of it and it just keeps going. If Jolla gets the sensors all straightened out and the camera up and running, it might be enough to entice me away from Windows Phone as a daily driver - even without Alien Dalvik...
[Nexus 4 General] carepack:
hadk 1.0 is released:

http://releases.sailfishos.org/sfa-ea/2014-07-18_SailfishOSHardwareAdaptationDevelopmentKit.pdf
[Nexus 4 General] sledges:
Updated announcement available: http://xdaforums.com/showpost.php?p=54298560&postcount=506
[Nexus 4 General] sledges:
For impatient ones:

http://releases.sailfishos.org/sfa-ea/2014-07-21_SailfishOSHardwareAdaptationDevelopmentKit.pdf

full announcement with changelog will follow
[Nexus 4 General] sledges:
Jul21:The second Sailfish OS Hardware Adaptation Development Kit (HADK) release (EA2)

Who already seen this, here's the new PDF then skip straight to: Release Notes/Known Issues in HADK v1.0.2-EA2 below.

Welcome to the new era of mobile Linux porting! By being able to rebuild Nexus 4 image from scratch, you will be able to fix existing issues, and we will help you do it. Let's meet on #sailfishos-porters IRC for immediate support.

There you can also point us to other known Sailfish OS xda build threads of other phones.

PS: It'd also be good idea to start a HADK thread of Nexus 4, and leave this thread clean only for image testers, what do you think?
[Nexus 4 General] syedyasin:
[MENTION=3234690]sledges[/MENTION], any tentative day release day for EA4 or Nexus 4 ?

I am not asking exact ETA.. any planned tentative day.. :)
[Nexus 4 General] v3ng3anc32002:
Would love to know that too. Going to flash this and use as a daily driver. I realy want something new and nothing beats Sailfish.

And god how i loved Meego ...
[Nexus 4 General] Sir_gpm:
What I did many times, flash radio & bootloader, then cm rom, then sailfish....but never pass the google image. :-\

Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 General] Kingzak34:
Try to wait more, and dont forget Full Wipe ( and flash the good cm of course )
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

Hi

tried the steps you given above.

But i am not able to find lib/systemd/system/system.mount, so not able to boot in sailfish OS.

Is there any easy way we found?
[Nexus 4 General] eSKaPe:
[MENTION=5737349]trotil42[/MENTION] New update for Jolla launcher works with ART..

Sent from my Nexus 4
[Nexus 4 General] trotil42:
[MENTION=5603838]eSKaPe[/MENTION]

Thanks m8!
[Nexus 4 General] Zenety:
Could you share the .apk?
[Nexus 4 General] CBpbxEcmecmBeH:
It's in the general discussion:

http://xdaforums.com/showthread.php?p=54310638
[Nexus 4 General] RumoredNow:
Here is my video review of EA3 on N4:

[YOUTUBE]mk2HnB8Fkxo[/YOUTUBE]

And here is the corresponding BLOG entry: http://fromannonymous.blogspot.com/2014/07/the-next-big-thing.html

For those who aren't using the Sailfish Image yet, but would like a closer look.

Thanks for watching/reading. :cool:
[Nexus 4 General] syedyasin:
waiting for update 8. (EA4)
[Nexus 4 General] RumoredNow:
But of course. We all are. Here's hoping it is another significant leap forward when it does come.
[Nexus 4 General] suarez1907:
I installed ea3 before 2 hours. Now I returned miui rom. Because Sailfishos is not stable now. I suffered when I am using it. It consumes battery very fast ( I did not install any application from Jolla store) and store is very useless
[Nexus 4 General] zio guiduccio:
Percentages drain is not uniform, battery drain is like on android. What does it mean that's useless? It lacks apps? Isn't it working?

Exploit yourself please.
[Nexus 4 General] suarez1907:
It lacks apps
[Nexus 4 General] zio guiduccio:
Well, sure it does have apps, maybe it doesn't have the ones you need. Tried searching on openrepos?
[Nexus 4 General] masoudjjgh:
Tester

i Test it.

i test EA1 . EA2 and Now EA3.

in EA3 same as ea2 and ea1.WLAN Not work...

Voice Call still Not work !!!

i dont see any Gorw in this update
[Nexus 4 General] zio guiduccio:
About wlan what kind of network are you using? Sailfish needs extra config for wireless enterprise.
[Nexus 4 General] masoudjjgh:
Tester

yes.

i am try to turn on WLAN in anywhere ... but i cant!

it turn off always and i cant turn it ON. like EA2 and 1

i dont have any information about Sailfish ... enterprise.

EA3 just "Ad" me to sign in jolla account . but ! when WLAN is Off and cant turn it to ON . how i can login to sailfish os accout and use more option :eek:!!
[Nexus 4 General] alboe:
Dear masoudjjgh,

Something seems to go wrong in the installation/usage SailfishOS on your Nexus 4, as the problems you describe work just fine for others. Do you want to give it a try to work it out together with the help of the other forum users? Or have you decided already to abandon SailfishOS?

Kind regards,

alboe
[Nexus 4 General] zio guiduccio:
Seems to me like you didn't downgrade your modem. Before installing sailfish you have to restore the factory image by google for 4.2, then install cm10.1, then sailfish.
[Nexus 4 General] RumoredNow:
I'll second that... My WLAN worked from the first try. Modem is key.
[Nexus 4 General] luca_vs:
Hi masoudjjgh,

I had same problem the first time I installed Sailfish on my Nexus 4.

I didn't follow exactly the tutorial in this forum.

The tutorial say to start with Android 4.2.2 but I started with 4.4.4 than I installed CM 10.1.3 and than sailfish but I got an unusable device (as you describe).

When I followed the tutorial EXACTLY (starting from Android 4.2.2) than I got a working Sailfish OS.

I suggest you to try.
[Nexus 4 General] RumoredNow:
Those who have read this thread from the beginning know... It is the Bootloader and Radio versions from 4.4.2 that are key. Any shortcut that fails to load those two crucial elements onto the Nexus 4 will fail to boot into a working Sailfish Image.

Welcome aboard, luca. Glad you made it.
[Nexus 4 General] luca_vs:
Hi RumoredNow and thanks!

It should be very interesting to understand what does Sailfish need from Android 4.4.2 and from CM 10.1.3 and why not another Android version or other CM version.
[Nexus 4 General] deshmukhrb2000:
EA4 Update

Any update on the latest release Jolla i.e. EA4?
[Nexus 4 General] syedyasin:
hmm its taking long time, then it took for earlier releases.. :(

But there is no update for Mako (Nexus 4) from quite a long time.. , https://wiki.merproject.org/wiki/Adaptations/libhybris
[Nexus 4 General] RumoredNow:
The more they work on EA4, the better, yes?

Maybe they are waiting for camera...
[Nexus 4 General] aironeous:
They are on vacation until September. There is lots of community activity porting it to other devices see the sailfishos-porters channel on webchat.freenode.net
[Nexus 4 General] Actyon:
waiting EA4
[Nexus 4 General] deshmukhrb2000:
EA4 Update.......?
[Nexus 4 General] syedyasin:
[MENTION=3234690]sledges[/MENTION] is the one who is working on Nexus 4 port.

You can get into the #sailfishos-porters channel at https://webchat.freenode.net/ for more information.. :good:

You can have discussion with [MENTION=3234690]sledges[/MENTION]... :)
[Nexus 4 General] syedyasin:
I think, we will miss port of 8 update, as Jolla is going to release 9 update to Jolla phones soon... :confused:
[Nexus 4 General] sledges:
Good news fellows, sorry for massive delay caused by HADK and such :) Hope you'll enjoy!

http://xdaforums.com/nexus-4/development/rom-sailfish-os-adopter-t2861054
[Nexus 4 General] luca_vs:
Very thanks for the great notice!!!!

I'd like to have more info about using multirom.

At the moment I have a CM 11 as my primary OS and I can't format it.

I installed Multirom on the phone and in you tutorial it seems to be a hope:

but it's not very clear to me...

I hope someone can explain better.

Thanks again!
[Nexus 4 General] oszika05:
Download this: http://d-h.st/8Jx (from this thread:http://xdaforums.com/nexus-4/general/ref-mako-modem-collection-t2087227), unpack it and then put the modem.img to your nexus 4. In the recovery, go to advanced>MultiRom>list ROMs>sailfishos>set radio.img, and select the modem.img, what you copied to your device.

I hope I was clear enough :D Good luck ;)
[Nexus 4 General] luca_vs:
Thanks!!

If I understand, I can follow these steps:

1) I can keep my primary as is

2) next I install as secondary rom the CM 10.1.3 + Sailfish

3) I install radio.img

it's right?
[Nexus 4 General] sledges:
oszika05 that's awesome approach, sadly it's not yet implemented for Sailfish MultiROM flavour. Will be in contact with Tassadar to get that going.

Yet surprisingly old radio.img still proves to work (we're not sure about 3G though)
[Nexus 4 General] Kubino:
Does SailfishOS automatically connect to internet via 2G/3G/LTE at first boot or prefer Wi-Fi?
[Nexus 4 General] carepack:
[MENTION=3234690]sledges[/MENTION]

can confirm 3g is working :)

greetz
[Nexus 4 General] sledges:
It asks you to choose :)
[Nexus 4 General] Zenety:
Could you please clarify a bit more? What permissions did you have to change? I changed boot.img to also executable. Followed tutorial but still getting a bootloop.

I also tried "ln -s /data/media/0/multirom/roms/sailfishos /data/.stowaways", since I also had firefoxOS installed. When changing that it just gets stuck a google logo.

This is EA4 btw.
[Nexus 4 General] Kubino:
Thanks, it's great. Android connects automatically and that's annoying me because I don't use mobile internet (I use only Wi-Fi) so I must pay mobile internet for one day.
[Nexus 4 General] CHangyuuW:
I followed the steps, but I can't find lib/systemd/system/system.mount in my device. :confused:
[Nexus 4 General] sledges:
that's firmware.mount, not system.mount, and it's on device sailfish rootfs under /lib/systemd/system/

I suggest you follow this discussion alternatively:

http://xdaforums.com/nexus-4/development/rom-sailfish-os-adopter-t2861054/page2

Though I will need to test what awesome [MENTION=3396029]LuHe[/MENTION] suggested: /lib/systemd/system/firmware.mount would need a loop-mounted .img file, right LuHe? ;)
[Nexus 4 General] x.0ni.x:
The simplicity of installing the EA4 was amazing. I'm running PA 4.5 beta 3 as my primary ROM yes 4.4.4. Miui V5 a back up. No secondary also. Flashed base CM 10.1.3 then EA4 I'd been having issues with getting wifi working then sedges informed me to flash the 0.84 radio over top of my primary PA ROM I was unnerved at first because I didn't want to sacrifice my call quality for just Sailfish OS to be able to get wifi but took the plunge anyway and with wanted surprise it worked after flashing the 0.84 radio atop my 4.4.4 primary ROM call quality was as was before. MultiROM is suck an amazing tool. Sailfish is running just fine and I have full wifi and calling. Just wanted to let everyone know that it really is easy and Sailfish is an amazingly beautiful OS. Thanks again for bringing us this. The next update of this should be great. And a shout out to sedges for his patience in helping me get this up and running on my nexus 4. :highfive::victory:
[Nexus 4 General] Actyon:
Maps

In EA2 in the Market were maps in EA3 market greatly curtailed. 1 question why the second question is how to get map?
[Nexus 4 General] CHangyuuW:
I've flashed 4.2.2 radio image [MENTION=3234690]sledges[/MENTION], but I don't find the /lib folder in my device.

Are steps 4 to 8 operated in secondary ROM or in primary OS? [MENTION=2300635]gTan64[/MENTION] Thanks a lot!
[Nexus 4 General] :
Thanks for your post! I've followed all your discussons about Sailfish OS and now the wi-fi connection on my N4 is working fine!
[Nexus 4 General] CHangyuuW:
me, too.
[Nexus 4 General] sledges:
Ok, [MENTION=3350093]sublinhado[/MENTION] method is also a nice one :good:

You need to do steps 4 to 8 inside any ROM/recovery (via adb), which has valid /data partition mounted (if it has /data/media/0/multirom/roms/sailfishos under it - it's valid)

At this point you'll find that lib/... folder inside /data/media/0/multirom/roms/sailfishos so just do:

cd /data/media/0/multirom/roms/sailfishos

mv lib/systemd/system/system.mount opt/

Have fun hacking! :)
[Nexus 4 General] CHangyuuW:
Thank you very much for your kindly reply. I've flashed Sailfish OS (EA4) as secondary ROM as [MENTION=2977728]carepack[/MENTION] 's tips (http://xdaforums.com/showpost.php?p=55119821&postcount=19).

:victory:
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

I have added Sailfish OS through MultiROM.

But every time i have swap the ROM with primary to boot in the Sailfish.

everything in the OS working fine wifi, call jolla store etc no problem.

So as you mentioned above after flashing the modem.img from above URL, can i able to boot the sailfish as a secondary ROM through multiROM?
[Nexus 4 General] carepack:
sure. I use sailfish as secondary rom atm.
[Nexus 4 General] frisskiss:
Some news about camera or GPS?
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

Thanks, will try it..
[Nexus 4 General] carepack:
sure:

https://wiki.merproject.org/wiki/Adaptations/libhybris
[Nexus 4 General] thotupala:
Wow...
[Nexus 4 General] carepack:
most modern mobile os -> and you can feel it in usability design and so on. It's a great piece in software.
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

After flashing modem.img as set radio.img in the Sailfish OS, it did not boot in the multiROM.
[Nexus 4 General] carepack:
if you're on 0.84 modem general you don't have to select anaother modem for sailfish. This option is not working atm.
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

Thanks for th quick response.....

OK.. I was on .84 modem and sailfish works only swapping with primary ROM.

That's why i ask that if i flash the mentioned modem.img did it boot as a secondary ROM....

But no problem will wait for the MultiROM to support N4 for sailfish....
[Nexus 4 General] carepack:
yep. it does. my setup

radio 0.84

primary rom android 4.4 with kexec patched kernel like hellscore etc.

secodary rom sailfish

that's all. works fine in both worlds :good::laugh:

edit:

I recommend to read this thread for further question etc.

http://xdaforums.com/jolla-sailfish/general/qa-sailfish-n4-thread-devices-t2727330
[Nexus 4 General] syedyasin:
[MENTION=2977728]carepack[/MENTION], i have MIUI as primary ROM and Sailfish as secondary. I have flashed 0.84 radio, calls and WiFi working fine.

Could you please help me, how to navigate to android files from Sailfish. I am not able to locate those files in /data/data or /data/app
[Nexus 4 General] carepack:
[MENTION=4564709]mailyaseen[/MENTION] it depends on multirom. I have no solution atm. Maybe [MENTION=3418703]Tasssadar[/MENTION] is able to tell us possibilities.

have a great day...
[Nexus 4 General] deshmukhrb2000:
SailFish in MultiROM

As per the what u have mentioned, i have figured out is that.

1. Through TWRP Recovery you install Sailfish OS, which ask only for CM and Sailfish Zip.

2. After that you mentioned that the primary ROM should have .84 radio installed to boot secondary SailFish OS and nothing else.

Is these steps will allow me to set Sailfish as Secondary ROM?

If i am missing anything. please guide me with some steps will be very helpful.