mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 05:15:34 +00:00
[Android]: Remove __system_property_get(ro.build.fingerprint) from WriteOSInformation.
__system_property_get has been removed from the Android NDK for 'L' so Breakpad no longer links. This CL just removes the call in WriteOSInformation because Chrome already passes the build fingerprint as a crash key called "android_build_fp" in the crash report HTTP POST message. BUG=394841,393903 R=mark@chromium.org Review URL: https://breakpad.appspot.com/1694002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1351 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
6c57bc19a5
commit
8703844b3c
|
@ -1758,23 +1758,6 @@ class MinidumpWriter {
|
|||
space_left -= info_len;
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
// On Android, try to get the build fingerprint and append it.
|
||||
// Fail gracefully because there is no guarantee that the system
|
||||
// property will always be available or accessible.
|
||||
char fingerprint[PROP_VALUE_MAX];
|
||||
int fingerprint_len = __system_property_get("ro.build.fingerprint",
|
||||
fingerprint);
|
||||
// System property values shall always be zero-terminated.
|
||||
// Be paranoid and don't trust the system.
|
||||
if (fingerprint_len > 0 && fingerprint_len < PROP_VALUE_MAX) {
|
||||
const char* separator = " ";
|
||||
if (!first_item)
|
||||
my_strlcat(buf, separator, sizeof(buf));
|
||||
my_strlcat(buf, fingerprint, sizeof(buf));
|
||||
}
|
||||
#endif
|
||||
|
||||
MDLocationDescriptor location;
|
||||
if (!minidump_writer_.WriteString(buf, 0, &location))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue