diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-03-21 10:18:29 -0700 |
---|---|---|
committer | Luis Vidal <lvidal@cyngn.com> | 2016-03-31 17:42:56 -0700 |
commit | 6d61d301e54ff0270ca211e8c9a2f297d0f0831c (patch) | |
tree | 6111070627b1d70ac8591c3330538ed087d2533b | |
parent | 0ce9abc69d20272a8abe55d01a1e951234cec04f (diff) | |
download | vendor_replicant-6d61d301e54ff0270ca211e8c9a2f297d0f0831c.zip vendor_replicant-6d61d301e54ff0270ca211e8c9a2f297d0f0831c.tar.gz vendor_replicant-6d61d301e54ff0270ca211e8c9a2f297d0f0831c.tar.bz2 |
Add Weather Content Provider [3/5]
Introduce the weather system feature, which will be used to
identify if the Weather Content Provider/Weather services are
available in the device.
Add SELinux entries for the cmweather service
Change-Id: Ibe862903095276f87f23c0d7dae54733eeeb5638
-rw-r--r-- | config/cmsdk_common.mk | 3 | ||||
-rw-r--r-- | config/common.mk | 3 | ||||
-rw-r--r-- | config/permissions/org.cyanogenmod.weather.xml | 19 | ||||
-rw-r--r-- | sepolicy/service.te | 1 | ||||
-rw-r--r-- | sepolicy/service_contexts | 3 |
5 files changed, 26 insertions, 3 deletions
diff --git a/config/cmsdk_common.mk b/config/cmsdk_common.mk index 245c372..d8d7c98 100644 --- a/config/cmsdk_common.mk +++ b/config/cmsdk_common.mk @@ -7,7 +7,8 @@ PRODUCT_COPY_FILES += \ vendor/cm/config/permissions/org.cyanogenmod.appsuggest.xml:system/etc/permissions/org.cyanogenmod.appsuggest.xml \ vendor/cm/config/permissions/org.cyanogenmod.telephony.xml:system/etc/permissions/org.cyanogenmod.telephony.xml \ vendor/cm/config/permissions/org.cyanogenmod.performance.xml:system/etc/permissions/org.cyanogenmod.performance.xml \ - vendor/cm/config/permissions/org.cyanogenmod.partner.xml:system/etc/permissions/org.cyanogenmod.partner.xml + vendor/cm/config/permissions/org.cyanogenmod.partner.xml:system/etc/permissions/org.cyanogenmod.partner.xml \ + vendor/cm/config/permissions/org.cyanogenmod.weather.xml:system/etc/permissions/org.cyanogenmod.weather.xml # CM Platform Library PRODUCT_PACKAGES += \ diff --git a/config/common.mk b/config/common.mk index 0a062f1..1963d4e 100644 --- a/config/common.mk +++ b/config/common.mk @@ -155,7 +155,8 @@ PRODUCT_PACKAGES += \ CyanogenSetupWizard \ CMSettingsProvider \ ExactCalculator \ - LiveLockScreenService + LiveLockScreenService \ + WeatherProvider # Exchange support PRODUCT_PACKAGES += \ diff --git a/config/permissions/org.cyanogenmod.weather.xml b/config/permissions/org.cyanogenmod.weather.xml new file mode 100644 index 0000000..69cd0b7 --- /dev/null +++ b/config/permissions/org.cyanogenmod.weather.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<permissions> + <feature name="org.cyanogenmod.weather" /> +</permissions> diff --git a/sepolicy/service.te b/sepolicy/service.te index e3c6abb..dced33f 100644 --- a/sepolicy/service.te +++ b/sepolicy/service.te @@ -12,3 +12,4 @@ type cm_performance_service, system_api_service, system_server_service, service_ type cm_themes_service, system_api_service, system_server_service, service_manager_type; type cm_iconcache_service, system_api_service, system_server_service, service_manager_type; type cm_livelockscreen_service, system_api_service, system_server_service, service_manager_type; +type cm_weather_service, system_api_service, system_server_service, service_manager_type; diff --git a/sepolicy/service_contexts b/sepolicy/service_contexts index 6097f9e..583d763 100644 --- a/sepolicy/service_contexts +++ b/sepolicy/service_contexts @@ -11,4 +11,5 @@ cmappsuggest u:object_r:cm_app_suggest_service:s0 cmperformance u:object_r:cm_performance_service:s0 cmthemes u:object_r:cm_themes_service:s0 cmiconcache u:object_r:cm_iconcache_service:s0 -cmlivelockscreen u:object_r:cm_livelockscreen_service:s0
\ No newline at end of file +cmlivelockscreen u:object_r:cm_livelockscreen_service:s0 +cmweather u:object_r:cm_weather_service:s0 |