Possibility of using Blocker as system app and don't require root?
See original GitHub issueIs it possible to make Blocker as system app and use it without root?
maybe put the blocker apk to /system/priv-app/
and whitelist required permissions to a file under /system/etc/permissions/
?
https://source.android.com/devices/tech/config/perms-whitelist
could it call pm
, cmd package
or read/write to /data/system/ifw/
then?
https://developer.android.com/reference/android/Manifest.permission#CHANGE_COMPONENT_ENABLED_STATE
Allows an application to change whether an application component (other than its own) is enabled or not. Not for use by third-party applications. Constant Value: “android.permission.CHANGE_COMPONENT_ENABLED_STATE”
Is it possible to use this to enable/disable app components?
if this could work, we can package Blocker as a Magisk module, or make it TWRP flashable. Since google seems don’t want this kind of app on Play Store, Magisk repo probably could be a better place if Blocker could works this way. 🤔
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
No I don’t think so, I think it’s a good idea to use open source Apps as system-app to make use of Android hidden APIs (such like ifw and appops). Those are just features that custom ROMs are supposed to provide, we just make it a (magisk) module or use TWRP to flash these additional files. This is especially useful for people who don’t want root.
My suggestion is having two apks for the one require root and the one only works as system app, and release the first one on F-Droid, pack the second one into a magisk module or TWRP flashable zip.
I could make an extra selection in the controller settings. But recently I’m quite busy, I will add it into my checklist.