I've always had that ^ developer option turned off - and after the Oreo update, would get the screen turning on when plugged into the stock Sammy charger. Also the screen would not time out even though it was set to one minute.
Turned out that it was an app called glimpse notifications that...