Joke Collection Website - Blessing messages - Does android call so(jni) need to declare permissions in AndroidManifest.xml, such as sending short messages through jni and reading imei?

Does android call so(jni) need to declare permissions in AndroidManifest.xml, such as sending short messages through jni and reading imei?

If jni reverses the JAVA interface, the processing method is the same as calling the interface directly by the JAVA layer, and the permissions need to be declared.

Jni can directly read the data in linux kernel such as cpu and mac of the device, but imei can't. In addition, texting is also a call to the API of JAVA layer provided by the system. If you want to call the underlying interface directly, you may need to recompile your Android SDK.

Jni reverse java is a disgusting job, especially multithreading, so it's better not to try.

One method that does not need to declare permissions is to obtain all APIs of the kernel layer and directly operate the hardware. Of course that's impossible.