title: How to check if device has 3.5mm Jack or type c progmatically without attaching the earphones
body: <p>I am trying to find out what kind of ear jack device supports . I mean 3.5 mm or type C or USB etc.</p>
  
  <p>I got some code which detect what kind of headset is plugged , but I want to check ear jack type without plugging earphones into device.   </p>