Merge "Remove the access to net.hostname" into rvc-dev

This commit is contained in:
Cong Lin
2020-03-14 00:55:08 +00:00
committed by Android (Google) Code Review

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