use of org.flyve.policies.manager.CustomPolicies in project android-mdm-agent by flyve-mdm.
the class StreamNotificationPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableSounds(AudioManager.STREAM_NOTIFICATION, disable);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.CustomPolicies in project android-mdm-agent by flyve-mdm.
the class UsbMtpPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableMTPUsbFileTransferProtocols(disable);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
Aggregations