A former Google employee who was one of the main developers for the Android mobile operating system has admitted under cross-examination that he removed references to Java in the Android code and told others to do the same.