"APN settings are not available for this user"
I've found the problem: I had bad permissions on various MMS-related files that I've copied from a backup, especially inside data/data/com.android.providers.telephony/databases/.

Files inside data/data/com.android.providers.telephony/ have to belong to the radio group and be owned by the radio user. CHMOD has to be at least 761.