blocker icon indicating copy to clipboard operation
blocker copied to clipboard

It seems ifw won't block implicit broadcast

Open RichardLuo0 opened this issue 1 year ago • 1 comments

I used blocker to disable a boot receiver of a app. In the meantime I used my own Xposed module to monitor the app's behavior (basically hooked ActivityThread). And it turns out the app indeed received the boot complete intent. I also checked the /data/ifw, and the receiver is blocked in the file. Though, other blocked components will be blocked. Sending broadcast to them will throw a security exception. I tried to find the related source code in android source. But its too complicated for me. Is there any document related to this issue? Maybe you could mention this in blocker's document. I also wish someone could verify my theory. Or probably it's only in my ROM.

Android 14, Lineage os 21

RichardLuo0 avatar Oct 13 '24 19:10 RichardLuo0

I think I know what's happening. It's a broadcast, so it doesn't know which component to be matched when it's being sent. Thus ifw will not match any component rule. When the broadcast arrives app, the app won't check the ifw. To fix this, according to https://carteryagemann.com/pages/android-intent-firewall.html , you need to add intent-filter instead of component-filter.

RichardLuo0 avatar Oct 13 '24 20:10 RichardLuo0