Merge "Attempt to clear memory after keyguard PIN entry" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-08-11 09:32:35 +00:00
committed by Android (Google) Code Review

View File

@@ -146,7 +146,9 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard
try { try {
Thread.sleep(5000); Thread.sleep(5000);
} catch (InterruptedException ignored) { } } catch (InterruptedException ignored) { }
Runtime.getRuntime().gc(); System.gc();
System.runFinalization();
System.gc();
}); });
} else { } else {
SysUiStatsLog.write(SysUiStatsLog.KEYGUARD_BOUNCER_PASSWORD_ENTERED, SysUiStatsLog.write(SysUiStatsLog.KEYGUARD_BOUNCER_PASSWORD_ENTERED,