framgia / android-emulator-detector Goto Github PK
View Code? Open in Web Editor NEWEasy to detect android emulator
License: Apache License 2.0
Easy to detect android emulator
License: Apache License 2.0
夜神模拟器没有检测出来
EmulatorDetector keep reference ot context in mContext field.
I tested with leakcanary - 10kb leak.
xiaomi phone detection error
Memu Play is emulator but it can be rooted also. So how do I detect it is an emulator?
hi , i am testing library and find out that new memuplayer not detect
https://developer.android.google.cn/reference/android/telephony/TelephonyManager.html#getDeviceId()
if the calling app is targeting API level 29 or higher, then a SecurityException is thrown.
The following error occurs on my app after adding emulator check :
Caused by android.os.TransactionTooLargeException
android.os.BinderProxy.transact (Binder.java)
android.content.pm.IPackageManager$Stub$Proxy.getInstalledApplications (IPackageManager.java:2131)
android.app.ApplicationPackageManager.getInstalledApplications (ApplicationPackageManager.java:441)
com.framgia.android.emulator.EmulatorDetector.checkPackageName (EmulatorDetector.java:253)
com.framgia.android.emulator.EmulatorDetector.detect (EmulatorDetector.java:205)
com.framgia.android.emulator.EmulatorDetector.access$000 (EmulatorDetector.java:41)
com.framgia.android.emulator.EmulatorDetector$1.run (EmulatorDetector.java:177)
It is probably due to the target phone having too many apps installed, resulting in an IPC response being too large for the query (> 1MB).
Maybe instead of querying all packages, you could just call getPackageInfo for each registered package ? Or maybe give an option to skip the packages check.
Can't detect nox player
Bluestack 5 beta is not detected by this library;;;;
is there any way to solve this problem????
wrongly marks Xiaomi's devices as the emulator
When targeting targetSdkVersion 29 and setting setCheckTelephony=true, private method "checkDeviceId()" throws exception, which is not caught. Targeting targetSdkVersion=28 and lower "checkDeviceId()" does not throw exception, but returns NULL.
Check link: https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids
there is too many 000000000000000
if user not allow read phone state
Memu player is not getting detected.
it shows false in Bluestacks. I have tried by the adding and removing the package.
The detection works on BlueStacks 4 for windows. However doesnt work for OSX
夜神模拟器,检测不出来
On a Pixel 4a the hasQEmuProps()
will return true. It will find 9 matching props.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.