You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/26 13:26:38 UTC

[GitHub] [cordova-plugin-device] atefeh-akheraty opened a new issue #134: device.isVirtual return false on simulator

atefeh-akheraty opened a new issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134


   # Bug Report
   
   device.isVirtual return false on bluestack and nox player.
   
   It is expected to return true.
   but it returns false on both.
   
   
   device version is 2.0.2
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] breautek edited a comment on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716596166


   The `SafetyNet` API requires a self-managed backend service, so that would have to be an opt-in feature, probably best as an independent plugin. See the [SafetyNet overview](https://developer.android.com/training/safetynet/attestation#overview)
   
   But the answer posted at https://stackoverflow.com/a/49445230/1902598 could definitely be something incorporated in this plugin I think.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] breautek commented on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716596166


   The `SafetyNet` API requires a self-managed backend service, so that would have to be an opt-in feature, probably best as an independent plugin. See the [SafetyNet Overflow](https://developer.android.com/training/safetynet/attestation#overview)
   
   But the answer posted at https://stackoverflow.com/a/49445230/1902598 could definitely be something incorporated in this plugin I think.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] timbru31 edited a comment on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
timbru31 edited a comment on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716582504


   A quick Google search gave me two results:
   - Just extend the method Norman just mentioned: https://stackoverflow.com/a/49445230/1902598
   - A more complex approach: Add the SafetyNet API: https://stackoverflow.com/a/52003087/1902598


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] atefeh-akheraty commented on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
atefeh-akheraty commented on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716565867


   thanks for reply.
   I want to prevent users from screen record of my application. 
   On real device I do it by some plugin, but on simulator it not working. Also users that launche app on simulator can record their screen. So I need to detect device is running on real device or not.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] timbru31 commented on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716582504


   A quick Google search gave me two results:
   - Just extend the method Norman just mentioned: https://stackoverflow.com/a/49445230/1902598
   - A more complex approach: Add the SafetyNet APIhttps://stackoverflow.com/a/52003087/1902598


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] breautek commented on issue #134: (android): device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716568605


   I'd fork the plugin and play with the `isVirtual()` method: https://github.com/apache/cordova-plugin-device/blob/4c18d1f2b70606b9311ed20c234b560b49107b28/src/android/Device.java#L169-L172
   
   And try to determine if there are any hints that you're within a bluestacks simulator or a nox player emulator in `android.os.Build.FINGERPRINT` or `android.os.Build.PRODUCT`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-device] timbru31 commented on issue #134: device.isVirtual return false on simulator

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #134:
URL: https://github.com/apache/cordova-plugin-device/issues/134#issuecomment-716551258


   I thinks this one will be tricky, as NoxPlayer and BlueStacks try their best to hide that they are actually not a real Android device (I mean, that's their purpose...)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org