这是一个使用Logos语法编写的iOS广告拦截Tweak,可以拦截常见的广告SDK和广告展示。
- 拦截常见广告视图控制器
- 隐藏和移除广告视图
- 拦截广告加载和展示方法
- 支持常见广告SDK(谷歌AdMob、穿山甲、优量汇等)
- 对于激励广告,模拟完成回调以获取奖励
- 已越狱的iOS设备
- Theos开发环境
- 确保已安装Theos开发环境
- 克隆此仓库
- 进入项目目录
- 执行以下命令编译和安装:
make
make package
make install如果需要拦截其他广告SDK或广告方法,可以在Tweak.xm文件中添加相应的hook代码。
- 此Tweak仅供学习和研究使用
- 请尊重开发者,支持正版应用
- 不同应用可能使用不同的广告SDK或自定义广告实现,可能需要针对性调整
此Tweak通过以下方式拦截广告:
- 识别并移除广告视图控制器
- 隐藏和移除广告视图
- 拦截常见的广告加载和展示方法
- 针对特定广告SDK进行定制化处理
要针对特定应用定制广告拦截,可以:
- 使用Frida或其他工具分析应用中的广告类和方法
- 在
Tweak.xm中添加针对性的hook代码 - 重新编译和安装Tweak
This is an iOS ad blocking tweak written using Logos syntax, capable of intercepting common ad SDKs and ad displays.
- Intercept common ad view controllers
- Hide and remove ad views
- Block ad loading and display methods
- Support for common ad SDKs (Google AdMob, ByteDance, Tencent Ad, etc.)
- For rewarded ads, simulate completion callbacks to receive rewards
- Jailbroken iOS device
- Theos development environment
- Make sure Theos development environment is installed
- Clone this repository
- Enter the project directory
- Execute the following commands to compile and install:
make
make package
make installIf you need to block other ad SDKs or ad methods, you can add corresponding hook code in the Tweak.xm file.
- This tweak is for learning and research purposes only
- Please respect developers and support official apps
- Different apps may use different ad SDKs or custom ad implementations, which may require specific adjustments
This tweak blocks ads through the following methods:
- Identifying and removing ad view controllers
- Hiding and removing ad views
- Intercepting common ad loading and display methods
- Custom handling for specific ad SDKs
To customize ad blocking for specific applications, you can:
- Use Frida or other tools to analyze ad classes and methods in the app
- Add targeted hook code in
Tweak.xm - Recompile and install the tweak