title: ConsumerIrManage.hasIrEmitter() always returns false (API 19)
body: <p>I call <code>ConsumerIrManager.hasIrEmitter()</code> on my LG G2, but it always returns <code>false</code>.</p>
  
  <p>According to the documentation on <a href="http://developer.android.com/about/versions/android-4.4.html#Wireless" rel="nofollow noreferrer">Infrared transmitters</a>:</p>
  
  <blockquote>
    <p>When running on a device that includes an infrared (IR) transmitter, you can now transmit IR signals using the <code>ConsumerIrManager</code> APIs. To get an instance of <code>ConsumerIrManager</code>, call <code>getSystemService()</code> with <code>CONSUMER_IR_SERVICE</code> as the argument. You can then query the device's supported IR frequencies with <code>getCarrierFrequencies()</code> and transmit signals by passing your desired frequency and signal pattern with <code>transmit()</code>.</p>
    
    <p>You should always first check whether a device includes an IR transmitter by calling <code>hasIrEmitter()</code>, but if your app is compatible only with devices that do have one, you should include a <code>&lt;uses-feature&gt;</code> element in your manifest for <code>"android.hardware.consumerir"</code> (<code>FEATURE_CONSUMER_IR</code>).</p>
  </blockquote>
  
  <p>My code is as follows:</p>
  
  <p><strong>MainActivity.java</strong>
  </p>
  
  <pre><code>import android.hardware.ConsumerIrManager;
  ....
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      ....
      ConsumerIrManager mCIR = (ConsumerIrManager)getSystemService(CONSUMER_IR_SERVICE);
      Log.e(TAG, "mCIR.hasIrEmitter(): " + mCIR.hasIrEmitter());
      PackageManager pm = getPackageManager();
      Log.e(TAG, "pm.hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR): "
          + pm.hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR));
      FeatureInfo[] fi = pm.getSystemAvailableFeatures();
      for (int i = 0; i &lt; fi.length; i++) {
          Log.e(TAG, "Feature: " + fi[i].name);
      }
      ....
  }
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong>
  </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.TRANSMIT_IR" android:required="false" /&gt;
  &lt;uses-feature android:name="android.hardware.consumerir" /&gt;
  </code></pre>
  
  <p>In <code>SystemAvailableFeatures</code> list I cannot see <code>"android.hardware.consumerir"</code> (<code>FEATURE_CONSUMER_IR</code>), but the LG G2 definitely has IR.</p>
  
  <p>Has anyone successfully used <code>hasEmitterIr()</code>?</p>