Samsung to Shutdown Linux on Dex

Linux on DeX was based on Ubuntu and allowed you to create a full-fledged desktop when connecting a smartphone to a monitor
22 October 2019   248

Samsung has announced the closing out of its Linux on DeX environment testing program. Support for this environment for devices with firmware based on Android 10 will not be provided. Recall that the Linux on DeX environment was based on Ubuntu and allowed you to create a full-fledged desktop when connecting a smartphone to a stationary monitor, keyboard and mouse using the DeX adapter or when connecting a keyboard and mouse to a tablet.

Of the alternative projects with the implementation of portable Linux environments for smartphones that allow you to start the desktop when you connect a monitor to the smartphone via HDMI or using technologies such as Miracast and WiFi Display, we can mention: Maru OS, Complete Linux Installer, Linux Deploy, UserLAnd, AnLinux and GNURoot.

Google Works on Linux Kernel Support in Android

This goal has already been partially achieved - Xiaomi Poco F1 Android smartphone has firmware based on the usual unmodified Linux kernel
21 November 2019   73

At the last Linux Plumbers 2019 conference, Google talked about the development of an initiative to transfer to the main Linux kernel the changes developed in the kernel version for the Android platform. The ultimate goal is to enable Android to use one common core, instead of preparing separate assemblies for each device based on the Android-specific Android Common Kernel branch. This goal has already been partially achieved, and the Xiaomi Poco F1 Android smartphone with firmware based on the usual unmodified Linux kernel was demonstrated at the conference.

After the project is ready, suppliers will be asked to supply a core kernel based on the main Linux kernel. Components for hardware support will be supplied by suppliers only in the form of additional kernel modules, without imposing patches on the kernel. In modules, compatibility with the main core at the level of the kernel symbol namespace must be ensured. All changes affecting the main core will be promoted to upstream. To maintain compatibility with proprietary modules within the framework of LTS branches, it is proposed to maintain stable kernel API and ABI, which will allow to maintain compatibility of modules with updates for each common kernel branch.

Over the year, features such as the PSI (Pressure Stall Information) subsystem for analyzing information on the waiting time for various resources (CPU, memory, input / output), the BinderFS pseudo-file system for the interprocess communication mechanism were transferred to the main Linux kernel from the Android kernel Binder and energy-efficient task scheduler EAS (Energy Aware Scheduling). In the future, it is planned to transfer Android from a specific SchedTune scheduler to the new UtilClamp subsystem developed on ARM, based on cgroups2 and standard kernel mechanisms.

Recall that so far the kernel for the Android platform has gone through several stages of preparation:

On the basis of the main LTS kernels (3.18, 4.4, 4.9 and 4.14), the “Android Common Kernel” branch was created, into which Android-specific patches were transferred (previously the size of the changes reached several million lines, but recently the changes were reduced to several thousand lines of code )
Based on the Android Common Kernel, chip makers such as Qualcomm formed the SoC Kernel, which includes add-ons to support hardware.
Based on SoC Kernel, device manufacturers created Device Kernel, which includes changes related to support for additional equipment, screens, cameras, sound systems, etc.

In fact, for each device its own core was formed, which could not be used on other devices. Such a scheme significantly complicates the delivery of updates with the elimination of vulnerabilities and the transition to new kernel branches. For example, the latest Pixel 4 smartphone released in October comes with the Linux 4.14 kernel, released two years ago. In part, Google tried to simplify maintenance by promoting the Treble system, which allows manufacturers to create universal hardware support components that are not tied to specific Android versions and the used Linux kernel releases. Treble makes it possible to use ready-made updates from Google as a basis, integrating device-specific components into them.