title: How to fix HARDWARE_TEST permission error?
body: <p>i'm developing an android app which uses some hardware parts like camera or Wi-Fi, and i'm using HARDWARE_TEST permission in the manifiest:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.HARDWARE_TEST"&gt;
  </code></pre>
  
  <p>I never have had any issue with that, but now suddenly when I eclipse and manifiest file, a new error is shown in this line: </p>
  
  <p>"Permission is only granted to system apps"</p>
  
  <p>The only way i've got to fix it is deleting this line.</p>
  
  <p>Why is this error?? How can I fix it?
  Thanks</p>
  
  <p><strong>Edited:</strong></p>
  
  <p>I have found the solution and answer my own question:</p>
  
  <p>My problem was in android:targetSdkVersion value in manifiest which was 15 and proyect build target was checked API level 16 (Android 4.1.2)</p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="2"
      android:targetSdkVersion="15" /&gt;
  </code></pre>
  
  <p>So i have changed android:targetSdkVersion value to 16 and Proyect properties > Android > "Proyect Buid Target" checked 16 too.</p>