diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml
index 78b795cf..482891f0 100644
--- a/modules/distribution/pom.xml
+++ b/modules/distribution/pom.xml
@@ -292,6 +292,11 @@
src/analytics/conf/datasource_config_change.xml
+
+ ${basedir}/../p2-profile/analytics-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/conf/cdm-config.xml
+
+ src/analytics/conf/cdm_config_change.xml
+
diff --git a/modules/distribution/src/analytics/conf/cdm_config_change.xml b/modules/distribution/src/analytics/conf/cdm_config_change.xml
new file mode 100644
index 00000000..1dd2d11b
--- /dev/null
+++ b/modules/distribution/src/analytics/conf/cdm_config_change.xml
@@ -0,0 +1,12 @@
+
+
+
+ //DeviceMgtConfiguration/PushNotificationConfiguration/PushNotificationProviders
+
+
+
+
+ //DeviceMgtConfiguration/PushNotificationConfiguration
+ src/analytics/conf/push_notification_config.xml
+
+
\ No newline at end of file
diff --git a/modules/distribution/src/analytics/conf/datasources/cdm-datasources.xml b/modules/distribution/src/analytics/conf/datasources/cdm-datasources.xml
new file mode 100644
index 00000000..15e7e407
--- /dev/null
+++ b/modules/distribution/src/analytics/conf/datasources/cdm-datasources.xml
@@ -0,0 +1,45 @@
+
+
+
+
+ org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader
+
+
+
+ DM_DS
+ The datasource used for CDM
+
+ jdbc/DM_DS
+
+
+
+ jdbc:h2:../../repository/database/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000
+ wso2carbon
+ wso2carbon
+ org.h2.Driver
+ 50
+ 60000
+ true
+ SELECT 1
+ 30000
+
+
+
+
+
diff --git a/modules/distribution/src/analytics/conf/push_notification_config.xml b/modules/distribution/src/analytics/conf/push_notification_config.xml
new file mode 100644
index 00000000..cfa47cb2
--- /dev/null
+++ b/modules/distribution/src/analytics/conf/push_notification_config.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml
index 85809762..9c1d6332 100755
--- a/modules/distribution/src/assembly/bin.xml
+++ b/modules/distribution/src/assembly/bin.xml
@@ -722,6 +722,13 @@
+
+
+ src/analytics/conf/datasources
+
+ ${pom.artifactId}-${pom.version}/wso2/analytics/conf/datasources
+
+
src/analytics/conf/analytics/spark
@@ -1239,6 +1246,13 @@
true
644
+
+
+ ${pom.artifactId}-${pom.version}/wso2/analytics/conf/etc
+ device-analytics-config.xml
+ true
+ 644
+
diff --git a/modules/distribution/src/core/conf/datasources/cdm-datasources.xml b/modules/distribution/src/core/conf/datasources/cdm-datasources.xml
index 8a4bb660..fa52911a 100755
--- a/modules/distribution/src/core/conf/datasources/cdm-datasources.xml
+++ b/modules/distribution/src/core/conf/datasources/cdm-datasources.xml
@@ -29,7 +29,7 @@
- jdbc:h2:repository/database/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000
+ jdbc:h2:repository/database/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000
wso2carbon
wso2carbon
org.h2.Driver
diff --git a/modules/p2-profile/analytics-profile/pom.xml b/modules/p2-profile/analytics-profile/pom.xml
index 460aeb0a..33061356 100644
--- a/modules/p2-profile/analytics-profile/pom.xml
+++ b/modules/p2-profile/analytics-profile/pom.xml
@@ -94,6 +94,15 @@
true
true
+
+ org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.basics.feature:${carbon.device.mgt.version}
+
+
+ org.wso2.carbon.devicemgt:org.wso2.carbon.email.sender.feature:${carbon.device.mgt.version}
+
+
+ org.apache.axis2.transport:org.apache.axis2.transport.mail.feature:${axis2-transports.wso2.version}
+
org.wso2.carbon.analytics:org.wso2.carbon.analytics.core.feature:${carbon.analytics.das.version}
@@ -387,6 +396,9 @@
org.wso2.carbon.devicemgt-plugins:org.wso2.extension.siddhi.execution.json.feature:${carbon.device.mgt.plugin.version}
+
+
+ org.wso2.carbon.devicemgt-plugins:org.wso2.extension.siddhi.devicegroup.feature:${carbon.device.mgt.plugin.version}
org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.androidsense.analytics.feature:${carbon.device.mgt.plugin.version}
@@ -443,6 +455,18 @@
true
+
+ org.wso2.carbon.device.mgt.basics.feature.group
+ ${carbon.device.mgt.version}
+
+
+ org.wso2.carbon.email.sender.feature.group
+ ${carbon.device.mgt.version}
+
+
+ org.apache.axis2.transport.mail.feature.group
+ ${axis2-transports.wso2.version}
+
org.wso2.carbon.analytics.core.feature.group
@@ -826,13 +850,16 @@
org.wso2.extension.siddhi.execution.json.feature.group
${carbon.device.mgt.plugin.version}
+
+ org.wso2.extension.siddhi.devicegroup.feature.group
+ ${carbon.device.mgt.plugin.version}
+
org.wso2.carbon.device.mgt.iot.androidsense.analytics.feature.group
${carbon.device.mgt.plugin.version}
-
org.wso2.gpl.siddhi.extension.geo.script.feature.group