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

WIP Add SIM card PIN policy #457

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions install/policies/phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,39 @@

$category = 'Security > Phone';
return [
[
'name' => __('Set a SIM card PIN', 'flyvemdm'),
'symbol' => 'setSimCardPin',
'group' => 'phone',
'type' => 'int',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > Phone',
'comment' => __('Set a SIM card PIN', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_system' => '1',
'android_min_version' => '1.6',
'android_max_version' => '0',
'apple_min_version' => '0',
'apple_max_version' => '0',
],

[
'name' => __('Set a SIM card PIN2', 'flyvemdm'),
'symbol' => 'setSimCardPin2',
'group' => 'phone',
'type' => 'int',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > Phone',
'comment' => __('Set a SIM card PIN2', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_system' => '1',
'android_min_version' => '1.6',
'android_max_version' => '0',
'apple_min_version' => '0',
'apple_max_version' => '0',
],
];
2 changes: 2 additions & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ public static function policyList() {
'Policy/disableStreamSystem',
'Policy/defaultStreamType',
'Policy/periodicGeolocation',
'Policy/setSimCardPin',
'Policy/setSimCardPin2',
];
}

Expand Down