Blocker
A component controller for Android applications
Android · v2.0.6339 · lihenggui
About Blocker
Blocker is a component controller for Android applications that currently supports using PackageManager and Intent Firewall to manage the state of components. It can be seamlessly switched between these controllers, and for application rules, you can export and import them. Additionally, it is compatible with backup files generated by MyAndroidTools, and you can effortlessly convert them to Intent Firewall rules. The application also has the potential to be extended in the future.
Advantages
Lightweight, don't burden the system
Easy to use
Supports multiple control types
Introduction to different component controllers
Package Manager
The Android system provides a tool called PackageManager, which is used for managing installed applications or obtaining information about them. One of its methods, setComponentEnabledSetting(ComponentName, int, int) , allows an application to control the state of its own components. If attempting to use this method to control components in other applications, a signature permission is required, or the call will fail.
Fortunately, Android provides another tool called pm that allows users to control component states in command-line mode. However, the pm tool requires root permission to run. The following command can be used to disable a specific package or component:
pm disable [PackageName/ComponentName]
Whether using PackageManager in the code or pm in command-line mode, the configurations will be written to /data/system/users/0/package_restrictions.xml .
Intent Firewall Mode
Intent Firewall was introduced in Android 4.4.2 (API 19) and is still effective in the latest Android systems. It is integrated into the Android Framework to filter the intents sent by applications or systems.
What Intent Firewall can do
Each intent sent by an application is filtered by the Intent Firewall, with rules stored in XML files. The Intent Firewall updates rules immediately if changes occur in the configuration file.
Limitations of Intent Firewall
Only system applications can read and write the directory where the configuration file is stored, and third-party applications do not have permission to access it.
Differences between Intent Firewall and Package Manager
Intent Firewall, indeed it is a firewall, it has no impact on component status. The application detects the component is on, but it just cannot start the component.
For the components disabled by PackageManager, if an application starts it, an…
More system tools for Android
ARK-launcher
A modern, customizable home-screen launcher built with Jetpack Compose
System Tools
AwayDoomscrollin'
Break the scrolling loop on Instagram, TikTok and YouTube
System Tools
Beam
Live battery metrics pinned to your status bar
System Tools
Boop
Pop a nearby person’s bubble. A tiny Boop over Bluetooth, with no Internet
System Tools
Burkan
Keeps your Galaxy S23 on the Vulkan renderer, even after a restart
System Tools
Dhwani - Volume Control
Restore system volume controls on devices with broken volume buttons.
System Tools
Flicky
Unofficial Fdroid client (for Android TV)
System Tools
Fokus Launcher
Minimal launcher with clock, weather, fast app search, and gesture navigation.
System Tools
FPS Meter
Lightweight real-time FPS overlay and game performance monitor
System Tools