Skip to content

Lunaris-AOSP/android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,300 Commits
 
 
 
 
 
 

Repository files navigation

Initialize local repository

repo init -u https://github.com/Lunaris-AOSP/android -b 16 --git-lfs

Sync up

repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

Build

  • Set up the build environment
. b*/env*
  • Lunch a target
lunch lineage_codename-bp2a-user
  • To start compiling
m lunaris
  • Bringup about (add in device tree settings overlay)
https://github.com/Lunaris-AOSP/packages_apps_Settings/blob/0acd6251e20bacd8db589beb483d6138f553f02c/res/values/lunaris_strings.xml#L338
  • Maintainer flag
  • Add in system.prop
ro.paranoid.maintainer=GHOST
  • Disable blur
TARGET_ENABLE_BLUR := false
  • Enable BCR
WITH_BCR := true

Build flages

  • GMS
WITH_GMS := true
  • Vanilla
WITH_GMS := false
  • GMS CORE
TARGET_USES_CORE_GAPPS := true
  • GMS OMNI
TARGET_USES_OMNI_GAPPS :=true
  • Animation fix for mtk devices
PERF_ANIM_OVERRIDE := true
  • refresh rate list (optional) - defining this flags makes the controller skip the parsing of Display.Mode refresh rates
  • for supported refresh rates. The refresh rate controller will also assume that all the defined refresh rates are "supported"
TARGET_SUPPORTED_REFRESH_RATES := 60,90,120,144
  • Allows charging while keeping the battery percentage fixed. If supported, you must also add a SELinux rule for the input_suspend node and kernel support
BYPASS_CHARGE_SUPPORTED := true

Performance mode

  • If your device uses standard labels, add rules like this to your device tree genfs_context:
genfscon proc /sys/vm/dirty_writeback_centisecs     u:object_r:proc_dirty:s0
genfscon proc /sys/vm/vfs_cache_pressure            u:object_r:proc_drop_caches:s0
genfscon proc /sys/vm/dirty_ratio                   u:object_r:proc_dirty:s0
genfscon proc /sys/kernel/sched_migration_cost_ns   u:object_r:proc_sched:s0
genfscon proc /sys/kernel/sched_pelt_multiplier     u:object_r:proc_sched:s0

  • GPU boost
  • To allow boost framework to access your device gpu nodes, add genfs context for your node and label it as sysfs_gpu
genfscon sysfs /devices/platform/1c500000.mali/available_frequencies                   u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/1c500000.mali/hint_min_freq                           u:object_r:sysfs_gpu:s0

  • SEPolicy conflicts
  • If your device uses different OEM labels (common on MediaTek or Qualcomm), add allow rules instead of relabeling.
allow init proc_vm_dirty:file rw_file_perms;
allow init proc_dirty_ratio:file rw_file_perms;

Lockscreen cpu info fix

  • Add in systemui configs.xml
<!-- System Info -->
<integer name="config_sysCPUTempMultiplier">1000</integer>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 176