add model config for device feature 00/145000/1
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 21 Aug 2017 01:57:03 +0000 (10:57 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Mon, 21 Aug 2017 01:57:15 +0000 (10:57 +0900)
Change-Id: I76750de87b678c0127b40b19d27714ec47d317b7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
packaging/domain-apis.inc

index 55cff799cd03c08e5529f940059bec64eb1dca9d..e35c8176cf5251e7f4d7f5599d6a3a5cb1b401d0 100755 (executable)
@@ -1682,6 +1682,8 @@ Then choose proper combination.
 For example, deviced-profile_mobile and device-manager-plugin-sc7730 for mobile
              deviced-profile_common and device-manager-plugin-rpi3 for rpi3
 %files sub2-domain_API-System-Device_Battery
+%posttrans sub2-domain_API-System-Device_Battery
+sed -i 's#\(\"tizen.org/feature/battery\".\+>\).\+\(</key>\)#\1true\2#' %{_sysconfdir}/config/model-config.xml
 
 %package sub2-domain_API-System-Device_Callback
 Summary:    Device_Callback
@@ -1782,6 +1784,8 @@ Then choose proper combination.
 For example, deviced-profile_mobile and device-manager-plugin-sc7730 for mobile
              deviced-profile_common and device-manager-plugin-rpi3 for rpi3
 %files sub2-domain_API-System-Device_IR
+%posttrans sub2-domain_API-System-Device_IR
+sed -i 's#\(\"tizen.org/feature/consumer_ir\".\+>\).\+\(</key>\)#\1true\2#' %{_sysconfdir}/config/model-config.xml
 
 %package sub2-domain_API-System-Device_Led
 Summary:    Device_Led
@@ -1810,6 +1814,8 @@ Then choose proper combination.
 For example, deviced-profile_mobile and device-manager-plugin-sc7730 for mobile
              deviced-profile_common and device-manager-plugin-rpi3 for rpi3
 %files sub2-domain_API-System-Device_Led
+%posttrans sub2-domain_API-System-Device_Led
+sed -i 's#\(\"tizen.org/feature/led\".\+>\).\+\(</key>\)#\1true\2#' %{_sysconfdir}/config/model-config.xml
 
 %package sub2-domain_API-System-Device_Power
 Summary:    Device_Power
@@ -1964,6 +1970,8 @@ Requires: libusb
 %description sub2-domain_API-System-USB_Host
 Tizen block (set of packages) for Group of sub domain USB_Host
 %files sub2-domain_API-System-USB_Host
+%posttrans sub2-domain_API-System-USB_Host
+sed -i 's#\(\"tizen.org/feature/usb.host\".\+>\).\+\(</key>\)#\1true\2#' %{_sysconfdir}/config/model-config.xml
 
 %package sub2-domain_API-System-dlog
 Summary:    dlog