I would try to get the imei
of a device in C/C++ (using ndk) and retrieve the result with JNI.
const char *res = exec_get_out("service call iphonesubinfo 3");
Works in shell, but does not in my application
I have the READ_PHONE_STATE
permission set in the Manifest. This is targeted for Marshmallow Android (and I have accepted permission in settings)
Is there any other solution that would work or is it not possible without a JNI environment?