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.
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.
? , , .
powermanager.reboot 8- api.
Linux, , NDK/JNI- , , . . , .
? , .
- adb. , ddmd - , - ?
Source: https://habr.com/ru/post/1744899/More articles:How can I open the Objective-C function for JavaScript using WebKit on Mac OS X? - objective-cLayout of object and interface - javaClass; Struct; Explain the confusion, which is better? - c #C ++ static int in class - compile-time error - c ++предотвращение загрузки exe файла на веб-сайт - asp.netPreliminary wording of the smart pointer class - c ++How to avoid MissingMethodException? - .netSilverlight Listbox fires MouseRightButtonDown, but not MouseLeftButtonDown - eventsReverse engineer a.pyo python file - pythonsort percent list - pythonAll Articles