What linux is android based on

Is Android really just Linux? (Video)

Is Android Linux? is one of those frustrating questions that seems like it should have a straightforward ‘yes’ or ‘no’ answer, but these are three words that the Android and Linux communities have been debating for years.

There are two factors that have made it particularly difficult to reach a definitive answer in this long-running debate:

  1. People regularly use the word “Linux” to refer to a number of related, but distinctly different things.
  2. There’s no universally accepted definition about what makes a piece of software Linux.

In this article, I’m going to clear up the confusion surrounding the different kinds of software someone may have in mind when they use the term ‘Linux,’ before working through all the arguments that inevitably creep in, in every “is Android Linux” debate.

What is Linux?

When someone says the word “Linux,” they may be referring to:

  • The Linux kernel. This is a small, but essential part of an operating system. The kernel is responsible for interfacing with a device’s hardware, providing services to the rest of the system, and performing tasks such as managing the device’s CPU and memory. The Linux kernel, like any kernel, can only function as part of a wider operating system. It’s impossible to have an operating system that consists solely of a Linux kernel. Since Android is a complete operating system, we can immediately rule out classifying Android as a Linux kernel.
  • A Linux distribution, or distro. This is an operating system that contains the Linux kernel and additional software such as utilities, libraries and a GUI, plus pre-installed applications such as web browsers, text editors, and music players. Even if this additional software was designed specifically to run on the Linux kernel, it’s not part of the Linux kernel. When discussing operating systems that use the Linux kernel, the terms ‘distribution,’ ‘distro’ and ‘operating system’ are interchangeable. Since anyone can take the Linux kernel, add their own software, and create a complete operating system, there are countless Linux distros currently available.
  • GNU/Linux. The majority of Linux distributions are a combination of the Linux kernel plus GNU software, which has led some people to argue that we should all be referring to Linux distros as GNU/Linux. This is a whole other debate, so to help keep things simple I’ll be using the terms ‘Linux distribution’ and ‘distro’ throughout this article – just note that there’s a strong link between the Linux kernel and GNU software.

While there’s nowhere near as much confusion surrounding the term “Android,” there are still two distinct strains of the Android operating system.

The first is the Android Open Source Project (AOSP), which is the project where Google release the Android source code. While it is possible to use this source code to build a functioning operating system that you can install on a smartphone or tablet, the end result would be lacking functionality that most users expect from their Android experience, most notably Google Mobile Services (GMS). GMS is the collection of Google apps and APIs that, for many users, are a fundamental part of the Android experience, in the same way that iTunes and the App Store are a fundamental part of the macOS experience. AOSP is open source, but the experience that your typical end-user expects from Android, isn’t provided by AOSP.

The Android operating system that ships on your typical Android smartphone or tablet is essentially an AOSP base, potentially with some manufacturer modifications, and with the addition of a significant amount of proprietary code.

Most of the arguments for and against classifying Android as Linux apply to both interpretations of Android, but there are a few instances where the answer differs, depending on whether you define Android as AOSP, or as the operating system that ships on your typical Android smartphone or tablet.

Why Android is Linux

There’s really only one argument in favor of classifying Android as Linux, but it’s a strong one: every Android smartphone or tablet contains a Linux kernel. You can even see what version of the kernel is installed on your device, by opening its ‘Settings’ app and navigating to ‘About Device > Software info.’

Читайте также:  Пассивный режим ftp mac os

However, Android isn’t just the Linux kernel; it’s a fully-functioning operating system that features lots of additional libraries, a GUI, apps and much more, so when we ask “is Android Linux,” we’re actually asking “is Android a Linux distro?”

Since it’s impossible to even estimate how many Linux distros are out there, it’s very difficult to put together a list of rules about what makes an operating system a Linux distro.

Beyond the presence of the Linux kernel, the definition of a Linux distro is pretty open to interpretation, so in the rest of this article I’ll be discussing the arguments people most commonly put forward, when arguing against classifying Android as a Linux distribution.

Why Android isn’t Linux

It doesn’t use the standard Linux kernel

In order to create an operating system that meets the unique needs of mobile devices, the Android team made a number of changes to the Linux kernel, including the addition of specialized libraries, APIs and tools that are mostly BSD-derived or written from scratch, specifically for Android.

