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

Commit

Permalink
fix(policy): explode into several policies the USB protocols policy
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and DIOHz0r committed Nov 21, 2017
1 parent c27454d commit 5707f71
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions install/installer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1117,21 +1117,53 @@ static public function getPolicies() {
],

[
'name' => __('Disable USB file transfer protocols', 'flyvemdm'),
'symbol' => 'disableUsbFileTransferProtocols',
'name' => __('Disable USB MTP', 'flyvemdm'),
'symbol' => 'disableUsbMtp',
'group' => 'connectivity',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > USB',
'comment' => __('Disable USB file transfer protocols', 'flyvemdm'),
'comment' => __('Disable USB Media Transfert Protocol', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Disable USB PTP', 'flyvemdm'),
'symbol' => 'disableUsbPtp',
'group' => 'connectivity',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > USB',
'comment' => __('Disable USB Picture Transfert Protocol', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Disable USB ADB', 'flyvemdm'),
'symbol' => 'disableUsbAdb',
'group' => 'connectivity',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > USB',
'comment' => __('Disable USB Android Debug Bridge', 'flyvemdm'),
'default_value' => '1',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Disable FM Radio', 'flyvemdm'),
'symbol' => 'disableFmRadio',
Expand Down

0 comments on commit 5707f71

Please sign in to comment.