add idgen for android