XAudioCapture
Record any audio stream you want.
Since Android 10, the system introduced the AudioPlaybackCapture API
for capturing internal audio playback. It also implemented policies that
allow applications to decide whether to permit their audio output to be recorded by
other applications or the system.
This Xposed module let you to capture any audio stream you desire, bypassing these restrictions.
Features
- Reasonable UI
- Hooks both
ApplicationInfo.privateFlagsand
AudioAttributes.Builder#setAllowedCapturePolicy(int). - May Works with multi-user (not tested yet)
How it works?
This module inject hooks to the android system package, and add
PRIVATE_FLAG_ALLOW_AUDIO_PLAYBACK_CAPTURE into Application's privateFlags.
Usage
- Enable
XAudioCapture(this module) in your LSPosed framework setting - Hook the
androidsystem package in scope setting - Launch
XAudioCaptureUI, select the app you want to record - kill and restart the victim app
- Enjoy!
Notes
- Only tested on LSPosed.
- If recording still didn't work, also hook the target application
in scope setting. This will hookAudioAttributes.Builder#setAllowedCapturePolicy(int)
while the target application calls it. - For users with Work profile, install this all in both your Main profile
and Work profile. Attach toandroidpackage in your Main profile,
and tick the apps you want to record in the according profile.
Special Thanks
All the UI is forked from XAppDebug