Samsung phones. Hyundai cars. LG TVs. South Korean exports are available in virtually every corner of the world. But the nation is more dependent than ever before on an import to keep its factories and farms humming: foreign labor.

This shift is part of the fallout from a demographic crisis that has left South Korea with a shrinking and aging population. Data released Wednesday showed that last year the country broke its own record — again — for the world’s lowest total fertility rate.

President Yoon Suk-yeol’s government has responded by more than doubling the quota for low-skilled workers from less-developed nations including Vietnam, Cambodia, Nepal, the Philippines and Bangladesh. Hundreds of thousands of them now toil in South Korea, typically in small factories, or on remote farms or fishing boats — jobs that locals consider too dirty, dangerous or low-paying. With little say in choosing or changing employers, many foreign workers endure predatory bosses, inhumane housing, discrimination and other abuses.