Wipe the device's data (that is, restore the device to its factory defaults).
Important Classes
DevicePolicyManager
DeviceAdminReceiver
Issue After you app becomes device's administrator, you can't uninstall it, unless you remove it first from administrators' list as following: Settings > Location & Security > Select device administrators, and then untick the app in listview!