Flashlight comes on for no apparent reason
This should fix you up 8 comments as of now.   https://www.reddit.com/r/LineageOS/comments/6qmx3f/flashlight_turns_on_randomly/ its probably flashlight screen lock. In which if there isnt an option normally for your phone then you might have to find a shorcut code like the dialer codes, or look up if there is a mod for the problem of not having the option