Loading services/core/java/com/android/server/location/GnssLocationProvider.java +12 −0 Original line number Diff line number Diff line Loading @@ -778,6 +778,18 @@ public class GnssLocationProvider implements LocationProviderInterface { return isEnabled(); } }; /* * A cycle of native_init() and native_cleanup() is needed so that callbacks are registered * after bootup even when location is disabled. This will allow Emergency SUPL to work even * when location is disabled before device restart. * */ boolean isInitialized = native_init(); if(!isInitialized) { Log.d(TAG, "Failed to initialize at bootup"); } else { native_cleanup(); } } /** Loading Loading
services/core/java/com/android/server/location/GnssLocationProvider.java +12 −0 Original line number Diff line number Diff line Loading @@ -778,6 +778,18 @@ public class GnssLocationProvider implements LocationProviderInterface { return isEnabled(); } }; /* * A cycle of native_init() and native_cleanup() is needed so that callbacks are registered * after bootup even when location is disabled. This will allow Emergency SUPL to work even * when location is disabled before device restart. * */ boolean isInitialized = native_init(); if(!isInitialized) { Log.d(TAG, "Failed to initialize at bootup"); } else { native_cleanup(); } } /** Loading