Skip to content

Commit

Permalink
testVersionFor#18
Browse files Browse the repository at this point in the history
  • Loading branch information
rijul-ahuja committed Feb 1, 2017
1 parent 2c89b44 commit e02037b
Show file tree
Hide file tree
Showing 9 changed files with 3,582 additions and 19 deletions.
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

12 changes: 3 additions & 9 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ android {
applicationId "me.rijul.knockcode"
minSdkVersion 21
targetSdkVersion 22
versionCode 48
versionName "1.4.8"
versionCode 49
versionName "1.4.9 test-fix-lp"
}
buildTypes {
release {
Expand Down
12 changes: 11 additions & 1 deletion app/src/main/java/me/rijul/knockcode/KeyguardKnockView.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public void run() {
} else if (mTappedPositions.size()==mPasscode.size()) {
if (mTappedPositions.equals(mPasscode)) {
CustomLogger.log(getContext(), "Lockscreen", "Success", "Unlocked", "Launched nothing", -1);
XposedHelpers.callMethod(mLockPatternUtils, "reportSuccessfulPasswordAttempt", (int) XposedHelpers.callMethod(mKeyguardUpdateMonitor, "getCurrentUser"));
callTrue();
mLockButtonView.enableButtons(false);
if (mSettingsHelper.showCorrectText())
mTextView.setText(mSettingsHelper.getCorrectText());
Expand Down Expand Up @@ -471,6 +471,16 @@ public void run() {
}
}

private void callTrue() {
XposedHelpers.callMethod(mKeyguardUpdateMonitor, "clearFailedUnlockAttempts");
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) {
XposedHelpers.callMethod(mLockPatternUtils, "reportSuccessfulPasswordAttempt", (int) XposedHelpers.callMethod(mKeyguardUpdateMonitor, "getCurrentUser"));
}
else {
XposedHelpers.callMethod(mLockPatternUtils, "reportSuccessfulPasswordAttempt");
}
}

private void callFalse() {
mTotalFailedPatternAttempts++;
mFailedPatternAttemptsSinceLastTimeout++;
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
8 changes: 6 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Mon Apr 11 12:37:07 IST 2016
#Wed Feb 01 19:26:38 IST 2017
systemProp.https.proxyPort=3128
systemProp.http.proxyHost=proxy22.iitd.ernet.in
systemProp.https.proxyHost=proxy22.iitd.ernet.in
systemProp.http.proxyPort=3128
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Apr 16 19:09:15 IST 2016
#Wed Feb 01 19:27:38 IST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Loading

0 comments on commit e02037b

Please sign in to comment.