In case XYZ is a shared library , you can configure the manifest of the android application to prevent users from installing ABC without XYZ. Please use the element inside AndroidManifest.xml ABC, specifying:
<uses-library android:name="package name of XYZ" android:required="true" />
Hope this helps your problem.
Livio
source share