Skip to content
CMFA Guide

Killed in the background

The symptom is consistent: a few minutes after locking the screen or switching apps, the proxy dies and the notification icon is gone. The client did not crash — Android reclaimed its foreground service.

Killed, or just disconnected

These need different fixes. Tell them apart in a minute:

  • The notification is gone → the service was killed. Read the vendor settings below.
  • The icon stays but counters freeze → the service lives; the node or network dropped. See nothing connects.
  • Icon and logs alive, pages fail → exit or DNS. See connected, no internet.

Four general steps, first

  1. 01

    Allow notifications

    Settings → Apps → CMFA → Notifications, make sure it is on. The foreground service depends on that notification; without it, Android treats the process as expendable.

  2. 02

    Set battery usage to unrestricted

    Settings → Apps → CMFA → Battery → Unrestricted or Not optimised. On stock Android, Pixel and Samsung this is usually enough.

  3. 03

    Allow autostart and background activity

    Most Chinese ROMs have a separate autostart manager. Allow autostart, background activity and associated startup for CMFA.

  4. 04

    Lock the card in Recents

    Open Recents, long-press the CMFA card (or pull it down) and lock it, so "clear all" does not take it out.

Where the switches are, by vendor

BrandPathWhat to set
Xiaomi / Redmi (MIUI, HyperOS)Settings → Apps → Manage apps → CMFA → Battery saverNo restrictions, plus autostart
Huawei / Honor (EMUI, MagicOS)Settings → Battery → App launch → CMFATurn off auto-management, tick all three
OPPO / OnePlus (ColorOS)Settings → Battery → More → App battery managementAllow background activity and autostart
vivo (OriginOS)Settings → Battery → Background power managementAllow high background power use
Samsung (One UI)Settings → Battery → Background usage limitsAdd CMFA to "Never sleeping apps"
Stock Android / PixelSettings → Apps → CMFA → BatteryUnrestricted

Scroll the table sideways

Paths change between versions. Searching settings for "autostart", "battery optimisation" or "background" is faster than memorising them.

Battery saver overrides all of it

With Battery saver or Ultra power saving on, the system ignores your per-app allowlist and throttles everything. Either turn it off, or accept that proxying is unstable while it is on.

Background questions

Unrestricted is set and it still dies
Check for cleaner or "security" apps that kill processes by their own rules. Also confirm battery saver is off and the Recents card was not cleared.
Why do other proxy apps survive?
Some push harder: foreground service plus permanent notification plus aggressive allowlist onboarding. CMFA relies on the standard foreground service, so vendor policy shows through.
What is "app updated, settings cleared"?
A normal message after a cross-major install, meaning the config structure was migrated. Save the profile once — see versions and changelog.
Can it start on boot and connect automatically?
CMFA has no "start proxy on boot" switch. Some ROM shortcuts or automation tools can, but that is outside the client.