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

Commit

Permalink
feat(policies): allow apps installation from unknown sources
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r authored and btry committed May 10, 2018
1 parent 2e1434d commit 912af72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions install/policies/phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,21 @@
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Enable unknown sources', 'flyvemdm'),
'symbol' => 'unknownAppSources',
'group' => 'phone',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Allow installation of apps from unknown sources',
'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],
];
2 changes: 1 addition & 1 deletion tests/suite-install/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function testInstallPlugin() {
// Test policies are populated
$policy = new \PluginFlyvemdmPolicy();
$count = $dbUtils->countElementsInTable($policy::getTable());
$this->integer($count)->isEqualTo(37);
$this->integer($count)->isEqualTo(38);

// Take a snapshot of the database before any test
$this->mysql_dump($DB->dbuser, $DB->dbhost, $DB->dbpassword, $DB->dbdefault, './save.sql');
Expand Down
1 change: 1 addition & 0 deletions tests/suite-unit/PluginFlyvemdmAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ public function testGetTopicsToCleanup() {
'Policy/disableCreateVpnProfiles',
'Policy/inventoryFrequency',
'Policy/disableAllSounds',
'Policy/unknownAppSources',
];

$topics = \PluginFlyvemdmAgent::getTopicsToCleanup();
Expand Down

0 comments on commit 912af72

Please sign in to comment.