-
Notifications
You must be signed in to change notification settings - Fork 25
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
auto grant screen mirroring permission? #18
Comments
I tried adding code to check for the appops grant and automatically request the mirroring permission, but because it requires |
It seems the iOS BMW app can open itself automatically when connected to the car's Bluetooth. |
iOS is not at all related to Android, and so iOS behavior should not be considered. I posted the branch of code for you to experiment with, I don't know enough Android internals to explore this further. |
by adding permission we can start an activity from backgrand.
but I didn't find a perfect timeframe to call our RequestActivity |
Hi,
We could add OP_PROJECT_MEDIA AppOps to the app to make click grant permission without popup an alert.
like:
adb shell cmd appops set <pkg> PROJECT_MEDIA allow
so is there a way we can auto-grant it on the car without opening the app and clicking the button?
or how can I change the code to call this func https://github.com/BimmerGestalt/IDriveConnectAddons/blob/main/screen_mirror/src/main/java/io/bimmergestalt/idriveconnectaddons/screenmirror/MainController.kt#L7C17-L7C17
automatically when opening the screen-mirroring menu on the car.
The text was updated successfully, but these errors were encountered: