diff --git a/firebase-common/src/main/AndroidManifest.xml b/firebase-common/src/main/AndroidManifest.xml index d73e9521e1f..cf06353f610 100644 --- a/firebase-common/src/main/AndroidManifest.xml +++ b/firebase-common/src/main/AndroidManifest.xml @@ -23,6 +23,7 @@ Note: this value is respected by all SDKs unless overridden by the developer via SDK * specific mechanisms. * - * @deprecated Use {@link #setDataCollectionDefaultEnabled(Boolean)} instead. * @hide + * @deprecated Use {@link #setDataCollectionDefaultEnabled(Boolean)} instead. */ @KeepForSdk @Deprecated @@ -467,8 +467,8 @@ private void notifyBackgroundStateChangeListeners(boolean background) { *

If automatic resource management is enabled and the app is in the background a callback is * triggered immediately. * - * @see BackgroundStateChangeListener * @hide + * @see BackgroundStateChangeListener */ @KeepForSdk public void addBackgroundStateChangeListener(BackgroundStateChangeListener listener) { @@ -572,9 +572,14 @@ private static List getAllAppNames() { private void initializeAllApis() { boolean inDirectBoot = !UserManagerCompat.isUserUnlocked(applicationContext); if (inDirectBoot) { + Log.i( + LOG_TAG, + "Device in Direct Boot Mode: postponing initialization of Firebase APIs for app " + + getName()); // Ensure that all APIs are initialized once the user unlocks the phone. UserUnlockReceiver.ensureReceiverRegistered(applicationContext); } else { + Log.i(LOG_TAG, "Device unlocked: initializing all Firebase APIs for app " + getName()); componentRuntime.initializeEagerComponents(isDefaultApp()); } } @@ -686,6 +691,7 @@ public void onBackgroundStateChanged(boolean background) { } private static class UiExecutor implements Executor { + private static final Handler HANDLER = new Handler(Looper.getMainLooper()); @Override