It's based on wheel torque, not grip or anything. People have bypassed the check by wedging an orange in one of the gaps in the steering wheel (so its weight applies a constant torque to the wheel).
(This based on /r/teslamotors so it could be out of date or wrong. >.> )