Q: As a Hong Kong resident, how can I apply for the residence permit in Mainland?
A: Taiwan, Hong Kong and Macao residents who
(1) Have stayed in the Mainland for more than six months and
(2) Have a stable job; stable residence or continuing studies in the Mainland
That resident will be able to apply for residence permits in order to enhance their access to basic social welfare and services, for instance, in the areas of education, entrepreneurship, employment and living aspects, in the Mainland.
Source from: Circular of the General Office of the State Council on Issuing the Measures for Applying for and Issuing Residence Permits for Hong Kong, Macao and Taiwan Residents (GuoBanFa  No.81) 6 August 2018