Ask / Submit
2

CyanogenMod on Jolla

asked 2014-03-14 18:57:34 +0200

Giacomo Di Giacomo gravatar image

updated 2014-03-14 18:57:48 +0200

Does anybody know if a port of CyanogenMod to the Jolla Alien Dalvik is feasible, and if it is likely to come through?

edit retag flag offensive close delete

Comments

2

As far as I understand:

  • Alien Dalvik is not a virtual machine running on Sailfish.
  • CynogenMod is a (modified Android) OS replacing the current (most often Google Android) OS.

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 )edit

i 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 )edit

As 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 )edit
2

By 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

4 Answers

Sort by » oldest newest most voted
11

answered 2014-03-17 01:03:14 +0200

dsilveira gravatar image

updated 2014-03-17 01:05:14 +0200

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!

edit flag offensive delete publish link more
0

answered 2014-03-16 19:51:00 +0200

juiceme gravatar image

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.

edit flag offensive delete publish link more

Comments

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 )edit

I 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 )edit

AFAIK 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 )edit

No, Android IS a Linux distribution. No "sandboxing" involved there :)

"Android OS" is a normal Linux kernel + bionic-based userspace. Momst other Linux distributions are normal Linux kernel + libc-based userspace.

juiceme ( 2014-03-16 21:51:05 +0200 )edit

Why do you want to have cyanogenmod on jolla when it is running SailfishOS?

richhanz ( 2014-03-16 23:06:00 +0200 )edit
0

answered 2014-03-16 23:44:59 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-03-17 00:26:16 +0200

jgr gravatar image

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).

edit flag offensive delete publish link more
0

answered 2014-03-17 11:49:48 +0200

egnat69 gravatar image

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

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-03-14 18:57:34 +0200

Seen: 2,539 times

Last updated: Mar 17 '14