diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index fd0c8948c321c..861725fc986b9 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -2667,6 +2667,13 @@ public class LocationManager { * *
Not all GNSS chipsets support measurements updates, see {@link #getGnssCapabilities()}. * + *
On Android R devices that have not yet upgraded to Android R QPR1, using + * this API will cause unavoidable crashes in the client application when GNSS measurements + * are received. If a client needs to receive GNSS measurements on Android R devices that have + * not been upgraded to QPR1, clients are instead encouraged to use + * LocationManagerCompat.registerGnssMeasurementsCallback() + * from the compat libraries instead to avoid this crash. + * * @param executor the executor that the callback runs on * @param callback the callback to register * @return {@code true} always