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

Enable indirect addressing using <intent-filter>s. #10550

Merged
merged 1 commit into from Sep 13, 2023
Merged

Enable indirect addressing using <intent-filter>s. #10550

merged 1 commit into from Sep 13, 2023

Conversation

jdcormie
Copy link
Member

@jdcormie jdcormie commented Sep 9, 2023

AndroidComponentAddress now accepts an Intent with merely a package restriction, not a full ComponentName. This lets clients avoid hard coding Service class names that they don't control.

Experimental API AndroidComponentAddress#getComponent() becomes nullable, which is technically a breaking change. But we expect the impact will be small since existing callers mostly work with addresses they created themselves, which will have a non-null ComponentName.

Fixes #9062

AndroidComponentAddress now accepts an Intent with merely a package
restriction, not a full ComponentName. This lets clients avoid hard
coding Service class names that they don't control.

Fixes #9062
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt much outside of gRPC is even calling getComponent(), and even if they are, it only breaks when someone uses the new feature. Seems pretty safe.

@jdcormie jdcormie merged commit 134b049 into grpc:master Sep 13, 2023
14 checks passed
DNVindhya pushed a commit to DNVindhya/grpc-java that referenced this pull request Oct 5, 2023
AndroidComponentAddress now accepts an Intent with merely a package
restriction, not a full ComponentName. This lets clients avoid hard
coding Service class names that they don't control.

Fixes grpc#9062
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

binder: BinderChannelBuilder should not force clients to hard code an android.app.Service class name
3 participants