Add EventLog to report lock screen type
Bug: 9075747 Change-Id: I7d3667211e76b13ccd659713c35ca86246e31e0b
This commit is contained in:
@@ -6,7 +6,9 @@ LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13 jsr305
|
|||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
LOCAL_SRC_FILES := \
|
||||||
|
$(call all-java-files-under, src) \
|
||||||
|
src/com/android/settings/EventLogTags.logtags
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := Settings
|
LOCAL_PACKAGE_NAME := Settings
|
||||||
LOCAL_CERTIFICATE := platform
|
LOCAL_CERTIFICATE := platform
|
||||||
|
@@ -28,6 +28,7 @@ import android.preference.Preference;
|
|||||||
import android.preference.PreferenceActivity;
|
import android.preference.PreferenceActivity;
|
||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.security.KeyStore;
|
import android.security.KeyStore;
|
||||||
|
import android.util.EventLog;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -122,6 +123,9 @@ public class ChooseLockGeneric extends PreferenceActivity {
|
|||||||
Preference preference) {
|
Preference preference) {
|
||||||
final String key = preference.getKey();
|
final String key = preference.getKey();
|
||||||
boolean handled = true;
|
boolean handled = true;
|
||||||
|
|
||||||
|
EventLog.writeEvent(EventLogTags.LOCK_SCREEN_TYPE, key);
|
||||||
|
|
||||||
if (KEY_UNLOCK_SET_OFF.equals(key)) {
|
if (KEY_UNLOCK_SET_OFF.equals(key)) {
|
||||||
updateUnlockMethodAndFinish(
|
updateUnlockMethodAndFinish(
|
||||||
DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, true);
|
DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, true);
|
||||||
|
6
src/com/android/settings/EventLogTags.logtags
Normal file
6
src/com/android/settings/EventLogTags.logtags
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# See system/core/logcat/event.logtags for a description of the format of this file.
|
||||||
|
|
||||||
|
option java_package com.android.settings
|
||||||
|
|
||||||
|
# log the type of screen lock when user sets lock screen
|
||||||
|
90200 lock_screen_type (type|3)
|
Reference in New Issue
Block a user