If you try to download and install an APK of Instagram or TikTok on an AVD it will not be installed and you will get an error but the same APK would work on a physical device, I would like to restrict an app to be installed on an emulator device in the same way, For that, I have tried adding these to the AndroidManifest.xml but it doesn't seem to be working even on a signed APK.
<uses-feature android:name="android.hardware.sensor.accelerometer"
android:required="true" />
<uses-feature android:name="android.hardware.sensor.compass"
android:required="true" />
I precise it, I want to prevent the app from installation not from starting!