I've solved my problem.
The problem was I've previously inadvertenly set PWD, PACK and AUTH0, so then I can't write anymore on AUTH0 address because that address was locked.
As written in docs, that address is simply writable as a normal memory page.
With android I'm using this code to secure NTAG216
// PWD
if (!ntag.write(0xE5, pwd.getBytes(CHARSET))) {
showToastMex("ERROR IN WRITING PWD");
retValue = false;
}
// PACK
if (retValue) {
if (!ntag.write(0xE6, pack.getBytes(CHARSET))) {
showToastMex("ERROR IN WRITING PACK");
retValue = false;
}
}
// AUTH0 (da pagina 220 = DCh)
if (retValue) {
byte space = " ".getBytes(CHARSET)[0];
byte[] toWrite = {space, space, space, MEM_ADDR_TO_LOCK};
if (!ntag.write(0xE3, toWrite)) {
showToastMex("ERROR IN WRITING AUTH0");
retValue = false;
}
}where
MEM_ADDR_TO_LOCK = (byte) 0xDC
and
CHARSET = Charset.forName("UTF-8")