diff --git a/client/src/cmdhflegic.c b/client/src/cmdhflegic.c index fabe926fa..28138f0ea 100644 --- a/client/src/cmdhflegic.c +++ b/client/src/cmdhflegic.c @@ -11,7 +11,10 @@ #include // for Mingw readline #include // tolower + +#ifndef ANDROID #include +#endif #include "cmdparser.h" // command_t #include "comms.h" // clearCommandBuffer @@ -694,12 +697,19 @@ static int CmdLegicWrbl(const char *Cmd) { PrintAndLogEx(NORMAL, "############# DANGER ################"); PrintAndLogEx(NORMAL, "# changing the DCF is irreversible #"); PrintAndLogEx(NORMAL, "#####################################"); + +#ifndef ANDROID char *answer = readline("do you really want to continue? y(es) n(o) : "); bool overwrite = (answer[0] == 'y' || answer[0] == 'Y'); if (!overwrite) { PrintAndLogEx(NORMAL, "command cancelled"); return PM3_EOPABORTED; } +#else + PrintAndLogEx(NORMAL, "\n No interactive support on Android. "); + PrintAndLogEx(NORMAL, " So no confirmation asked, beware! "); +#endif + } legic_chk_iv(&IV);