0

I am trying to capture screen behaviour. Used screenrecord application to capture screen for 3 minutes but not able to capture a single frame.

screencap works fine.

I have tried to use vysor/scrcpy - input(mouse) events works but no frames/video on PC.

I have AOSP code, i would like to explore the code. i'm looking for pointers to which android framework files i should look.

Oreo 8.0 screenrecord/vysor works.

Oreo 8.1 screenrecord/vysor fails.

logcat:

01-01 04:48:56.479 631 631 W Binder:631_3: type=1400 audit(0.0:176): avc: denied { call } for scontext=u:r:surfaceflinger:s0 tcontext=u:r:mediacodec:s0 tclass=binder permissive=0

01-01 04:48:56.535 416 416 W /system/bin/hwservicemanager: getTransport: getTimeAtTime: vendor.display.config@1.1::IDisplayConfig/default in either framework or device manifest.

01-01 04:48:56.537 416 416 W /system/bin/hwservicemanager: getTransport: Cannot find entry vendor.display.config@1.1::IDisplayConfig/default in either framework or device manifest.

Community
  • 1
  • 1
GBiradar
  • 161
  • 1
  • 11
  • My guess is that your problem is tied to your particular hardware. – CommonsWare Oct 30 '18 at 12:05
  • can confirm no issue with hardware. works fine with oreo 8.0. – GBiradar Oct 30 '18 at 12:06
  • `adb logcat` might show relevant logs to find the actual error – rom1v Oct 30 '18 at 19:38
  • Sorry, by "your particular hardware", I was referring more to the firmware, not the actual chips and stuff. The Android build for that hardware would appear to have some sort of bug or limitation that is causing your difficulty. These tools work for Android 8.1 in general. – CommonsWare Oct 30 '18 at 21:08
  • @rom1v, i have added logcat snip. my doubt is on avc denial. – GBiradar Oct 31 '18 at 04:37
  • https://source.android.com/devices/architecture/configstore ... it is unlikely to be SElinux related, when other values can be read. `build flags defined in the same interface are affected by same SELinux policy.` can you reproduce the issue on an emulator?? – Martin Zeitler Oct 31 '18 at 04:41
  • @MartinZeitler, i have used android studio for screenrecord same result. zero frame captured. – GBiradar Oct 31 '18 at 05:18
  • @GBiradar you'd probably need a rooted device to see the SE Linux audit log - else it's guessing. – Martin Zeitler Oct 31 '18 at 07:06
  • @MartinZeitler, i am using rooted device. I have cross check selinux permission. Allowed permission for surfaceflinger (adb logcat -b all -d | audit2allow -p policy) still issue persist. – GBiradar Oct 31 '18 at 07:09
  • @GBiradar would compare permissions and SE labels on Android 8.0 vs. 8.1 ...just found this answer. https://stackoverflow.com/a/45851810/549372 – Martin Zeitler Oct 31 '18 at 07:25
  • @MartinZeitler, I have updated permissions & labels. I am not getting any avc denial or label issue but still issue persist. – GBiradar Oct 31 '18 at 10:56

0 Answers0