Since the entire argument in favor of classifying Android as a Linux distro hinges on the fact that Android uses the Linux kernel, this point might seem like it’s the end of the argument, but it’s not that unusual for a Linux distro to make changes to the kernel.

The Linux kernel is released under the GNU General Public License, so anyone is free to modify its source code, which many Linux distros have done. When it comes to the question of just how drastically the Android team modified the Linux kernel, the Embedded Linux wiki concludes that the amount of changes implemented by the Android team “is not extremely large, and is on the order of changes that are customarily made to the Linux kernel by embedded developers.”

It doesn’t include the GNU software and libraries

If you agree that GNU software is a defining characteristic of a Linux distro, to the point where we should all be referring to Linux distros as GNU/Linux, then there’s no way that Android can be a Linux distro. Android includes very little GNU software, most notably, the Android team developed a customized C library called Bionic, rather than use the GNU C Library.

Even if you disagree that a Linux distro has to include GNU software, then there’s still no denying that the absence of GNU makes Android very different from the majority of the Linux distro community.

You cannot run Linux apps on Android – and vice versa

If you picked several different Linux distros at random, then chances are that the Linux kernel would be the only software component they have in common. In fact, Android has such little software in common with other Linux distros, that it’s impossible to run regular Linux apps on Android.

The reverse is also true: Android apps require Android-specific libraries, a runtime, plus a range of other software that’s found only in the Android OS, so by default you cannot run Android apps on any platform other than Android.

Android is a Google product

Google may make the base Android source code publicly available via AOSP, but Google develops the next release of AOSP in private. In fact, the AOSP website clearly states that “Google retains responsibility for the strategic direction of Android as a platform and a product.”

In addition, although non-Google employees can contribute to AOSP in various capacities, the AOSP website makes it very clear that project leads are usually Google employees. There’s also the small matter of Google owning the rights to the Android name and logo, so even if you do build an operating system based on AOSP code, you’ll still need to liaise with Google if you want to release your work under the Android name.

While some Linux distributions do have strong links to a particular company (Canonical and Ubuntu immediately spring to mind) it’s unusual for a Linux distro to be developed in private, entirely by a single organization.

Android’s ‘open source’ status is up for debate

Despite the Free Software Foundation’s recommendation that developers remove all proprietary software from their Linux distributions, there’s no strict rule that states Linux distributions cannot include proprietary software. In reality many distros include vendor-compiled binary drivers, also known as binary blobs, so really the question is: how open is Android, compared to your ‘typical’ Linux distro?

While many open source enthusiasts would agree that AOSP is far from an ideal open source project, its code is freely available for other people to modify and distribute.

Читайте также:  Как обновит linux mint

However, by the time the AOSP base reaches the Android user, a lot of proprietary code has been added, and this is true regardless of whether you opt for a “pure Android” device such as a Nexus or Pixel, or a device that features manufacturer modifications.

While this doesn’t necessarily disqualify Android from being labelled as a Linux distribution, it’s worth noting that much of the code that users can see and interact with is proprietary, such as Google Mobile Services and manufacturer-specific modifications like Samsung’s TouchWiz skin.

Although many Linux distros do include proprietary code, for many people the term ‘Linux’ has a strong association with open source software, and all of that user-facing proprietary code does tend to make Android feel much more closed than your typical Linux distro.

You cannot customize the Android OS – by default

While it’s typically pretty easy to modify a Linux distribution at the operating system level, by default Android owners cannot access the underlying operating system on their smartphone or tablet, and sensitive partitions are locked down tight. However, the by default is important, as you can gain access to areas of your device that are normally closed off, by exploiting security flaws in the Android system, in a process known as rooting.

So, while Android is considerably less customizable than your typical Linux distribution, there are ways to gain access to the underlying operating system.

Wrapping up

So, circling back to our original question: Is Android a Linux distribution? Ultimately (and frustratingly) it all hinges on how you define a Linux distro. If you agree that we should all be referring to Linux distros as GNU/Linux instead of Linux, then the answer is no, as Android includes very little GNU software.

If you define ‘Linux distro’ as an operating system that includes the Linux kernel and fulfills one or more additional criteria, then again, the answer is very likely to be no. Although every Android smartphone and tablet does include a Linux kernel, Android doesn’t completely fulfill any of the other characteristics commonly associated with Linux distros. For example, Android is very clearly the product of one company, it’s incompatible with regular Linux apps, and even though AOSP is open source, the version of Android you encounter on commercial devices feels considerably more closed than you’d expect from a Linux distro, thanks to the inclusion of user-facing proprietary code.

