CoreShift
696 subscribers
45 photos
7 videos
1 file
40 links
Developer-facing tooling only. Not intended for casual or personal use. Assumes you understand shell behavior, Android service boundaries, and the side effects of touching ART, app-ops, system properties, and device_config.
Group chat - @diky_IC
Download Telegram
CoreShift GameSet TaskProfile Scheduler
Boot-safe execution with continuous runtime monitoring
Foreground-aware scheduling using ActivityManager stack inspection
Game-only promotion via curated gamelist (no global boosting)
Automatic background demotion for dozelist applications
Thread-correct enforcement using settaskprofile (TID-based, not PID-based)
CPUSET and SCHED aggregate profile orchestration aligned with task_profiles.json
TOP_APP profiles applied exclusively to active foreground games
Immediate demotion of games upon foreground loss to preserve scheduler fairness
Background applications constrained using BACKGROUND profiles for power efficiency
PID de-duplication to prevent redundant scheduler reapplication
Periodic reevaluation to track process restarts and thread respawns
Thermal-aware boosting gated by battery temperature to avoid boost–throttle oscillation
No killing, freezing, force-stopping, or app suspension
Scheduler-only behavior: no wakelock, sensor, GPU, or thermal HAL interference
Screen-off friendly: no foreground promotion when no resumed activity exists
Silent execution without logspam or persistent state files
Designed to stabilize frame pacing, reduce scheduler noise, and improve sustained gaming performance while maintaining system responsiveness

Credit
@AduhaiWelewele
@reljawa
CoreShift Watchdog
Startup gating
Waits until Android finishes booting and SystemUI is alive.
Starts only after the system is fully usable.
Whitelist handling
Uses a persistent whitelist file.
Whitelisted packages are never touched.
Whitelist is the only protection for system apps.
Continuous scan loop (every 30 seconds)
Enumerates all currently running processes.
Skips:
itself,
empty or malformed entries,
whitelisted packages,
packages killed recently (cooldown enforced).
Decision model
System apps (UID < 10000):
Standby bucket is ignored.
If running and not whitelisted, they are eligible for termination.
Third-party apps (UID ≥ 10000):
Queries numeric standby bucket.
Only killed if bucket > 20 (FREQUENT, RARE, RESTRICTED).
ACTIVE (10) and WORKING_SET (20) are never touched.
Action
Eligible packages are terminated via cmd activity kill.
Kill time is recorded per package.
Fixed-string state updates prevent regex errors and corruption.
Stability controls
Cooldown prevents rapid re-kills and restart storms.
No thread counting, no heuristics, no guessing.
Deterministic decisions based on app state and policy.
Net effect
Aggressively cleans unused background apps.
Enforces strict control over non-essential system services.
Preserves foreground apps, recently used apps, and protected components.
Maintains long-term system responsiveness and resource headroom.
CoreShift Compaction
Startup gating
Waits for full system boot completion.
Waits until SystemUI is running to avoid early-boot interference.
Displays a toast to confirm the service is active.
API-aware compaction strategy
On Android 14+ (API ≥ 34):
Uses cmd activity compact system to trigger framework-managed system-wide memory compaction.
On older Android versions:
Enumerates all installed packages with UIDs.
Applies both some and full compaction per app to maximize reclaim.
This ensures compatibility and correct behavior across Android releases.
Initial compaction
Runs a full compaction cycle once after startup.
Allows the system to stabilize before entering the monitoring loop.
Screen-state monitoring loop
Polls screen state periodically using cmd deviceidle get screen.
Maintains counters to detect consecutive screen-off or screen-on states, avoiding false triggers.
Idle enforcement logic
If the screen is detected off twice consecutively:
Forces device idle using cmd deviceidle force-idle.
Marks idle as forced to prevent repeated calls.
Immediately runs a compaction cycle.
Sleeps for a long interval to avoid unnecessary churn.
If the screen is detected on twice consecutively:
Releases forced idle using cmd deviceidle unforce.
Returns control to normal Android power management.
Periodic maintenance
While the screen remains off:
Performs scheduled compaction at long intervals to reclaim memory steadily.
While the screen is on:
Sleeps lightly and avoids compaction to prevent foreground performance impact.
Stability guarantees
Idle forcing is stateful and reversible.
No compaction is spammed.
No interaction with foreground apps.
No dependency on heuristics like memory pressure or thread count.
Net effect
Reduces memory fragmentation over time.
Improves idle-time memory reclaim efficiency.
Preserves foreground responsiveness.
Works silently in the background with predictable, bounded behavior.
CoreShift Compaction acts as a low-frequency, idle-aware memory maintenance daemon, complementing Android’s own memory management without fighting it.
CoreShift Frameworks

What CoreShift Is
A unified optimization framework built from multiple components that manage system behavior, enforce performance rules, and provide tools for deeper control.
Included Modules
• CoreShift Manager
• CoreShift Runtime
• CoreShift Preloader
• CoreShift Compaction
• CoreShift Latency
• CoreShift UClamp (ROOT)
• CoreShift GameShell
• CoreShift GameShellSched
Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Essential
Coreshift Game
CoreShift Control
Coreshift QoL
Credits
@ChatGPT@Koneko
@Hoyo @Brains
@dcx@rowjik
@puji@Zexshia
@reljawa@bleble
🔥51😁1
CoreShift
CoreShift Frameworks What CoreShift Is A unified optimization framework built from multiple components that manage system behavior, enforce performance rules, and provide tools for deeper control. Included Modules • CoreShift Manager • CoreShift Runtime •…
CoreShift Manager

