Interacting with an android device using c ++

How to access the settings of the android and ios mobile device (camera, flashlight, gyroscope, compass, location, etc.). Unreal has a plugin that shows battery power. But if I need other data, I don’t know how to do it. And is it possible to do this without using plugins?

If you don’t want to use someone else’s plugins you’ll probably need to write native code. You can write in objective directly in your cpp files, but you need to use jni and java to do that for android.