Detect Build And Run

How to detect in code that an Android application was launched using build and run on a device usb cable and not installed and launched from the market? PS - Non-development mode!
I need to know this in the context of adressables + Google Play Assets Delivery