mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
TPS650 doesn't have a brand. Fixes #804.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user