commit | 96cfebcf7e15b9aae665df7a06309ba2d9a2c430 | [log] [tgz] |
---|---|---|
author | Peiyong Lin <lpy@google.com> | Wed May 15 11:36:13 2019 -0700 |
committer | Peiyong Lin <lpy@google.com> | Wed May 15 11:36:13 2019 -0700 |
tree | 1e5fb54e3a603ed5f64715d105835418353ba5ec | |
parent | 3f8312b5dc975c391f85f90a4a0586ac3c7ac899 [diff] |
[SurfaceFlinger] Allow root to capture screen. If adb is running in root, then uid is AID_ROOT and capture screen will fail. This patch allows root to capture screen. BUG: 132777517 Test: adb shell screencap -d 0 -p /sdcard/test.png produces a valid screenshot Change-Id: Ib6eaad2dffa7a68f4b1fce548814f0c2f172c3fd