Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

Set flags explicitly on registerReceiver calls #1470

Closed javifernandez closed 4 months ago

javifernandez commented 4 months ago

According to the registerReceiver documentation, we should pass flags explicitly in the registerReceiver calls:

For apps targeting Build.VERSION_CODES.UPSIDE_DOWN_CAKE either RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED must be specified if the receiver isn't being registered for system broadcasts or a SecurityException will be thrown.

javifernandez commented 4 months ago

As a general comment, why don't we add ¡the parameter unconditionally? As far as I understand it should work, it is just that from version S it's mandatory

In order to use the parameter unconditionally we would need to rise the minimum SDK version to 26.