Add EventLog to report lock screen type

Bug: 9075747
Change-Id: I7d3667211e76b13ccd659713c35ca86246e31e0b
This commit is contained in:
rich cannings
2013-05-29 14:54:58 -07:00
parent 747f726caf
commit 27d6f8d54b
3 changed files with 13 additions and 1 deletions

View File

@@ -6,7 +6,9 @@ LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13 jsr305
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_CERTIFICATE := platform

View File

@@ -28,6 +28,7 @@ import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
import android.security.KeyStore;
import android.util.EventLog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -122,6 +123,9 @@ public class ChooseLockGeneric extends PreferenceActivity {
Preference preference) {
final String key = preference.getKey();
boolean handled = true;
EventLog.writeEvent(EventLogTags.LOCK_SCREEN_TYPE, key);
if (KEY_UNLOCK_SET_OFF.equals(key)) {
updateUnlockMethodAndFinish(
DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, true);

View 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)