Occupancy for any period confers a title sufficient against all except the state and those who have title by prescription, accession, transfer, will, or succession; but the title conferred by occupancy is not a sufficient interest in real property to enable the occupant or the occupant's privies to commence or maintain an action to quiet title, unless the occupancy has ripened into title by prescription.
Ca. Civ. Code § 1006