Anti AudioDeviceDuck
This project aims to invalid AudioDeviceDuck
by hooking it with an empty function.
-
CMake 3.10+
-
Xcode / Xcode CLI Tools
# 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
.
# assume already in `build' directory after build step
make inject
# assume already in `build' directory after build step
make restore
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