ShizuStore

Ghost Mode

Foxlape

0.2.4 · GitHub

Download APK
Communication Android 8.0+ 1 day ago Apache-2.0
2k ShizuStore
8.1k GitHub
156 Stars
2 MB Size

More about this app

Makes the phone appear unavailable for incoming calls while keeping LTE/5G data active

Ghost Mode icon

Ghost Mode

Become unreachable for cellular calls while mobile data keeps working.

Release CI Android 8.0+ License

Русская версия · Download · Changelog

Ghost Mode makes your phone look switched off to anyone who calls — they hear "subscriber unavailable" — while LTE / 5G data keeps working. Messengers, maps and music continue as usual; only cellular calls stop reaching you. No airplane mode, no call-blocking rules.

Mode on Mode off Presets Statistics

Features

  • Works without root through Shizuku (or Sui and compatible forks); root via KernelSU, Magisk or APatch is detected automatically.
  • Exact restore. Before turning on, the app records the original network types, the values of every setting it changes and the IMS services it disables. Turning off puts back exactly that — even if you switched preset or SIM in between, or rebooted.
  • Presets for Pixel / stock Android, Samsung One UI, Xiaomi HyperOS, OnePlus, vivo / iQOO and Android 9–11, plus your own command sets with JSON import and export.
  • Dual SIM: make SIM 1, SIM 2 or both unreachable.
  • Quick Settings tile, home screen widget, launcher shortcuts.
  • Schedule (e.g. every night 23:00–07:30, or weekdays only) and an auto turn-off timer.
  • Reboot-aware: re-applies itself after a restart when root / Sui is available, otherwise shows a notification.
  • Diagnostics per SIM, a full command log and statistics.
  • Material You design, dark and light themes, English, Russian and Simplified Chinese.
  • No ads, no trackers, no analytics. No network access unless you enable the optional update check.

Requirements

Minimum Recommended
Android 8.0 (API 26) 12+ (API 31+) — telephony shell commands used by most presets
Privileges Shizuku v11+ or root —
Network LTE coverage VoLTE-capable carrier

Install

  • GitHub Releases — latest APK with SHA256SUMS.txt.
  • Obtainium — add https://github.com/Foxlape/GhostMode to get updates automatically.
  • F-Droid / IzzyOnDroid — requested in #3; the repository ships fastlane metadata for both.

Official releases are signed with this certificate (also shown in Settings → About):

SHA-256: FB:2A:E9:C4:80:BB:0F:04:55:65:F7:B5:CA:BF:01:7D:98:18:21:A9:33:F0:78:53:DD:47:12:28:D5:71:B0:50

Verify with apksigner verify --print-certs GhostMode-vX.Y.Z.apk.

Quick start

  1. Get access — one of:
    • Shizuku: download the APK from GitHub (the Download Shizuku button in the app opens the same page), start it via Wireless debugging (Android 11+) or ADB, then tap Grant access in Ghost Mode. The actively maintained fork thedjchi/Shizuku works too and can start itself after a reboot, so Ghost Mode can re-apply the mode without root.
    • Root: open Ghost Mode and allow the root request in KernelSU / Magisk / APatch.
  2. Pick a preset on the Presets tab. Start with Universal; switch to your vendor's preset if calls still get through.
  3. Tap the ghost. Check from another phone: you should hear "subscriber unavailable", while mobile data keeps working (turn Wi-Fi off to be sure).

Not working? Open Settings → Diagnostics and Command log, then open an issue with the copied log.

How it works

Presets are lists of shell commands executed through Shizuku or su. The built-in ones combine:

Lever Command Effect
IMS off cmd phone ims disable -s <slot> No VoLTE / VoWiFi registration
LTE only cmd phone set-allowed-network-types-for-users -s <slot> 01000001000000000000 No 2G/3G fallback (CSFB) for calls
IMS package pm disable-user --user 0 <ims package> For firmware that ignores the IMS command
Settings settings put global preferred_network_mode… 11, volte_vt_enabled 0 Samsung, Android 9–11
Preset For What it adds
Universal Any Android 12+ (default) Disables the IMS service the phone actually uses (detected at runtime)
Stock Android / Pixel Pixel, Motorola, Nothing, near-stock IMS off + LTE only
Xiaomi HyperOS / MIUI Xiaomi, Redmi, POCO Same as stock
Samsung One UI Galaxy S / A / Z VoLTE switches, preferred_network_mode for all subscriptions, Samsung IMS packages
OnePlus / OxygenOS OnePlus 8–13 Qualcomm / MediaTek IMS packages
vivo / iQOO OriginOS, Funtouch OS Same as OnePlus
Android 9–11 Phones without the Android 12 commands preferred_network_mode + airplane-mode toggle

When you create your own preset, these placeholders are available:

  • -s 0 — rewritten to the selected SIM slot; the command runs once per slot.
  • {{SAVED_MASK}} — the network-type mask captured before the mode was turned on.
  • {{IMS_PACKAGES}} — the IMS service packages currently used by the selected SIMs.

Original values of settings put keys and packages disabled with pm disable-user are restored automatically.

Limitations

Warning

Do not rely on Ghost Mode when you must be reachable for emergencies.

  • SMS may be delayed until the mode is off on carriers that deliver SMS over IMS.
  • Call forwarding "when unreachable" sends callers to voicemail instead.
  • On Samsung, carriers that require VoLTE (such as Jio) turn it back on; Ghost Mode warns about this, and a reboot with the mode on is needed.
  • Commands differ between firmware versions. If a preset does not work, send the diagnostics and command log.
  • Use the app only on your own device and in line with local regulations.

