title: Camera2 api is not working in Samsung galaxy j7
body: <p>I am using <a href="https://github.com/googlesamples/android-Camera2Basic" rel="nofollow noreferrer">this Google Sample</a> code to take a picture, It's working in all phones but when I tested in Samsung galaxy j7 pro it's not taking the picture and not throwing any kind of exception.</p>
  
  <p>When I use <a href="https://github.com/googlesamples/android-Camera2Video" rel="nofollow noreferrer">this sample code</a> to record the video it's only recording the voice, not visuals. Anyone know why?</p>
  
  <p><strong>EDIT</strong>
  it has android 8.1.0</p>
  
  <p>Details provided from <a href="https://play.google.com/store/apps/details?id=com.airbeat.device.inspector" rel="nofollow noreferrer">Camera2 api probe</a></p>
  
  <pre><code>Camera ID: 1
  Camera Facing: Front
  SupportLevel:LIMITED
  Hardware Support Level:LIMITED
  Manual exposure:1
  Auto exposure:1
  Auto exposure, always flash:0
  Auto exposure, auto flash:0
  Auto exposure, auto flash, red eye reduction:0
  AE Lock:1
  Manual focus:1
  Auto focus:0
  Auto focus macro:0
  Auto focus continuous picture:0
  Auto focus continuous video:0
  Auto focus EDOF:0
  White balance off:1
  Automatic white balance:1
  WB: cloudy day:1
  WB: day:1
  WB: fluorescent:1
  WB: incandescent:1
  WB: shade:0
  WB: twilight:0
  WB: warm fluorescent:0
  AWB Lock:1
  RawCapture:1
  BurstCapture:1
  previewSize: 4128 * 3096 (4:3)
  previewSize: 4128 * 2322 (16:9)
  previewSize: 3264 * 2448 (4:3)
  previewSize: 3264 * 1836 (16:9)
  previewSize: 3088 * 3088 (1:1)
  previewSize: 2048 * 1536 (4:3)
  previewSize: 2048 * 1152 (16:9)
  previewSize: 1920 * 1080 (16:9)
  previewSize: 1440 * 1080 (4:3)
  previewSize: 1280 * 720 (16:9)
  previewSize: 960 * 720 (4:3)
  previewSize: 720 * 480 (3:2)
  previewSize: 640 * 480 (4:3)
  previewSize: 352 * 288 (11:9)
  previewSize: 320 * 240 (4:3)
  previewSize: 256 * 144 (16:9)
  previewSize: 176 * 144 (11:9)
  photoSize: 4128 * 3096 (4:3)
  photoSize: 4128 * 2322 (16:9)
  photoSize: 3264 * 2448 (4:3)
  photoSize: 3264 * 1836 (16:9)
  photoSize: 3088 * 3088 (1:1)
  photoSize: 2048 * 1536 (4:3)
  photoSize: 2048 * 1152 (16:9)
  photoSize: 1920 * 1080 (16:9)
  photoSize: 1440 * 1080 (4:3)
  photoSize: 1280 * 720 (16:9)
  photoSize: 960 * 720 (4:3)
  photoSize: 720 * 480 (3:2)
  photoSize: 640 * 480 (4:3)
  photoSize: 352 * 288 (11:9)
  photoSize: 320 * 240 (4:3)
  photoSize: 256 * 144 (16:9)
  photoSize: 176 * 144 (11:9)
  videoSize: 4128 * 3096 (4:3)
  videoSize: 4128 * 2322 (16:9)
  videoSize: 3264 * 2448 (4:3)
  videoSize: 3264 * 1836 (16:9)
  videoSize: 3088 * 3088 (1:1)
  videoSize: 2048 * 1536 (4:3)
  videoSize: 2048 * 1152 (16:9)
  videoSize: 1920 * 1080 (16:9)
  videoSize: 1440 * 1080 (4:3)
  videoSize: 1280 * 720 (16:9)
  videoSize: 960 * 720 (4:3)
  videoSize: 720 * 480 (3:2)
  videoSize: 640 * 480 (4:3)
  videoSize: 352 * 288 (11:9)
  videoSize: 320 * 240 (4:3)
  videoSize: 256 * 144 (16:9)
  videoSize: 176 * 144 (11:9)
  </code></pre>
  
  <p>it's saying capture is not available </p>
  
  <pre><code>RawCapture:1
  BurstCapture:1
  </code></pre>
  
  <p>so how I can capture the images and videos? any idea</p>