In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Redmi Y1

Tech Corner

[Discussion] [Device Team] [Tech Class] Chapter 40: Android Source code - What we need to know

2017-11-21 04:33:21
27520 218
Hey Mi Fans,
In this Tech class, we will discuss about Android Source. Let's get started.

What is Source code?
The source code is the fundamental component of a program that is created by a programmer. It can be read and easily understood by a human being.
When a programmer types a sequence of C language statements into Windows Notepad, for example, and saves the sequence as a text file, the text file is said to contain the source code.

What does it mean that Android is open source?
  • Android is “open” in a variety of ways. For one thing, the Android operating system is based on code from the “Android Open Source Project,” or AOSP. It’s open-source, so people can take that source code and create custom operating systems from it.
  • MIUI is a custom ROM based on this code, for example. Cyanogen-MOD, Amazon’s Fire OS, used on the Kindle Fire and Fire Phone, is also based on this open-source Android code.

The Android Source Code
  • Android is an open source software stack created for a wide array of devices with different form factors. The primary purposes of Android are to create an open software platform available for carriers, OEMs, and developers to make their innovative ideas a reality and to introduce a successful, real-world product that improves the mobile experience for users.
We also wanted to make sure there was no central point of failure, where one industry player could restrict or control the innovations of any other. The result is a full, production-quality consumer product with source code open for customization and porting.

What are the Purposes of source code?
  • Beyond providing the foundation for software creation, the source code has other important purposes, as well. For example, skilled users who have access to source code can more easily customize software installations, if needed.
  • Meanwhile, other developers can use the source code to create similar programs for other operating platforms -- a task that would be trickier without the coding instructions.
  • Access to source code also allows programmers to contribute to their community, either through sharing the code for learning purposes or by recycling portions of it for other applications.

About the Android Open Source Project
  • Android is an open source software stack for a wide range of mobile devices and a corresponding open source project led by Google.
  • This site and the Android Open Source Project (AOSP) repository offer the information and source code you need to create custom variants of the Android stack, port devices, and accessories to the Android platform, and ensure your devices meet compatibility requirements.
  • We also wanted to make sure there was no central point of failure, where one industry player could restrict or control the innovations of any other. The result is a full, production-quality operating system for consumer products with source code open for customization and porting.
Source Code Licensing
  • Source code can be either proprietary or open. Many companies closely guard their source code. Users can use the compiled code, but they cannot see or modify it. Microsoft Office is an example of proprietary source code. Other companies post their code on the internet where it is free to anyone to download.
Apache OpenOffice is an example of open source software code.

Interpreted Program Language Code
  • Some programming languages such as JavaScript are not compiled into machine code but are interpreted instead. In these cases, the distinction between source code and object code does not apply because there is only one code.
  • That single code is the source code, and it can be read and copied. In some cases, developers of this code may intentionally encrypt it to prevent viewing. Programming languages that are interpreted include Python, Java, Ruby, Perl, PHP, Postscript, VBScript and many others.

Difference between Open source code vs Closed Source
Generally, the key differentiators between open and closed come down to a few factors:
  • Cost
  • Service
  • Innovation
  • Usability
  • Security

What is Android Custom ROMs?
  • A custom ROM is one that has undergone any modification from being a pure distribution of Android. Google makes the Android source code available for anyone to play around with, and people take this code and alter it for themselves. Whether to add features they come up with, or to redistribute it with fun tweaks and additions.
  • So a custom ROM can range in definition from some custom code modifications to make Android run better on a device, all the way to changing the home screen, background services, and default software.

Little on MIUI

  • MIUI (which stands for MI User Interface and pronounced "Me You I", a play on the common abbreviation of the words user interface as UI), developed by Xiaomi, is a stock and aftermarket firmware for smartphones and tablet computers based on the Google Android operating system. MIUI includes various features such as theming support.
Xiaomi has released various smartphones, all but one of which comes pre-installed with a complete version of MIUI. This includes various apps and features not available in the aftermarket version of MIUI.
Google also releases applications that are not open-source licensed. Gmail, Maps and plenty of the other Google apps that come on our phones aren't part of the AOSP and are developed independently for Android, Chrome, iOS and the web.

A Tech Class Recap
Class 15:All CPU Cores
Class 17:All About RAM
Class 28:All About IP(Ingress Protection)Ratings
Class 32:MIMO Technology Explained
Class 33: All About Gi-Fi
Class 34: All you need to know about ADB
Class 35: All about Factory reset
Class 36: More about on Internet Protocol (IP).
Class 37: Android Voice Recognition - In Detail
Class 38: Mobile Touch panel – An Android Input
Class 39: All about Pixel Density & DPI


Number of participants 3 Experience +19 Pack Reason

View Rating Log

2017-11-21 04:33:21
Favorites349 RateRate
Tech Corner
A Column about Tips and Tricks for both Mobile and Computer.
21 Article Description     534 Subscribers

Master Bunny

FF8 | from app


nice details...explained well!
2017-11-21 07:20:42
Ex, Device team & Spam Hunter Team member

Advanced Bunny

Ankiii | from Redmi 3S


v goodv good and efficient tricks code
2018-02-13 04:21:58

Master Bunny

Sk Sam | from Redmi 4A


thanks for sharing bro
2018-02-13 04:24:07

Master Bunny

ajju1628664228 | from Redmi 5A


nice .. ...
2018-02-13 04:25:14

Grandmaster Bunny

Pratyush01 | from Redmi 3S


nice information
2018-02-13 04:28:46
Nice one
A must Read
2018-02-13 04:28:53

Semi Pro Bunny

bujji1777479879 | from Redmi Y1


thanks for the update
2018-02-13 04:29:00

Master Bunny

Vicnfsmw | from Redmi Note 4


Nice info.
2018-02-13 04:40:09

Grandmaster Bunny

SAIRITWIK | from Redmi Note 3


Beautifully explained!
2018-02-13 04:43:17

Advanced Bunny

1645698647 | from Redmi 3S


oxidizing oh tux chk goal
2018-02-13 04:44:30
please sign in to reply.
Sign In Sign Up


Master Bunny

  • Followers


  • Threads


  • Replies


  • Points


3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
1 Year Check-In
New Home
June-100 replies in a month
July-100 replies in a month
Aug-100 replies in a month
Sep-100 replies in a month
Oct-100 replies in a month
Nov-100 replies in a month
Dec-100 replies in a month
100 ответов в декабре
71st Independence Day
MIUI 7th Anniversary
2 million registered members
Newbie Member
Twitter Medal
Device Team Member
Christmas 2017
2018 New Year Medal
MIUI Instagram
Mi Community Updater
Mi Community Update Medal
The Motivator
Newbie Member
MIUI Subscriber
MIUI 8th Anniversary
Eid Mubarak
5 Million Registered Users

Read moreGet new
Copyright©2010-2020, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list