cm: Add CMAudioService the platform

* Also brings JNI to CMSDK

Change-Id: I599964a1f9200a8d2ecdad0bb8c4d8593e6d7415
This commit is contained in:
Steve Kondik 2016-04-23 00:54:50 -07:00
parent ffd6637365
commit 3fe3faafd0
4 changed files with 30 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Permissions for cmsdk services # Permissions for cmsdk services
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/cm/config/permissions/org.cyanogenmod.appsuggest.xml:system/etc/permissions/org.cyanogenmod.appsuggest.xml \ vendor/cm/config/permissions/org.cyanogenmod.appsuggest.xml:system/etc/permissions/org.cyanogenmod.appsuggest.xml \
vendor/cm/config/permissions/org.cyanogenmod.audio.xml:system/etc/permissions/org.cyanogenmod.audio.xml \
vendor/cm/config/permissions/org.cyanogenmod.livedisplay.xml:system/etc/permissions/org.cyanogenmod.livedisplay.xml \ vendor/cm/config/permissions/org.cyanogenmod.livedisplay.xml:system/etc/permissions/org.cyanogenmod.livedisplay.xml \
vendor/cm/config/permissions/org.cyanogenmod.livelockscreen.xml:system/etc/permissions/org.cyanogenmod.livelockscreen.xml \ vendor/cm/config/permissions/org.cyanogenmod.livelockscreen.xml:system/etc/permissions/org.cyanogenmod.livelockscreen.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 \
@ -22,6 +23,10 @@ PRODUCT_PACKAGES += \
org.cyanogenmod.hardware \ org.cyanogenmod.hardware \
org.cyanogenmod.hardware.xml org.cyanogenmod.hardware.xml
# JNI Libraries
PRODUCT_PACKAGES += \
libcmsdk_platform_jni
ifndef CM_PLATFORM_SDK_VERSION ifndef CM_PLATFORM_SDK_VERSION
# This is the canonical definition of the SDK version, which defines # This is the canonical definition of the SDK version, which defines
# the set of APIs and functionality available in the platform. It # the set of APIs and functionality available in the platform. It

View File

@ -0,0 +1,23 @@
<?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>
<!-- The feature listed here coincides with the PerformanceManagerService declared as
part of the external cm service init in SystemServer. If this xml isn't present
on the device, the service will not be published as a binder service!
-->
<feature name="org.cyanogenmod.audio" />
</permissions>

View File

@ -14,3 +14,4 @@ type cm_iconcache_service, system_api_service, system_server_service, service_ma
type cm_livelockscreen_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; type cm_weather_service, system_api_service, system_server_service, service_manager_type;
type cm_livedisplay_service, system_api_service, system_server_service, service_manager_type; type cm_livedisplay_service, system_api_service, system_server_service, service_manager_type;
type cm_audio_service, system_api_service, system_server_service, service_manager_type;

View File

@ -14,3 +14,4 @@ cmiconcache u:object_r:cm_iconcache_service:s0
cmlivelockscreen u:object_r:cm_livelockscreen_service:s0 cmlivelockscreen u:object_r:cm_livelockscreen_service:s0
cmweather u:object_r:cm_weather_service:s0 cmweather u:object_r:cm_weather_service:s0
cmlivedisplay u:object_r:cm_livedisplay_service:s0 cmlivedisplay u:object_r:cm_livedisplay_service:s0
cmaudio u:object_r:cm_audio_service:s0