title: Android source code for specific devices
body: <ol>
  <li>Android source code has multiple directories with code for different devices. Also, within a particular directory, there are paths showing different branches and tags. Just as an example, within 'android / platform / external / iptables' directory (url: <a href="https://android.googlesource.com/platform/external/iptables/" rel="nofollow noreferrer">https://android.googlesource.com/platform/external/iptables/</a>), we have multiple branches showing different releases - e.g. master, brillo, lollipop, marshmallow, etc. For each of them, there are different versions - marshmallow-cts-release, marshmallow-dev, marshmallow-dr-dev, marshmallow-dr-dragon-release, marshmallow-dr-release, marshmallow-dr1.5-dev, marshmallow-dr1.5-release, marshmallow-dr1.6-release, marshmallow-mr1-dev, marshmallow-mr1-release, marshmallow-mr2-release, marshmallow-mr3-release, marshmallow-release.</li>
  </ol>
  
  <p>How do we identify which branch is implemented in a particular device? Also, there is an option to select tags - which also list various versions of say Android 7.1.1. If I am searching for source code of one phone (e.g. HTC 10), is there a way that I can identify the source code of that particular device? </p>
  
  <ol start="2">
  <li>Do the OEMs such as HTC, Samsung, Motorola, Xiaomi, Google etc. use the Android source code in the form that is available at Git repository (open source) or do they make some modifications in the source code for their devices? Further, if there are any modifications, is it possible to view the final source code used by OEMs?</li>
  </ol>
  
  <p>Any help in this regard is highly appreciated.
  Thanks in advance!
  Regards,
  John</p>