Disabled trackers are based on Exodus trackers database, but also custom trackers are supported.
* Bootloader unlocked
* Custom recovery (TWRP or OrangeFox) is installed
Root isn't needed.
* Perl 5
* ADB (https://developer.android.com/studio...platform-tools)
* AAPT (https://android.googlesource.com/pla...+/master/tools)
HOW EXECUTE THE SCRIPT
* Install the required software (specially Perl, if you are on Windows), then make sure ADB, AAPT and CURL are on your PATH
* Restart your device in recovery mode then connect to the PC
* Download the script from this post then rename to disable-trackers-from-recovery.pl
* Execute the script into the PC, then wait until ends
Script downloads the Exodus database on-the-fly, but also accepts a custom trackers file.
You can execute the script with or without any optional modifier.
perl disable-trackers-from-recovery.pl --help perl disable-trackers-from-recovery.pl [--bypass-google-apps] [--bypass-not-updated-system-apps] [--bypassed-package-name package-name] [--do-not-disable-activity-trackers] [--do-not-disable-receiver-trackers] [--do-not-disable-service-trackers] [--do-not-disable-provider-trackers] [--custom-trackers-pathname pathname] --bypass-google-apps: To do not search for trackers in Google Apps (apps from which package name starts with com.google) --bypass-not-updated-systema-apps: To do not search for trackers in system apps that hasn't been updated --bypassed-package-name package-name: To do not search for trackers at specified package name (this parameter can appears multiple times) --do-not-disable-activity-trackers: To do not disable trackers that are Activities --do-not-disable-receiver-trackers: To do not disable trackers that are Event Receivers --do-not-disable-service-trackers: To do not disable trackers that are Services --do-not-disable-provider-trackers: To do not disable trackers that are Content Providers --custom-trackers-pathname pathname: To search for custom trackers at specified pathname (by default custom trackers file pathname is ./custom-trackers.txt In the custom trackers file each component name (or prefix) will be written on a line (lines beginning with # will not be taken into account).
The actions made by the script are permanent, but when an app is updated it may include new trackers that will be disabled again running the script...
The first time you exec the script a backup file will be created at "/data/system/users/0/package-restrictions.xml.bak".
If you need to revert the execution of the script you only need to move the backup file inside the original location: /data/system/users/0/package-restrictions.xml