Commit a3acf85
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: Ica49254df2c7c090808411935cdeb8efd4e3cb51
Merged-In: Ica49254df2c7c090808411935cdeb8efd4e3cb51
(cherry picked from commit 097a306)1 parent 7a091e3 commit a3acf85
2 files changed
Lines changed: 9 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 175 | | |
183 | 176 | | |
184 | 177 | | |
| |||
233 | 226 | | |
234 | 227 | | |
235 | 228 | | |
236 | | - | |
| 229 | + | |
237 | 230 | | |
238 | 231 | | |
239 | 232 | | |
| |||
414 | 407 | | |
415 | 408 | | |
416 | 409 | | |
417 | | - | |
418 | | - | |
419 | | - | |
| 410 | + | |
420 | 411 | | |
421 | 412 | | |
422 | 413 | | |
| |||
451 | 442 | | |
452 | 443 | | |
453 | 444 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 445 | + | |
| 446 | + | |
460 | 447 | | |
461 | 448 | | |
462 | 449 | | |
| |||
725 | 712 | | |
726 | 713 | | |
727 | 714 | | |
728 | | - | |
| 715 | + | |
729 | 716 | | |
730 | 717 | | |
731 | 718 | | |
| |||
901 | 888 | | |
902 | 889 | | |
903 | 890 | | |
904 | | - | |
| 891 | + | |
905 | 892 | | |
906 | 893 | | |
907 | 894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments