List of usage examples for android.os SystemClock setCurrentTimeMillis
public static boolean setCurrentTimeMillis(long millis)
From source file:se.leap.bitmaskclient.test.testVpnCertificateValidator.java
private void setTime(int year, int month, int day) { shellCommand("adb shell chmod 666 /dev/alarm"); Calendar c = Calendar.getInstance(); c.set(year, month, day, 12, 00, 00); SystemClock.setCurrentTimeMillis(c.getTimeInMillis()); shellCommand("adb shell chmod 664 /dev/alarm"); }