Android access denied finding property "ro.hardware.chipname"

Viewed 1516

So I am trying to use Tensorflow Lite on an android app. The following code is called when the camera captures an image:

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {
        val bitmap = data!!.extras!!.get("data") as Bitmap
        val tensorImage = imageProcessor.process(TensorImage(DataType.UINT8).apply { load(bitmap) })
        val outputs = model.process(tensorImage.tensorBuffer)
        val buffer = outputs.outputFeature0AsTensorBuffer
        val prediction = buffer.floatArray
        debug { "$prediction" }
    }
}

However, after executing the line val outputs = model.process(tensorImage.tensorBuffer), an error message

E/libc: Access denied finding property "ro.hardware.chipname"

popped up. I have no clue about the meaning of the message (even after googling), and I seemingly cannot find a suitable permission to allow this. Any help in advance is much appreciated.

0 Answers
Related