Twinity+ Kernel

Twinity+ Kernel

TwinityOctober 08, 2026
Changelogs: Oct 13th 2026
Based on Glow Kernel V5.2

Process & IPC Scheduling

  • OPLUS Binder Strategy: Dynamic thread priority elevation and async UX boosting for critical system tasks (KeyguardWorkerT, MediaCodec, SystemServer).
  • OPLUS FrameBoost (FBG v2): Priority grouping for RenderThread, SurfaceFlinger, and InputReader to ensure consistent 120Hz frame pacing under load.
  • OPLUS Locking Strategy & OSQ (CONFIG_OPLUS_LOCKING_STRATEGY): UX waiter prioritization across Mutex, RWSEM, and Futex lists with optimistic spin quotas to eliminate UI jank.
  • CPUFreq Bouncing Filter (CONFIG_OPLUS_FEATURE_GKI_CPUFREQ_BOUNCING): Filters frequency oscillation during continuous touch and scrolling to reduce active battery power draw.
  • Touchpanel Event Notify Driver (CONFIG_TOUCHPANEL_NOTIFY): Ultra-low-latency kernel notification bridge directly linking digitizer touch events to CPU governor boosting.

Memory Management

  • Dynamic Pagecache Readahead (CONFIG_OPLUS_FEATURE_DYNAMIC_READAHEAD): Adaptive I/O acceleration that doubles readahead buffer sizing during app launch scenes.
  • Proactive Memory Compaction (CONFIG_PROACTIVE_COMPACT): Background memory defragmentation preventing zero-stall direct compaction spikes during camera and gaming workloads.
  • Mapped Page Protection (mapped_protect): Protects active UI resources, ART runtime caches, and shared libraries from premature cache eviction under memory pressure.
  • Level Protect (level_protect): Inode-level memory mapping protection for critical system assets.
  • kswapd Optimization (kswapd_opt): Removes blocking reclaim flags on costly high-order buffer allocations and feeds real-time metrics to oplus_kswapd_profile.rc.
  • Process Reclaim Enhancement: Targeted background application compaction via process_madvise.
  • Dynamic Swappiness (zram_opt): Dynamic ratio adjustments between anonymous and file-backed pages based on memory load.

Battery, Thermal & Diagnostics

  • Native Battery Health Engine: Full ColorOS/OxygenOS Settings integration (smartchg_soh_support, battery_ui_soh, chemical SOH, and cycle counts).
  • Waker Identify Subsystem (CONFIG_OPLUS_FEATURE_WAKER_IDENTIFY): Wakeup call-chain tracing hooked into scheduler to assist ColorOS HANS background freezer.
  • HANS (Hardware Assistance Network Socket): Background process freeze engine linked to /system_ext/bin/hans to minimize idle CPU drain.
  • Horae Thermal Shell (CONFIG_OPLUS_FEATURE_HORAE_THERMAL_SHELL): Fast kernel-level thermal frame throttling control for ColorOS Horae daemon.
  • Game Optimization Driver (CONFIG_OPLUS_FEATURE_GAME_OPT): System-wide FPS stabilization and thermal governor hooks.
  • Bootprof & Phoenix Profiler (CONFIG_OPLUS_FEATURE_BOOTPROF): Native /proc/bootprof and /proc/phoenix profiling nodes for ColorOS init and system_server.
  • MIDAS v2: Performance middleware interface providing CPU time-in-state and memory latency metrics to /system_ext/bin/midasd.
  • OHM (OPlus Health Monitor): Lock contention and scheduling latency telemetry via /proc/oplus_healthinfo.
  • Storage Protection: Slow I/O detection and file monitoring drivers.
  • Force Shutdown: Clean exception handling to prevent flash corruption on unexpected shutdowns.


Report Page