Can I restart my phone with Android SDK or NDK?

Is it possible to programmatically restart the phone from an application (service) running on top of Dalvik VM?

If the SDK does not provide this function, then what about using the NDK and calling some functions provided by the kernel? I know that this option is not preferable (libraries are not stable enough), but if this is the only option, I must take this into account too.

+3
source share
3 answers

I hope not.: -)

If it were possible to restart the phone at its discretion, the malicious application could safely do this at arbitrary intervals and make your life miserable.

NDK , Android Linux , Java.

? , , .

+3
+3

Linux, , NDK/JNI- , , . . , .

? , .

- adb. , ddmd - , - ?

+1
source

Source: https://habr.com/ru/post/1744899/


All Articles