CyanogenMod on Jolla
Does anybody know if a port of CyanogenMod to the Jolla Alien Dalvik is feasible, and if it is likely to come through?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Does anybody know if a port of CyanogenMod to the Jolla Alien Dalvik is feasible, and if it is likely to come through?
To put it plainly: CyanogenMod and AlienDalvik are not comparable things, and has such cannot replace one another.
AlienDalvik, as the name clues, is a replacement to the Android Dalvik (Java Virtual Machine - where all the Android Magic Happens)
CyanogenMod is a custom version of the whole Android Stack, which includes the Linux parts aswell as the java parts (including dalvik). So you see CyanogenMod would never be able to run on top of AlienDalvik, altough the reverse would be possible.
But since Sailfish is Linux already, to run Android apps it only needs to handle the java part (from dalvik up) hence the AlienDalvik. To put another Linux stack (which would have to be virtualized) between the hardware and the Android Apps, it would simply be alot slower and plague us by all the pesky Android bugs, especially bad memory management, and awfull battery consumption. So you see It wouldn't make any sense to replace AlienDalvik with CyanogenMod!
So are you propoposing that there's be a totally another OS aside Sailfish? (as you say you would just swipe away from OS)
That'd require that one or other of the OS'es would run on virtual machine inside the other. I do not expect the performance to be very good.
No, I am proposing that the latest releases of Android be ported to run on the HAL (Alien Dalvik) that allows Android to run on Sailfish rather than on the dedicated Linux environment that Android is supposed to run on. In detail, I do not know how much of that is included in Alien Dalvik and how much is included in the Android distribution. For example, if libdalvik is part of Alien Dalvik, or is part of the Android package that is installed on it.
Giacomo Di Giacomo ( 2014-03-16 20:10:18 +0200 )editI am fairly sure that is not possible.
When you run an android OS, like Cyanogenmod, it is not possible to run that under Sailfish without having a virtual macine in which to run it in. (well I suppose that could be done, in therory without a VM but you would anyway need to instantiate the OS in a separate container, run it in a chroot environment and propably heavily modified to work correcly...)
It is very different thing to run an android application on top of an adaptation layer, much easier to implement.
juiceme ( 2014-03-16 21:29:41 +0200 )editAFAIK every Android instance runs in a sandbox hosted in a Linux environment, not only the Alien Dalvik. This is the reason because Android apps run on Sailfish at full speed.
Giacomo Di Giacomo ( 2014-03-16 21:46:29 +0200 )editanswered 2014-03-16 23:44:59 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
See https://sailfishos.org/images/Sailfish_Architecture.png: Android applications runtime is on Third Party Apps level. As already written, CyanogenMod is an OS, i.e. it is booting and a lot about the hardware specific kernel and hardware access layer. You cannot have 2 such very baseline systems (Sailfish, CyanogenMod) running on one and the same hardware (except you virtualize hardware using virtual machines).
well... i guess, if someone was brave enough to mess around with the bootloader, you could probably set-up a dual-boot environment... but you'd be losing a lot of the goodies of jolla by running a plain android os on that HW ... better make dualboot with sailfish on any android handset ;D
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2014-03-14 18:57:34 +0200
Seen: 2,687 times
Last updated: Mar 17 '14
WhatsApp notification [answered]
Why is Firefox' Sync functionality not supported (currently)? [answered]
[Request] Alien Dalvik full root [answered]
Suggestion: Switch to disable swiping in Android apps. [duplicate]
Android app settings lost when removing Alien Dalvik [released]
Bug: Android display timezone not set correctly [duplicate]
[Bug] Removing android App data [answered]
Skype video call ability [answered]
Android apps loses audio (resolved) [released]
Closing Android VM should "power off" Android VM (Alien Dalvik) [not relevant]
As far as I understand:
If I am right, it would not be just a port from one hardware to another hardware. With a "simple" port, you would rather swipe away from your Jolla the whole Sailfish OS. (I rather expect, that Alien Dalvik already uses results of the CyanogenMod project.)
jgr ( 2014-03-15 01:02:32 +0200 )editi somehow doubt this would work. cyanogenmod (CM) is a lot more complex. it works at the bootstrap level, something i believe the dalvik VM on sailfish doesn't have.
droll ( 2014-03-16 19:52:56 +0200 )editAs stated on the cyanogenmod page cyanogenmod replaces the OS. On jolla that's SailfishOS.
richhanz ( 2014-03-16 20:01:51 +0200 )edit@richhanz: by OS, do they mean the Linux distro that bootstraps the device, or the Android release running on top of it?
Giacomo Di Giacomo ( 2014-03-16 20:14:32 +0200 )editBy OS this means the OS that runs on the device. There's no bootstrap exept the loader.
juiceme ( 2014-03-16 21:31:32 +0200 )edit