Merge "NativeTombstoneManager: track proto change."
This commit is contained in:
@@ -392,7 +392,7 @@ public final class NativeTombstoneManager {
|
|||||||
|
|
||||||
int pid = 0;
|
int pid = 0;
|
||||||
int uid = 0;
|
int uid = 0;
|
||||||
String processName = "";
|
String processName = null;
|
||||||
String crashReason = "";
|
String crashReason = "";
|
||||||
String selinuxLabel = "";
|
String selinuxLabel = "";
|
||||||
|
|
||||||
@@ -407,8 +407,10 @@ public final class NativeTombstoneManager {
|
|||||||
uid = stream.readInt(Tombstone.UID);
|
uid = stream.readInt(Tombstone.UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (int) Tombstone.PROCESS_NAME:
|
case (int) Tombstone.COMMAND_LINE:
|
||||||
processName = stream.readString(Tombstone.PROCESS_NAME);
|
if (processName == null) {
|
||||||
|
processName = stream.readString(Tombstone.COMMAND_LINE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (int) Tombstone.CAUSES:
|
case (int) Tombstone.CAUSES:
|
||||||
@@ -472,7 +474,7 @@ public final class NativeTombstoneManager {
|
|||||||
result.mAppId = appId;
|
result.mAppId = appId;
|
||||||
result.mPid = pid;
|
result.mPid = pid;
|
||||||
result.mUid = uid;
|
result.mUid = uid;
|
||||||
result.mProcessName = processName;
|
result.mProcessName = processName == null ? "" : processName;
|
||||||
result.mTimestampMs = timestampMs;
|
result.mTimestampMs = timestampMs;
|
||||||
result.mCrashReason = crashReason;
|
result.mCrashReason = crashReason;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user