@@ -42,6 +42,30 @@ public class ProcessLogsFragment extends ListFragment {
42
42
43
43
private static final String TAG = "ProcessLogsFragment" ;
44
44
45
+ // TODO: remove when it lands in the SDK:
46
+ private static final int TAG_OS_STARTUP = 210009 ;
47
+ private static final int TAG_OS_SHUTDOWN = 210010 ;
48
+ private static final int TAG_LOGGING_STARTED = 210011 ;
49
+ private static final int TAG_LOGGING_STOPPED = 210012 ;
50
+ private static final int TAG_MEDIA_MOUNTED = 210013 ;
51
+ private static final int TAG_MEDIA_UNMOUNTED = 210014 ;
52
+ private static final int TAG_LOG_BUFFER_SIZE_CRITICAL = 210015 ;
53
+ private static final int TAG_PASSWORD_EXPIRATION_SET = 210016 ;
54
+ private static final int TAG_PASSWORD_COMPLEXITY_SET = 210017 ;
55
+ private static final int TAG_PASSWORD_HISTORY_LENGTH_SET = 210018 ;
56
+ private static final int TAG_MAX_SCREEN_LOCK_TIMEOUT_SET = 210019 ;
57
+ private static final int TAG_MAX_PASSWORD_ATTEMPTS_SET = 210020 ;
58
+ private static final int TAG_KEYGUARD_DISABLED_FEATURES_SET = 210021 ;
59
+ private static final int TAG_REMOTE_LOCK = 210022 ;
60
+ private static final int TAG_WIPE_FAILED = 210023 ;
61
+ private static final int TAG_KEY_GENERATED = 210024 ;
62
+ private static final int TAG_KEY_IMPORTED = 210025 ;
63
+ private static final int TAG_KEY_DESTROYED = 210026 ;
64
+ private static final int TAG_USER_RESTRICTION_ADDED = 210027 ;
65
+ private static final int TAG_USER_RESTRICTION_REMOVED = 210028 ;
66
+ private static final int TAG_CERT_AUTHORITY_INSTALLED = 210029 ;
67
+ private static final int TAG_CERT_AUTHORITY_REMOVED = 210030 ;
68
+
45
69
private ArrayList <String > mLogs = new ArrayList <String >();
46
70
private ArrayAdapter <String > mAdapter ;
47
71
@@ -127,8 +151,74 @@ private String getStringEventTagFromId(int eventId) {
127
151
case SecurityLog .TAG_KEYGUARD_SECURED :
128
152
eventTag = "KEYGUARD_SECURED" ;
129
153
break ;
154
+ case TAG_OS_STARTUP :
155
+ eventTag = "OS_STARTUP" ;
156
+ break ;
157
+ case TAG_OS_SHUTDOWN :
158
+ eventTag = "OS_SHUTDOWN" ;
159
+ break ;
160
+ case TAG_LOGGING_STARTED :
161
+ eventTag = "LOGGING_STARTED" ;
162
+ break ;
163
+ case TAG_LOGGING_STOPPED :
164
+ eventTag = "LOGGING_STOPPED" ;
165
+ break ;
166
+ case TAG_MEDIA_MOUNTED :
167
+ eventTag = "MEDIA_MOUNTED" ;
168
+ break ;
169
+ case TAG_MEDIA_UNMOUNTED :
170
+ eventTag = "MEDIA_UNMOUNTED" ;
171
+ break ;
172
+ case TAG_LOG_BUFFER_SIZE_CRITICAL :
173
+ eventTag = "LOG_BUFFER_SIZE_CRITICAL" ;
174
+ break ;
175
+ case TAG_PASSWORD_EXPIRATION_SET :
176
+ eventTag = "PASSWORD_EXPIRATION_SET" ;
177
+ break ;
178
+ case TAG_PASSWORD_COMPLEXITY_SET :
179
+ eventTag = "PASSWORD_COMPLEXITY_SET" ;
180
+ break ;
181
+ case TAG_PASSWORD_HISTORY_LENGTH_SET :
182
+ eventTag = "PASSWORD_HISTORY_LENGTH_SET" ;
183
+ break ;
184
+ case TAG_MAX_SCREEN_LOCK_TIMEOUT_SET :
185
+ eventTag = "MAX_SCREEN_LOCK_TIMEOUT_SET" ;
186
+ break ;
187
+ case TAG_MAX_PASSWORD_ATTEMPTS_SET :
188
+ eventTag = "MAX_PASSWORD_ATTEMPTS_SET" ;
189
+ break ;
190
+ case TAG_KEYGUARD_DISABLED_FEATURES_SET :
191
+ eventTag = "KEYGUARD_DISABLED_FEATURES_SET" ;
192
+ break ;
193
+ case TAG_REMOTE_LOCK :
194
+ eventTag = "REMOTE_LOCK" ;
195
+ break ;
196
+ case TAG_WIPE_FAILED :
197
+ eventTag = "WIPE_FAILED" ;
198
+ break ;
199
+ case TAG_KEY_GENERATED :
200
+ eventTag = "KEY_GENERATED" ;
201
+ break ;
202
+ case TAG_KEY_IMPORTED :
203
+ eventTag = "KEY_IMPORTED" ;
204
+ break ;
205
+ case TAG_KEY_DESTROYED :
206
+ eventTag = "KEY_DESTROYED" ;
207
+ break ;
208
+ case TAG_USER_RESTRICTION_ADDED :
209
+ eventTag = "USER_RESTRICTION_ADDED" ;
210
+ break ;
211
+ case TAG_USER_RESTRICTION_REMOVED :
212
+ eventTag = "USER_RESTRICTION_REMOVED" ;
213
+ break ;
214
+ case TAG_CERT_AUTHORITY_INSTALLED :
215
+ eventTag = "CERT_AUTHORITY_INSTALLED" ;
216
+ break ;
217
+ case TAG_CERT_AUTHORITY_REMOVED :
218
+ eventTag = "CERT_AUTHORITY_REMOVED" ;
219
+ break ;
130
220
default :
131
- eventTag = "UNKNOWN" ;
221
+ eventTag = "UNKNOWN(" + eventId + ") " ;
132
222
}
133
223
return eventTag ;
134
224
}
0 commit comments