-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra blocking via PM #205
Comments
Assuming you're talking about |
Thanks for clarifying 😅 |
@MuntashirAkon hello again. That's the thing why I asked about blocking. Now I collected some data. Seems like IFW not always can block an intent. For example, I'm blocking this: The app still shows ads: But when I'm disabling this intent via e.g. MAT (pm method I suppose): Intent doesn't work and ad disappears: Am I get something wrong? Can you test this too? |
I can't seem to reproduce it. After you apply blocking via IFW, you may have to restart the application or invalidate cache. When you block using pm method, this is done by default. The ad might appear because it was stored in the cache or memory. |
Tried to even reboot the whole device. Also when I enabling intent back in MAT, ad is also immediately turns back. Regardless it's still blocked in AM. |
That not an issue as described in the FAQ.
Check if the blocking is really applied by visiting You've also failed to mention the AM version you're currently using. |
I mean AM block doesn't work even after pm block.
Sure. Latest AM Pre-release 2.5.21. <rules>
<activity block="true" log="false">
<component-filter name="com.buak.Link2SD/com.google.android.gms.ads.AdActivity"/>
</activity>
</rules> Btw there are no any mentions of
But in your app as I can see the path is hardcoded: Line 62 in 77e18a3
Maybe my firmware just has the different IFW folder path? |
Hmm, seems like no. Some rules are definitely working. I can block app main activity and it won't launch.
But no matches for ads intent. Very weird 🙃 Fixed path maybe still need to be replaced by the function? Just as an compatibility improvement feature. I can create a new issue for it. |
Documentation on Android source suggests that either What's the Android version that you're using?
There could be other unknown factors at play here. But I can't seem to reproduce it on my device. Advertising doesn't seem to be working at all. Can you try an app called Call Meter 3G so that we can both be on the same page. If the findings are indeed correct, then it will be a very good finding. |
There must be some reason behind this (my suspect is IPC). Anyway, I think it's safe to conclude that it's better to disable these components using both IFW and PackageManager at the same time. So they will remain blocked in case the app enables them. Another idea would be to run a job service now and then to ensure that the components blocked in AM are actually blocked. |
Yes. Really not much of existing apps re-enabling intents. Also being visually in sync with other blocking tools is good too. |
It's definitely something to do with IPC. I've set SELinux to permissive and IFW isn't working even after I've set it to enforcing again. I'll file a report in the Google Bug Tracker (although there's hardly any chance that this issue will be addressed). They've also neglected my other issue on app ops. They only like the easy-to-fix bugs. |
People usually blocks components from the dodgy apps, not just from the innocent-looking apps containing AdActivity. Anyway, thank you for your detailed investigations on this matter. This issue is now closed via 4732500 and 58ca805. Job service is related to #61 and will be addressed there. |
It will be good to add true blocking mode with root. Which actually disables activities/services/intents in the system.
Like it's done in MyAndroidTools, LuckyPatcher etc. (After using this tools such components appear in AppManager as disabled.)
The text was updated successfully, but these errors were encountered: