How come nobody has yet suggested Pin-to-Drive?
Because, while that will prevent someone from driving off with the car, it will not prevent them from opening the car doors and possibly taking items out of the car. The question was about locking the car with the phone inside the car. Pin to drive only prevents drive off, but doesnt have anything to do with locking the vehicle itself.