The present invention relates to an aerosol device comprising a container containing: —one or more propellants, —a hair composition comprising: (i) one or more polymers containing a silicone unit bearing alkoxy-(aminomethyl)-silyl functional groups; (ii) one or more amphoteric fixing polymers and/or one or more cationic fixing polymers; the propellant(s) possibly being present in the composition or, in the container, separate from the composition.