Remove unnecessary policies

revert-dabc3590
sandarudr 6 years ago
parent fc54dde720
commit 582005f3f6

@ -338,7 +338,6 @@ var generatePayload = function (operationCode, operationData, deviceList) {
"AUTO_TIME": operationData["enableAutoTime"],
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
"SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"],
"KEY_RESTRICTIONS_PENDING": operationData["keyRestrictionsPending"],
"DISALLOW_SET_WALLPAPER": operationData["disallowSetWallpaper"],
"DISALLOW_SET_USER_ICON": operationData["disallowSetUserIcon"],
"DISALLOW_REMOVE_MANAGEMENT_PROFILE": operationData["disallowRemoveManagedProfile"],
@ -574,7 +573,6 @@ var androidOperationConstants = {
"KIOSK_APPS_CODE": "KIOSK_APPS",
"FILE_TRANSFER": "FILE_TRANSFER",
"APP_RESTRICTION_OPERATION_CODE": "REMOTE_APP_CONFIG",
"KEY_RESTRICTIONS_PENDING": "KEY_RESTRICTIONS_PENDING",
"DISALLOW_SET_WALLPAPER": "DISALLOW_SET_WALLPAPER",
"DISALLOW_SET_USER_ICON": "DISALLOW_SET_USER_ICON",
"DISALLOW_REMOVE_MANAGEMENT_PROFILE": "DISALLOW_REMOVE_MANAGEMENT_PROFILE",

@ -100,7 +100,6 @@ var androidOperationModule = function () {
"COSU_PROFILE_CONFIGURATION_OPERATION": "cosu-profile-configuration",
"COSU_PROFILE_CONFIGURATION_OPERATION_CODE": "COSU_PROFILE",
"ENROLLMENT_APP_INSTALL": "enrollment-app-install",
"KEY_RESTRICTIONS_PENDING": "KEY_RESTRICTIONS_PENDING",
"DISALLOW_SET_WALLPAPER": "DISALLOW_SET_WALLPAPER",
"DISALLOW_SET_USER_ICON": "DISALLOW_SET_USER_ICON",
"DISALLOW_REMOVE_MANAGEMENT_PROFILE": "DISALLOW_REMOVE_MANAGEMENT_PROFILE",
@ -352,7 +351,6 @@ var androidOperationModule = function () {
"ENSURE_VERIFY_APPS": operationData["ensureVerifyApps"],
"AUTO_TIME": operationData["enableAutoTime"],
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
"KEY_RESTRICTIONS_PENDING": operationData["keyRestrictionsPending"],
"DISALLOW_SET_WALLPAPER": operationData["disallowSetWallpaper"],
"DISALLOW_SET_USER_ICON": operationData["disallowSetWallpaper"],
"DISALLOW_REMOVE_MANAGEMENT_PROFILE": operationData["disallowRemoveManagedProfile"],
@ -1216,9 +1214,6 @@ var androidOperationModule = function () {
} else if (featureCode == androidOperationConstants["SET_STATUS_BAR_DISABLED"]) {
restrictions["disableStatusBar"] = restriction["enabled"];
continue;
}else if (featureCode == androidOperationConstants["KEY_RESTRICTIONS_PENDING"]) {
restrictions["keyRestrictionsPending"] = restriction["enabled"];
continue;
}else if (featureCode == androidOperationConstants["DISALLOW_SET_WALLPAPER"]) {
restrictions["disallowSetWallpaper"] = restriction["enabled"];
continue;

@ -495,19 +495,6 @@
</span>
</label>
</div>
<!-- <br>-->
<!-- <div class="wr-input-control">-->
<!-- <label class="wr-input-control checkbox">-->
<!-- <input id="key_restrictions_pending" type="checkbox"-->
<!-- class="operationDataKeys"-->
<!-- data-key="keyRestrictionsPending"/>-->
<!-- <span class="helper"-->
<!-- title="Allows apps in the parent profile to access or handle web links from the managed profile.">-->
<!-- Key restrictions pending-->
<!-- <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>-->
<!-- </span>-->
<!-- </label>-->
<!-- </div>-->
<br>
<div>
<ul class="message message-info">

@ -729,19 +729,7 @@
</span>
</label>
</div>
<!-- <br>-->
<!-- <div class="wr-input-control">-->
<!-- <label class="wr-input-control checkbox">-->
<!-- <input id="key_restrictions_pending" type="checkbox"-->
<!-- class="operationDataKeys"-->
<!-- data-key="keyRestrictionsPending" disabled/>-->
<!-- <span class="helper" title="Allows apps in the parent profile to access or handle web links from the managed profile.">-->
<!-- Key restrictions pending-->
<!-- <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>-->
<!-- </span>-->
<!-- </label>-->
<!-- </div>-->
<br>
<br>
<b>

@ -505,18 +505,6 @@
</span>
</label>
</div>
<!-- <br>-->
<!-- <div class="wr-input-control worker-profile-or-owner">-->
<!-- <label class="wr-input-control checkbox">-->
<!-- <input id="key_restrictions_pending" type="checkbox"-->
<!-- class="operationDataKeys"-->
<!-- data-key="keyRestrictionsPending"/>-->
<!-- <span class="helper" title="Allows apps in the parent profile to access or handle web links from the managed profile.">-->
<!-- Key restrictions pending-->
<!-- <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>-->
<!-- </span>-->
<!-- </label>-->
<!-- </div>-->
<br>
<div class="">
<ul class="message message-info">

@ -469,12 +469,6 @@ public class AndroidFeatureManager implements FeatureManager {
feature.setDescription("Unlock the device");
supportedFeatures.add(feature);
feature = new Feature();
feature.setCode("KEY_RESTRICTIONS_PENDING");
feature.setName("Device Unlock");
feature.setDescription("Unlock the device");
supportedFeatures.add(feature);
feature = new Feature();
feature.setCode("DISALLOW_SET_WALLPAPER");
feature.setName("Device Unlock");

@ -343,10 +343,6 @@
<Name>Fetch device logcat</Name>
<Description>Fetch device logcat</Description>
</Feature>
<Feature code="KEY_RESTRICTIONS_PENDING">
<Name>Fetch device logcat</Name>
<Description>Fetch device logcat</Description>
</Feature>
<Feature code="DISALLOW_SET_WALLPAPER">
<Name>Fetch device logcat</Name>
<Description>Fetch device logcat</Description>

Loading…
Cancel
Save