<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________ Originalna poruka: ________________________<br />
> Od: <plomba@net.hr><br />
> Za: <pcsclite-muscle@lists.alioth.debian.org><br />
> Datum: 15.11.2016 14:13<br />
> Naslov: Running a pcscd daemon on a Android device<br />
></p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">Hello,</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">I'm trying to run a pcscd daemon on my Android phone.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">I've passed all the prerequisite steps, built the <a href="https://pcsclite.alioth.debian.org/pcsclite.html">pcscd</a> and the smart card reader ACR38U PocketMate II driver from source. The built sources target the <strong style="margin: 0px; padding: 0px; border: 0px;">arm-linux-androideabi</strong> toolchain and execute without a problem on my Android phone.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">But the problem arises when i plug in my card reader. The problem manifests as a LIBUSB_ERROR_BUSY.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">The attached picture shows the error. </p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;"><a href="https://i.stack.imgur.com/qVTU6.png"><img src="https://i.stack.imgur.com/qVTU6.png" style="margin: 0px; padding: 0px; max-width: 100%;" border="0" alt="LIBUSB_ERROR_BUSY" /></a></p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">I understand that this means that there is a another process accessing the usb attached smart card reader.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">But is there a way on a Android device to find out the service that is holding the port and disable it on the inserted usb device?</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong style="margin: 0px; padding: 0px; border: 0px;">Thing I've tried</strong> I've tried several versions of the pcscd daemon and the provided smart card reader software.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">The problem persists.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">Any help would be much appreciated.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;"><strong style="margin: 0px; padding: 0px; border: 0px;">Additional steps done:</strong> I've tried it on my desktop machine, the same setup but built it with a x86 toolchain, all works and i can connect to my reader.</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;"> </p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">Best regards,</p>

<p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: #242729; font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;">Frane</p>