1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Remove in the order indicated in the table.
4. Install in the reverse order of removal.
Mazda 6 Service Manual: Locking, Unlocking the Doors
NOTE
The system may not operate if you are too close to the windows or door
handles.
If the key is left in the following areas and you leave the vehicle,
the doors may be locked depending on the radio wave conditions even if the key
is left in the vehicle.
Around the dashboard
...
Mazda 6 Service Manual: Installation of radio system
If a radio system is installed improperly or if a high-powered type is used,
the CIS and other systems may be affected. When the vehicle is to be equipped
with a radio, observe the following precautions:
Install the antenna at the farthest point from control modules.
Install the antenna fe ...