- новости мира Hi-tech :: Новости :: Software

Google возвращает Android в ядро Linux

Компания Google сообщила о своих планах по возвращению Android в основную линейку ядра Linux. Конечно, операционная система и сейчас работает на ядре Linux, которое претерпело за последние годы огромное количество изменений. Это привело к тому, что теперь оно не совместимо с материнской операционной системой. На фоне этих изменений Google изъявил желание исправить ситуацию, и вернуть Android на одну линию разработки, став обычным форком Linux. Заявленные изменения позволят исключить тысячи часов работы, которая ведётся, по сути, параллельно. Однако главное то, что сближение позволит объединить преимущества Android с Linux. Таким образом, мы увидим более совершенный Linux на PC, и более надёжный Android на телефонах.

Этот процесс уже протекает. Отличия были сокращены с 60 000 дополнительных строк кода в Android до 32 000. Фактически, Google даже продемонстрировала более-менее работоспособное Android-устройство, работающее на ОС, построенной на последнем ядре Linux. Пока не идеально, но начало, несомненно, радует.

Сейчас Android 10 использует ядро Linux двухлетней давности. Именно столько заняла адаптация, так что стремления Google, очевидно, важны.

Google wants to unfork Android back to the Linux kernel
GOOGLE HAS SAID it wants to bring Android into line with the main Linux kernel.

Although Android already works on a Linux kernel, it's been so heavily modified over the years, it's almost unrecognisable, and certainly no longer compatible with the main Linux operating system.

Now, however, Google has expressed its desire to right that wrong and bring Android back into line with the regular fork of Linux.

The advantages are manifest. For a start, it would save thousands of hours of work to maintain a separate fork for years at a time.

But more importantly it would mean that both Android and Linux would benefit from the advances we've seen in both since the two parted company, meaning more advanced Linux powered computers, and more agile Android builds.

The process is already underway - the differences have reduced from 60,000 lines of extra code in the Android fork at its peak to 32,000 and falling. In fact, Google has even demonstrated a more-or-less working Android device running on a build created from the latest Linux kernel. It ain't perfect, but it's getting there.

The big challenge, however, won't be the changes made by Google, but rather the individual mishmash of changes made by OEMs at a chipset or device level. It'd mean that, for the first time, Android phones could be running on an up-to-date version of the Linux kernel - at present, Android 10 is running on a two-year-old version, because that's how long it takes to reconfigure it for Android - and Android doesn't currently offer kernel updates anyway.

The secret weapon to combat this already exists - Project Treble. As you'll recall, Treble allows OEMs to push updates to devices without a whole new build. If Google can work out a method for putting all those kernel changes into a Treble module, each device can run on the standard kernel, with the tweaks being offered according to need.

So when does this all kick in then? Well, possibly never. Even the Linux developer community is less than convinced that the agility of the two kernels can be brought into line. But Google has made a statement of intent. What happens next is anyone's guess

Опубликовано 06.12.19