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

Commit

Permalink
feat(policy): mark policies as system
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and DIOHz0r committed Nov 8, 2017
1 parent c35fe3d commit cd046df
Showing 1 changed file with 98 additions and 2 deletions.
100 changes: 98 additions & 2 deletions install/installer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,9 @@ static public function getPolicies() {
'comment' => __('Enable the password', 'flyvemdm'),
'default_value' => 'PASSWORD_NONE',
'recommended_value' => 'PASSWORD_PIN',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -749,6 +752,9 @@ static public function getPolicies() {
'comment' => __('Set the required number of characters for the password. For example, you can require PIN or passwords to have at least six characters', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '6',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -769,6 +775,9 @@ static public function getPolicies() {
'comment' => __('Complexity of allowed password', 'flyvemdm'),
'default_value' => 'PASSWORD_QUALITY_UNSPECIFIED',
'recommended_value' => 'PASSWORD_QUALITY_UNSPECIFIED',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -784,6 +793,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of letters required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -799,6 +811,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of lowercase letters required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '1',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -814,6 +829,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of non-letter characters required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -829,6 +847,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of numerical digits required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '1',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -844,6 +865,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of symbols required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -859,6 +883,9 @@ static public function getPolicies() {
'comment' => __('The minimum number of uppercase letters required in the password for all admins or a particular one', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '1',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -874,6 +901,9 @@ static public function getPolicies() {
'comment' => __('Number of consecutive failed attemps of unlock the device to wipe', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '5',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -889,6 +919,9 @@ static public function getPolicies() {
'comment' => __('Maximum time to lock the device in milliseconds', 'flyvemdm'),
'default_value' => '60000',
'recommended_value' => '60000',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -902,6 +935,9 @@ static public function getPolicies() {
'comment' => __('Force internal storage encryption', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -915,6 +951,9 @@ static public function getPolicies() {
'comment' => __('Prevent usage of the Camera', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -928,6 +967,9 @@ static public function getPolicies() {
'comment' => __('Deploy an application on the device', 'flyvemdm'),
'default_value' => '',
'recommended_value' => '',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -941,6 +983,9 @@ static public function getPolicies() {
'comment' => __('Uninstall an application on the device', 'flyvemdm'),
'default_value' => '',
'recommended_value' => '',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -954,6 +999,9 @@ static public function getPolicies() {
'comment' => __('Deploy a file on the device', 'flyvemdm'),
'default_value' => '',
'recommended_value' => '',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -967,6 +1015,9 @@ static public function getPolicies() {
'comment' => __('Uninstall a file on the device', 'flyvemdm'),
'default_value' => '',
'recommended_value' => '',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -980,6 +1031,9 @@ static public function getPolicies() {
'comment' => __('Disable wifi connectivity', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -993,6 +1047,9 @@ static public function getPolicies() {
'comment' => __('Disable Bluetooth connectivity', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -1006,6 +1063,9 @@ static public function getPolicies() {
'comment' => __('Disable GPS', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '0',
'is_apple_policy' => '0',
],

[
Expand All @@ -1019,6 +1079,9 @@ static public function getPolicies() {
'comment' => __('Disable roaming', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1032,6 +1095,9 @@ static public function getPolicies() {
'comment' => __('Disable USB file transfer protocols', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1045,6 +1111,9 @@ static public function getPolicies() {
'comment' => __('Disable FM radio', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1058,6 +1127,9 @@ static public function getPolicies() {
'comment' => __('Disable Mobile line', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1071,6 +1143,9 @@ static public function getPolicies() {
'comment' => __('Disable Voice mail', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1084,19 +1159,25 @@ static public function getPolicies() {
'comment' => __('Disable automatic answer to incoming phone calls', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Disable voice dicatation', 'flyvemdm'),
'name' => __('Disable voice dictation', 'flyvemdm'),
'symbol' => 'disableVoiceDictation',
'group' => 'connectivity',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 5,
'comment' => __('Disable voice dicatation', 'flyvemdm'),
'comment' => __('Disable voice dictation', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1110,6 +1191,9 @@ static public function getPolicies() {
'comment' => __('Disable Near Field Contact', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1123,6 +1207,9 @@ static public function getPolicies() {
'comment' => __('Disable hotspot and tethering', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1136,6 +1223,9 @@ static public function getPolicies() {
'comment' => __('Disable hotspot and tethering', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1149,6 +1239,9 @@ static public function getPolicies() {
'comment' => __('Disable USB On-The-Go', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
Expand All @@ -1162,6 +1255,9 @@ static public function getPolicies() {
'comment' => __('Disable SMS and MMS', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],
];

Expand Down

0 comments on commit cd046df

Please sign in to comment.