How do you sign an app with a debug key that has system (signature) permissions
<p>All I want to do is shut my screen off in my app and I've added these lines to my manifest file:</p>

<pre><code>&lt;uses-permission android:name="android.permission.DEVICE_POWER" 
    android:protectionLevel="signature" /&gt;
</code></pre>

<p>Yet when I run my app I get a SecurityException on DEVICE_POWER. So I looked into it and apparently I need to sign my app with a key in order to have signature permission.</p>

<p>Well I tried to export a signed app using the Android Tools in eclipse and then running that exported apk on my phone but it still doesn't work. </p>

<p>How do I sign a system signature key to debug with in eclipse? As well export it properly to work when I'm finished?</p>

<p>Can anyone please help me out. All I want my app to do is shut the screen off and this is becoming a big roadblock for me!</p>
