getDataNetworkTypeForSubscriber requires android.permission.READ_PHONE_STATE in the manifest for
apps targeting android 11 (sdk30).
in addition, READ_PHONE_STATE is considered a "dangerous" permission, so you will have to prompt the
user for her permission. this is a so-called runtime permission, and, normally, is only required the first time the
app is run. have you used runtime permissions? many examples here, easy to use.