AI summary
Android component controller for managing app components with PackageManager or Intent Firewall, using root access or Shizuku. Supports importing and exporting rules; the latest version adds Shizuku system UID control and an option to restore PackageManager changes.
Generated by AI. May contain inaccuracies.
Screenshots
About this app
Blocker is a component controller for Android applications that currently supports using PackageManager and Intent Firewall to manage the state of components. For bloated applications, many components within the application are redundant. Blocker provides a convenient control button to manage the corresponding components, enabling the disabling of unnecessary functions and saving application runtime resources. Blocker 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 exception will be thrown. Developers can catch this exception to know whether the component is disabled or not, so they could re-enable this component. That's the reason why the components will be enabled unexpectedly. If you are using an Intent Firewall controller, there will be no problems.
▼Shizuku/Sui Mode Shizuku is an application developed by Rikka, RikkaApps/Shizuku
Starting from Android O, if we install a Test-Only application, users could use pm command to control the command status. We could modify the install package to set it into Test-Only mode, using APIs provided by Shizuku to control the component status.
▼Tutorial for modifying APKs (Chinese Only)
Please note: For normal applications, the Shell permission in Shizuku mode is not sufficient to change the switch status of components. In other words, unmodified APKs do not support non-root modification. If you want to use Shizuku to modify the component status of normal applications, please start Shizuku with Root privileges. Implementation of this restriction in AOSP: frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
▼Screenshot tests Blocker uses Roborazzi to do screenshot tests of certain screens and components. To run these tests, run the verifyRoborazziFossDebug or recordRoborazziFossDebug tasks. Note that screenshots are recorded on CI, using Linux, and other platforms might generate slightly different images, making the tests fail.
▼Architecture The architecture of the Blocker app is based on the architecture described in Now in Android, and it also adheres to the official architecture guidance. For information on modularization, please refer to this article: Modularization Learning Journey.
▼UI The app was designed using Material 3 guidelines. Learn more about the design process and obtain the design files in Figma. Huge thanks to our UI designer: @COPtimer The Screens and UI elements are built entirely using Jetpack Compose.
▼The app has two themes:
・Dynamic color - uses colors based on the user's current color theme (if supported) ・Default theme - uses predefined colors when dynamic color is not supported
Each theme also supports dark mode.
📄 License Apache License Version 2.0
What's new
- ・build(deps): bump org.mockito.kotlin:mockito-kotlin from 6.2.3 to 6.3.0 by @dependabot[bot] in #1507 ・build(deps): bump androidx.compose:compose-bom-alpha from 2026.03.00 to 2026.03.01 by @dependabot[bot] in #1514 ・build(deps): bump androidxWork from 2.11.1 to 2.11.2 by @dependabot[bot] in #1515 ・build(deps): bump androidx.browser:browser from 1.9.0 to 1.10.0 by @dependabot[bot] in #1521 ・build(deps): bump com.github.jeziellago:compose-markdown from 0.6.0 to 0.7.0 by @dependabot[bot] in #1523 ・build(deps): bump androidx.compose.runtime:runtime-tracing from 1.10.5 to 1.10.6 by @dependabot[bot] in #1524 ・build(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json from 1.10.0 to 1.11.0 by @dependabot[bot] in #1525 ・build(deps): bump firebaseCrashlyticsPlugin from 3.0.6 to 3.0.7 by @dependabot[bot] in #1527 ・build(deps): bump r0adkll/upload-google-play from 1.1.3 to 1.1.5 by @dependabot[bot] in #1530 ・build(deps): bump the gradle-plugin-and-build-tools group with 8 updates by @dependabot[bot] in #1528 ・build(deps): bump androidx.compose.material:material-navigation from 1.10.5 to 1.10.6 by @dependabot[bot] in #1520 ・build(deps): bump androidxMacroBenchmark from 1.5.0-alpha03 to 1.5.0-alpha05 by @dependabot[bot] in #1513 ・build(deps): bump androidx.core:core-ktx from 1.17.0 to 1.18.0 by @dependabot[bot] in #1489 ・build(deps): bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #1526 ・build(deps): bump android-actions/setup-android from 3 to 4 by @dependabot[bot] in #1512 ・build(deps): bump androidx.compose.material:material-navigation from 1.10.6 to 1.11.0 by @dependabot[bot] in #1535 ・build(deps): bump com.google.protobuf from 0.9.6 to 0.10.0 by @dependabot[bot] in #1534 ・build(deps): bump androidx.lint:lint-gradle from 1.0.0-alpha03 to 1.0.0-beta01 by @dependabot[bot] in #1537 ・build(deps): bump androidxNavigation3 from 1.0.1 to 1.1.1 by @dependabot[bot] in #1536 ・Revert "build(deps): bump androidxNavigation3 from 1.0.1 to 1.1.1" by @lihenggui in #1539 ・Refine top-level navigation IA by @lihenggui in #1516 ・build(deps): bump gradle/actions from 5 to 6 by @dependabot[bot] in #1511 ・[codex] Migrate root backend to librootkotlinx by @Mygod in #1546 ・build(deps): bump madrapps/jacoco-report from 1.7.2 to 1.8.0 by @dependabot[bot] in #1545 ・build(deps): consolidate dependency upgrades and fix AGP 9.2 build by @lihenggui in #1551 ・Support Shizuku system UID for PM component control by @lihenggui in #1548 ・build(deps): bump actions/cache from 5 to 6 by @dependabot[bot] in #1558 ・build(deps): bump androidx.compose.runtime:runtime-tracing from 1.10.6 to 1.11.3 by @dependabot[bot] in #1557 ・build(deps): bump gmsPlugin from 4.4.4 to 4.5.0 by @dependabot[bot] in #1555 ・build(deps): bump gradle-wrapper from 9.4.1 to 9.6.0 by @dependabot[bot] in #1553 ・dependency upgrades by @lihenggui in #1570 ・Upgrade Compose BOM to 2026.08.00 and resolve warnings by @lihenggui in #1571 ・build(deps): bump androidxMacroBenchmark from 1.5.0-rc01 to 1.5.0-rc02 by @dependabot[bot] in #1573 ・feat: add "Restore PM modifications" option in settings by @lihenggui in #1529 ・Upgrade dependencies by @lihenggui in #1581 ・Update Coil by @lihenggui in #1582
- New Contributors ・@Mygod made their first contribution in #1546
- Full Changelog: https://github.com/lihenggui/blocker/compare/v2.0.6339...v2.0.6447
About this version
- Version
- 2.0.6447 (6447)
- Size
- 8.51 MB
- Requires Android
- 7.0
- Target SDK
- 24
- Architecture
- arm64-v8a, armeabi-v7a, x86, x86_64
- Downloads
- 21
- Updated
- Oct 22, 2026
- Package
- com.merxury.blocker
Similar apps
Ratings & reviews
- 51
- 40
- 30
- 20
- 10
Write a review
Recent reviews
Showing 1 of 1- Николай today