The invention relates to an aerosol device which contains a composition comprising: (i) one or more water-insoluble calcium salts, (ii) one or more fixing polymers, (iii) one or more surfactants, (iv) water, and (v) less than 20% by weight, relative to the total weight of the composition, of one or more propellants. It also relates to a process for shaping the hair and/or retaining the hairstyle, using the aerosol device of the invention.