Skip to content
KernelSU Modules

deadhand

Immutable release Synced

Panic wipe module that crypto-shreds the FBE keys and factory-resets the device on a configurable key-hold gesture, shipping disarmed and in dry-run by default.

Description

Languages: English · العربية · Čeština · Deutsch · Español · فارسی · Français · हिन्दी · Bahasa Indonesia · Italiano · 日本語 · 한국어 · Nederlands · Polski · Português · Русский · Svenska · ไทย · Türkçe · Українська · Tiếng Việt · 中文

platform license trigger danger

deadhand

Fork of nedorazrab0/abootloop (MIT). Magisk / KernelSU module. One single function: wipe the device when you hold Volume-Down + Volume-Up together for 5 seconds.


WARNING: READ THIS BEFORE ANYTHING ELSE

This module destroys ALL data on the device. The result is CATASTROPHIC and IRREVERSIBLE.

  • There is no "undo".
  • There is no data recovery after it fires: the encryption keys are destroyed, so the content becomes mathematical noise. Not even forensics gets it back.
  • An accidental trigger costs exactly what a real one does: a wiped device.
  • Treat this module with the same respect as a tool that erases disks. Because that is what it is.

If you are not absolutely certain you want this, do not arm it and do not switch it to live mode. You are the only person responsible for what happens to your device.

Back up anything that matters BEFORE arming. Afterwards you cannot.


What it does

When armed and in live mode, upon detecting Volume-Down and Volume-Up held together for HOLD_SECONDS (default 5 s), deadhand:

  1. Crypto-shred: overwrites and deletes the Android encryption key material (FBE in /data/misc/vold, metadata key in /metadata, keystore, gatekeeper). This makes userdata unreadable instantly, irreversibly.
  2. Factory reset: writes the --wipe_data command into the BCB (bootloader control block, misc partition) and reboots into recovery, which formats userdata.

Releasing either key before the time is up cancels it. The hold itself is the change-your-mind window.

Why this way, and not "overwrite with dd"

On modern storage (eMMC/UFS with wear-leveling and overprovisioning) overwriting the partition does not guarantee erasure: physical copies remain out of dd's reach, it is slow, and it wears the flash. On Android 10+ (FBE / metadata encryption) the quality path is crypto-shred: destroy the AES keys wrapped by the TEE. With no key, the ciphertext is unrecoverable in the same instant. The factory reset comes in as a second mechanism (what the system calls "erase everything"). Belt and suspenders.

Why a two-key hold, and not Power

The trigger is a Volume combo on purpose. On Android 12+ the OS grabs rapid Power presses for its Emergency SOS feature: pressing Power several times fast pops the emergency dialer (and can place an emergency call). So the system competes for the presses and Power is both unreliable and dangerous as a wipe trigger. The Volume keys are not intercepted, do not blank the screen, and read cleanly. A sustained two-button hold is also far harder to hit by accident than any single-button gesture.


Safety rails (all on by default)

Because the action is irreversible, the module ships locked and requires deliberate steps to become dangerous:

Rail Default What it does
Disarmed (ARMED=0) on Holding the combo does nothing. You must arm it on purpose.
Simulation (DRY_RUN=1) on Even armed, the combo only vibrates and logs "WOULD WIPE NOW". No wipe.
Two-button hold (HOLD_SECONDS=5) on Needs both Volume keys held together for the full time. Release either to cancel.

For the module to actually wipe you must, on purpose: arm it and set DRY_RUN=0. Two separate switches, so that no single accident is enough.

The device vibrates once when it sees both keys go down (your cue that the hold has started). If you keep holding for the full time it vibrates again and fires. Let go to cancel.


Installation

  1. Install the zip via Magisk or KernelSU (Modules > Install from storage).
  2. Reboot. The daemon starts on its own at boot (but disarmed and in simulation).

It asks nothing at install time and touches nothing until it is armed.


Usage (in order, do not skip a step)

1. Test in simulation (mandatory before live mode)

  1. Arm it with the Action button on the module screen in the manager (Magisk/KSU). Since DRY_RUN=1, this is safe.

  2. Hold Volume-Down + Volume-Up together for 5 seconds.

  3. Check the log:

    su -c 'tail -f /data/adb/deadhand/deadhand.log'
    

    You should see WOULD WIPE NOW (no action taken). If it shows up, detection works on your device. If it does not, check the log for the "hold ... to trigger" line and adjust HOLD_SECONDS, then test again. Never switch to live mode without seeing the trigger in the log in simulation.

2. Switch to live mode (dangerous)

Only after validating in simulation:

su -c 'sed -i "s/^DRY_RUN=.*/DRY_RUN=0/" /data/adb/deadhand/config'

From here on, with the module armed, holding the combo for HOLD_SECONDS wipes the device.

3. Arm / disarm day to day

Use the Action button on the module screen (Magisk/KSU). It toggles armed/disarmed and shows the current state + the last log lines. Keep it disarmed whenever you are not in a situation that justifies the risk.


Configuration

File: /data/adb/deadhand/config

Key Default Description
ARMED 0 1 arms. Prefer the Action button.
DRY_RUN 1 1 simulates (only logs). 0 = live mode, wipes.
HOLD_SECONDS 5 How long both Volume keys must be held together to fire.
WIPE_REASON deadhand Label written into the recovery command.

ARMED and DRY_RUN take effect live. Changed HOLD_SECONDS? reboot (the daemon reads it at boot).


How to cancel

Release either Volume key before HOLD_SECONDS is up. The wipe only starts once both keys have been held together for the full time. After that point it cannot be stopped.


Uninstall

Remove the module from the manager and reboot. Optionally, wipe the state:

su -c 'rm -rf /data/adb/deadhand'

Limitations and responsibility

  • Key detection relies on getevent; always test in simulation on your device before going live. The daemon reads all input nodes, so it does not depend on guessing which node carries the Volume keys.
  • Screen-off deep sleep can delay a userspace daemon. Validating the gesture in DRY_RUN on your own device (including with the screen off) is the way to confirm it behaves there.
  • BCB writing and crypto-shred vary by manufacturer/ROM. Crypto-shred already makes the data unrecoverable even if the recovery factory reset fails.
  • There is no warranty of any kind (see LICENSE). Use is at your own risk. The author is not responsible for data loss, misuse, or accidental triggering.
  • Do not install this on a device that is not yours, nor on someone else's device without their explicit, informed consent.

Credits

Fork of abootloop by nedorazrab0, under the MIT license. The getevent key-detection scaffold comes from there. The two-key hold trigger, the crypto-shred, the factory reset and the safety rails belong to this fork.

See also

  • COPG-VD: global device fingerprint / Play Integrity spoofing, whole-device with per-app scope and a WebUI.
  • VDBackup: full app and data backup and restore as root, driven entirely from a WebUI.
  • VD-dropbear: a standalone rooted SSH daemon (Dropbear).
  • VD-Installer: a frictionless root sideload APK installer (single/batch/split), KernelSU/APatch/Magisk WebUI.
  • VDGoogle: your Google services (RCS, Wallet, Play Integrity attestations), read on your device with no internet.
  • VDInfos: a device method debugger that reads each item through every method that can read it and compares them side by side.
  • VDLiveUpdate: a flashless, incremental self-update engine embedded into KernelSU/APatch/Magisk modules.
  • VD-Modules: our MMRL/WebUI-X module repository (install all of these from your root manager).
  • @VictorGabriel7Dev/build.prop: a dataset of Pixel build.prop fingerprints (fork of @T3SL4).
  • @VictorGabriel7Dev/mtproto-store: use Telegram as an object store from a tiny Go CLI.

Contacts

License

deadhand is licensed under the MIT license, inherited from upstream abootloop. See LICENSE. It is provided WITHOUT WARRANTY OF ANY KIND. Use is entirely at your own risk.

Trademarks

Android, KernelSU, APatch and Magisk belong to their respective owners. This project is independent and not affiliated with or endorsed by them.

Tags

android root kernelsu apatch magisk security anti-theft panic wipe anti-forensics deadhand


📣 Join the channel for updates: @Priv8_VD https://t.me/Priv8_VD

Releases

v0.3.1

Latest

Version code 4 v0.3.1

Download
v0.3.1
  • Fleet standardization pass: 21-language READMEs with a language switcher, a
    full top banner and a See-also section, the canonical contact banner, and the
    full contact-chain banner on every source file.
  • Release asset renamed to deadhand-<version>.zip.
  • No change to the wipe logic.
v0.3.0
  • Trigger changed to a hold-combo: HOLD Volume-Down + Volume-Up together for
    HOLD_SECONDS (default 5s).
    Release either key before the time is up to
    cancel. A sustained two-button hold is far harder to hit by accident than a
    tap count, and the hold itself is the change-your-mind window.
  • Detection now tracks the pressed state of both keys and measures the hold with
    a timeout getevent clock (no events flow during a static hold, so a plain
    event loop cannot time it). A release event within the window cancels.
  • Config: WINDOW_MS/DEBOUNCE_MS/ABORT_SECONDS replaced by HOLD_SECONDS.
    Existing installs keep their config; HOLD_SECONDS defaults to 5 if absent.
v0.2.0
  • Trigger changed from Power to Volume-Down (VOL-) 4x. On Android 12+ rapid
    Power presses are grabbed by the OS Emergency SOS feature, so Power is
    unreliable and unsafe as a trigger. Detection reads all input nodes instead of
    guessing one.
v0.1.0
  • First release of deadhand (fork of nedorazrab0/abootloop).
  • Trigger: 4x Power presses (rapid) within a configurable window.
  • Action: crypto-shred of the FBE/metadata/keystore keys + factory reset via BCB (recovery).
  • Safety rails: ships DISARMED (ARMED=0) and in SIMULATION (DRY_RUN=1);
    abort window; debounce; single-instance daemon.
  • Action button arms/disarms and shows state + log.

Assets 1

deadhand-v0.3.1.zip 14.8 KiB

SHA-256 9ff8f01bb5ec43156a0858b63ac2e9aac3a7e8d2a4f63d7931d8e5d0c22cf89a · Attestations

Transparency

Repository
VD171/deadhand
Tag
v0.3.1 Immutable release
Tag commit
77448a9c844e
Content commit
2e6e52490cf6
SHA-256
9ff8f01bb5ec43156a0858b63ac2e9aac3a7e8d2a4f63d7931d8e5d0c22cf89a
Last change synced

Verify it yourself

KernelSU Modules does not sign or audit modules. The SHA-256 only proves the download matches this index. Verify the release yourself with the GitHub CLI:

gh release verify v0.3.1 -R VD171/deadhand
gh release verify-asset v0.3.1 deadhand-v0.3.1.zip -R VD171/deadhand