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

[Feature request] Make Scoop a bug report manager #28

Open
machiav3lli opened this issue Aug 24, 2021 · 2 comments
Open

[Feature request] Make Scoop a bug report manager #28

machiav3lli opened this issue Aug 24, 2021 · 2 comments
Labels
help wanted Extra attention is needed new functionality A new functionality is requested

Comments

@machiav3lli
Copy link

In Android's Developer's settings there's an option to select the bug reporting manager. I csn imagine that having the right flags and asking for right permission would get Scoop into that list, solving the permission's problem (root/adb usage) and maybe save battery for users.

Unfortunately I still didn't have time to do enough research, so for now it's just an idea or suggestion.

@TacoTheDank
Copy link
Owner

Interesting, I had never even thought of that 🤔. I did some preliminary searching around for information, but I couldn't really find anything that would indicate how I could get Scoop into that list.

@TacoTheDank TacoTheDank added enhancement Enhancement to existing feature or functionality help wanted Extra attention is needed labels Aug 29, 2021
@MuntashirAkon
Copy link

Hi @TacoTheDank, I've been requested to investigate if this exact feature can also be added in App Manager (it can't right now). However, it might be possible for Scoop to have this feature. Looking at the framework source for Shell (here's a starting point for you), it appears that bug report handler relies on a system protected broadcast receiver com.android.internal.intent.action.BUGREPORT_REQUESTED (might vary among Android versions) which is sent to the selected bug report handler when triggered. Everything is good on that part (you can copy the exact behaviour from Shell, I think). The primary issue for Scoop would be to become the default bug report handler. The selection activity is available in settings or can be set directly via Global settings table. But it wouldn't work even if you select Scoop as the default bug report handler because you'd need your app to be whitelisted under bugreport-whitelisted (which you can do systemless-ly using Magisk or may get ActivityManager to return you package name using Xposed).

If you're really interested in this feature, I suggest first try whitelisting and selecting Scoop as a bug report handler and check if the broadcast receiver is actually called by the system and then proceed further. Good luck 😉

@TacoTheDank TacoTheDank added new functionality A new functionality is requested and removed enhancement Enhancement to existing feature or functionality labels Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new functionality A new functionality is requested
Projects
None yet
Development

No branches or pull requests

3 participants