1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Code adapted to the new interface of stf-device-db.

This commit is contained in:
Valverde Antonio 2014-06-13 11:36:43 +09:00 committed by Simo Kinnunen
parent f741136aed
commit 760e09290f
5 changed files with 11 additions and 5 deletions

View file

@ -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
}
}