I want to set a field. However, the non SDK interfaces which have been restricted under Android Q has an interface I am using i.e. Ljava/lang/Integer;->value:I
The suggested way by Google is to use public API instead. i.e. java.lang.Integer.intValue()
However, I need to do the following:
c = env->FindClass("java/lang/Integer");
id = env->GetFieldID(c, "value", "I");
env->SetIntField(a, id, b);
Even if I use java.lang.Integer.intValue(), I'll only get the value and not the reference. How can I set the field then?