You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing purpose shell getprop ro.product.model returns models as SM-G960F (Galaxy S9) for samsung devices.
Things like Motorola return readable user-friendly names, i.e. Motorola E4 Plus.
But sometimes they don't: XT1635-02 (Motorola Z Play).
I remember all models which i work with by heart. But eye catches easily when you have window named Samsung Galaxy S6 Edge+ (SM-G928F) shell settings get secure bluetooth_name returns almost on every device (Galaxy S4 mini is still GT-9195. But it's initially called like that so doesn't matter) its name if it wasn't changed by user. How reasonable is getting the name from settings?
It's kind of slow. Or maybe i'm doing that wrong. Because if you make loop which gets info about all connected devices
#!/bin/bash
for serial in $(adb devices | awk 'NR>1{print $1}');
do
echo $(adb -s $serial shell settings get secure bluetooth_name | sed "s/\\r//g")
done
it would work significantly slower than
#!/bin/bash
for serial in $(adb devices | awk 'NR>1{print $1}');
do
echo $(adb -s $serial shell getprop ro.product.model | sed "s/\\r//g")
done
The text was updated successfully, but these errors were encountered:
In #573 (comment), the "bluetooth name" could be a variable (like %b) in the custom pattern (not implemented yet).
It's kind of slow.
It's just because you execute settings, so you have the same behavior as input: #231 (comment). In scrcpy, it would be retrieved directly by the server via a method call.
on 0215394544313237: [Phone] Galaxy S6 edge+
on 4200c004ecd5b361: [Phone] Galaxy J5 Prime
on 4ccd2337: Galaxy S4
on 5200b0beb46215cb: [Phone] Galaxy J7 Neo
on 7a58571a: [Phone] Galaxy A5
on abafba0b: [Tablet] Galaxy Tab A
But returns null on Blackberry and Motorola. Probably on other non-samsung devices too. So not an option
UPD:
Went through #573. That would be a nice option to use patterns. Way more flexible. And you can consider list of parameters which could be put in window title through patterns (such as IP address or Android version)
For testing purpose
shell getprop ro.product.model
returns models as SM-G960F (Galaxy S9) for samsung devices.Things like Motorola return readable user-friendly names, i.e. Motorola E4 Plus.
But sometimes they don't: XT1635-02 (Motorola Z Play).
I remember all models which i work with by heart. But eye catches easily when you have window named Samsung Galaxy S6 Edge+ (SM-G928F)
shell settings get secure bluetooth_name
returns almost on every device (Galaxy S4 mini is still GT-9195. But it's initially called like that so doesn't matter) its name if it wasn't changed by user.How reasonable is getting the name from settings?
It's kind of slow. Or maybe i'm doing that wrong. Because if you make loop which gets info about all connected devices
it would work significantly slower than
The text was updated successfully, but these errors were encountered: