跳到主要内容
KernelSU 模块

Big Brother

不可变 Release 已同步

Records which apps access shared files or request device identifiers and other private data. Jail lets you isolate selected apps and control what they can access.

介绍

Big Brother

CI Release License: GPL v3

English | 简体中文

Big Brother records when apps on a rooted Android device read your files, collect device identifiers, use sensors or permissions, or query system services for private data. Its Jail tab also isolates selected apps with separate storage, empty personal data, virtual device identifiers, and optional network restrictions. A root daemon does the recording and enforcement, an Android app browses the records and manages Jail, and the app has no network access: nothing leaves the device.

The root module makes no changes to /system, includes no post-fs-data script or SELinux rules, and disables itself on the next boot if startup does not finish. Before Jail changes an app's permissions, app ops, or service access, it saves the original state and restores it when the app leaves Jail or when the module is disabled or removed.

Overview: the apps that read files, and the other kinds of data accessed App detail: the folders it read files in, and the data it asked for Timeline: each app's activity by the hour Jail: per-app isolation settings and recent access activity

On a tablet: the app list beside the page of the selected app

The apps and records in the screenshots are sample data.

Root alone vs. Root with LSPosed

Recording and most Jail controls work with root alone. Adding LSPosed extends recording to Android's content providers and adds Jail controls that run inside System Framework.

Root alone Root + LSPosed
Best for Trying Big Brother quickly, kernel-level auditing, isolated storage, permission/app-ops isolation, and network control Full coverage of content providers plus identity and app-list hiding in Jail
Shared storage files Direct file opens, directory listings, existence checks, inotify watches, and denied opens Adds files opened through MediaStore, the Storage Access Framework, and the download provider
Device probes, services, sensors, and permissions /proc, /sys, /dev reads, system service binder calls, sensor sessions and rates, AppOps permission use, command probes, local connections, netlink, and process memory probes Same
Personal data queries Recorded as permission use via AppOps Also records which collection was queried (contacts, call log, messages, calendar), never individual items
Jail: storage, data, and network Isolated storage (and Android 14+ selected photos), masked /proc/cpuinfo, empty contacts/messages/calendar/clipboard/accounts, foreground or coarse location/camera/microphone, notification and accessibility isolation, full network block, connection recording, and per-destination blocks Same, plus restricts persisted system file-picker grants to the current use
Jail: identity and app visibility Phone-state app ops only Adds per-app virtual ANDROID_ID, zeroed advertising IDs and vendor OAIDs, and hides non-system installed apps

Requirements

  • Android 12 or later on a 64-bit ARM (arm64) or x86 (x86_64) device
  • A GKI 2.0 kernel (5.10 or newer) with BTF enabled; check that /sys/kernel/btf/vmlinux exists
  • Root access, for example via KernelSU, Magisk, or APatch. With other root solutions, recording starts when you open Big Brother after a reboot instead of at boot
  • Optional: LSPosed (Xposed API 101 or newer) for content provider recording and System Framework Jail controls

On x86_64, including the Android emulator, only 64-bit apps are recorded. Development and device testing target Android 16 with kernel 6.6 and KernelSU.

Installation

  1. Download and install big_brother-<version>.apk from the latest release.
  2. Open Big Brother, grant root access, and tap Set up recording. Recording starts right away without a reboot, and Settings shows Recording once it is running.

If you use LSPosed, enable Big Brother in LSPosed, keep the suggested scopes, and reboot:

  • The media, external storage, download, contacts, telephony, and calendar providers record content provider access.
  • System Framework lets Jail manage ANDROID_ID, advertising IDs, installed app visibility, and persisted grants from the system file picker.

To build from source, see CONTRIBUTING.md.

Installing as a root module

big_brother-<version>.apk.zip is the same signed file under a .zip name, which makes it a flashable module for KernelSU, Magisk, and APatch. Flash it in your root manager if you want to manage Big Brother alongside your other modules; flashing installs the app too.

  • KernelSU applies the module immediately.
  • Magisk and APatch apply it after a reboot.

A flashed module replaces an app-managed setup in place and keeps existing records and Jail settings. You can also flash it from a root shell:

ksud module install big_brother-<version>.apk.zip       # KernelSU
magisk --install-module big_brother-<version>.apk.zip   # Magisk
apd module install big_brother-<version>.apk.zip        # APatch

Updating

  • From a build older than v0.3.0: take all apps out of Jail first, remove the old module in your root manager, uninstall the app, and install the latest release.
  • From v0.3.0 or later: install the new APK over the existing app (or flash the new .apk.zip in your root manager), then open Big Brother so Overview can finish updating the module in place. Existing records, Jail settings, saved grants, virtual identities, and isolated files stay intact.

Uninstalling

  • App-managed setup: Open Settings › Remove recording before uninstalling the app. Recording stops, records are deleted, and any apps in Jail get their original permissions and real data back.
    • If you uninstall the app first on KernelSU, Magisk, or APatch, recording stops and removes itself with its records on the next reboot. With other root solutions, always use Settings › Remove recording before uninstalling.
  • Root manager module: Remove the module in your root manager and reboot, then uninstall the app. Removing or disabling the module automatically restores permissions, app ops, and service access saved by Jail.
  • Isolated files: Files saved by isolated apps remain on disk after ending isolation or removing the module so user downloads and photos are not lost. Export or clear them inside Jail beforehand if you no longer need them.

Usage

  • Overview: Access summary for the selected period (last hour, 24 hours, 7 days, or all), grouped by data category and app count. The top card lists apps that read files.
  • Apps: Every app with recorded activity, sorted with the most sensitive accesses first. Open an app to see the folders and files it read, other data it asked for, and timestamps for each access.
  • Timeline: Hour-by-hour activity across apps.
  • Search: Search across all records by app, filename, or data category from the top search bar.
  • Jail: Add apps to isolation, pick a global default preset (Balanced or Strict), tune per-app items, enable automatic isolation for newly installed apps, inspect or export isolated files, and manage per-app network rules.
  • Settings: Check recording status and per-feature coverage on your device, show or hide system apps (hidden by default), choose Theme (Follow system, Light, Dark) and Use wallpaper colors, export diagnostic logs, or remove recording.

How accesses are labeled in the app:

In the app Meaning
Read The app opened the file and the system allowed it.
Listed, Probed, Watched The app listed a folder, checked whether a file exists, or watched it for changes without reading its contents.
Denied The system refused the file access.
Read via provider, Queried A system content provider (such as the media library) opened a file or ran a query on the app's behalf.
Used A sensitive permission the app used, from Android's app-ops records.

Capabilities

Recording

Records are stored locally in SQLite and kept for 30 days.

  • Shared storage files: Every file opened on shared storage, with timestamps and counts. Directory listings, existence checks, inotify watches, and denied opens are recorded separately from reads. With LSPosed, files opened through MediaStore, the Storage Access Framework, and the download provider are attributed to the requesting app.
  • Device identifiers and system probes: Reads of /proc, /sys, and /dev entries that identify the device or expose its state, including hardware addresses, serial numbers, the ARP table, other processes, and root or emulator checks.
  • System service requests: Queries for installed apps, clipboard reads, writes, and change listeners, location, Wi-Fi networks, phone identifiers, accounts, running apps, usage statistics, and ANDROID_ID.
  • Sensors: Which sensors an app enabled, when and for how long, and the requested sampling rate, with rates of 200 Hz and above flagged as high.
  • Permission use: Uses and refusals of the camera, microphone, location, and other sensitive permissions from Android's app-ops records.
  • Personal data queries (LSPosed): Queries for contacts, the call log, text messages, and the calendar. Only the collection name and row count are recorded, never the specific contact or message.
  • Other probes: Commands launched to inspect the device (getprop, pm list packages, attempts to run su), connections to local ports and the local network, netlink network configuration requests, and attempts to read another app's memory.

Jail (app isolation)

