1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Add IMSI to device details.

This commit is contained in:
Simo Kinnunen 2017-01-13 13:52:11 +09:00
parent a4334c56b8
commit 5839867619
9 changed files with 19 additions and 1 deletions

View file

@ -11,6 +11,7 @@ module.exports = syrup.serial()
log.info('Fetching phone info')
return service.getProperties([
'imei'
, 'imsi'
, 'phoneNumber'
, 'iccid'
, 'network'

View file

@ -17,7 +17,7 @@ module.exports = syrup.serial()
pathutil.vendor('STFService/wire.proto'))
var resource = {
requiredVersion: '1.1.0'
requiredVersion: '2.0.0'
, pkg: 'jp.co.cyberagent.stf'
, main: 'jp.co.cyberagent.stf.Agent'
, apk: pathutil.vendor('STFService/STFService.apk')

View file

@ -44,6 +44,7 @@ module.exports.generate = function(wantedModel) {
, phone: {
iccid: '1234567890123456789'
, imei: '123456789012345'
, imsi: '123456789012345'
, network: 'LTE'
, phoneNumber: '0000000000'
}

View file

@ -208,6 +208,7 @@ message DeviceBrowserMessage {
message DevicePhoneMessage {
optional string imei = 1;
optional string imsi = 5;
optional string phoneNumber = 2;
optional string iccid = 3;
optional string network = 4;

View file

@ -139,6 +139,9 @@
tr
td(translate) IMEI
td {{device.phone.imei}}
tr
td(translate) IMSI
td {{device.phone.imsi}}
tr
td(translate) ICCID
td

View file

@ -192,6 +192,12 @@ module.exports = function DeviceColumnService($filter, gettext) {
return device.phone ? device.phone.imei : ''
}
})
, imsi: TextCell({
title: gettext('Phone IMSI')
, value: function(device) {
return device.phone ? device.phone.imsi : ''
}
})
, iccid: TextCell({
title: gettext('Phone ICCID')
, value: function(device) {

View file

@ -75,6 +75,10 @@ module.exports = function DeviceListCtrl(
name: 'imei'
, selected: false
}
, {
name: 'imsi'
, selected: false
}
, {
name: 'iccid'
, selected: false

Binary file not shown.

View file

@ -1,3 +1,5 @@
syntax = "proto2";
package jp.co.cyberagent.stf.proto;
option java_outer_classname = "Wire";