Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

feat:2376: Fix registerReceiver for Android 14 compatibility.

Guillaume Jacquart requested to merge 2376-android_14_compatibility into main

OrbotService raise this exception ipscrambling on startup on Android 14 : One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

Indeed, Android 14 requires that registering broadcast receiver specify explicitly if it is exported or not : https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported

We apply here the same patch as applied by the orbot team : https://gitlab.com/guardianproject/tormobile/orbot/-/blob/master/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java?ref_type=heads#L559

Can't explain how the orbot version disctibuted through the Playstore can work on Android 14 devices 🤔

Relates to this issue : https://gitlab.e.foundation/e/os/backlog/-/issues/2376

Merge request reports

Loading