Privacy

Ghost Mode has no accounts, analytics or ads, and it never sends your data anywhere. The only network request is the optional update check against GitHub.

Logs are safe to share. The command log stays on your phone, in memory, until you copy it yourself. Before anything reaches the log, the app removes phone numbers, IMEI, IMSI, ICCID, IP and MAC addresses and emails. Diagnostic commands only read a fixed list of values and never dump full system state, and other apps on your phone are not listed.

What stays in the log is what a fix depends on: phone model, firmware version, carrier code and name, and the state of the network and IMS service. On its own, none of this identifies you. The filter is automatic, so you can always read the log before posting it.

Building

Requirements: JDK 17+, Android SDK 35.

./gradlew assembleDebug            # app/build/outputs/apk/debug/
./gradlew testDebugUnitTest        # unit tests
./gradlew assembleRelease          # signed if keystore.properties exists, unsigned otherwise
./gradlew testDebugUnitTest -Pscreenshots --tests '*ScreenshotTest*'   # regenerate store screenshots

Release signing reads keystore.properties (storeFile, storePassword, keyAlias, keyPassword) or the KEYSTORE_FILE, KEYSTORE_PASSWORD, KEY_ALIAS, KEY_PASSWORD environment variables.

Project structure
app/src/main/java/com/ghostmode/app/
├── AppGraph.kt        process-wide objects: state, presets, shell, controller
├── data/              presets, persisted state, applied-state snapshot, statistics
├── domain/            GhostModeController (apply / restore / diagnostics), network masks
├── shell/             root and Shizuku executors, Shizuku user service
├── system/            GhostActions: entry point for every mode change
├── scheduling/        schedule and timer alarms, boot handling
├── service/           status notification and its actions
├── tile/, widget/     Quick Settings tile, home screen widget
└── ui/                Jetpack Compose UI (home, presets, settings, tools)
fastlane/metadata/     store listing texts and screenshots (F-Droid / IzzyOnDroid)

Contributing

Found commands that work on your phone? Open a preset request. For code changes see CONTRIBUTING.md. Security issues: see SECURITY.md.

License

Apache License 2.0

Close

How Shizuku is used

Can appear unreachable for calls while keeping mobile data and run custom preset commands via `sh -c` through Shizuku.

This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.

How this app uses Shizuku

Ghost Mode uses Shizuku to run privileged phone, package and settings shell commands that make the phone look unavailable for incoming calls while mobile data stays working.

  • Block calls, keep data: turning Ghost Mode on disables IMS calling, locks the selected SIM slots to LTE only network types, disables IMS service packages and updates carrier and VoLTE related settings so callers hear the subscriber as unavailable while mobile internet keeps working.
  • Restore normal calling: turning Ghost Mode off re-enables IMS, restores the previously saved allowed network mask, re-enables packages disabled when turning on and restores changed settings to their captured original values so calls and full network modes work again.
  • Run custom shell commands: a user created preset can store shell command text typed in the preset editor for turn on, turn off and mask capture, and those commands are executed with Shizuku privileges when the preset runs.
  • Check calling status: running diagnostics queries allowed network types, bound IMS services, disabled IMS packages and VoLTE and network settings to show whether blocking is active.
  • Repair disabled packages: a repair action re-enables packages left disabled with the pm enable shell command through Shizuku.

Android APIs or commands used

  • sh -c
  • cmd phone ims disable
  • cmd phone ims enable
  • cmd phone set-allowed-network-types-for-users
  • cmd phone get-allowed-network-types-for-users
  • cmd phone ims get-ims-service
  • pm disable-user
  • pm enable
  • pm list packages
  • settings put global
  • settings put system
  • settings get
  • settings delete
  • settings list global
  • settings list secure
  • settings list system
  • cmd connectivity airplane-mode enable
  • cmd connectivity airplane-mode disable
  • dumpsys
  • getprop

Notable details

Custom presets run whatever shell text is saved in them with the same Shizuku privileges as the built-in presets, so only save commands from sources you trust. Restore reuses the network mask saved before first activation, or a default full-network mask when the phone does not report one.

Close

Changelog

What's new for version 0.2.4

Added

  • Schedule by day of the week (#11). Pick the days the schedule runs on, e.g. Monday to Friday, 8:00 to 20:00. A window that crosses midnight belongs to the day it starts on. Existing schedules keep running every day.

Fixed

  • Samsung with Secure Folder or Dual Messenger. pm list packages -d failed with a SecurityException for the second profile, so Ghost Mode could not tell which IMS packages were already disabled. It now asks for user 0 only.
🇷🇺 На русском

Расписание по дням недели. • Можно выбрать дни, в которые работает расписание, например с понедельника по пятницу. Старое расписание продолжает работать каждый день • Samsung с Защищённой папкой или Dual Messenger: исправлена ошибка при проверке отключённых IMS-пакетов


Verify: apksigner verify --print-certs must show SHA-256 FB:2A:E9:C4:80:BB:0F:04:55:65:F7:B5:CA:BF:01:7D:98:18:21:A9:33:F0:78:53:DD:47:12:28:D5:71:B0:50; checksums are in SHA256SUMS.txt.

Full changelog: CHANGELOG.md

Close

Permissions

8 permissions requested

  • android.permission.POST_NOTIFICATIONS
  • android.permission.RECEIVE_BOOT_COMPLETED
  • android.permission.SCHEDULE_EXACT_ALARM
  • android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.INTERNET
  • com.ghostmode.app.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close