Let $P\to M$ be a projective resolution of $M$ and $M\to J$ be an injective resolution. Consider the composition of the morphisms of complexes $P\to M\to J$ and set $C$ to be the cone of the morphism $P\to J$. Then the complex $C$ has a subcomplex isomorphic to $J$ with the quotient complex isomorphic to $P[1]$. Moreover, the short exact sequence of complexes $J\to C\to P[1]$ splits as a short exact sequence of graded objects in your abelian category (i.e., after the differentials are forgotten). Consider the subcomplex $D$ in the complex $Hom^\bullet(C,C)$ formed by all the homogeneous morphisms of graded objects $C\to C$ taking $J\subset C$ to $J\subset C$. This condition on morphisms $C\to C$ is preserved by the composition, so $D$ is a DG-algebra over $k$. The restriction of morphisms $C\to C$ to the subcomplex $J$ defines a DG-algebra morphism $D\to Hom^\bullet(J,J)$; and the passage to the induced morphism of the quotient complexes defines a DG-algebra morphism $D\to Hom^\bullet(P[1],P[1])\simeq Hom^\bullet(P,P)$. It is claimed that both these DG-algebra morphisms are quasi-isomorphisms. E.g., the morphism $D\to Hom^\bullet(J,J)$ is surjective and its kernel is the complex $Hom^\bullet(P[1],C)$, which is acyclic as $P$ is a complex of projectives (bounded from above) and $C$ is acyclic. The argument for the second DG-algebra morphism is similar. Now, being quasi-isomorphic DG-algebras, $Hom^\bullet(P,P)$ and $Hom^\bullet(J,J)$ have $A_\infty$-isomorphic minimal $A_\infty$-models. The proof of the independence of these from the choice of the resolution $P$ and/or $J$ is analogous.