to the app by java and not from jni?
Once the devices was granted root permission and enable debuggable,you can do what you want from JNI. All operations in Java layer was controlled under android framework layer, that’s why sometime you need to specify particular required permissions in androidManifest.xml So, they are unrelated, whether a method in JNI needed root permission or not depending on what you are trying to do... If the code didn’t read or write system-wide file system, it’s ok,like doing network requests or algorithmic calculations, such operations doesn’t require root permission
Обсуждают сегодня