Replies: 1 comment
-
Looks like I suppose I could just replace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to add multi-user support to the AFWall app, just like the LSPosed app has multi-user support.
I have copied LSPosed's own code from daemon/.../{UserService,PackageService}.java to access the hidden APIs and stuff compiles, however at runtime the calls fail with SecurityException, apparently I need MANAGE_USERS and INTERACT_ACROSS_USERS permissions. I added it to the AndroidManifest, however this is ineffective, as it seems these permissions are only granted to system apps or if you sign your APK with the OS key, which AFWall can't feasibly do. However AFWall does assume users have root.
Is there a way to convert root access into effectively having MANAGE_USERS and INTERACT_ACROSS_USERS so that the calls work?
If this is impossible, there is also a https://github.com/ukanth/afwallxposed module in development, how would we achieve this through that?
Beta Was this translation helpful? Give feedback.
All reactions