use of org.flyve.policies.manager.CustomPolicies in project android-mdm-agent by flyve-mdm.
the class StreamAlarmPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableAlarm(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 StreamMusicPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableSounds(AudioManager.STREAM_MUSIC, 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 StreamRingPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableSounds(AudioManager.STREAM_RING, 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 UsbAdbPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableADBUsbFileTransferProtocols(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 WifiPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
CustomPolicies customPolicies = new CustomPolicies(context);
customPolicies.disableWifi(disable);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
Aggregations