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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -