joroizin/call-recorder
About
Android call recorder that works without root: accessibility service + VOICE_RECOGNITION capture. No internet permission.
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCall Recorder
An Android app that records phone calls automatically, without root. Recordings stay in the app's private storage and the app has no internet permission, so nothing can leave the phone unless you share it yourself.
- No root needed; targets Android 12 and later
- Starts when a call connects and stops when it ends
- Labels each recording with the number, contact name and call direction
- Built-in player, search, share and "save a copy"
- Optional recording of internet calls (WhatsApp, Signal, Telegram and similar)
- Automatic volume levelling so the quieter side of the call is audible
- Optional high quality recording: with the free Shizuku app, calls are recorded from the call audio itself, so both sides are equally clear, also on a headset
- Shows during every call whether it is being recorded in high or standard quality
- Old recordings are deleted automatically after 90 days (configurable, from 1 day to forever)
- No ads, no analytics, no network access. The only third-party code is the small open-source Shizuku client library, used for high quality recording and idle unless you turn that on
[!IMPORTANT] Recording calls is regulated, and the rules differ by country and state. Many places require the consent of everyone on the call. This app does not play a notice or ask for consent on your behalf. You are responsible for knowing and following the law where you and the other party are. Nothing in this repository is legal advice.
[!WARNING] This project was vibe-coded. All of the code was written by an AI coding assistant, and I have never read or reviewed it myself. It works on my phone, but treat it as unaudited software: read the source before you trust it with anything that matters to you. That applies most of all to high quality recording, the one part that runs with more rights than an ordinary app.
Status
This is a personal project that I maintain in my spare time. It was developed and tested on a Pixel 10 Pro. It relies on behaviour of the Android audio policy that is in AOSP but that device makers can change, so it may not work on every phone. Reports from other devices, working or not, are very welcome: see Contributing.
High quality recording is new and experimental. It works on the Pixel 10 Pro (Android 17) it was developed on, but it depends on what the phone's audio hardware exposes to the adb shell user, which varies even more between devices than the default technique.
The app is not on Google Play and cannot be: Play policy does not allow the accessibility API to be used for call recording. Download the APK from the Releases page or build it from source.
Two ways to record: standard and high quality
The app can record a call in two ways. Standard quality always works and needs nothing but the app. High quality is an optional upgrade that needs one more app, Shizuku.
| Standard quality | High quality | |
|---|---|---|
| What is recorded | The phone's microphone | The call audio inside the phone |
| You | Clear | Clear |
| The other person | Faint: only what the microphone picks up from the earpiece | Clear |
| On a headset | The other person is almost missing | Both sides clear |
| On speakerphone | Best case for this method | Both sides clear |
| Needs | Nothing extra | Shizuku, started again after every restart |
Standard quality. The other person's voice has to leave the earpiece and travel through the air to the microphone, and most of it is lost on the way:
flowchart LR
other([Other person]) --> ear[Earpiece]
ear -. through the air .-> mic[Microphone]
you([You]) --> mic
mic --> rec[("Recording<br/>you: clear, other person: faint")]
High quality. Both voices are taken from the call audio inside the phone, before the other person's voice ever becomes sound:
flowchart LR
other([Other person]) --> call[Call audio inside the phone]
you([You]) --> call
call --> rec[("Recording<br/>both sides clear")]
While a call is being recorded, the banner in the app and the recording notification say which of the two is in use: High quality or Standard quality (microphone). In the list, recordings made from the call audio are marked High quality. The same explanation, with the same pictures, is in the app under Settings → Recording quality.
How it works
The sections below explain the two methods in technical terms: first the default, standard quality one, then high quality recording.
Since Android 10, the system silences microphone capture for every ordinary app while a call is
active. Capturing the real call audio (VOICE_CALL / VOICE_DOWNLINK) needs
CAPTURE_AUDIO_OUTPUT, a permission only system apps can hold.
There is one exemption that a sideloaded app can use, in AudioPolicyService::updateUidStates_l
(AOSP frameworks/av):
} else if (mUidPolicy->isA11yUid(currentUid)) {
...
if (isA11yOnTop) {
if (source == AUDIO_SOURCE_VOICE_RECOGNITION || source == AUDIO_SOURCE_HOTWORD) {
allowCapture = true;
}
}
}
isA11yOnTop is true when the UID of an enabled accessibility service has a process state
between TOP and BOUND_FOREGROUND_SERVICE. So the recipe is:
- Be an enabled accessibility service.
- Keep that process in a foreground-service state for the duration of the call.
- Capture with the
VOICE_RECOGNITIONaudio source.
Commercial recorders such as Cube ACR rely on the same accessibility-service approach on modern Android. This project is an independent implementation written against the AOSP source.
What that means for sound
The recording is the microphone, not the call stream. Your voice is clear; the other person
is whatever the microphone picks up from the earpiece. GainProcessor compensates with an
automatic leveller, but physics still applies:
- Speakerphone gives the best recording of the other person.
- Bluetooth or wired headsets keep their voice out of the microphone almost entirely.
High quality recording, described next, does not have this limit.
High quality recording
The real call audio is reserved for apps holding CAPTURE_AUDIO_OUTPUT. No sideloaded app can
hold it, but the adb shell user does: it is how a computer records a phone's audio over a
USB cable. Shizuku is an open-source app that, once you
have started it through Android's wireless debugging, lets an app you approve run code as that
shell user without a computer.
Call Recorder uses that for one small class,
ShellCaptureService.
During a phone call it opens the VOICE_UPLINK and VOICE_DOWNLINK audio sources (your side and
the other side, separately) and streams the raw audio to the app through a pipe. Levelling,
mixing, encoding and storage happen in the app as usual.
Internet calls do not use the telephony audio, so there is nothing to read there. For those the service records your side from the microphone and the other side from what the calling app plays: it registers an audio policy that routes a copy of everything played as "voice communication" into a recorder while the sound still reaches your ear (PlaybackCapture). This uses system APIs that are not part of the public SDK, and Android limits it to 16 kHz mono.
The microphone (standard quality) recording still runs alongside as a safety net. When the call ends the app keeps the high quality recording if it is complete and contains the other person, and otherwise keeps the standard quality one, so turning high quality on cannot cost you a recording.
In the source code the high quality path is called "direct" (DirectRecorder, Source.DIRECT),
the name it had before it was renamed in the app.
The technique of capturing audio as the shell user comes from scrcpy, and ShizuCallRecorder showed that it works for calls through Shizuku. The code here is an independent implementation written against the Android APIs; none of theirs is included.
Privacy
- No network access. The manifest does not request
android.permission.INTERNET, so the app cannot send anything anywhere. - The accessibility service sees nothing. It declares no event types and
canRetrieveWindowContent="false"(accessibility_service.xml), so Android gives it no screen events and no window content. It exists only to qualify for the audio-policy exemption above. - Recordings are app-private. They live in internal storage, are excluded from backups, and release builds are not debuggable, so they cannot be pulled over adb.
- The diagnostic log has no personal data. It records audio modes, call states and recorder results, never numbers or names.
- High quality recording is off unless you turn it on, and its privileged part is tiny. The process that runs as the shell user only exists during a call. It reads call audio and writes it into a pipe to the app; it opens no files and no network connections. The app talks to Shizuku over Android's local binder IPC, so it still needs no internet permission.
Permissions
| Permission | Needed for | Required? |
|---|---|---|
| Microphone ("While using the app") | Recording | Yes |
| Accessibility service | Recording while a call is active | Yes |
| Phone state, call log, contacts | Number, name and direction on each recording | No |
| Notifications | "Recording" notification with a stop button, and failure alerts | No |
| Shizuku | High quality recording from the call audio | No |
Download
Get the latest APK from the Releases page. There is nothing to compile. See Install for how to get it onto the phone.
Every release is signed with the same key. To check that an APK really comes from this project, compare its signing certificate with the fingerprint below:
apksigner verify --print-certs CallRecorder-1.2.apk
SHA-256: c96ea60ff95c840895e416598b37290a28d0f8553f554916fb1bd95371e115bd
Install
Over USB or Wi-Fi with adb (recommended)
This is the most reliable route. You need a computer with Android platform tools and USB debugging (or Wireless debugging) switched on in the phone's developer options.
adb install -r CallRecorder-1.2.apk
Apps installed this way are normally exempt from Android's "restricted settings" block, and in testing adb also got past the Play Protect block described below.
Directly on the phone
Open the downloaded APK and allow your browser or file manager to install apps when Android asks. Because the app was not installed from an app store, Android then greys out its accessibility toggle as a "restricted setting". To unlock it, open App info → ⋮ → Allow restricted settings.
[!NOTE] If you see "App blocked to protect your device", you have hit Google Play Protect's enhanced fraud protection. In a growing list of countries it refuses to install any app that declares an accessibility service when the APK comes from a browser, a messaging app or a file manager, whatever the app does. The dialog has no "install anyway" option. Install with adb instead.
Then open the app and follow the setup checklist. It walks through each permission in the table above.
High quality recording (optional)
Out of the box the app records in standard quality, through the microphone, and needs nothing else. High quality recording is an extra you can add later for clear recordings of the other person (what the difference is). It takes three steps, which Settings → Recording quality → High quality recording walks you through:
- Install Shizuku from its website or Google Play.
- Start Shizuku: open it and follow "Start via Wireless debugging". This needs Wi-Fi and Android's developer options.
- Allow Call Recorder when Shizuku asks.
Things to know before you rely on it:
- Shizuku stops whenever the phone restarts and has to be started again (step 2). Until then calls are recorded in standard quality as before, and the app tells you once.
- During a call the app and its notification show High quality or Standard quality (microphone), so you can tell at a glance which one you are getting.
- Recordings made this way are marked High quality in the list.
- It covers phone calls and, when Record automatically → Internet calls is on, internet calls. Internet calls are captured at 16 kHz, a limit set by Android.
- By default both sides are mixed into one channel. Keep the two sides separate saves a stereo file instead, with you on the left and the other person on the right.
- Shizuku needs USB or wireless debugging to be switched on, and any app you approve in Shizuku gets far-reaching access to the phone. Approve only apps you trust, keep the phone's security updates current, and expect that some banking apps refuse to run while debugging is enabled.
Build
You need JDK 21 and the Android SDK (Android Studio installs both). Then:
./gradlew :app:assembleRelease
The APK is written to app/build/outputs/apk/release/app-release.apk.
Signing
Out of the box, builds are signed with the Android debug key, which is fine for trying the app
out. A build signed with any key other than the project's cannot update an APK installed from
the Releases page, and the other way round. For a copy you intend to keep, sign with your own key so that later builds install as
updates. Create a keystore and add this to local.properties (which is git-ignored):
signing.storeFile=keystore/release.jks
signing.storePassword=...
signing.keyAlias=...
signing.keyPassword=...
Keep that keystore safe. An APK signed with a different key cannot update the installed app, and uninstalling the app deletes its recordings.
Project layout
app/src/main/java/io/github/joroizin/callrecorder/
service/RecorderAccessibilityService.kt call detection, foreground state, session lifecycle
service/CallInfoResolver.kt number / name / direction from the call log
service/ShizukuAccess.kt high quality: Shizuku state and the capture process
shell/ShellCaptureService.kt high quality: the part that runs as the shell user
shell/PlaybackCapture.kt high quality: the other side of an internet call
audio/CallRecorder.kt AudioRecord(VOICE_RECOGNITION) capture loop
audio/DirectRecorder.kt high quality: reads the pipe, encodes the file
audio/DirectMixer.kt high quality: levelling, mixing, which take to keep
audio/GainProcessor.kt automatic gain (pure Kotlin, unit-tested)
audio/M4aWriter.kt AAC-LC encoder + .m4a muxer
data/ SQLite index, settings and retention, diagnostic log
ui/ Compose UI: setup checklist, list + player, settings
Troubleshooting
Settings → Diagnostic log records audio modes, call states and the result of every recording
(duration, raw input level, and whether Android reported the capture as silenced). Over USB the
same lines are in adb logcat -s CallRec.
A recording flagged as silent means the exemption was not in effect: check that the accessibility service is still enabled (Android turns it off if the app is force-stopped).
A call was recorded in standard quality although high quality is on. The log says why on the
lines starting with high quality: — Shizuku not running, the call audio could not be opened,
or the capture never heard the other person (some call types, such as Wi-Fi calling on certain
phones, are not routed where the shell user can read them). In all of these cases the low
quality recording is kept.
To check whether a phone exposes call audio at all, without installing Shizuku, a debug build contains a probe that runs the capture service over adb. Start it during a call:
adb push app/build/outputs/apk/debug/app-debug.apk /data/local/tmp/callrec.apk
adb shell CLASSPATH=/data/local/tmp/callrec.apk app_process /system/bin \
io.github.joroizin.callrecorder.shell.CaptureProbe 20 phone
adb shell rm /data/local/tmp/callrec.apk
It captures for 20 seconds, stores nothing, and prints the level of each side of the call. Use
internet instead of phone during a WhatsApp-style call. internet tone needs no call at all:
it plays a faint tone the way a calling app would and checks that the capture hears it.
Known limits
- In standard quality, the other person is recorded through the microphone, so they are quieter than you, and barely audible when you use a headset.
- High quality recording needs Shizuku to be started again after every restart of the phone and has been tried on very few devices. For internet calls it depends on how the calling app plays its audio, so it may work with some apps and not with others.
- With high quality on, a call can end up with two recordings: when the high quality one started late or dropped out, the complete standard quality recording is kept next to it.
- The quality shown during a call is what is being captured at that moment. If the high quality capture turns out to have missed the other person, the standard quality recording is the one kept.
- A recording interrupted by a crash or reboot is lost (the .m4a index is written at the end).
- Internet-call recording (off by default) is triggered by the audio mode alone, so it also fires for video meetings and anything else that opens a voice-call audio session.
- Recordings live in internal storage; use Save copy or Share to keep one elsewhere.
- Automatic deletion is on by default: recordings older than 90 days are removed unless you change Settings → Keep recordings for. Saved copies are not affected.
- The interface is English only for now.
Contributing
Bug reports, device compatibility reports and pull requests are welcome. Please read CONTRIBUTING.md first. To report a security or privacy problem, follow SECURITY.md instead of opening a public issue.
License
MIT © Jonathan Roizin
Explore related projects
Loading…