Merge "Remove the access to net.hostname" into rvc-dev am: 7461d0bc38

Change-Id: I6db35ab5adec9bed3f16424871153ec8265f430d
This commit is contained in:
Automerger Merge Worker
2020-03-14 01:13:45 +00:00

View File

@@ -16,10 +16,7 @@ namespace wvoec3 {
const char *getUniqueID(size_t *len) {
static std::string unique_id;
unique_id = android::base::GetProperty("ro.serialno", "");
if (unique_id.empty()) {
unique_id = android::base::GetProperty("net.hostname", "0123456789abc");
}
unique_id = android::base::GetProperty("ro.serialno", "0123456789abc");
#if defined(IN_APP_FASTBALL) || defined(IN_APP_MOVIES)
unique_id += android::base::GetProperty("package.name", "com.google.inapp");
#endif