sentence: this purchase was made in part to help google gain motorola 's considerable patent portfolio on mobile phones and wireless technologies to help protect it in its ongoing patent disputes with other companies , mainly apple and microsoft and to allow it to continue to freely offer android .