mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
TPS650 doesn't have a brand. Fixes #804.
This commit is contained in:
parent
2dac3d1bbd
commit
31b3205100
2 changed files with 9 additions and 2 deletions
|
@ -109,8 +109,9 @@ devutil.makeIdentity = function(serial, properties) {
|
|||
var product = properties['ro.product.name']
|
||||
var cpuPlatform = properties['ro.board.platform']
|
||||
|
||||
// Remove brand prefix for consistency
|
||||
if (model.substr(0, brand.length) === brand) {
|
||||
// Remove brand prefix for consistency. Note that some devices (e.g. TPS650)
|
||||
// do not expose the brand property.
|
||||
if (brand && model.substr(0, brand.length) === brand) {
|
||||
model = model.substr(brand.length)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue