mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Add IMSI to device details.
This commit is contained in:
parent
a4334c56b8
commit
5839867619
9 changed files with 19 additions and 1 deletions
|
@ -11,6 +11,7 @@ module.exports = syrup.serial()
|
||||||
log.info('Fetching phone info')
|
log.info('Fetching phone info')
|
||||||
return service.getProperties([
|
return service.getProperties([
|
||||||
'imei'
|
'imei'
|
||||||
|
, 'imsi'
|
||||||
, 'phoneNumber'
|
, 'phoneNumber'
|
||||||
, 'iccid'
|
, 'iccid'
|
||||||
, 'network'
|
, 'network'
|
||||||
|
|
|
@ -17,7 +17,7 @@ module.exports = syrup.serial()
|
||||||
pathutil.vendor('STFService/wire.proto'))
|
pathutil.vendor('STFService/wire.proto'))
|
||||||
|
|
||||||
var resource = {
|
var resource = {
|
||||||
requiredVersion: '1.1.0'
|
requiredVersion: '2.0.0'
|
||||||
, pkg: 'jp.co.cyberagent.stf'
|
, pkg: 'jp.co.cyberagent.stf'
|
||||||
, main: 'jp.co.cyberagent.stf.Agent'
|
, main: 'jp.co.cyberagent.stf.Agent'
|
||||||
, apk: pathutil.vendor('STFService/STFService.apk')
|
, apk: pathutil.vendor('STFService/STFService.apk')
|
||||||
|
|
|
@ -44,6 +44,7 @@ module.exports.generate = function(wantedModel) {
|
||||||
, phone: {
|
, phone: {
|
||||||
iccid: '1234567890123456789'
|
iccid: '1234567890123456789'
|
||||||
, imei: '123456789012345'
|
, imei: '123456789012345'
|
||||||
|
, imsi: '123456789012345'
|
||||||
, network: 'LTE'
|
, network: 'LTE'
|
||||||
, phoneNumber: '0000000000'
|
, phoneNumber: '0000000000'
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,6 +208,7 @@ message DeviceBrowserMessage {
|
||||||
|
|
||||||
message DevicePhoneMessage {
|
message DevicePhoneMessage {
|
||||||
optional string imei = 1;
|
optional string imei = 1;
|
||||||
|
optional string imsi = 5;
|
||||||
optional string phoneNumber = 2;
|
optional string phoneNumber = 2;
|
||||||
optional string iccid = 3;
|
optional string iccid = 3;
|
||||||
optional string network = 4;
|
optional string network = 4;
|
||||||
|
|
|
@ -139,6 +139,9 @@
|
||||||
tr
|
tr
|
||||||
td(translate) IMEI
|
td(translate) IMEI
|
||||||
td {{device.phone.imei}}
|
td {{device.phone.imei}}
|
||||||
|
tr
|
||||||
|
td(translate) IMSI
|
||||||
|
td {{device.phone.imsi}}
|
||||||
tr
|
tr
|
||||||
td(translate) ICCID
|
td(translate) ICCID
|
||||||
td
|
td
|
||||||
|
|
|
@ -192,6 +192,12 @@ module.exports = function DeviceColumnService($filter, gettext) {
|
||||||
return device.phone ? device.phone.imei : ''
|
return device.phone ? device.phone.imei : ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
, imsi: TextCell({
|
||||||
|
title: gettext('Phone IMSI')
|
||||||
|
, value: function(device) {
|
||||||
|
return device.phone ? device.phone.imsi : ''
|
||||||
|
}
|
||||||
|
})
|
||||||
, iccid: TextCell({
|
, iccid: TextCell({
|
||||||
title: gettext('Phone ICCID')
|
title: gettext('Phone ICCID')
|
||||||
, value: function(device) {
|
, value: function(device) {
|
||||||
|
|
|
@ -75,6 +75,10 @@ module.exports = function DeviceListCtrl(
|
||||||
name: 'imei'
|
name: 'imei'
|
||||||
, selected: false
|
, selected: false
|
||||||
}
|
}
|
||||||
|
, {
|
||||||
|
name: 'imsi'
|
||||||
|
, selected: false
|
||||||
|
}
|
||||||
, {
|
, {
|
||||||
name: 'iccid'
|
name: 'iccid'
|
||||||
, selected: false
|
, selected: false
|
||||||
|
|
BIN
vendor/STFService/STFService.apk
vendored
BIN
vendor/STFService/STFService.apk
vendored
Binary file not shown.
2
vendor/STFService/wire.proto
vendored
2
vendor/STFService/wire.proto
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
package jp.co.cyberagent.stf.proto;
|
package jp.co.cyberagent.stf.proto;
|
||||||
|
|
||||||
option java_outer_classname = "Wire";
|
option java_outer_classname = "Wire";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue