나는 다음과 같은 코드를 구현했다 :안드로이드의 코드를 통해 에뮬레이터를 종료하고 재부팅하는 방법은 무엇입니까?
Intent i = new Intent(Intent.ACTION_REBOOT);
sendBroadcast(i);
오류 (런타임) :
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.REBOOT from pid=*** and uid=***