Richard Venderbosch
Oct 07, 2019
11:09 am

How to set MVNO values in ApnSettings on devices running Android 9 with KNOX API level 28?

I tried to follow the Java sample code on

to set the "mvno_type" field using Java reflection on a Xcover 4 running Android 9 (KNOX API level 28).

But I always get a NoSuchFieldException for the field 'mvno_type'.

How can I get this code working?