|
|
@ -57,11 +57,14 @@ public class AndroidDeviceManager implements DeviceManager {
|
|
|
|
public AndroidDeviceManager() {
|
|
|
|
public AndroidDeviceManager() {
|
|
|
|
this.daoFactory = new AndroidDAOFactory();
|
|
|
|
this.daoFactory = new AndroidDAOFactory();
|
|
|
|
this.licenseManager = new RegistryBasedLicenseManager();
|
|
|
|
this.licenseManager = new RegistryBasedLicenseManager();
|
|
|
|
|
|
|
|
License defaultLicense;
|
|
|
|
|
|
|
|
|
|
|
|
License defaultLicense = AndroidPluginUtils.getDefaultLicense();
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
licenseManager
|
|
|
|
if (licenseManager.getLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID,
|
|
|
|
.addLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, defaultLicense);
|
|
|
|
MobilePluginConstants.LANGUAGE_CODE_ENGLISH_US) == null) {
|
|
|
|
|
|
|
|
defaultLicense = AndroidPluginUtils.getDefaultLicense();
|
|
|
|
|
|
|
|
licenseManager.addLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, defaultLicense);
|
|
|
|
|
|
|
|
}
|
|
|
|
featureManager.addSupportedFeaturesToDB();
|
|
|
|
featureManager.addSupportedFeaturesToDB();
|
|
|
|
} catch (LicenseManagementException e) {
|
|
|
|
} catch (LicenseManagementException e) {
|
|
|
|
log.error("Error occurred while adding default license for Android devices", e);
|
|
|
|
log.error("Error occurred while adding default license for Android devices", e);
|
|
|
|