Black gaffer's tape is far better than a grey sweat sock for keeping out stray light. That's what I use on my Leica camera phone, for example.