Why does Android differ so much from Linux?


Question

I have read all related questions here, but they don't answer my questions or are not up-to-date since Android is particularly included in Linux kernel ( > 3.x.x).



Why didn't Google just take a Linux distribution (for example Debian) and add drivers for touchscreen, mobile service, etc and create a desktop environment for touchscreens.



If kernel modules won't be included in the Linux kernel, it would be possible to use the streamlined Linux kernel and add these modules (and remove some, like unnecessary drivers).



Today it will fail to run standard Linux on every smartphone and tablet, because of missing drivers, but they could have been written for Linux, not Android.



It would have been saved double development of new features


Answer


Why didn't Google just take a Linux distribution ... and create a desktop environment for touchscreens?




Because they didn't want to create a desktop environment for touchscreens: they wanted to create a new OS for smartphones. Smartphones (and earlier, PDAs) based on not only the Linux kernel but the GNU userspace, with the same programming environment as desktop Linux, existed for years before Android did, but they were a huge commercial failure.



The chief advantage of using a GNU/Linux distribution is the idea that you can simply recompile all the same applications for your new hardware, rather than having to write a new application. But this has never worked out in practice. A user interface designed to work with a keyboard and mouse on a big PC display simply doesn't work on a phone touchscreen. The ways that programs interact with each other on a PC with almost unlimited storage and no need to conserve power simply doesn't work with the limited energy and storage requirements of a phone. The pixel-layout, fixed-dpi ways of designing graphics and user interfaces for PC displays have already been outgrown for PCs, and phones need something better. In addition, smartphones introduce new features - ubiquitous location availability, cell modems and telephony, and Bluetooth - which PCs have never offered applications a standard way to access.



The Android team set out to offer a programming interface (the Android framework) to let app authors access all the needed functionality, in a way which wasn't previously available. They set out to isolate apps from each other to protect the integrity and the battery of the device in a way that wasn't possible in any existing Linux distribution. They set out to create a new graphics subsystem to avoid falling into the Linux community's dependence on X Windows. They set out to create a commercial success, which had never previously been achieved with Linux-based handhelds.



They achieved all those goals, by doing exactly the thing you complain about. Android is much bigger than just some Linux drivers, and many kernel drivers for Android devices do eventually make it back to mainstream Linux.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes