Will Smith and Jada Pinkett Smith have obtained a restraining order against a woman who broke into their home.