Merge "Obfuscate any phone numbers that pass through the event log." into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
acd840d5c3
@@ -47,6 +47,7 @@ import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Bitmap.Config;
|
||||
import android.net.Uri;
|
||||
import android.os.Binder;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
@@ -4600,11 +4601,13 @@ final class ActivityStack {
|
||||
|
||||
private final void logStartActivity(int tag, ActivityRecord r,
|
||||
TaskRecord task) {
|
||||
final Uri data = r.intent.getData();
|
||||
final String strData = data != null ? data.toSafeString() : null;
|
||||
|
||||
EventLog.writeEvent(tag,
|
||||
r.userId, System.identityHashCode(r), task.taskId,
|
||||
r.shortComponentName, r.intent.getAction(),
|
||||
r.intent.getType(), r.intent.getDataString(),
|
||||
r.intent.getFlags());
|
||||
r.intent.getType(), strData, r.intent.getFlags());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user