I'm working on an Android app that does not need location services, and I don't want to add that permission.
While I'm testing on my physical device (Moto G5 Plus with Android 8.1.0), I see in Logcat the following repeated ad nauseam:
TwilightManager: Could not get last known location. This is probably because the app does not have any location permissions. Falling back to hardcoded sunrise/sunset values.
I don't want it, I don't need it. I can't figure out how to get rid of it.
android.support.v7.app.TwilightManager.isNight()
is apparently getting called by something, but I'm not sure how to tell it not to keep calling it.
I tried several get system service kinds of things, but never found the secret handshake. Besides, TwilightManager is private.
getBlahBlahService(android.support.v7.app.TwilightManager.class);
//'android.support.v7.app.TwilightManager' is not public in 'android.support.v7.app'. Cannot be accessed from outside package