An open API service indexing awesome lists of open source software.

https://github.com/hxreborn/discover-ads-filter

LSPosed module that filters ads and sponsored content from Google Discover.
https://github.com/hxreborn/discover-ads-filter

adblock android dexkit google-discover kotlin libxposed lsposed xposed

Last synced: about 1 month ago
JSON representation

LSPosed module that filters ads and sponsored content from Google Discover.

Awesome Lists containing this project

README

          

# Google Discover Ads Filter

Hide sponsored cards in Google Discover.

![Android 11+](https://img.shields.io/badge/Android-11%2B-3DDC84?style=flat&logo=android&logoColor=white)
![AGSA 17.14+](https://img.shields.io/badge/AGSA-17.14%2B-4285F4?style=flat&logo=google&logoColor=white)
![libxposed API 101](https://img.shields.io/badge/libxposed-API_101-ff69b4?style=flat)
![DexKit 2.2.0](https://img.shields.io/badge/DexKit-2.2.0-E65100?style=flat)

## Requirements

- Android 11+
- LSPosed manager with libxposed API 101 support

## Installation

1. Download the APK from [Releases](../../releases)

2. Enable the module in LSPosed.
3. Scope it to Google App (`com.google.android.googlequicksearchbox`).

## Usage

1. Open the app and run a scan.
2. Force stop Google App or reboot.
3. Run the scan again after each Google App update.

## How It Works

The app scans the installed Google App, resolves the hook targets for that AGSA build, and stores the result in a versioned cache. The hooked process uses the cached targets to filter ad items from the Discover feed.

## Notes

- Target resolution is done with DexKit against the installed Google App build using protobuf extension field numbers and type signatures.
- Google App updates can invalidate previously resolved targets. Verify again after each update.

## License

GPLv3

This project is licensed under the GNU General Public License v3.0. See [LICENSE](LICENSE) for details.