However, if your definition of a Linux distro is an operating system that’s based on the Linux kernel, then Android is a Linux distro. It may be an unusual, highly-specialized distro, but it’s every bit as much a distro as Ubuntu, Fedora, Debian, and any other operating system that’s based on the Linux kernel.

So what’s your take on this? Is Android a Linux distro because it includes the Linux kernel? Or does an operating system need to meet some additional criteria, in order to qualify as a Linux distro? Let us know in the comments!

Источник

А вы знали, что в основе ОС 85% смартфонов лежит Linux?

По факту на рынке смартфонов доминирующее положение занимают именно устройства на базе Linux. Некоторые от такого заявления призадумаются, другие же преисполнятся гордостью за Linux в стиле The Sound of Music – The Hills are Alive. Далее я приведу интересные факты, подтверждающие, что в основе 85% смартфонов действительно лежит ядро Linux, а также представлю ряд многообещающих новинок этого рынка.

Нередко в ходе общения с профессионалами вне рабочего пространства меня спрашивают: «Чем ты занимаешься?». Когда я отвечаю, что работаю системным аналитиком Linux, многие реагируют так: «А мне не особо нравится Linux, потому что в нем нельзя открывать или редактировать документы Word»* или «Ты имеешь ввиду ОС для настольных ПК, в которой все в виде текста, и отсутствует графический интерфейс?»** и даже так «Linux? Это что?». В ответ я обычно строю ехидную гримасу с вопросом…«А вы в курсе, что сами прямо сейчас используете смартфон, работающий на Linux?».

Да, на самом деле, как многие из вас знают, в основе дистрибутивов Android и Chrome OS изначально лежит ядро Linux.

Android-смартфоны работают на Linux

Как заявляют сами разработчики Google: «Android построен на открытом Linux Kernel» (ссылка содержит видео). Начиная с Android 11, эта ОС базируется на LTS-ядре (ядро с долгосрочной поддержкой) Linux, а именно его версиях 4.19 и 5.4.

Говоря конкретнее: «С 2019 года при каждом размещении Линусом Торвальдсом очередного релиза или пре-релиза главная ветка Linux сливается с главной веткой Android. До 2019 года ядра Android собирались путем клонирования свежего LTS-ядра и добавления в него Android-патчей. Новая модель взаимодействия позволяет избежать существенных усилий по переадресации портов и тестированию патчей Android, реализуя все это пошагово». — source.android.com

Есть очень информативное видео (правда в 240p), раскрывающее строение архитектуры Android, в котором инженер Google объясняет, что при использовании в основе Android архитектура ядра Linux дорабатывается. Есть и более свежее видео в лучшем качестве, которое отвечает на вопрос: «Действительно ли Android – это, по сути, Linux?». Глава подразделения открытых проектов Google, Крис ДиБона, описывает Android так: «Десктопная мечта Linux, ставшая реальностью».

Читайте также:  Asus x540lj драйвера для windows 10 64 bit

Убедившись, что Android-смартфоны действительно работают на базе Linux, можно вкратце ознакомиться с данными некоторых исследований, а также узнать о новых перспективных моделях устройств и некотором сопутствующем ПО.

Исследования рынка

В ноябре 2020 года компания IDC опубликовала исследование, которое показало, что системы Android занимают лидирующее положение на рынке смартфонов. Согласно собранным данным, в течение последнего квартала было продано около 261.1 миллионов устройств, 85% из которых на базе Android.

По информации Gartner и Statista эта платформа на данный момент занимает 86% мирового рынка. Взгляните на график ниже, демонстрирующий двух основных игроков индустрии – Android и Apple iOS.

Многообещающие смартфоны на базе Linux

Если вас интересуют смартфоны на ядре Linux, то советую присмотреться к описываемым далее моделям, а также сопутствующему ПО.

Librem 5 – безопасность и конфиденциальность

Purism, известная по разработке ноутбуков с Linux, фокусирующихся на конфиденциальности и бесплатном ПО, успешно провела краудфандинговую кампанию для создания нового смартфона Librem 5. При этом разработчикам удалось собрать на 1 миллион долларов больше, чем планировалось.

