up-to-date CAS function for android