platform_frameworks_native/opengl
Yiwei Zhang fe62271bc3 GraphicsEnv: refactor to unify the debuggable logic
By default, PR_SET_DUMPABLE is 0 for zygote spawned apps, except in the
following circumstances:
1. ro.debuggable=1 (global debuggable enabled, i.e., userdebug or eng builds).
2. android:debuggable="true" in the manifest for an individual application.
3. An app which explicitly calls prctl(PR_SET_DUMPABLE, 1).
4. GraphicsEnv calls prctl(PR_SET_DUMPABLE, 1) in the presence of
   <meta-data android:name="com.android.graphics.injectLayers.enable"
              android:value="true"/>
   in the application manifest.

So checking both ro.debuggable=1 and PR_GET_DUMPABLE is redundant.

Bug: b/144186877, b/148566223
Test: CtsAngleIntegrationHostTestCases
Test: CtsRootlessGpuDebugHostTest
Change-Id: I934f64315b67db77ee2c2a9dff50fb23bc0a546a
Merged-In: I934f64315b67db77ee2c2a9dff50fb23bc0a546a
(cherry picked from commit 6a674c9e10)
2020-01-29 21:30:19 -08:00
..
include Update eglext.h for new Display P3 extension. 2018-12-06 20:10:57 -08:00
libagl Convert libGLES_android to Android.bp 2019-02-10 16:45:36 -08:00
libs GraphicsEnv: refactor to unify the debuggable logic 2020-01-29 21:30:19 -08:00
specs Add initial draft of EGL_ANDROID_GLES_layers.txt 2019-03-25 07:56:21 -06:00
tests SF: Plumb physical display IDs to libgui 2019-02-02 10:14:22 -08:00
tools Update stubs to use libnativehelper for java.nio.Buffer access 2019-04-11 16:52:50 +01:00
Android.bp Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDK 2017-09-20 02:50:38 +00:00
OWNERS Add opengl owners 2018-12-21 15:14:42 -08:00