title: Adding and external platform library to AOSP
body: <p>I'm trying to add an external library to my AOSP (v9.0.0-2.0.0) image by following the instructions provided with said library. The instructions are:</p>
  <pre><code>cd &lt;aosp source folder&gt;/external/libgpiod
      mm
  </code></pre>
  <p>Then I run <code>luch</code> and then <code>make</code> to build the image then I flashed it to the SD card. But when I the library commands it via adb shell, none of them work. I get the response:</p>
  <pre><code>dart_mx8mm:/system/app # gpiodetect 0
  /system/bin/sh: gpiodetect: not found
  </code></pre>
  <p>Although I can see that there are some files name the same as the library in the <code>/out</code> folder.</p>
  <p>Is there any way to debug this? The log file isn't helping me very much.</p>
  <p>The library in question is <a href="https://github.com/technexion-android/platform_external_libgpiod" rel="nofollow noreferrer">https://github.com/technexion-android/platform_external_libgpiod</a></p>