如何在Android emulator中更改manufacturer属性?

如何在Android emulator中更改manufacturer属性?,android,emulation,Android,Emulation,我正在运行Android Studio软件附带的Android模拟器。我创建了一个基于像素2的AVD。打开ADB外壳,我得到: $ getprop ro.product.manufacturer unknown 我想更改作为propertyro.product.manufacturer返回的字符串,因为我有一个应用程序拒绝在“未知”设备上运行。我该怎么做 AVD的文件config.ini有一行 hw.device.manufacturer=Google 但这似乎不是一回事。尽管有老问题,我还

我正在运行Android Studio软件附带的Android模拟器。我创建了一个基于像素2的AVD。打开ADB外壳,我得到:

$ getprop ro.product.manufacturer
unknown
我想更改作为property
ro.product.manufacturer
返回的字符串,因为我有一个应用程序拒绝在“未知”设备上运行。我该怎么做

AVD的文件
config.ini
有一行

hw.device.manufacturer=Google

但这似乎不是一回事。

尽管有老问题,我还是会回答它,因为它可能对搜索时的人有用

您是否尝试过使用:

$adb shell su root setprop

??

尽管有这个老问题,我还是会回答它,因为它可能对搜索时的人有用

您是否尝试过使用:

$adb shell su root setprop