Skip to content

Commit

Permalink
Add IMSI to device details.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Jan 13, 2017
1 parent a4334c5 commit 5839867
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/units/device/plugins/util/phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = syrup.serial()
log.info('Fetching phone info')
return service.getProperties([
'imei'
, 'imsi'
, 'phoneNumber'
, 'iccid'
, 'network'
Expand Down
2 changes: 1 addition & 1 deletion lib/units/device/resources/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions lib/util/fakedevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports.generate = function(wantedModel) {
, phone: {
iccid: '1234567890123456789'
, imei: '123456789012345'
, imsi: '123456789012345'
, network: 'LTE'
, phoneNumber: '0000000000'
}
Expand Down
1 change: 1 addition & 0 deletions lib/wire/wire.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions res/app/control-panes/info/info.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions res/app/device-list/column/device-column-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions res/app/device-list/device-list-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ module.exports = function DeviceListCtrl(
name: 'imei'
, selected: false
}
, {
name: 'imsi'
, selected: false
}
, {
name: 'iccid'
, selected: false
Expand Down
Binary file modified vendor/STFService/STFService.apk
Binary file not shown.
2 changes: 2 additions & 0 deletions vendor/STFService/wire.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

package jp.co.cyberagent.stf.proto;

option java_outer_classname = "Wire";
Expand Down

0 comments on commit 5839867

Please sign in to comment.