use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordMinNumericPolicy method process.
@Override
protected boolean process() {
try {
int minimum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordMinimumNumeric(minimum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordMinUpperCasePolicy method process.
@Override
protected boolean process() {
try {
int minimum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordMinimumUpperCase(minimum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class CameraPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.valueOf(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.disableCamera(disable);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class MaximumTimeToLockPolicy method process.
@Override
protected boolean process() {
try {
int maximum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setMaximumTimeToLock(maximum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordMinSymbolsPolicy method process.
@Override
protected boolean process() {
try {
int minimum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordMinimumSymbols(minimum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
Aggregations