LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad"
-SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http"
-SRCREV = "${AUTOREV}"
+# ALS, CES, FOSDEM available
+AGL_RADIO_PRESETS_LOCALE ?= "CES"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http \
+ file://presets-${AGL_RADIO_PRESETS_LOCALE}.conf \
+"
+SRCREV = "${AUTOREV}"
RDEPENDS_${PN} += " \
qtmultimedia-qmlplugins \
zip radio.wgt config.xml radio
-
cat > ${B}/apps/installAllApps.sh <<-EOF
#!/bin/sh
- /usr/bin/afm-util install controls.wgt
- /usr/bin/afm-util install dashboard.wgt
- /usr/bin/afm-util install phone.wgt
- /usr/bin/afm-util install radio.wgt
- /usr/bin/afm-util install settings.wgt
- /usr/bin/afm-util install navigation.wgt
+ cd /usr/AGL/apps
+ for file in \`find . -maxdepth 1 -name '*.wgt'\`; do
+
+ /usr/bin/afm-util install \$file
+ done
+ sync
+
+ #it's Workaround
+ cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus'
+ cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus'
EOF
}
do_install() {
install -d ${D}/usr/AGL/${PN}
- install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/${PN}/
- install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/${PN}/
- install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/${PN}/
- install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/${PN}/
+ install -d ${D}/usr/AGL/apps
+ install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/
+ install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/
+ install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/
+ install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/
+ install -d ${D}/home/root/app-data/radio
+ install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf
- install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/${PN}/
+ install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/
+ ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh
install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
#}
FILES_${PN} += "/usr/AGL/ \
+ /usr/AGL/apps/* \
+ /usr/AGL/${PN}/* \
+ /home/root/app-data/radio/presets.conf \
/usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
/usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
/usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
/usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
/usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \
"