Смартфон Librem 5 основан на Debian Linux и по умолчанию оснащен механическими выключателями оборудования, гарантирующими безопасность и конфиденциальность использования. В качестве операционной системы используется GNU/Linux с поддержкой бесплатного ПО. — puri.sm

Pinephone – власть пользователям

PinePhone – это смартфон от компании Pine64, разработавшей Pinebook Pro. Основной замысел состоит в предоставлении пользователю полного контроля над устройством. Обеспечивается это за счет использования мобильных ОС на базе стандартной Linux и оснащения корпуса 6 выключателями элементов оборудования, доступными под задней крышкой. В добавок к этому, конструкция собирается на винтах, что упрощает последующий ремонт и апгрейд. — pine64.org

F(x)tec Pro¹ – обладатель полноценной QWERTY клавиатуры

Pro1 – это сенсорный смартфон с выдвижной горизонтальной клавиатурой. Он разработан и производится компанией F(x)tec, базирующейся в Лондоне. Это устройство представляет собой более совершенную альтернативу клавиатуре Moto Mod Livermorium. На данный момент сообщество Pro1 уже помогло в разработке ОС на базе Linux, и вскоре также планируется поддержка Sailfish. – fxtec.com

Ubuntu Touch для смартфонов и планшетов

Ubuntu Touch (ранее Ubuntu Phone) – это мобильная версия ОС Ubuntu, изначально разработанная компанией Canonical Ltd. Сейчас ее разработкой занимается сообщество UBports. Спроектирована она главным образом для сенсорных мобильных устройств, а именно смартфонов и планшетов. Эта платформа полностью независима и поддерживается исключительно сообществом.

Вот список устройств, находящихся на разной стадии поддержки этой ОС, в который также входит Fairphone 3. Более зрелые устройства позволяют удобную установку системы с помощью UBports. Для тех же, что находятся на ранней стадии поддержки, обычно установка делается вручную. – ubuntu-touch.io

Plasma Mobile – от создателей KDE Plasma

Plasma Mobile – это вариант Plasma для смартфонов. На данный момент она доступна для Nexus 5 и Nexus 5x, а также PinePhone и устройств, поддерживаемых postmarketOS. Работает Plasma Mobile на протоколе Wayland и при этом совместима с приложениями Ubuntu Touch. 1 декабря 2020 года KDE совместно с Pine64 анонсировали возможность предзаказа PinePhone – KDE Community Edition. – plasma-mobile.org

А какое ядро в вашем Android?

Для получения расширенного доступа к Linux потребуются рут-права, но ради чисто спортивного интереса предлагаю просто заглянуть в стандартную систему Android, чтобы узнать, какая у вас установлена версия Linux Kernel. В большинстве Android-смартфонов ее можно посмотреть в разделе Настройки –> Об устройстве (иногда нужно нажать на версию Android).

Если же рут-права у вас есть, то обычно можно установить “Termux”, после чего запустить его и ввести uname -a

В ответ команда вернет примерно такой вывод (на устройстве OnePlus):

Конечно же, рутованное устройство с доступом к терминалу обеспечивает много крутых возможностей. Например, с помощью top или htop можно отслеживать состояние приложений, а через командную строку устанавливать пакеты, удалять приложения, запускать службы и т.д.

Заключение

Армия андроидов продолжает захватывать рынок смартфонов. Главная причина в том, что в их основе лежит открытое ПО, дающее опытным пользователям и инженерам свободу для исследования, разработки и совершения новых технических прорывов.

Надеюсь, что перечисленным в статье смартфонам удастся занять на рынке весомую долю. К другим приметным карманным устройствам на Linux можно отнести NecunOS NE_1, Fenniy, Cosmo Communicator и Volla Phone.

Напоследок добавлю, что буду рад, если с Linux познакомится как можно больше пользователей, которые оценят его преимущества и пополнят уникальное сообщество.
Даешь свободу и власть пользователям!

Сноски

* По факту Linux поддерживает просмотр и редактирование файлов Word, таблиц Excel и прочих, причем не только на настольных ПК, но также на планшетах и смартфонах.
** Для Linux есть гораздо больше вариантов графического интерфейса, чем для любой другой операционной системы. К примеру, Gnome, KDE, Xfce и многие-многие другие.

Источник

Оцените статью