cm: Add CM-specific permissions

* These can be used if someone wants to filter for CM features
 * Basic feature com.cyanogenmod.android is included in all builds
 * Include nfc_enhanced on devices that have NFC

Change-Id: Ib7704b791c8916f1eabe5f40fd21e2f0005d32f9
This commit is contained in:
Steve Kondik 2012-03-25 17:21:32 -07:00
parent ab1991f33d
commit e0c12dad51
4 changed files with 49 additions and 0 deletions

View File

@ -61,6 +61,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# This is CM!
PRODUCT_COPY_FILES += \
vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
# Don't export PS1 in /system/etc/mkshrc.
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/etc/mkshrc:system/etc/mkshrc

3
config/nfc_enhanced.mk Normal file
View File

@ -0,0 +1,3 @@
# This device supports CM enhanced NFC
PRODUCT_COPY_FILES += \
vendor/cm/config/permissions/com.cyanogenmod.nfc.enhanced.xml:system/etc/permissions/com.cyanogenmod.nfc.enhanced.xml

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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.
-->
<!-- This feature shows that this is CyanogenMod -->
<permissions>
<feature name="com.cyanogenmod.android" />
</permissions>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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.
-->
<!-- This feature shows that this is device features CM NFC enhancements -->
<permissions>
<feature name="com.cyanogenmod.nfc.enhanced" />
</permissions>