Analyze why Android uses more and more cards and how to deal with it

According to third-party research data, 77% of Android mobile phone users admit that they have experienced the slowdown of mobile phones. Baidu searched for "Android card slow" and also had more than 4.6 million results. In the industry, Android mobile phones have always had the reputation of “slower and slower”. This phenomenon is even beyond the hardware category. Many medium and high-end Android phones are superior to the same generation of iPhone in hardware parameters, but they will still be used for half a year. After the time of the year, it entered the state of "unsmoothness" - this is undoubtedly a troublesome thing.

Apple VS Android

However, if we want to answer this question, we need to go back to the last century to find the origin of the smartphone.

Western history and fantasy literature are very keen on expressing the "bloodliness" setting. Its traditional culture believes that bloodlines can determine talent and lead to the philosophical thinking of whether fate is doomed. For example, the Harry Potter series, which is well known to everyone, is not difficult to find after deconstruction. This is actually a history of killing Gryffindor and Slytherin's two bloodlines and their descendants (Harry Potter is The descendants of Gryffindor inherited their courage, Voldemort is the descendant of Slytherin, with his ambitions, and the omnipotent prophecy (one will kill the other) will also implement the Western fatalism Complex.

In the technology industry, the definition of "bloodliness" was replaced by "genes". What kind of genes a company has, which determines its areas of expertise, is widely accepted, and has become a unique idealism in the material age, and has withstood The test of facts - when we tried to explain why Microsoft lost the Internet, Google lost to social networks, and Baidu stopped at e-commerce, it would be heartfelt. "The original script was written many years ago."

Similarly, why the "slow card" problem of Android phones is always more serious than the iPhone, and its answer is also doomed from the beginning.

In 1965, Bell Labs, General Electric, and the Massachusetts Institute of Technology began collaborating to develop an operating system that was both easy to use and powerful. After six years of collaboration, Ken Thompson, a software engineer at Bell Labs, During the vacation, a system called Unix was written and eventually became the commercial product of Bell Labs' parent company, AT&T, the US telecommunications giant, and launched decades of copyright operations. Although there are many variants later, in a strict sense, Unix is ​​not an open source operating system.

In 1991, a Finnish college student, Linus Torvalds, who was also a computer hacker, was fascinated by Unix, but couldn't afford the workstations needed to run Unix, so he tried to write an operation called Linux in the same programming way. The system, and inspired by the spirit of free software father Richard Stallman, added Linux to the Free Software Fund (FSF), allowing everyone to use, copy, modify and even sell Linux systems, while taking on open source obligations, prohibiting the closure of Linux Attempt.

The reason why it is so costly to talk about the two operating systems of Unix and Linux is because iOS and Android are works based on Unix and Linux respectively. In other words, it is a combination of Unix and Linux features, resulting in a huge difference in the experience of the iPhone and Android phones.

Jobs once invited Linux founder Linus Torvalds to work for Apple, abandoning Linux open source, and assisting in the development of the Mac OS closed Mach kernel, which explicitly refused after a big fight with Steve Jobs. Starting with Mac OS, Apple regards the privatization of the operating system as a corporate strategy. In Jobs's words, he puts iOS in the iPhone box and sells it to users. Therefore, the reason why the iPhone does not appear to be "more and more cards" is because Apple has the highest management rights for its mobile phones from hardware to software. In a closed environment, applications from third parties cannot be called. It is naturally impossible to cause continuous system damage beyond the command of the iPhone.

On the other hand, Android mobile phones, due to open source open conditions, Google can not bind third-party applications from the code port, at the same time, because the Linux core settings application must obtain ROOT permissions when accessing system functions, which also leads to a large number of applications because The single-function implementation needs to be dominated by the entire ROOT level, and can be read and written in any storage location of the Android phone. This high degree of freedom is tantamount to opening the Pandora's Box, which prevents the Android phone from pre-arming malicious apps. This is also the reason why open source software is highly controversial and has been contradicted in the commercial arena: it only cares about whether users are granted freedom - this freedom also includes freedom to cross the border - and does not consider how to circumvent the worst from the worst starting point The risk of abuse.

Although Google, as a giant, has been trying to manage the industry chain, but when this industry chain is growing, and even Google can only play one of the roles, Android's loss of control is justified. For example, the latest version of Android usually takes more than a year and a half to make the Android phone that activates it account for more than 50%, but iOS 7 only takes two months, so that more than half of the iPhone is updated. In addition, if an app is penalized by Apple from the App Store, it can no longer be installed on any legitimate iPhone, but if an app is evicted from Google Play by Google, it can still log in. A variety of third-party application markets that provide normal downloads and installations.

Therefore, this kind of natural shortcoming of Android has spawned a market of “mobile phone tuning” and has driven a new industrial chain.

The first level of "mobile phone tuning" lies in the system layer. In Android 4.4 and later Android L's plan, it changed the application's operating mode from Dalvik to ART. The principle is simply "pre-compiled", that is, when an application is installed for the first time. When it comes to Android, its bytecode has been compiled into a local machine code, reducing the startup and execution time of subsequent applications running.

