From 128703b70da96be37608c15e1270de866c22a819 Mon Sep 17 00:00:00 2001 From: Eran Messeri Date: Thu, 17 Oct 2019 13:17:36 +0100 Subject: [PATCH] Documentation: Indicate DPM method does I/O Document that the addPersistentPreferredActivity method does Disk I/O and so should not be called on the main thread. Bug: 142648455 Test: m docs Change-Id: Iadf2ab82f4f573e53ff68cad0b981494acf6f9b6 --- core/java/android/app/admin/DevicePolicyManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 02cac231f3728..c22d80653bc34 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -6521,6 +6521,8 @@ public class DevicePolicyManager { * The calling device admin must be a profile owner or device owner. If it is not, a security * exception will be thrown. * + *

NOTE: Performs disk I/O and shouldn't be called on the main thread. + * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param filter The IntentFilter for which a default handler is added. * @param activity The Activity that is added as default intent handler.