News for hackers. Stuff that matters.
Re:Ask HN: How Google Maps detect if I am passing under the ... by oscarcp on Thursday August 19, 2021 @02:18AM (#28230921)
As far as I know the default behaviour of Google Maps is to switch light/dark mode depending on the feedback from the light sensor next to the front camera, so basically as soon as it detects a lack of light, it will switch to dark mode.
Re:Ask HN: How Google Maps detect if I am passing under the ... by oscarcp on Thursday August 19, 2021 @02:27AM (#28230990)
One detail, not all phones have the light sensor in the top bezel, some phones like OnePlus 7 Pro have it integrated inside the fingerprint scanner, so depending on your phone the light sensor might be located somewhere else.