Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiltle: Marketname instead Product name #5653

Open
webinizam opened this issue Dec 11, 2024 · 1 comment
Open

Tiltle: Marketname instead Product name #5653

webinizam opened this issue Dec 11, 2024 · 1 comment

Comments

@webinizam
Copy link

Hi,

I have POCO X6 Pro 5G but in scrcpy window title is 2311DRK48G, is it possible to be ro.product.marketname (POCO X6 Pro 5G) instead ro.product.product (2311DRK48G) like when I use it as OTG (POCO X6 Pro 5G), when I start it as UHID also see (2311DRK48G) ?

Thanks and keep up the good work!

@rom1v
Copy link
Collaborator

rom1v commented Dec 11, 2024

Scrcpy uses Build.MODEL, which is ro.product.model.

For many devices, ro.product.marketplace does not exist. For example, here are the values for a Pixel 8:

$ adb shell getprop | grep ro\.product | grep -v 'build\|ota'
[ro.product.board]: [shiba]
[ro.product.bootimage.brand]: [google]
[ro.product.bootimage.device]: [shiba]
[ro.product.bootimage.manufacturer]: [Google]
[ro.product.bootimage.model]: [Pixel 8]
[ro.product.bootimage.name]: [shiba]
[ro.product.brand]: [google]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a]
[ro.product.cpu.abilist32]: []
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.cpu.pagesize.max]: [16384]
[ro.product.device]: [shiba]
[ro.product.first_api_level]: [34]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [Google]
[ro.product.model]: [Pixel 8]
[ro.product.name]: [shiba]
[ro.product.odm.brand]: [google]
[ro.product.odm.device]: [shiba]
[ro.product.odm.manufacturer]: [Google]
[ro.product.odm.model]: [Pixel 8]
[ro.product.odm.name]: [shiba]
[ro.product.product.brand]: [google]
[ro.product.product.device]: [shiba]
[ro.product.product.manufacturer]: [Google]
[ro.product.product.model]: [Pixel 8]
[ro.product.product.name]: [shiba]
[ro.product.system.brand]: [google]
[ro.product.system.device]: [generic]
[ro.product.system.manufacturer]: [Google]
[ro.product.system.model]: [mainline]
[ro.product.system.name]: [mainline]
[ro.product.system_dlkm.brand]: [google]
[ro.product.system_dlkm.device]: [shiba]
[ro.product.system_dlkm.manufacturer]: [Google]
[ro.product.system_dlkm.model]: [Pixel 8]
[ro.product.system_dlkm.name]: [shiba]
[ro.product.system_ext.brand]: [google]
[ro.product.system_ext.device]: [shiba]
[ro.product.system_ext.manufacturer]: [Google]
[ro.product.system_ext.model]: [Pixel 8]
[ro.product.system_ext.name]: [shiba]
[ro.product.vendor.brand]: [google]
[ro.product.vendor.device]: [shiba]
[ro.product.vendor.manufacturer]: [Google]
[ro.product.vendor.model]: [Pixel 8]
[ro.product.vendor.name]: [shiba]
[ro.product.vendor_dlkm.brand]: [google]
[ro.product.vendor_dlkm.device]: [shiba]
[ro.product.vendor_dlkm.manufacturer]: [Google]
[ro.product.vendor_dlkm.model]: [Pixel 8]
[ro.product.vendor_dlkm.name]: [shiba]

For a Nexus 5:

$ adb shell getprop | grep ro\.product
[ro.product.board]: [hammerhead]
[ro.product.brand]: [google]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abilist]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.device]: [hammerhead]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [LGE]
[ro.product.model]: [Nexus 5]
[ro.product.name]: [hammerhead]

For a Samsung Galaxy A8:

$ adb shell getprop | grep ro\.product | grep -v 'build'
[ro.product.assistanttouch]: [false]
[ro.product.board]: [ums512_25c10]
[ro.product.brand]: [samsung]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.cpu.pagesize.max]: [4096]
[ro.product.device]: [gta8wifi]
[ro.product.device_for_attestation]: [gta8wifi]
[ro.product.first_api_level]: [30]
[ro.product.locale]: [en-GB]
[ro.product.manufacturer]: [samsung]
[ro.product.model]: [SM-X200]
[ro.product.name]: [gta8wifieea]
[ro.product.odm.brand]: [samsung]
[ro.product.odm.device]: [gta8wifi]
[ro.product.odm.manufacturer]: [samsung]
[ro.product.odm.model]: [SM-X200]
[ro.product.odm.name]: [gta8wifixx]
[ro.product.product.brand]: [samsung]
[ro.product.product.device]: [gta8wifi]
[ro.product.product.manufacturer]: [samsung]
[ro.product.product.model]: [SM-X200]
[ro.product.product.name]: [gta8wifixx]
[ro.product.system.brand]: [samsung]
[ro.product.system.device]: [gta8wifi]
[ro.product.system.manufacturer]: [samsung]
[ro.product.system.model]: [SM-X200]
[ro.product.system.name]: [gta8wifixx]
[ro.product.system_ext.brand]: [samsung]
[ro.product.system_ext.device]: [gta8wifi]
[ro.product.system_ext.manufacturer]: [samsung]
[ro.product.system_ext.model]: [SM-X200]
[ro.product.system_ext.name]: [gta8wifixx]
[ro.product.vendor.brand]: [samsung]
[ro.product.vendor.device]: [gta8wifi]
[ro.product.vendor.manufacturer]: [samsung]
[ro.product.vendor.model]: [SM-X200]
[ro.product.vendor.name]: [gta8wifixx]
[ro.product.vndk.version]: [30]
[ro.product_ship]: [true]

Note that as a workaround, you can set a custom name (a constant string) with --window-title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants