FORUMS

[SCRIPT] Disable Trackers on not rooted devices

3,825 posts
Thanks Meter: 1,753
 
By bartito, Inactive Recognized Developer on 21st May 2020, 07:33 AM
Post Reply Email Thread
This script can disable trackers (Activities, Services, Receivers and/or Providers) on not rooted devices.
Disabled trackers are based on Exodus trackers database, but also custom trackers are supported.

DEVICE REQUIREMENTS

* Bootloader unlocked
* Custom recovery (TWRP or OrangeFox) is installed

Root isn't needed.

PC REQUIREMENTS

* Perl 5
* ADB (https://developer.android.com/studio...platform-tools)
* AAPT (https://android.googlesource.com/pla...+/master/tools)
* CURL

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
Code:
perl disable-trackers-from-recovery.pl
CUSTOM TRACKERS SUPPORT

Script downloads the Exodus database on-the-fly, but also accepts a custom trackers file.

EXECUTION MODIFIERS

You can execute the script with or without any optional modifier.

Code:
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).
REVERT THE SCRIPT ACTIONS

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
Attached Files
File Type: txt disable-trackers-from-recovery.pl.txt - [Click for QR Code] (21.7 KB, 0 views)
21st May 2020, 07:33 AM |#2  
bartito's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,753
 
Donate to Me
More
-- reserved --
Post Reply Subscribe to Thread

Tags
android, not rooted, trackers

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes