title: Scanning with ML Firebase Barcode doesn't recognize format
body: <p>I have been trying to use the MLKit to scan a barcode however I don't seem to get anything on return, the info that I'm getting back is</p>
  <p><strong>W/libc: Access denied finding property &quot;ro.hardware.chipname&quot;</strong></p>
  <p>This is the code that I'm trying, it does enter in the success listener however I doesn't seem to recognize the format.</p>
  <pre><code>private fun scanBarcodes(bitmap: Bitmap) {
  
  val options = BarcodeScannerOptions.Builder()
              .setBarcodeFormats(
                  Barcode.FORMAT_CODABAR,
                  Barcode.FORMAT_UPC_A,
                  Barcode.FORMAT_UPC_E
              )
              .build()
  
          val scanner = BarcodeScanning.getClient(options)
          val image = InputImage.fromBitmap(bitmap, 0)
  
          scanner.process(image)
              .addOnSuccessListener { barcodes -&gt;
                  // It is succesful
                  for (barcode in barcodes) {
                      val bounds = barcode.boundingBox
                      val corners = barcode.cornerPoints
                      val rawValue = barcode.rawValue
                      Log.d(&quot;RAWVALUE -&gt;&gt;&gt;&quot;, rawValue.toString())
  
                      when (barcode.valueType) {
                          Barcode.FORMAT_UPC_A -&gt; {
                              Log.d(&quot;TASK SUCCESFUL -&gt;&gt;&gt;&gt;&gt;&gt;&quot;, &quot;UPC A&quot;)
                              val upc = barcode.url
                          }
                          Barcode.FORMAT_UPC_E -&gt; {
                              Log.d(&quot;TASK SUCCESFUL -&gt;&gt;&gt;&gt;&gt;&gt;&quot;, &quot;UPC E&quot;)
                          }
                          Barcode.FORMAT_CODABAR -&gt; {
                              val title = barcode.url!!.title
                              val url = barcode.url!!.url
  
                          }
                      }
                  }
              }
              .addOnFailureListener {
                  Log.d(TAG, &quot;Problem&quot;)
              }
  }
  </code></pre>
  <p>The BitMap that I'm passing the scanBarcodes function is the one obtained underneath</p>
  <pre><code>    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
          super.onActivityResult(requestCode, resultCode, data)
  
          if (requestCode == 100 &amp;&amp; resultCode == RESULT_OK) {
              imageUri = data?.data!!
              if (binding.switchCamera?.isChecked == true)
                  Picasso.get()!!.load(imageUri).resize(300, 300).centerCrop()
                      .into(binding.imageButton)
          }
  
          if (requestCode == cameraCode &amp;&amp; resultCode == RESULT_OK) {
              imageBitmap = data?.extras?.get(&quot;data&quot;) as Bitmap
  
              val baos = ByteArrayOutputStream()
              imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos)
              data2 = baos.toByteArray()
  
              val file = File(cacheDir, &quot;filename.jpg&quot;)
              file.createNewFile()
              val fileOS = FileOutputStream(file)
              fileOS.write(data2)
              fileOS.flush()
              fileOS.close()
              if (binding.switchCamera?.isChecked == true) {
                  binding.imageButton.setImageBitmap(imageBitmap)
              } else {
                  scanBarcodes(imageBitmap)
              }
          }
      }
  </code></pre>