Код: Выделить всё
DevicePolicyManager pManager = (android.app.admin.DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
pManager.setScreenCaptureDisabled(admin.getReceiverName(), true);
Код: Выделить всё
03-30 13:50:24.623: E/AndroidRuntime(11564):
java.lang.SecurityException: Admin
ComponentInfo{com.example.xxv/com.example.xxv.DeviceAdminReceiver}
does not own the profile
Если требуется какое-либо разрешение, не могли бы вы указать что это такое.
Подробнее здесь: https://stackoverflow.com/questions/293 ... he-profile