Hi, my project car used to 'auto lock' when I first got it. If I unlocked the car, opened the drivers door then closed it again the car would lock the doors. I noted that the interior light didn't come on and the dis didn't show the door was open. I changed the door ( not because of the locking issue), and the car didn't 'auto lock'. It was a microswitch problem I think. One of my other A2's has auto lock enabled via vcds. Hope that helps.
Your post explains perfectly why we need more information from
@thestable. 'Auto lock' is being used here to describe two distinctly different things.
1) When an A2 goes from the locked state to the unlocked state, the car expects a door to be opened within a minute or so. If no door is opened within that time period, the car assumes that the unlock command was sent by accident, so it locks itself again. If, perhaps, the key fob buttons were accidentally pressed at the bottom of a handbag, you wouldn't want the car sitting outside inadvertently unlocked.
A problem arises when a door microswitch circuit fails. If, after unlocking the car, the door with the failed microswitch is opened, the car doesn't know this has happened. As per its logic, it will lock itself again, because it assumes the car was unlocked unintentionally. Unfortunately, if you put your keys inside the car when you opened the dodgy door, they've now been locked in the car.
This behaviour is a fault, not a feature. It's not something that can be switched off in VCDS. It's 'switched off' by fixing the microswitch circuit.
2) The anti-hijack feature is sometimes referred to as 'auto lock'. This feature locks all the doors when you start driving. It stops thieves from pinching your stuff while you're sat at traffic lights, or indeed opening your door, dragging you out, and pinching your entire car.
This feature was never enabled at factory, but it has been enabled on hundreds of A2s by myself and many others. As such, some A2s on the market will have the anti-hijack feature. If you find it irritating, you'll be pleased to know that it can be switched off with ease, using VCDS.
Cheers,
Tom
Edit:
@audifan has basically posted the same thing whilst I was writing.