Add a secondary DA to ApiDemos for testing
Bug 27107878 Change-Id: Id8179926d424ca8b4678ac028f4c9eab7a81a4c2
This commit is contained in:
@@ -926,6 +926,16 @@
|
||||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<receiver android:name=".app.DeviceAdminSample$DeviceAdminSampleReceiver2"
|
||||
android:label="@string/sample_device_admin2"
|
||||
android:description="@string/sample_device_admin_description2"
|
||||
android:permission="android.permission.BIND_DEVICE_ADMIN">
|
||||
<meta-data android:name="android.app.device_admin"
|
||||
android:resource="@xml/device_admin_sample" />
|
||||
<intent-filter>
|
||||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<!-- END_INCLUDE(device_admin_declaration) -->
|
||||
|
||||
<!-- Voice Recognition Samples -->
|
||||
|
||||
@@ -747,6 +747,9 @@
|
||||
for you to directly control what the DeviceAdmin does with the
|
||||
system.</string>
|
||||
|
||||
<string name="sample_device_admin2">Dummy Device Admin</string>
|
||||
<string name="sample_device_admin_description2">Dummy device admin</string>
|
||||
|
||||
<!-- Strings used in preference headers and preference definitions -->
|
||||
<string name="header_general">General</string>
|
||||
<string name="header_quality">Password quality</string>
|
||||
|
||||
@@ -1114,4 +1114,7 @@ public class DeviceAdminSample extends PreferenceActivity {
|
||||
Log.v(TAG, message);
|
||||
}
|
||||
}
|
||||
|
||||
public static class DeviceAdminSampleReceiver2 extends DeviceAdminReceiver {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user