Merge "Attempt to clear memory after keyguard PIN entry" into sc-dev am: f16b3f76aa am: e0f027aff9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15502355

Change-Id: I5758f72e763bbd0efd6ddb1debdf4d7faee5b9f9
This commit is contained in:
TreeHugger Robot
2021-08-11 09:58:46 +00:00
committed by Automerger Merge Worker

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,