I've never heard of a special code which will unlock devices like that, it sounds like a pretty gaping security hole tbh.
If you enter the unlock code incorrectly a number of times, you're prompted for your gmail account details. If you keep trying, enter your gmail account info at the prompt, you should be good to go.