Jail keeps an isolated app running with its Android permissions shown as granted, while feeding it separate storage, empty personal data, or virtual device identifiers. Unselected apps are unaffected.

  • Global presets and per-app overrides: Pick Balanced or Strict in Jail › Global settings, or customize each of the 17 items globally and override individual items per app.
    • Balanced sets camera, microphone, and location to foreground only (allowed while in use, blocked in the background), sets Files and media to Selected photos and videos on Android 14+, isolates all other privacy items, and leaves network settings as configured.
    • Strict isolates every privacy item at its strictest default and leaves network settings as configured.
  • Storage isolation and file management: Each isolated app sees its own initially empty shared storage while keeping its private Android/data, obb, and media directories. On Android 14+, Selected photos and videos lets the app read media you pick in Android's permission picker while keeping the rest of shared storage isolated. Inside Jail, you can browse files an isolated app saved, export or move them to BigBrother/ folders in Pictures, DCIM, Movies, Music, or Download, or clear them. Released apps with leftover files remain accessible under Jail › Global settings › Released apps' storage.
  • Personal data, sensors, and special access: Returns empty results for contacts, messages and call log, calendar, clipboard and accounts, body sensors, and nearby devices. Location also supports Approximate location (coarse) and Only while in use (foreground); camera and microphone support Only while in use. Notification listeners and accessibility services lose access while isolated and get it back when isolation ends.
  • Identity and app visibility (LSPosed): Assigns each app a persistent virtual ANDROID_ID (kept across isolation cycles so the app still looks like the same device to its server), zeroes out Google Play services advertising ID, Android AdServices ID, and vendor OAIDs, and hides non-system installed apps.
  • Auto-isolate newly installed apps: Turn on Isolate newly installed apps in Jail › Global settings to place future installs into Jail before their first launch. Existing apps, system apps, and static shared libraries are left alone; uninstalling and reinstalling an app treats it as a new install. Apps auto-isolated within the last 24 hours appear under Newly isolated at the top of Jail for quick tuning.
  • Network control: Cut an app off from the network completely (local loopback stays open, DNS queries fail without leaving the device), record which destinations an isolated app connects to, or block individual domains (domain:), hostnames (host:), and IP addresses or ports (ip:) while leaving the rest of its network working.
  • Live status and recent activity: Jail reads back each restriction from the system and reports not in effect or unknown if a part is missing or could not be verified. Each item on an app's Jail page also shows whether the app requested that data within the last hour.

See docs/sandbox.md for the full item list, mount and app-ops mechanics, and recovery details.

Security and privacy

Big Brother has no network access: the INTERNET permission is stripped from its manifest, and CI fails if a release build requests any new permission. All recording and Jail enforcement run locally.

Records stay in /data/adb/big_brother (readable only by root) for up to 30 days or until recording is removed. Diagnostic logs exported from Settings › Export logs contain operational app and daemon logs plus device and version metadata, never recorded paths, package names, or search text; they leave the device only if you share them.

Read SECURITY.md for what Big Brother changes on the device, its boot and recovery safeguards, known boundaries, and vulnerability reporting.

Limitations

Recording

  • Without LSPosed, access through content providers is not recorded. With LSPosed, only successful calls are recorded, and queries record only the collection and row count, never individual items.
  • Existence checks, inotify watches, and opens that fail during path lookup are matched on the path string the app passed, so unusual path spelling can evade them. Successful file opens are resolved from kernel dentries and cannot be evaded that way.
  • System service calls are recorded when sent; whether the service allowed or refused them is not seen. Calls made during the brief window after boot before the device's Binder method numbers are resolved are not recorded.
  • Sensors read via SensorDirectChannel (used for very high rates) are not recorded.
  • Permission use comes from Android's app-ops history, which keeps only the latest use and latest refusal per app and permission; multiple uses between reads count as one.
  • Network connections are recorded when attempted, not whether they succeeded. On mobile data, carrier private IP ranges count as local network addresses.
  • Command lines record up to 6 arguments of 63 bytes each.
  • File operations delegated to a privileged process (such as root or Shizuku) are not attributed to the calling app.
  • Files opened before recording started are not seen, and a record indicates that a file was opened, not how much of it was read.

Jail

  • ANDROID_ID, advertising IDs, installed app visibility, and restricting persisted system file-picker grants require the LSPosed System Framework scope. Without it, Jail marks those items as not in effect and keeps all other restrictions working.
  • Isolated processes of a sandboxed app (such as WebView renderers or services declared with isolatedProcess) run under separate UIDs and do not receive the sandbox mounts. Android already denies them shared storage, ANDROID_ID, and personal data, though /proc/cpuinfo inside them reflects the device.
  • Per-destination domain blocking relies on Android's system resolver relay. An app that resolves names on its own (for example with built-in DoH or direct IPs) bypasses domain rules; its connections still appear by IP address and can be blocked by ip:. Because multiple names can share an IP address, blocking a domain can also block other domains hosted on that same address.
  • Network rules apply to the app's own sockets. Requests delegated to another app or system service (such as the download manager or an external browser) are not blocked by the app's rule.
  • On Android 13 and earlier, Selected photos and videos falls back to full isolated storage because Android's selected-media permission does not exist. On Android 14+, switching from full isolated storage to Selected photos and videos requires picking photos again because Android clears earlier selections while the op is ignored.
  • On kernels that cannot hold app starts at setresuid, mount-based isolation (storage, cpu_info, and resolver mounts) is unavailable and reported as not in effect.

