A new chapter in Android: How to build a fast Android system

Foreword

One month ago, I wrote “Building a Quick Android: Android Eco-ABC Common Tool App Introduction” and promised to share more experience and progress in the next article. Therefore, this time originality is also considered to make up for the unfinished regrets of the previous article. So today we continue to talk about some of the personal experience of using Android models on weekdays, and we also hope that you will like it.

Due to the fragmentation of the Android platform, running the following programs on some manufacturers' devices may encounter some compatibility issues, and the value-friends can change from time to time to find the most suitable way.

The software used in this tutorial is run on one and three (Android 7.1.1, Resurrection Remix OS).

This software part directory: Links Password: g3qw

Software articles

We know that Android gives users and developers more freedom than iOS's closed ecology. However, with the arrival of this open ecology, in addition to being able to “fully control” the pleasure of mobile phones, there is also the aversion to the “malignant tumors” and “household barrels” brought about by the domestic malformed App ecosystem. I will introduce some applica- tions that are well-received and help everyone to better "oppose" the tumors.

First, the use of small guides

Latest version download address

Introduce

The predecessor of the Black Zone - Blocked Run was originally developed by individual developer @Brevent and is an Xposed plug-in. The principle is to control several system apis through the xposed framework, so that the software will not start or be awakened when you do not use (ie, from the multitasking list, forcibly stop, etc.) to achieve a more thorough empty background and prevent background consumption. The purpose of electricity.

Since the Xposed plugin on Android 7.0 repeatedly bounced tickets, and the copyright of the original "blocked running" software was acquired by Falcon Mobile, the developer developed another brand-new software that does not depend on the system framework - "black domain" , It listens to the event log, uses high-level privileges or forcibly stops applications that are awakened or no longer used; Black Zone is open source software, please rest assured that use.

Of course, there is also an important reminder for valued friends. The Black Zone is for Android 7.0 can not use the Xposed module came into being software, if you still stay at Android 5.0 or below, "stop running" is also a good choice.

Installation tutorial

Hit the blackboard! Focus! Improve attention

A. If your phone does not have ROOT permission

The latest Kurdish version 0.7 is perfect for you, you can use adb to install the black domain, but each time you restart your phone, you must re-execute the following steps.

â–² first open Android debugging, if you use a key patch, then also open the network adb

First need to have adb drive computer, mobile phone needs to install black domain (adb win version download address)

After decompression after download, hold shift in the folder, right-click, click here to open cmd, you can enter the adb command.

Connect the phone, the phone needs to open usb debugging

In the usb debugging window, type adb -d shell /data/app/me.piebridge.brevent-1/lib/arm/libbootstrap.so and press Enter. After the computer prompts success, you can open the app for configuration.


â–² Command prompt after success

B. If your phone has ROOT permission

I think that using an older version of 0.4 is more appropriate because it does not require additional operations after the mobile phone is restarted.

1. The computer is required to have an adb driver, and the 0.4 version of the black domain (me.piebridge.brevent-0.4-4.apk) provided in the above Baidu cloud is installed on the mobile phone.

2. Copy PrivBrevent.apk to phone root directory /system/priv-app, create a new folder PrivBrevent in the directory, put the apk file in this folder, change the folder permissions to rwx r-xr-x, Apk file permissions changed to rw- r-- r-

3, execute the following command 4-6, or install the "black key patch" (address here), open the "network ADB" option in the developer options, follow the steps in the "black key patch" tips

4, open the computer, run cmd.exe, connect the phone, the phone needs to open the usb debugging

