圖標

Blocker

A component controller for Android applications
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

  1. Lightweight, don't burden the system

  2. Easy to use

  3. 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.

UI
The app was designed using Material 3 guidelines.
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.

反特徵

此應用程式可能有您不喜歡的功能。 瞭解更多!

版本

雖然在下方可選擇下載 APK 檔案,但要留意這樣的安裝方式將不會收到更新通知,是一種較不安全的下載方法。建議您先安裝 F-Droid 用戶端使用。

下載 F-Droid
  • 版本 2.0.5839 (5839) 建議 於 2025 年 11 月 14 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 6.0 或更高的版本。

    此套件包由 F-Droid 構建和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 查看網路連線
      允許應用程式查看網路連線相關資訊,像是有哪些網路,以及有沒有連上。
    • 執行前景服務
      允許應用程式使用前景服務。
    • 搭配「dataSync」類型執行前景服務
      允許應用程式搭配「dataSync」類型使用前景服務
    • 擁有完整的網路存取權
      允許應用程式建立網路通訊端及使用自訂網路通訊協定。瀏覽器和其他應用程式會提供將資料傳輸到網際網路的方法,因此不需要這項權限也能將資料傳輸到網際網路。
    • 顯示通知
      允許應用程式顯示通知
    • 查詢所有套件
      允許應用程式查看所有已安裝的套件。
    • 啟動時執行
      允許應用程式在系統完成開機程序後立即自行啟動。這會增加手機的開機時間,而且會因為系統一直執行該應用程式導致手機的整體運作速度變慢。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。
    • com.merxury.blocker.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
    • moe.shizuku.manager.permission.API
    • moe.shizuku.manager.permission.API_V23

    下載 APK 8.1 MiB PGP 簽章 | 構建日誌

  • 版本 2.0.4839-fdroid (4839) - 於 2024 年 9 月 22 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 5.0 或更高的版本。

    此套件包由 F-Droid 構建和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 查看網路連線
      允許應用程式查看網路連線相關資訊,像是有哪些網路,以及有沒有連上。
    • 執行前景服務
      允許應用程式使用前景服務。
    • 搭配「dataSync」類型執行前景服務
      允許應用程式搭配「dataSync」類型使用前景服務
    • 擁有完整的網路存取權
      允許應用程式建立網路通訊端及使用自訂網路通訊協定。瀏覽器和其他應用程式會提供將資料傳輸到網際網路的方法,因此不需要這項權限也能將資料傳輸到網際網路。
    • 顯示通知
      允許應用程式顯示通知
    • 查詢所有套件
      允許應用程式查看所有已安裝的套件。
    • 啟動時執行
      允許應用程式在系統完成開機程序後立即自行啟動。這會增加手機的開機時間,而且會因為系統一直執行該應用程式導致手機的整體運作速度變慢。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。
    • com.merxury.blocker.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
    • moe.shizuku.manager.permission.API
    • moe.shizuku.manager.permission.API_V23

    下載 APK 7.4 MiB PGP 簽章 | 構建日誌

  • 版本 2.0.4803-fdroid (4803) - 於 2024 年 9 月 16 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 5.0 或更高的版本。

    此套件包由 F-Droid 構建和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 查看網路連線
      允許應用程式查看網路連線相關資訊,像是有哪些網路,以及有沒有連上。
    • 執行前景服務
      允許應用程式使用前景服務。
    • 搭配「dataSync」類型執行前景服務
      允許應用程式搭配「dataSync」類型使用前景服務
    • 擁有完整的網路存取權
      允許應用程式建立網路通訊端及使用自訂網路通訊協定。瀏覽器和其他應用程式會提供將資料傳輸到網際網路的方法,因此不需要這項權限也能將資料傳輸到網際網路。
    • 顯示通知
      允許應用程式顯示通知
    • 查詢所有套件
      允許應用程式查看所有已安裝的套件。
    • 啟動時執行
      允許應用程式在系統完成開機程序後立即自行啟動。這會增加手機的開機時間,而且會因為系統一直執行該應用程式導致手機的整體運作速度變慢。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。
    • com.merxury.blocker.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
    • moe.shizuku.manager.permission.API
    • moe.shizuku.manager.permission.API_V23

    下載 APK 7.4 MiB PGP 簽章 | 構建日誌