What CoreShift Manager Is
Central orchestration and control module for the CoreShift framework
Provides unified CLI tools to configure runtime behavior and module policies
Manages application classification lists (doze, game, watchdog) with pattern-based control
Applies aggressive power and restriction actions through predefined operational modes
Controls lifecycle of CoreShift modules, including start, stop, and status inspection
Acts as the single administrative interface for coordinating and supervising all CoreShift components
Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@Koneko_dev
CoreShift Runtime

What CoreShift Runtime Is
Active execution layer of the CoreShift framework
Applies system properties, runtime policies, and tuning states
Disables debug, tracing, and profiling overhead dynamically
Enforces doze, standby, and background restrictions per app
Coordinates cleanup, compaction, and idle maintenance tasks
Initializes once after boot and maintains a clean runtime state

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@Kzuyoo
@Hoyoslave
1
CoreShift Compaction

What CoreShift Compaction Is
Centralized memory pressure control module for the CoreShift framework
Actively reclaims RAM by forcing kernel and ActivityManager compaction paths
Operates dynamically across foreground, background, and cached processes
Uses system-level compaction on newer Android versions and per-process fallback on older releases
Reduces fragmentation and swap pressure without killing applications
Designed for sustained performance stability rather than burst optimization
Runs autonomously with minimal wakeups and bounded execution cost
Integrates cleanly with other CoreShift modules without overlapping policies

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks

Credits
@ChatGPT
@dcx400
1
CoreShift Preload

What CoreShift Preload Is

Predictive execution and warm-up module for the CoreShift framework
Reduces perceived app launch latency by preparing runtime state before interaction
Triggers only on meaningful state transitions (foreground / home), not continuous polling
Executes bounded, concurrency-limited preload tasks to avoid cache and memory thrash
Tracks execution history to prevent redundant or repeated work
Operates entirely in user space with no kernel hooks or permanent background residency
Designed to complement memory compaction rather than compete with it
Prioritizes responsiveness without increasing steady-state resource usage
Changelog
Migrated all performance-critical logic to native C.
Unified control flow under a single native execution path.
Reduced shell invocation surface

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks
CoreShift CacheCleaner

What Coreshift CacheCleaner Is

On-demand cache and process purge action for the CoreShift framework
Executed only when the action button is pressed
Performs an aggressive, explicit cleanup pass
Designed for manual recovery scenarios, not background automation
This is not a passive or adaptive module.
It is a user-triggered maintenance action.

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@dcx400
CoreShift GameShell

What CoreShift GameShell Is

On-demand foreground-aware performance mode for the CoreShift framework
Activated automatically when a listed game enters foreground
Applies aggressive, explicit performance tuning only during gameplay
Restores balanced system behavior when leaving games
Designed for sustained gaming sessions, not background automation
This is not a passive optimizer.
It is a state-driven, foreground-controlled performance shell.

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@dcx400
CoreShift GameShell Sched

What CoreShift GameShell Sched Is

Foreground-driven scheduler and task-profile controller for the CoreShift framework
Automatically reacts to the active foreground app
Applies explicit CPU scheduling and cpuset profiles to the active game only
Enforces background restriction for non-foreground processes
Designed for latency stability and sustained frame pacing
This is not a booster toggle.
It is a continuous, state-aware scheduler controller.

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@reljawa
@AduhaiWelewele
1
CoreShift Latency

What CoreShift Latency Is
Thread-level latency controller for the CoreShift framework
Foreground-driven latency scheduler
Continuously tracks the active foreground application
Applies task-profiles only to latency-critical threads main and RenderThread
Uses explicit CPU scheduling and cpuset assignment at the TID level
Minimizes input-to-frame delay and render jitter
Preserves normal background behavior without aggressive global restriction
Designed for interaction responsiveness and frame-time consistency
Changelog
In-memory caching to pid for less redundant apply
Added fallback foreground
Migrate to C and include daemos
detection to ensure compatibility and efficiency
Better foreground detection latency


Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks

Credits
@ChatGPT
@reljawa
@AduhaiWelewele
1
CoreShift UClamp (ROOT)

What CoreShift Uclamp is
CoreShift UClamp is a systemless CPU utilization clamp solution that combines:
a custom Powerhint.json overlay,
a custom taskprofile.json overlay,
and a runtime uclamp enforcement layer.
All three work together.
What CoreShift Uclamp Does
CoreShift UClamp directly defines how much CPU time each execution class is allowed to consume, instead of relying on frequency scaling alone.
The tweaks operate on scheduler utilization clamps (uclamp), which control task placement and boost eligibility.

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch

CoreShift Frameworks

Credits
@ChatGPT
@reljawa
@EmanuelCN0
@Java_nih_deks
3
CoreShift Manager

What CoreShift Manager Is
Central orchestration and control module for the CoreShift framework
Provides unified CLI tools to configure runtime behavior and module policies
Manages application classification lists (doze, game, watchdog) with pattern-based control
Applies aggressive power and restriction actions through predefined operational modes
Controls lifecycle of CoreShift modules, including start, stop, and status inspection
Acts as the single administrative interface for coordinating and supervising all CoreShift components

Changelog (@koneko_dev)
Introduced WebUI (@koneko_dev) as an additional interface for CoreShift Manager
WebUI (@koneko_dev) operates as a frontend layer only; core behavior and CLI remain unchanged
Maintains full compatibility with existing CoreShift modules and managers

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@Koneko_dev
3
CoreShift Watchdog

What CoreShift Watchdog Is

Central runtime enforcement daemon for the CoreShift framework
Continuously monitors system and application process state
Identifies non-foreground, non-whitelisted workloads based on runtime behavior
Applies dynamic restriction and correction actions at the process and thread level
Protects critical system services and foreground workloads from interference
Prevents runaway background execution, excessive wakeups, and resource abuse
Designed to run persistently and self-stabilize system performance over time
Functions as the last-line safeguard ensuring CoreShift policies remain effective even under abnormal conditions
Changelog
Utilize dumpsys usagestats prevent false kill and compitable with manager to add a pkg whitelist
Add a ram threshold so app below 150mb ram usage get spared

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks
3
Forwarded from CoreShift
CoreShift Preload

What CoreShift Preload Is

Predictive execution and warm-up module for the CoreShift framework
Reduces perceived app launch latency by preparing runtime state before interaction
Triggers only on meaningful state transitions (foreground / home), not continuous polling
Executes bounded, concurrency-limited preload tasks to avoid cache and memory thrash
Tracks execution history to prevent redundant or repeated work
Operates entirely in user space with no kernel hooks or permanent background residency
Designed to complement memory compaction rather than compete with it
Prioritizes responsiveness without increasing steady-state resource usage
Changelog
Removed external runtime dependencies and helper wrappers.
Migrated all performance-critical logic to native C.
Unified control flow under a single native execution path.
Reduced shell invocation surface

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks
🔥62
CoreShift Daemos

What CoreShift Daemos Is

Deterministic system compositor booster for the CoreShift framework.
Applies one-time cpuset elevation to critical graphics services (SurfaceFlinger and hardware graphics composer) to reduce frame scheduling jitter and improve render stability under load.

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks

Credits
@AduhaiWelewele
@reljawa
6
CoreShift Vulkan

What CoreShift Vulkan Is

Deterministic Vulkan renderer enforcement module for the CoreShift framework.
Forces the system render pipeline to Vulkan (SkiaVK / threaded RenderEngine) and stabilizes the graphics backend selection at boot-time to reduce backend thrashing, improve frame pacing consistency, and ensure predictable GPU-driven rendering behavior.

Warning !!!
Force a Softreboot.
Dont use this in combination with CoreShift Runtime.
Do not enable on devices with incomplete or broken Vulkan implementations.
Incorrect usage may result in bootloop.

Changelog
Added module kill switch and Render information to the action button
Added uninstall script incase where youre stuck logo, you can simply uninstall them
Added softreboot gating so it doesnt trigger twice

Supported Managers
• Root: Magisk / KernelSU / APatch
• Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks
👍3
Forwarded from CoreShift
CoreShift Latency

What CoreShift Latency Is
Thread-level latency controller for the CoreShift framework
Foreground-driven latency scheduler
Continuously tracks the active foreground application
Applies task-profiles only to latency-critical threads main and RenderThread
Uses explicit CPU scheduling and cpuset assignment at the TID level
Avoids whole-process boosting to prevent scheduler contention
One-time thread promotion for stability without oscillation
Minimizes input-to-frame delay and render jitter
Preserves normal background behavior without aggressive global restriction
Designed for interaction responsiveness and frame-time consistency
Changelog
In-memory caching to pid for less redundant apply
Added fallback foreground detection to ensure compatibility and efficiency
Better foreground detection latency

Full usage guide here & here

Supported Managers
  • Root: Magisk / KernelSU / APatch
  • Non-root: AxManager

CoreShift Frameworks

Credits
@ChatGPT
@reljawa
@AduhaiWelewele
🔥2
CoreShift Baseline

What CoreShift Baseline Is

Deterministic baseline restoration layer for the CoreShift framework.
Locks the system into a known-good configuration state and prevents unintended configuration drift.

How It Works
Snapshots the current global configuration table.
Resets all tunables and overrides back to a clean baseline state.
Stores the snapshot as the authoritative reference.
No background enforcement loops. No periodic rewrites
Restore Action
Action button reapplies the backed-up global table.
Once restored, the backed settings are treated as final.
Subsequent resets will not override or discard this state.
NOTE: Always backup from a known good state

Supported Managers
• Root: Magisk / KernelSU / APatch
• Non-root: AxManager

Support Us Here
Sociabuzz

Download Here
CoreShift Frameworks

Credits
@hoyoslave
7