Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit d745c87

Browse files
committed
feat(policy): add sim card pin and pin2
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
1 parent 88d7a0c commit d745c87

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

install/policies/phone.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,35 @@
3535

3636
$category = 'Security > Phone';
3737
return [
38+
[
39+
'name' => __('Set a SIM card PIN', 'flyvemdm'),
40+
'symbol' => 'setSimCardPin',
41+
'group' => 'phone',
42+
'type' => 'int',
43+
'type_data' => '',
44+
'unicity' => 1,
45+
'plugin_flyvemdm_policycategories_id' => 'Security > Phone',
46+
'comment' => __('Set a SIM card PIN', 'flyvemdm'),
47+
'default_value' => '0',
48+
'recommended_value' => '0',
49+
'is_android_policy' => '1',
50+
'is_android_system' => '1',
51+
'is_apple_policy' => '0',
52+
],
53+
54+
[
55+
'name' => __('Set a SIM card PIN2', 'flyvemdm'),
56+
'symbol' => 'setSimCardPin2',
57+
'group' => 'phone',
58+
'type' => 'int',
59+
'type_data' => '',
60+
'unicity' => 1,
61+
'plugin_flyvemdm_policycategories_id' => 'Security > Phone',
62+
'comment' => __('Set a SIM card PIN2', 'flyvemdm'),
63+
'default_value' => '0',
64+
'recommended_value' => '0',
65+
'is_android_policy' => '1',
66+
'is_android_system' => '1',
67+
'is_apple_policy' => '0',
68+
],
3869
];

tests/src/Flyvemdm/Tests/CommonTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ public static function policyList() {
587587
'Policy/disableStreamDTMF',
588588
'Policy/disableStreamSystem',
589589
'Policy/defaultStreamType',
590+
'Policy/setSimCardPin',
591+
'Policy/setSimCardPin2',
590592
];
591593
}
592594
}

0 commit comments

Comments
 (0)