title: Obtain the permission of shutdown or restart in android
body: <p>I am creating a shutdown/restart function.</p>
  
  <pre><code>    Intent intent = new Intent();  
      intent.setAction("android.intent.action.ACTION_SHUTDOWN");  
      sendBroadcast(intent); 
  </code></pre>
  
  <p>In xml:</p>
  
  <pre><code>&lt;uses-permission  android:name="android.permission.SHUTDOWN"/&gt;
  
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.crazyit.net"
    android:versionCode="1"
    android:versionName="1.0" 
    android:sharedUserId="android.uid.system"&gt;
  </code></pre>
  
  <p>But it has this error in users-permission:<code>permission is only granted to system apps</code>.</p>
  
  <p>Any idea?</p>