修改系统源码下,system\core\adb\shell_service.cpp
static std::string GetHostName() {
char buf[HOST_NAME_MAX];
if (gethostname(buf, sizeof(buf)) != -1 && strcmp(buf, "localhost") != 0) return buf;
return android::base::GetProperty("ro.product.model", "你想修改的adb名称"); //改动这一行就行了
}