-
Notifications
You must be signed in to change notification settings - Fork 739
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/aris/issue_dinsic_618 #4018
Conversation
05fda21
to
8702ff5
Compare
vector/src/main/AndroidManifest.xml
Outdated
<receiver android:name="androidx.media.session.MediaButtonReceiver"> | ||
<receiver | ||
android:name="androidx.media.session.MediaButtonReceiver" | ||
android:exported="true" > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this will also work with exported="false"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested with wireless earbuds if click on call events work with exported="false"
and they seem to work (onMediaButtonEvent function is triggered). So I will update it with false. If there is an other usage other than that, that you can think of let me know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
vector/src/main/AndroidManifest.xml
Outdated
@@ -338,7 +412,8 @@ | |||
|
|||
<service | |||
android:name=".features.call.telecom.VectorConnectionService" | |||
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"> | |||
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE" | |||
android:exported="true"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this will also work with exported="false" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think VectorConnectionService is not even working so there will be no problem to set exported=false
. I also test incoming and outgoing calls and they work properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update.
Can you add in the Manifest itself one line of comment to explain why exported="true" is mandatory? You can use the related comment form the PR itself.
Thanks
done |
Sorry there have been a misunderstanding, your last commit was not what I was expecting. I wanted you to explicitly comment all Android Manifest element with We will take care of Android 12 support when we will be targeting those devices. In the mean time, I guess there is no pb to install on Android 12, since compatibility mode will occur on the device. |
Thanks, now its more clear, I will update accordingly ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. See my remarks. Also can you squash all the commits please?
9f3211b
to
15275eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. One final comment.
Also can you add a file for the changelog please (filename 4018.misc would be fine)? As we are doing this for the forks, it will help to track this work.
15275eb
to
647badb
Compare
- Add comments on Add exported="true" attributes - Disable manifest exporting for: - (service) VectorConnectionService - (receiver) MediaButtonReceiver
647badb
to
f21d89e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update!
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding
component has an intent filter defined.
android:exported=“true”
Activities
Services
Receivers
android:exported=“false”