deviceAdminsHook = new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param)
throws Throwable {
prefs.reload();
<BUG>deviceAdmins = prefs.getBoolean(Common.PREF_ENABLE_UNINSTALL_DEVICE_ADMIN, false);
if (deviceAdmins) {
xlog("deviceAdmins set to", deviceAdmins);
param.setResult(false);</BUG>
return;

deviceAdminsHook = new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param)
throws Throwable {
prefs.reload();
deviceAdmins = prefs.getBoolean(Common.PREF_ENABLE_UNINSTALL_DEVICE_ADMIN, false);
enableDebug = prefs.getBoolean(Common.PREF_ENABLE_DEBUG, false);
if (deviceAdmins) {
if (enableDebug) {
xlog_start("deviceAdminsHook");
xlog("deviceAdmins set to", deviceAdmins);
xlog_end("deviceAdminsHook");
