In theory you can go here [1] and whitelist your phone to have a custom rom on your phone count as play protected. In practice it's another google service that doesn't work and you get no support for it when it doesn't work.
https://developer.android.com/training/safetynet/attestation...