Skip to content
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

Multi user support #5

Open
Trumeet opened this issue Mar 31, 2019 · 2 comments
Open

Multi user support #5

Trumeet opened this issue Mar 31, 2019 · 2 comments

Comments

@Trumeet
Copy link

Trumeet commented Mar 31, 2019

Hi, I'm using this library in my project but I have trouble with using RootIPC with non-owner users. I noticed that the starter app which registers receiver cannot receive the broadcast from the root process. I checked the code and noticed that the sendBroadcast method ALWAYS uses the user with id 0 which means the owner user:

mBroadcastIntent.invoke(oActivityManager, null, intent, null, null, 0, null, null, null, -1, null, false, false, 0);

mBroadcastIntent.invoke(oActivityManager, null, intent, null, null, 0, null, null, null, -1, false, false, 0);

I think it is a but so could you fix it? Thanks.

@Chainfire
Copy link
Owner

I'm pretty sure you're correct, there. Not fixing this right now, but keeping the issue open until I may get around to it, or someone pull requests the fix.

@Trumeet
Copy link
Author

Trumeet commented Apr 2, 2019

I'm pretty sure you're correct, there. Not fixing this right now, but keeping the issue open until I may get around to it, or someone pull requests the fix.

How about provide an API to let developers get the Intent to be broadcasted? In my case, I use to stick it so my app won't need to start it again in order to receive the broadcast, and make it public also provides some more customizable thing.

idkyou1500 pushed a commit to idkyou1500/librootjava that referenced this issue Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants