fc50f7cef8
Services that extend KeyguardExternalViewProviderService should also include this newly defined action in an intent-filter within the <service> tag in their AndroidManifest.xml. These services can also include meta-data that defines a configuration xml which will be used to define a settings activity that can be launched within a yet to be defined settings/configuration UI. Change-Id: I0a5ca09cf6f63413d067f89a9757137102dd09f6 TICKET: CYNGNOS-1687
40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2015 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.
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.cyanogenmod.samples.keyguardextview"
|
|
android:versionCode="1"
|
|
android:versionName="1.0">
|
|
|
|
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" />
|
|
|
|
<!-- Required permission for third party keyguard components -->
|
|
<uses-permission android:name="android.permission.THIRD_PARTY_KEYGUARD" />
|
|
|
|
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
|
|
<service android:name=".SampleKeyguardProviderService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="cyanogenmod.externalviews.KeyguardExternalViewProviderService" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="cyanogenmod.externalviews.keyguard"
|
|
android:resource="@xml/mylockscreen" />
|
|
</service>
|
|
<activity android:name=".Settings" />
|
|
</application>
|
|
</manifest>
|