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

WIP Flashlight policy #662

Open
wants to merge 1 commit 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
18 changes: 18 additions & 0 deletions install/policies/peripherals.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,24 @@
'apple_max_version' => '0',
],

[
'name' => __('Turn flashlight On', 'flyvemdm'),
'symbol' => 'turnOnFlash',
'group' => 'camera',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Set On or Off the flashlight.', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '1',
'is_android_system' => '0',
'android_min_version' => '4.1',
'android_max_version' => '0',
'apple_min_version' => '0',
'apple_max_version' => '0',
],

[
'name' => __('Disable speakerphone', 'flyvemdm'),
'symbol' => 'disableSpeakerphone',
Expand Down
1 change: 1 addition & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ public static function policyList() {
'Policy/disableAirplaneMode',
'Policy/disableStatusBar',
'Policy/disableScreenCapture',
'Policy/turnOnFlash',
'Policy/disableSpeakerphone',
'Policy/disableUnknownAppSources',
'Policy/disableStreamMusic',
Expand Down