<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: How to access serial port from Android MM application ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600428#M90213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build the image with the new configurations. But I am getting some errors that I am trying to solve on the go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will notify you, If I can successfully build the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2017 16:45:06 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2017-04-11T16:45:06Z</dc:date>
    <item>
      <title>How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600424#M90209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE Policy prevents access of serial ports by android application (by default).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added "allow" to untrusted_app.te&lt;/P&gt;&lt;P&gt;allow untrusted_app tty_device:chr_file rw_file_perms;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, still the avc denial message comes up that untrusted_app not permitted to write to tty_device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be resolved ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 07:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600424#M90209</guid>
      <dc:creator>arindamroy</dc:creator>
      <dc:date>2017-03-21T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600425#M90210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for writing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to reproduce this error, probably this process can take some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:39:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600425#M90210</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-03-27T15:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600426#M90211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Hello Arindam,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;I found this web-page that can help you with your problem. I haven't tested the solution, but you can try it and see if it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;A class="link-titled" href="https://www.codeproject.com/Articles/806904/Android-Security-Customization-with-SEAndroid" title="https://www.codeproject.com/Articles/806904/Android-Security-Customization-with-SEAndroid"&gt;Android* Security Customization with SEAndroid - CodeProject&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 15:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600426#M90211</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-03-29T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600427#M90212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use the rule ( as specified in the link also ):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;allow untrusted_app tty_device:chr_file rw_file_perms;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and ttymxc1 and ttymxc2 falls under the category tty_device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using Sabre SDP and Android Marshmallow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Could you reproduce in to the board ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Arindam&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 06:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600427#M90212</guid>
      <dc:creator>arindamroy</dc:creator>
      <dc:date>2017-04-03T06:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600428#M90213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build the image with the new configurations. But I am getting some errors that I am trying to solve on the go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will notify you, If I can successfully build the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 16:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600428#M90213</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-04-11T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600429#M90214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any script regarding, or an App regarding to this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully built the image, but I need to reproduce your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 19:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600429#M90214</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-04-18T19:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600430#M90215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to access serial port (ttymxc1) from my app. A simple open followed by a read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a separate test app. I believe a simple app which just opens and reads ttymxc1 or ttymxc2 will be sufficient to reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If required, I can create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 06:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600430#M90215</guid>
      <dc:creator>arindamroy</dc:creator>
      <dc:date>2017-04-19T06:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600431#M90216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to set this boot targets during the boot process.&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;setenv bootargs 'console=ttymxc2,115200 init=/init video=mxcfb0:dev=ldb,1024x768M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=400M androidboot.console=ttymxc2 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled no_console_suspend'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;I haven't tested this configuration with an app. But I can write to the serial ports thought shell commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;I hope this can solve your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600431#M90216</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-04-20T19:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600432#M90217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to disable SELINUX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arindam Ghosh Roy&lt;/P&gt;&lt;P&gt;Principal Firmware Engineer | Renal Care Solutions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;India Medtronic Pvt. Ltd.&lt;/P&gt;&lt;P&gt;Prestige Shantiniketan, Tower B, 11th Floor | Whitefield, Bangalore – 560048 | INDIA&lt;/P&gt;&lt;P&gt;Office +91 80 6715 7351 | Mobile + 91 70220 24759| Fax +91 80 6715 7498&lt;/P&gt;&lt;P&gt;arindam.g.roy@medtronic.com&amp;lt;mailto:arindam.g.roy@medtronic.com&amp;gt;&lt;/P&gt;&lt;P&gt;medtronic.com&amp;lt;http://www.medtronic.com/&amp;gt;  |  Facebook&amp;lt;https://www.facebook.com/Medtronic&amp;gt;  |  LinkedIn&amp;lt;https://www.linkedin.com/company/medtronic?trk=biz-companies-cym&amp;gt;  |  Twitter&amp;lt;https://twitter.com/Medtronic&amp;gt;  |  YouTube &amp;lt;https://www.youtube.com/user/MedtronicCorp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET’S TAKE HEALTHCARE&lt;/P&gt;&lt;P&gt;FURTHER, TOGETHER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 01:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600432#M90217</guid>
      <dc:creator>arindamroy</dc:creator>
      <dc:date>2017-04-21T01:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600433#M90218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably I will need an apk that could work in the sabresd6q and make all the features that you need. It would be helpful if you can pass me an apk to test the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600433#M90218</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2017-04-24T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600434#M90219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same issue , too. &amp;nbsp;Did anybody have solution?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 06:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600434#M90219</guid>
      <dc:creator>bensonwu</dc:creator>
      <dc:date>2018-10-26T06:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600435#M90220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/arindamroy"&gt;arindamroy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have struggled this issue for 2 days with the same symptom as yours...and finally, I solved this issue with SELINUX on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================= My Solution =========================================&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First , try to search the "tty_device" in external/sepolicy/ folder ,then I found there is a command in device.te&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;type tty_device, dev_type;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Try to modify the command as follows :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;type tty_device, dev_type,&amp;nbsp;mlstrustedobject;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Everything is back to normal.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above solution is coming from the ideas of the link:&amp;nbsp;&lt;A class="link-titled" href="https://www.jianshu.com/p/9374e4421d38" title="https://www.jianshu.com/p/9374e4421d38"&gt;SELinux 添加一个权限 - 大大世界 - 简书&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am not really uncertain why this action solved this issue...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600435#M90220</guid>
      <dc:creator>bensonwu</dc:creator>
      <dc:date>2018-10-29T06:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to access serial port from Android MM application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600436#M90221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to android,&lt;/P&gt;&lt;P&gt;How to test imx6q sabre-sdb &lt;STRONG&gt;serial&lt;/STRONG&gt; port with android apk?&lt;/P&gt;&lt;P&gt;i want to send some data to serial&lt;/P&gt;&lt;P&gt;if any sample apk is available please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 05:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-access-serial-port-from-Android-MM-application/m-p/600436#M90221</guid>
      <dc:creator>chum</dc:creator>
      <dc:date>2019-10-17T05:16:35Z</dc:date>
    </item>
  </channel>
</rss>

