Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 96cfebcf authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[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
parent 3f8312b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment