[CRIU] Porting CRIU to Android

Cyrill Gorcunov gorcunov at gmail.com
Fri Feb 27 23:59:16 PST 2015


On Sat, Feb 28, 2015 at 10:53:52AM +0800, 钟刊 wrote:
>    I have cross-compiled the CRIU project and solved all the dynamic link
>    libraries. Therefore, it can run in Android. So I log in my rooted Android
>    device use adb shell, and type criu check, the result seems not good, it
>    reports:
> 
>    Error (namespaces.c:279): Can't readlink ns link: Invalid argument
>    Error (namespaces.c:447): Can't make netns id
> 
>     So my question is that does CRIU supports Android now, since there are
>    some difference between Linux kernel and Android kernel. If it does not
>    supports Android, I want to porting CRIU to Android OS as I really
>    interest in it.

We're known to work on arm vanilla kernels but android kernel is highly modified
and I doubt if someone ever has it successfully running.

That said none of us tested it on Android and if you're interested in more
deep investigation -- this would be highly appreciated (but this is difficult
task actually).

As to error message you pointed -- looks like the kernel has no net-namespace
support in the kernel (check the kernel's .config file) or it might be
something else depending on how hard kernel is modified.


More information about the CRIU mailing list