FAQ

Should I install the APK directly or flash it in my root manager?

Both run the exact same daemon and store data in /data/adb/big_brother. Flashing big_brother-<version>.apk.zip registers Big Brother inside KernelSU, Magisk, or APatch so you can enable, disable, or remove it from the root manager. Installing big_brother-<version>.apk sets up recording directly from inside the app without rebooting, and still starts at boot on KernelSU, Magisk, and APatch.

Can I use Big Brother without LSPosed?

Yes. All kernel recording (direct file reads, device probes, system service calls, sensors, permissions, local connections) and most Jail features (isolated storage, personal data, camera/microphone/location modes, notification and accessibility isolation, auto-isolation, and network controls) work with root alone. See the Root alone vs. Root with LSPosed table for the exact differences.

Will putting an app in Jail break it or stop me from sending photos?

Jail keeps Android permissions shown as granted and returns empty or virtual answers, which avoids permission-denial crashes in most apps. If an app needs camera, microphone, location, or photos, start with the Balanced preset in Jail › Global settings (which keeps camera, microphone, and location available while the app is in the foreground and allows Selected photos and videos on Android 14+), or toggle individual items off for that app. You can also inspect recent access indicators on each item to see what the app just asked for.

Where do files saved by an isolated app go, and how do I get them out?

Files saved by an isolated app stay inside its isolated storage directory so they do not mix with your real storage. Open the app in Jail and tap Isolated storage to browse, export, move, or delete those files. Exported files are copied (or moved) into BigBrother/ folders under Pictures, DCIM, Movies, Music, or Download. If you end isolation without exporting first, the files stay accessible under Jail › Global settings › Released apps' storage.

If I disable or uninstall Big Brother, will my apps' permissions stay broken?

No. Before Jail modifies an app's app ops, runtime permissions, notification listener access, or accessibility services, it writes the original state to disk. Ending isolation, disabling the module in your root manager, or uninstalling Big Brother restores those saved values automatically.

The overview says "Recording stopped" or a Jail item shows "not in effect"

  • For stopped recording: tap Start recording. If it stops again, open Settings › Export logs and attach the file to an issue.
  • For a Jail item marked not in effect: open the app or Jail › Global settings to see which part is missing (for example, the LSPosed System Framework scope, or a device restriction whose retry budget was hit because another manager kept changing it back).

Does it drain the battery?

Recording holds no wakelocks and does nothing while the device sleeps. When the device is awake and idle, the daemon writes to SQLite only when there are new events, and Jail's permission guard idles with no timer when no apps are isolated.

Where are records stored?

In /data/adb/big_brother, readable only by root.

Command-line reference

Run bbd from a root shell:

  • App-managed setup: /data/adb/big_brother_direct/bin/bbd
  • Root manager module: /data/adb/modules/big_brother/bin/bbd

The examples below abbreviate this path to bbd. Query commands print JSON; bbd sandbox and bbd net accept --json for machine-readable output and require the running daemon. Run bbd --help for full option lists.

