Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

lineage-17.1-20201216

Compare
Choose a tag to compare
@BYZYB BYZYB released this 16 Dec 07:06
· 41 commits to lineage-17.1 since this release
8b7c5d3

User-friendly controller for hardware features

In this rom update, you are able to control the state of CPU overclock and Edge gesture inside Settings app. The former one is located in Settings > Battery > Battery saver and performance > High performance mode, and the latter one is at Settings > System > Buttons > Edge gesture. It's now available to control both of them without shell commands or external apps.

Due to some breaking changes, you have to enable then disable the following two settings manually. Everything should work properly after that, and both of their status would be saved permanently. Otherwise, CPU overclock will be enabled by default (which may cause random reboot on some Mi-4c), and Edge gesture will be kept disabled (this one is safe).

Each of these features are controlled by init triggers (exactly, by properties). You could set these properties to false/true in order to disable/enable each feature. CPU overclock is at persist.sys.cpu_overclock, Edge gesture is at persist.vendor.edge_touch_mode, and root access is at persist.sys.root_access just like before. By using init triggers, the Settings app is no longer needed to handle file operations which may cause exceptions in some conditions.

If you're using addon-su for root access instead of Magisk, please also do the same thing to Settings > Developer options > Root access. Otherwise, root access will be kept disabled. No matter how you got root access, adb_root is always available at Settings > Developer options > Rooted debugging, which allows to run adb shell as root user.

Todo: Add a new screen refresh rate controller to Settings > Display, which allows users to control FPS dynamically (in 30/48/50/60/75Hz).

Main changes

  • Android Security Patch level: 12/5/2020.
  • Android System Webview: 87.0.4280.101 .
  • Add new property for overclock control and edge gesture.
  • Adjust file paths for pinner service.
  • Convert all init shell scripts to init rcs.
  • Convert libshim makefile to blueprint.
  • Copy init scripts to ramdisk instead of building as packages.
  • Declare fingerprint HAL in device manifest.
  • Kernel improvements:
    • Clean-up unnecessary build options.
    • Completely disable debugfs on Android system.
    • Disable seccomp filter (has no effect if selinux is set to permissive).
    • Keep at least one A57 core online when reaching thermal threshold (CPU1/2/3/5 might be offlined instead of CPU2/3/4/5).
    • Overclock CPU and adjust voltage mapping (A53: 1440MHz → 1632MHz, A57: 1824MHz → 1920MHz).
  • Move config_deviceDisabledComponents to lineage_config.xml .
  • Optimize GPS configuration (should improve positioning experience outside Mainland China).
  • Remove core control configs from init script.
  • Remove debugfs related things.
  • Remove duplicate lines from init.qcom.rc .
  • Remove lineage recovery from rom (as most users are using TWRP).
  • Remove unused custom thermal HAL.
  • Remove unused kernel offset values.
  • Remove unused proprietary files from list.
  • Set fpc parameters with libinit (only set those values on Mi-4s).
  • Update storage cleaning rules and dex2oat properties.
  • Use a better way to handle root access (both addon-su and adb_root).
  • Use arch specific optimization (cortex-a53) globally.

Download mirror