<?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>topic How to Acees device driver API's from Android app in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Acees-device-driver-API-s-from-Android-app/m-p/974457#M145037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;BR /&gt; For one of my project i am using NXP iMX8M Mini EVK Board with pre-built Android 9.0 Running on it. &lt;BR /&gt; I am writing some device driver to access some external device which i will interface with board. &lt;BR /&gt; &lt;BR /&gt; NOTE - The hardware and its interfacing are irrelevant here.&lt;BR /&gt; &lt;BR /&gt; Now as per the Android platform Architecture &lt;BR /&gt; &lt;A href="https://developer.android.com/guide/platform"&gt;developer.android.com/.../platform&lt;/A&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; Now if i have some device driver code ( Kernel level + user space level ) which i am running at Linux layer&lt;BR /&gt; My Linux layer user space code talk to my device driver and my device driver talk to my hardware.. &lt;BR /&gt; it can be any hardware..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : The functionality of the Application and device driver, is irrelevant.&lt;BR /&gt; &lt;BR /&gt; Now what i want is that -&lt;BR /&gt; I want to call some API’s of my user space code from my android application ??&lt;BR /&gt; so what is the best way, in detail to access my user space and device drivers code via Java in Android?&lt;BR /&gt; &lt;BR /&gt; I know one way to do this is using Android NDK ... &lt;BR /&gt; &lt;BR /&gt; but in android ndk we need to create new projects and then add all the source files and then compile the code using android ndk software..&lt;BR /&gt; But since i have device driver and user layer code which uses various linux layer api’s so cannot add all the source code in ndk and compile it so I think i cannot use android ndk approach.. please confirm..&lt;BR /&gt; &lt;BR /&gt; Also I’m just accessing device drivers and linux user space code &amp;amp; not actually writing any native code? &lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;So now my question is what is the other possible way through which i can access api’s of device drivers and linux user space code from my android app...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maneesh &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2019 10:15:36 GMT</pubDate>
    <dc:creator>msingh1920</dc:creator>
    <dc:date>2019-06-26T10:15:36Z</dc:date>
    <item>
      <title>How to Acees device driver API's from Android app</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Acees-device-driver-API-s-from-Android-app/m-p/974457#M145037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;BR /&gt; For one of my project i am using NXP iMX8M Mini EVK Board with pre-built Android 9.0 Running on it. &lt;BR /&gt; I am writing some device driver to access some external device which i will interface with board. &lt;BR /&gt; &lt;BR /&gt; NOTE - The hardware and its interfacing are irrelevant here.&lt;BR /&gt; &lt;BR /&gt; Now as per the Android platform Architecture &lt;BR /&gt; &lt;A href="https://developer.android.com/guide/platform"&gt;developer.android.com/.../platform&lt;/A&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; Now if i have some device driver code ( Kernel level + user space level ) which i am running at Linux layer&lt;BR /&gt; My Linux layer user space code talk to my device driver and my device driver talk to my hardware.. &lt;BR /&gt; it can be any hardware..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : The functionality of the Application and device driver, is irrelevant.&lt;BR /&gt; &lt;BR /&gt; Now what i want is that -&lt;BR /&gt; I want to call some API’s of my user space code from my android application ??&lt;BR /&gt; so what is the best way, in detail to access my user space and device drivers code via Java in Android?&lt;BR /&gt; &lt;BR /&gt; I know one way to do this is using Android NDK ... &lt;BR /&gt; &lt;BR /&gt; but in android ndk we need to create new projects and then add all the source files and then compile the code using android ndk software..&lt;BR /&gt; But since i have device driver and user layer code which uses various linux layer api’s so cannot add all the source code in ndk and compile it so I think i cannot use android ndk approach.. please confirm..&lt;BR /&gt; &lt;BR /&gt; Also I’m just accessing device drivers and linux user space code &amp;amp; not actually writing any native code? &lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;So now my question is what is the other possible way through which i can access api’s of device drivers and linux user space code from my android app...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maneesh &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 10:15:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Acees-device-driver-API-s-from-Android-app/m-p/974457#M145037</guid>
      <dc:creator>msingh1920</dc:creator>
      <dc:date>2019-06-26T10:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Acees device driver API's from Android app</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Acees-device-driver-API-s-from-Android-app/m-p/974458#M145038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello,&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please take a look to professional service here:&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE"&gt;https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;They may be able to help you with your development.&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hope this helps,&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Best regards, &lt;BR /&gt; Aldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 23:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Acees-device-driver-API-s-from-Android-app/m-p/974458#M145038</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2019-07-01T23:14:02Z</dc:date>
    </item>
  </channel>
</rss>

