title: How to obtain the board name of a given Android Smartphone
body: <p>I'm building LineageOS from source and want to find out this simple thing. According to the <a href="https://source.android.com/source/add-device" rel="nofollow noreferrer">AOSP documentation</a>:</p>
  
  <blockquote>
    <p>The device/board layer represents the physical layer of plastic on the device (i.e. the industrial design of the device). For example, North American devices probably include QWERTY keyboards whereas devices sold in France probably include AZERTY keyboards. This layer also represents the bare schematics of a product. These include the peripherals on the board and their configuration. The names used are merely codes for different board/device configurations.</p>
  </blockquote>
  
  <p>It also quotes some board names as examples:</p>
  
  <blockquote>
    <p>sardine, trout, goldfish</p>
  </blockquote>
  
  <p>So, given a retail smartphone like a Moto G5 or a Galaxy S8... How to get the board name of it? Also, I tried some google searches like "<code>smartphone name</code> + board name" but since the word "board" is to broad I ended up with a tons of unrelated results. I also searched on the Android -> Settings -> about phone and found infos like Kernel version, build number but not what I was looking for.</p>