Most, if not all smartphones are coming with various manual controls to adjust things like ISO, exposure time, and focus. This guide is to help you step out of Auto mode and explore a very creative way of using your manual controls. This kind of photography is called light painting.
Here's what you need:
A camera app capable of manual controls (the Play store has third party apps if your stock app doesn't do this)