Merge "Use isProfileable rather than privateFlagsExt."

This commit is contained in:
TreeHugger Robot
2022-02-10 17:21:58 +00:00
committed by Android (Google) Code Review

View File

@@ -1918,7 +1918,7 @@ public final class ProcessList {
if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_PROFILEABLE_BY_SHELL) != 0) { if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_PROFILEABLE_BY_SHELL) != 0) {
runtimeFlags |= Zygote.PROFILE_FROM_SHELL; runtimeFlags |= Zygote.PROFILE_FROM_SHELL;
} }
if ((app.info.privateFlagsExt & ApplicationInfo.PRIVATE_FLAG_EXT_PROFILEABLE) != 0) { if (app.info.isProfileable()) {
runtimeFlags |= Zygote.PROFILEABLE; runtimeFlags |= Zygote.PROFILEABLE;
} }
if ("1".equals(SystemProperties.get("debug.checkjni"))) { if ("1".equals(SystemProperties.get("debug.checkjni"))) {