According to Google's own published results, the speed of ART compared to Dalvik has increased by 80% in different performance test apps. In some projects, ART has improved by more than 1.5 times. This result is very gratifying. .

This is Google's effort to solve the slow problem of the Android card from the source, but this is only a function of performance optimization, and can not solve the problem caused by application violations calling resources. At the same time, due to the "pre-compilation" when installing the application, the entire installation time will be longer, and the generated files will become larger after the installation. For example, the latest Google installation package is only 6.9M, but it is installed after the APK. The size reached 28.3M, which is too much for the Android phone storage space.

The second level of "mobile phone tuning" lies in the ROM layer. As the world's largest Android market, many mobile phone manufacturers in China have developed dedicated ROMs to add sales to their products. Most ROMs will also consider optimizing Android systems. For example, MIUI V6 claims to introduce "multiple Linux system kernel memory." Optimize technology to improve application efficiency."

That is to say, as with what Google does, the main optimization work of ROM manufacturers is also to move Linux to various patches, so that the underlying language can be better adapted to various mobile terminals. Or MIUI V6 as an example, when introducing new features, it has such a: "ZRAM scheduling optimization technology", in fact, ZARM is a memory module in the Linux kernel, the role is to draw a part in the memory to serve as a virtual disk, To carry the Linux swap partition, put some tasks into the compression, so that the memory usage is increased, let the CPU to serve the memory (because the current smartphone is generally CPU surplus, and the memory is the bottleneck).

However, ROM is also a double-edged sword. It has the risk of increasing the load on the mobile phone for the modification of the Android underlying system and its occupation of memory space.

The third level of "mobile phone tuning" lies in the application layer. The unexpected or deliberate occupation of events in a large number of applications is the core reason why Android phones are getting slower and slower. Too many applications are keen to stay in memory space and leave a lot of debris in the storage space, which is the main culprit. This is why instant cleanup applications have gradually become standard on Android phones.

Android system has seven types of processes, namely, foreground process, visible process, main service, secondary service, background process, content supply node, and empty process. When no cleanup application is installed, an Android phone can only rely on the system default. The allocation mechanism automatically adjusts the memory usage. As long as the application makes a request, most of the processes will be kept in memory as soon as they are opened. This is originally intended to allow users to re-load these processes without reloading and saving time. Consider, but Android does not expect that fierce market competition will drive the application to produce a "bad money drive" trend, many developers for business purposes, do not need to stay in memory to find ways to keep the application The potential operating state, one or two is better, but once the number is more, the Anrdoid mobile phone will frequently stumble and heat up.

The following is a brief introduction to several processes that are often cleaned up by the APP:

1, the background process (Hidden) - this is the process of the highest priority scanning and identification of the cleaned up APP, because most Android users do not use the return key to exit when switching applications, but directly press the Home button, The former will let the application enter the empty process (occupying relatively small resources), while the latter will remain as the background process (occupying relatively large resources), especially when the game app is running in the background, it will compete for resources with other apps. And don't care if the app is being used by the user. At present, about 20% of commonly used apps start networking in the background even when they are not running, mainly to submit product and user usage information, obtain advertising information, and query whether to upgrade;

2, Secondary Server (Secondary Server) - such as some enterprise suites, mailbox contacts, touch interfaces, etc., many of these processes are built into the system, some users will use, but some users may not use or Alternate applications already available;

3, Content Provider (Content Provider) - This part of the process has no program entity, just provide content for other applications, such as calendar supply nodes, mail supply nodes, etc., in addition to occupying memory resources, it also occupies the network, so Will also cause unnecessary burden on Android phones;

4, Empty process (Empty) - If you use the Back button to exit the application, most applications will also leave an empty process in the memory of the Android phone, this process has no data to run, but will record the application's historical information, almost There is no value. Similarly, the priority of this part of the process is also high.

In addition to excessive consumption of memory, Android phones are also prone to accumulate a large amount of redundant data in the storage, including pre-installed applications that cannot be uninstalled, surviving files after uninstallation, and caches generated during the use of the application, as Android itself does not provide Management tools, even after connecting the phone to the computer is a folder like the Windows tree structure, it is difficult for users to independently determine which folders can be deleted, which folders are necessary, and finally the size of the phone will become more and more. The narrower the situation.

The problem of "mobile phone tuning" may bring the burden of user operation. The psychological pressure is more than the behavioral pressure. Playing the mobile phone does not forget the use of the cleaning function. This is a "characteristic" compared with the iPhone. Operating habits are also the reason why Android phones are always like a semi-finished or engineering machine.

The material of this product is PC+ABS. All condition of our product is 100% brand new. OEM and ODM are avaliable of our products for your need. We also can produce the goods according to your specific requirement.

Our products built with input/output overvoltage protection, input/output overcurrent protection, over temperature protection, over power protection and short circuit protection. You can send more details of this product, so that we can offer best service to you!

12V Adapter

Led Adapter,Mini Led Adapter,Security Led Adapter,Waterproof Led Adapter

Shenzhen Waweis Technology Co., Ltd. , https://www.waweis.com