A chancer hid a mobile phone in his trousers when prison guards came calling at his cell door.