The small metal buttons on jeans pockets are called rivets, designed to reinforce vulnerable fabric stress points against tearing.
Jacob Davis and Levi Strauss patented the riveted work trouser design on May 20, 1873, to withstand rugged 19th-century labor.
Manufacturers later adjusted exposed rivets on back pockets to prevent scratching furniture and damaging garments.