appctl¶
App management hub and TUI (textual user interface). Disable and re-enable apps in batches, apply profiles, make automatic backups, and repair Android UI components (SystemUI, launcher, keyboard, navigation bar).
Requires root
All operations use pm disable-user / pm enable, which require root via
su -c (Magisk) or sudo.
Basic usage¶
appctl # open the TUI (arrows: ↑↓ move, → mark, - apply)
appctl --list # catalog and state of each app
appctl --profiles # available profiles
appctl --repair # diagnose and fix SystemUI, launcher, keyboard...
appctl --disable youtube # disable by name substring (if unique)
appctl --restore last # undo the last batch
The TUI¶
The interface has 5 tabs, switched with TAB:
| Tab | What |
|---|---|
| 1 Apps | App list by category (Facebook, Google, Samsung, Unisoc, system), marked with → and applied with - |
| 2 Profiles | Apply a whole profile at once (servidor, servidor-seguro, minimo, etc.) |
| 3 Repair | Diagnose and fix SystemUI, launcher, keyboard, navigation bar, wallpaper |
| 4 Backups | List snapshots in ~/.appctl/snapshots and restore button |
| 5 Lab | Info about the device (model, Android, kernel) and shortcuts |
Keyboard shortcuts¶
| Key | Action |
|---|---|
↑ ↓ |
Move cursor |
→ |
Mark/unmark the app under the cursor |
- |
Apply the marked batch |
/ |
Search by name |
TAB |
Switch tab |
HOME END |
Go to top / bottom of list |
PGUP PGDN |
Page up / down |
? |
Contextual help |
ESC |
Exit |
Termux provides these extra keys in the top bar — no setup needed. On a physical keyboard, they work the same.
Profiles¶
| Profile | What it does | When to use |
|---|---|---|
servidor |
Light debloat, keeps SystemUI | Server with occasional screen access |
servidor-seguro |
recommended — debloat + conservative profile | General SSH server use |
minimo |
Pure headless: debloat + SystemUI disabled | 100% remote device, SSH only |
leve |
Only heavy apps (Chrome, Maps, YouTube...) | Day-to-day with UI |
restaurar-leve |
Undo leve |
Back to normal |
restaurar-interface |
Restore SystemUI, launcher, wallpaper, keyboard | Recover from minimo |
restaurar-tudo |
Re-enable everything disabled by profiles | Full reset |
appctl --profile servidor-seguro -n # show what would happen only
appctl --profile servidor-seguro # apply (asks for confirmation)
appctl --profile minimo # asks EXTRA confirmation (dangerous)
appctl --profile ui # shortcut for restaurar-interface
Blocked packages¶
appctl refuses to disable critical packages:
com.android.settings(Settings)com.topjohnwu.magisk(Magisk)com.termux(Termux)- keyboard providers (
com.android.inputmethod.*) - active launcher providers
- Contact/Phone/Dialer in non-headless mode
If a profile tries to touch these, the operation is aborted with the list of what was blocked. You also can't apply a plan that leaves the device without a keyboard — protection so AnyDesk/ADB keep working.
Repair (--repair)¶
Diagnose and fix Android UI components:
- SystemUI (status bar, notifications, nav bar, wallpaper)
- Google Play Services (push notifications)
- Launcher (home screen)
- Keyboard (IME)
- Navigation buttons (gestural or 3-button)
- Wallpaper
Each item gets one of: ✔ ok, ⚠ fixable, ✖ broken. --repair re-enables
disabled items and tries to restart the process (am restart of SystemUI
without rebooting).
Backups and restore¶
Before each batch of changes (profiles, --disable, --repair), appctl
saves a snapshot to ~/.appctl/snapshots/<timestamp>.json containing:
- list of packages and previous state (
enabled/disabled); pmand Android version;- command that generated the snapshot.
appctl --restore last # undo the last batch
appctl --restore list # list available snapshots
appctl --restore <id> # restore a specific snapshot
--disable by name¶
appctl --disable youtube # unique match: disables
appctl --disable maps -n # shows what would change (doesn't apply)
appctl --disable "google.android" # multiple matches: aborts and lists
If the substring matches more than one package, appctl lists the options and
asks you to refine. Blocked packages are refused even with exact match.
App state (--list)¶
Prints the full catalog in table format:
[+] Facebook 0/2 disabled
[-] Google 3/8 disabled 2 marked
● com.android.chrome safe
○ →OFF com.android.vending caution
● com.google.android.apps.docs safe
○ →OFF com.google.android.apps.maps safe
Symbols: ● enabled, ○ disabled, →OFF marked for disabling, - flagged
as caution, + safe.
Files and directories¶
| Path | What |
|---|---|
~/.appctl/snapshots/*.json |
Automatic backups |
~/.appctl/catalog.json |
Recognized app catalog (Samsung/Google Go) |
~/.appctl/state.json |
Current state (cache) |
Security¶
- Never uninstalls — only
pm disable-user(reversible withpm enable). - Shows plan before applying and asks for confirmation; extra confirmation for items flagged "caution" (Play Store, Play Services, etc.).
- Refuses dangerous plans — no keyboard, no launcher, with blocked packages.
- Always backs up before applying.
See also¶
- Security — full reversibility rationale.
- Troubleshooting — what to do if UI disappears.
- Automation — apply profiles via SSH in bulk.