5, enter adb -d shell
6, enter the following command (can be copied to the window)
For x in 1 2 3;dofile=/data/app/me.piebridge.brevent-$x/lib/*/libbootstrap.so;if ls$file>/dev/null 2>&1;then $file;break; Fi;done
If successful, checking......successfully
If it is unsuccessful, a command that starts with cannot sometimes displays the failed command first, and then it jumps out of the successful command, which also means success.
7, open the black domain, configure the block list

Configuration tutorial

With regard to the configuration of the block list, the value-friends need only clarify that the software that needs to open the background service is excluded (such as WeChat, QQ, etc.), and other software can join the block list. The software process that joins the block list will be closed when you press the Back key to exit or when the background task list is crossed out. The new version of the black zone adds the ability to set the background application time. Value-friends can read the instructions carefully and adjust the app's background life time.

(Blackpool is an open source software and hopes that valued friends can contribute a lot to the author @Brevent)

Second, the green guardian use red book

download link

Popular science time (emergency valuers can skip)

GreenGuard is an Android application that can improve the battery life and performance of your device. His developer is OasisFeng. Now, with the new features of Android 6.0, Doze and App Standby's blessing, the green guardian becomes even more useful. So, what is Doze and App Standby?

A. Meet Doze

Starting with Android 6.0, Android provides two power-saving features to extend battery life: Doze and App Standby; he showed that when the device is not connected to the power, the device will enter the Doze mode, the system will delay the application that the user has not used recently. The background CPU operation and network activity, so that the application is in the App Standby state, in order to reduce battery consumption. Google said that on the Nexus5 and Nexus6, when the screen was off, the average life time increased by 30%. So, what's changed in the Doze mode application:

1. The system attempts to save battery by limiting application access to network and CPU-intensive services;

2. Preventing applications from accessing the network, postponing application work, synchronization, and standard alerts;

3. The system periodically provides a brief period of time for the application to complete a delayed work activity. During this time period, the system will provide a maintenance window application to access the network, run in waiting for synchronization, work, and alarm activities. As shown in the figure below, Doze provides a short period of time (30s) for the application to use the network and handle pending activities.

From this figure, we can see that after the system enters Doze mode, the system will process suspended tasks at a certain time. Over time, the later interval will be longer and longer to reduce power consumption.

B. Meet AppStandby

When the user does not touch the application for a period of time, the application is in the App Standby state and the system will mark the App as idle. The application will exit the App Standby state unless any of the following conditions are triggered:

1. The user actively starts the App;

2. The app currently has a foreground process (or contains an active foreground service, or is used by another activity or foreground service);

3. The App generates a notification that the user can see on the lock screen or notification tray. When the user device is plugged in, the system will release the App's standby state, allowing them to freely connect to the network and perform unfinished work. Synchronize. If the device is idle for a long period of time, the system will allow idle apps to access the network once a day.

Due to the special nature of the domestic development environment, developers often use the following methods to bypass the Doze mode.

1. Developers use Google's ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS intent and AREQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission settings to ignore this;

2. Bypass Doze mode through so.

3. Add application to battery optimization white list;

Knowing the above knowledge, we can have a more in-depth understanding of the new “shallow dormancy” and “sleepiness mode” added to the green guardianship. Unlike the previous (under Android 6.0) "Lock the screen after killing selected applications for a period of time" approach, these features allow users to reduce the battery consumption while retaining the application background (of course, this will bring more More memory footprint)

Operation method



â–² New shallow sleep and drowsiness patterns

Set the green guardian working mode to "ROOT mode" and turn on shallow hibernation and drowsiness mode in the settings and add the required programs to the app list (for me, besides QQ, WeChat and NetEase cloud music I added to the app list), keeping the green guards alive in the background, then it will automatically control the background process for you. This mode is suitable for larger mobile phones, because the background process will not be truly terminated, but in memory in standby. If your phone's memory is small or it stays below Android 6.0, the traditional sleep mode is more suitable for you.

Third, Advanced Kernel Tweaks Introduction

The plug-in introduced last is the rarer AKT. This is a plug-in developed by an individual developer on xda to achieve power saving by adjusting the frequency and voltage. It is theoretically applicable to all Qualcomm 820 models except the HTC 10, and I have one plus 3T on the Qualcomm 821. The same test is available on.

The original post of XDA forum is as follows

Here's a brief description of its installation steps

1- Download the latest AKT_Profile_vX.x.zip file (in my Baidu cloud above)

2- Reboot to TWRP recovery and flash this .zip file

3- After restarting the system, wait for a while to set it up

4- Install and open Terminal Emulator

5- Enter "su" and press Enter to authorize the terminal for root privileges

6- Enter "AKT" and press Enter

7- Follow the on-screen instructions to select the optimization options you need

8- Enjoy your phone!

Of course, there is also a graphical interface provided by AKT_Profiles_1.3.apk. For students who are disgusted with terminal installation, please download the APK that I provided at the end of the article. Select the appropriate optimization option on the main screen. I have made a simple diagram, we can look at.


to sum up

Above, it is some of my commonly used Android plugins. As the saying goes, if a worker wants to do something good, he must first sharpen his tools. He hopes that the addition of these gadgets to your mobile phone will make your everyday life more enjoyable. Hope you enjoy it!

Ckb Mining Machine

Nervos is an ambitious newcomer on the crypto market and Changelly has long watched it with interest. The project attracted the attention of investors and developers since its purpose is not to launch another cryptocurrency in the ecosystem. Nervos is a simple connecting database between any blockchains.


Nervos was launched in November 2019 by Nervos Network and aims to fix issues that plague both Bitcoin and Ethereum. Among them are scalability and value differences. To fix them, the Nervos team wants to implement effective scalability and raise the cost of their token by hosting other cryptocurrencies on their blockchain. Nervos supports smart contracts and is censorship-resistant. CKB is a native token of the Nervos network. It scales with the value of other assets stored on the network: the more cryptos and tokens are there, the more valuable CKB becomes. This means that this token will continue raising its value the more attention and assets it attracts. Add to that the support of smart contracts, and you have a nice crypto bridge between different blockchains. Which is exactly what makes it so attractive for both crypto enthusiasts and investors.

ckb mining machine,eaglesong algorythm,ckb miner,goldshel ck6,goldshell ck5

Shenzhen YLHM Technology Co., Ltd. , https://www.nbapgelectrical.com