/WeChat-AntiDuck

Invalid/Disable AudioDeviceDuck()

Primary LanguageCMake

Anti AudioDeviceDuck

Introduction

This project aims to invalid AudioDeviceDuck by hooking it with an empty function.

Build & Install

Dependency

  • CMake 3.10+

  • Xcode / Xcode CLI Tools

Build

# clone and change into the repo directory

git clone --recurse-submodules https://github.com/icpz/WeChat-AntiDuck && cd WeChat-AntiDuck

mkdir -p build && cd build

cmake .. && make

The above steps will produce build/injection.

Install

# assume already in `build' directory after build step

make inject

Uninstall

# assume already in `build' directory after build step

make restore

Inject Other Applications

The script injects WeChat.app by default, but you can also inject other apps.

# MUST cd into build/injection now
cd build/injection

sudo make APP_EXEC=QQ inject

# sudo make APP_EXEC=QQ restore

If the executable of the application does not match with the application name, you could invoke

sudo make APP_EXEC=obs APP_NAME=OBS.app inject

Thanks