How to restrict an APK not to get installed in Android Emulator/Simulator but in real device? -


hope know application installed in android device can backed , stored installable file(as apk file) of apps astro file manager. same apk can installed in android simulator well. there chance other can dig installed app's files db, shared preference, etc..

is there way permit installing in real device , not in simulators???

i know if rooted device, can access app's data same in simulator. though know whether can restrict installing apk in simulators.

thanks in advance

it's not possible prevent apks being installed on emulator. (it used possible adding sensor requirement app, hese days emulators can emulate too)

however, @ runtime should able validate if app running on emulator using following check:

if (android.os.build.model.equals(“google_sdk”)) {    // emulator } else {    //not emulator } 

you check before create db , sharedpreference files etc.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -