mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 04:53:19 +02:00
Code adapted to the new interface of stf-device-db.
This commit is contained in:
committed by
Simo Kinnunen
parent
f741136aed
commit
760e09290f
@@ -133,6 +133,7 @@ devutil.makeIdentity = function(serial, properties) {
|
||||
, version = properties['ro.build.version.release']
|
||||
, sdk = properties['ro.build.version.sdk']
|
||||
, abi = properties['ro.product.cpu.abi']
|
||||
, name = properties['ro.product.name']
|
||||
|
||||
// Remove brand prefix for consistency
|
||||
if (model.substr(0, brand.length) === brand) {
|
||||
@@ -146,7 +147,6 @@ devutil.makeIdentity = function(serial, properties) {
|
||||
|
||||
// Clean up remaining model name
|
||||
// model = model.replace(/[_ ]/g, '')
|
||||
|
||||
return {
|
||||
serial: serial
|
||||
, platform: 'Android'
|
||||
@@ -156,5 +156,6 @@ devutil.makeIdentity = function(serial, properties) {
|
||||
, version: version
|
||||
, abi: abi
|
||||
, sdk: sdk
|
||||
, name: name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user