Command Description
bbd stats Show database, daemon, and probe coverage counters.
bbd selftest Attach all probes and verify each one fires (exits non-zero on failure).
bbd apps [--hours <n>] Per-app activity summary, most recently active first.
bbd files [--uid <uid>] [--cat <cat>] [--prefix <p>] [--contains <t>] [--hours <n>] Accessed paths, most recent first.
bbd history --uid <uid> --path <path> [--hours <n>] Every recorded touch of a path by one app.
bbd timeline [--hours <n>] [--before <unix>] [--limit <n>] Hourly activity across apps.
bbd sensors --uid <uid> [--hours <n>] Recorded sensor sessions and requested rates for one app.
bbd sandbox status Check whether each sandbox component works on this device.
bbd sandbox list List isolated and released apps with effective status.
bbd sandbox enable <package> [--user <n>] Isolate an app (and any packages sharing its UID).
bbd sandbox disable <package>|--all [--user <n>] End isolation for one app or every app (keeps isolated files and virtual identity).
bbd sandbox global [<item>=<mode> ...] Show or update global Jail item modes.
bbd sandbox set <package> <item>=<mode>... [--user <n>] Override item modes for one app (off, on, selected_photos, coarse, foreground, or global).
bbd sandbox auto [on|off] Show or toggle automatic isolation for newly installed apps.
bbd sandbox recent <package> [--hours <n>] [--user <n>] Show the latest recorded access per sandbox item for one app.
bbd sandbox storage summary [--user <n>] Show file counts and sizes in isolated storage.
bbd sandbox storage list <package> [--user <n>] List files saved inside one app's isolated storage.
bbd sandbox storage export <package> --all|--path <rel> [--move] [--user <n>] Export (or move) isolated files to shared storage under BigBrother/.
bbd sandbox storage clear <package> --all|--path <rel> [--user <n>] Permanently delete files from one app's isolated storage.
bbd net activity <package> [--since <unix>] [--user <n>] Show recorded network destinations and active rules for an app.
bbd net destination <package> <target> [--since <unix>] [--user <n>] Show connection history for one domain:<site> or ip:<address>.
bbd net block <package> <target> [--user <n>] Block domain:<name>, host:<name>, ip:<addr>, or ip:<addr>:<port> for an isolated app.
bbd net unblock <package> <target> [--user <n>] Remove a destination block rule.
bbd net clear <package> [--user <n>] Clear recorded network history for an app (rules stay).

How it works

eBPF programs in the kernel observe file opens, related system calls, command execution, local connections, netlink queries, and Binder transactions, and pass them through a ring buffer to a Rust daemon (bbd) that classifies and stores them in SQLite. For Jail, the daemon combines a kernel setresuid gate for mount namespaces, a resident Android FrameworkHelper for app ops and permission state, an eBPF netfilter chain and DNS relay for network rules, and an optional LSPosed hook in content providers and System Framework. The Android app reads the daemon's JSON output as root.

See docs/how-it-works.md for the recording pipeline and docs/sandbox.md for Jail internals.

Languages

Big Brother is available in English, Simplified Chinese, Traditional Chinese, French, German, Indonesian, Japanese, Korean, Brazilian Portuguese, Russian, Spanish, Turkish, and Vietnamese. It follows the system language, and on Android 13 or later you can choose a separate language under Android's "App languages" settings. Translation improvements from native speakers are welcome; see docs/translations.md for terminology and checks.

Contributing

Bug reports and pull requests are welcome. Read CONTRIBUTING.md for building, testing, and project conventions, and follow our Code of Conduct.

License

Copyright (C) 2026 Mercury Li

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. See LICENSE.

The eBPF programs (bb-ebpf/) and the types they share with the daemon (bb-common/) are loaded into the kernel and are licensed under the GNU General Public License version 2 or, at your option, any later version. See LICENSE-GPL-2.0.

The app's module structure follows Now in Android, as used by Blocker. The Cargo build scripts are based on aya-template.

历史版本

v0.6.1

最新

版本代码 15 v0.6.1

下载

What's Changed

Full Changelog: https://github.com/lihenggui/bigbrother/compare/v0.6.0...v0.6.1

文件 1

big_brother-v0.6.1.apk.zip 9.5 MiB

SHA-256 63c4c1accd9f917581cbd07d90be29db6a70ba62456245f709eb9c547186c26f · Attestation

版本代码 14 v0.6.0

下载

What's Changed

Full Changelog: https://github.com/lihenggui/bigbrother/compare/v0.5.0...v0.6.0

文件 1

big_brother-v0.6.0.apk.zip 9.4 MiB

SHA-256 9471c4477d3d30c1a163e09aee6ea1dfd57043194762118fea545821d4bf6ff5 · Attestation

透明度

Tag
v0.6.1 不可变 Release
Tag commit
6c7ac2a2bf94
内容 commit
264b39a40b43
SHA-256
63c4c1accd9f917581cbd07d90be29db6a70ba62456245f709eb9c547186c26f
最近同步到变更

自行复核

KernelSU 模块不对模块签名,也不审计模块代码。SHA-256 只证明下载内容与本索引一致。可使用 GitHub CLI 自行复核:

gh release verify v0.6.1 -R lihenggui/bigbrother
gh release verify-asset v0.6.1 big_brother-v0.6.1.apk.zip -R lihenggui/bigbrother