GraphicsEnvironment: No debug ANGLE packages for profileable apps

An app opting in to "profileable" does not mean we should
allow it to load ANGLE libraries from the debug package.

Bug: 128637647
Test: atest CtsGpuToolsHostTestCases
Change-Id: I5c6ea33a1e1624e006bc4865bc0a06ea92d9d806
This commit is contained in:
Cody Northrop
2019-05-28 12:18:44 -06:00
parent c558c0c15a
commit 32adba4537

View File

@@ -466,9 +466,8 @@ public class GraphicsEnvironment {
*/
private String getAngleDebugPackage(Context context, Bundle coreSettings) {
final boolean appIsDebuggable = isDebuggable(context);
final boolean appIsProfileable = isProfileable(context);
final boolean deviceIsDebuggable = getCanLoadSystemLibraries() == 1;
if (appIsDebuggable || appIsProfileable || deviceIsDebuggable) {
if (appIsDebuggable || deviceIsDebuggable) {
String debugPackage;
if (coreSettings != null) {