Added unlock feature

revert-dabc3590
mharindu 9 years ago
parent 64c1772f5b
commit cb9ab9fb0a

@ -145,101 +145,127 @@ public class AndroidFeatureManager implements FeatureManager {
//Get the supported feature list. //Get the supported feature list.
private static List<Feature> getSupportedFeatures() { private static List<Feature> getSupportedFeatures() {
List<Feature> supportedFeatures = new ArrayList<Feature>(); List<Feature> supportedFeatures = new ArrayList<Feature>();
Feature feature = new Feature(); Feature feature = new Feature();
feature.setCode("DEVICE_LOCK"); feature.setCode("DEVICE_LOCK");
feature.setName("Device Lock"); feature.setName("Device Lock");
feature.setDescription("Lock the device"); feature.setDescription("Lock the device");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature();
feature.setCode("DEVICE_UNLOCK");
feature.setName("Device Unlock");
feature.setDescription("Unlock the device");
supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("DEVICE_LOCATION"); feature.setCode("DEVICE_LOCATION");
feature.setName("Location"); feature.setName("Location");
feature.setDescription("Request coordinates of device location"); feature.setDescription("Request coordinates of device location");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("WIFI"); feature.setCode("WIFI");
feature.setName("wifi"); feature.setName("wifi");
feature.setDescription("Setting up wifi configuration"); feature.setDescription("Setting up wifi configuration");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("CAMERA"); feature.setCode("CAMERA");
feature.setName("camera"); feature.setName("camera");
feature.setDescription("Enable or disable camera"); feature.setDescription("Enable or disable camera");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("EMAIL"); feature.setCode("EMAIL");
feature.setName("Email"); feature.setName("Email");
feature.setDescription("Configure email settings"); feature.setDescription("Configure email settings");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("DEVICE_MUTE"); feature.setCode("DEVICE_MUTE");
feature.setName("mute"); feature.setName("Mute");
feature.setDescription("Enable mute in the device"); feature.setDescription("Enable mute in the device");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("DEVICE_INFO"); feature.setCode("DEVICE_INFO");
feature.setName("Device info"); feature.setName("Device info");
feature.setDescription("Request device information"); feature.setDescription("Request device information");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("ENTERPRISE_WIPE"); feature.setCode("ENTERPRISE_WIPE");
feature.setName("Enterprise Wipe"); feature.setName("Enterprise Wipe");
feature.setDescription("Remove enterprise applications"); feature.setDescription("Remove enterprise applications");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("CLEAR_PASSWORD"); feature.setCode("CLEAR_PASSWORD");
feature.setName("Clear Password"); feature.setName("Clear Password");
feature.setDescription("Clear current password"); feature.setDescription("Clear current password");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("WIPE_DATA"); feature.setCode("WIPE_DATA");
feature.setName("Wipe Data"); feature.setName("Wipe Data");
feature.setDescription("Factory reset the device"); feature.setDescription("Factory reset the device");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("APPLICATION_LIST"); feature.setCode("APPLICATION_LIST");
feature.setName("Application List"); feature.setName("Application List");
feature.setDescription("Request list of current installed applications"); feature.setDescription("Request list of current installed applications");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("CHANGE_LOCK_CODE"); feature.setCode("CHANGE_LOCK_CODE");
feature.setName("Change Lock-code"); feature.setName("Change Lock-code");
feature.setDescription("Change current lock code"); feature.setDescription("Change current lock code");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("INSTALL_APPLICATION"); feature.setCode("INSTALL_APPLICATION");
feature.setName("Install App"); feature.setName("Install App");
feature.setDescription("Install Enterprise or Market application"); feature.setDescription("Install Enterprise or Market application");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("UNINSTALL_APPLICATION"); feature.setCode("UNINSTALL_APPLICATION");
feature.setName("Uninstall App"); feature.setName("Uninstall App");
feature.setDescription("Uninstall application"); feature.setDescription("Uninstall application");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("BLACKLIST_APPLICATIONS"); feature.setCode("BLACKLIST_APPLICATIONS");
feature.setName("Blacklist app"); feature.setName("Blacklist app");
feature.setDescription("Blacklist applications"); feature.setDescription("Blacklist applications");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("ENCRYPT_STORAGE"); feature.setCode("ENCRYPT_STORAGE");
feature.setName("Encrypt storage"); feature.setName("Encrypt storage");
feature.setDescription("Encrypt storage"); feature.setDescription("Encrypt storage");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("DEVICE_RING"); feature.setCode("DEVICE_RING");
feature.setName("Ring"); feature.setName("Ring");
feature.setDescription("Ring the device"); feature.setDescription("Ring the device");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("PASSCODE_POLICY"); feature.setCode("PASSCODE_POLICY");
feature.setName("Password Policy"); feature.setName("Password Policy");
feature.setDescription("Set passcode policy"); feature.setDescription("Set passcode policy");
supportedFeatures.add(feature); supportedFeatures.add(feature);
feature = new Feature(); feature = new Feature();
feature.setCode("NOTIFICATION"); feature.setCode("NOTIFICATION");
feature.setName("Message"); feature.setName("Message");
feature.setDescription("Send message"); feature.setDescription("Send message");
supportedFeatures.add(feature); supportedFeatures.add(feature);
return supportedFeatures; return supportedFeatures;
} }
} }
Loading…
Cancel
Save