microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.24k stars 1.69k forks source link

Testing ReCAPTCHA Enterprise fail #1946

Open ale5000-git opened 1 year ago

ale5000-git commented 1 year ago

Describe the bug Testing ReCAPTCHA Enterprise fail with Failed: Internal error

To Reproduce Steps to reproduce the behavior:

  1. Go to microG settings and test it

System Android Version: 4.4.4

Additional context Logcat ReCAPTCHA Enterprise

In particular I see:

W/RecaptchaWeb( 1075): Not providing method getPackageManager in android.content.Context
W/RecaptchaWeb( 1075): java.lang.Exception
W/RecaptchaWeb( 1075):  at org.microg.gms.recaptcha.RecaptchaWebImpl$Companion$CodeInterpreter.getMethod(RecaptchaWebImpl.kt:316)
W/RecaptchaWeb( 1075):  at org.microg.gms.recaptcha.RecaptchaWebImpl$Companion$CodeInterpreter.execute(RecaptchaWebImpl.kt:466)
W/RecaptchaWeb( 1075):  at org.microg.gms.recaptcha.RecaptchaWebImpl$Companion$RNJavaScriptInterface.zzrp(RecaptchaWebImpl.kt:731)
W/RecaptchaWeb( 1075):  at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
W/RecaptchaWeb( 1075):  at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:24)
W/RecaptchaWeb( 1075):  at android.os.Handler.dispatchMessage(Handler.java:102)
W/RecaptchaWeb( 1075):  at android.os.Looper.loop(Looper.java:136)
W/RecaptchaWeb( 1075):  at android.os.HandlerThread.run(HandlerThread.java:61)
W/RecaptchaService( 1075): java.lang.RuntimeException: Timeout reached
W/RecaptchaService( 1075):  at org.microg.gms.recaptcha.RecaptchaWebImpl$execute$token$1$1.invokeSuspend(RecaptchaWebImpl.kt:144)
W/RecaptchaService( 1075):  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W/RecaptchaService( 1075):  at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234)
W/RecaptchaService( 1075):  at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
W/RecaptchaService( 1075):  at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
W/RecaptchaService( 1075):  at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
W/RecaptchaService( 1075):  at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
W/RecaptchaService( 1075):  at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518)
W/RecaptchaService( 1075):  at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19)
W/RecaptchaService( 1075):  at android.os.Handler.handleCallback(Handler.java:733)
W/RecaptchaService( 1075):  at android.os.Handler.dispatchMessage(Handler.java:95)
W/RecaptchaService( 1075):  at android.os.Looper.loop(Looper.java:136)
W/RecaptchaService( 1075):  at android.app.ActivityThread.main(ActivityThread.java:5001)
W/RecaptchaService( 1075):  at java.lang.reflect.Method.invokeNative(Native Method)
W/RecaptchaService( 1075):  at java.lang.reflect.Method.invoke(Method.java:515)
W/RecaptchaService( 1075):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
W/RecaptchaService( 1075):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
W/RecaptchaService( 1075):  at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 1075): Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method org.microg.gms.gcm.McsService.scheduleReconnect
W/dalvikvm( 1075): VFY: unable to resolve virtual method 168: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
D/dalvikvm( 1075): VFY: replacing opcode 0x6e at 0x0045
I/dalvikvm( 1075): Could not find method org.microg.gms.gcm.McsService.checkSelfPermission, referenced from method org.microg.gms.gcm.McsService.onCreate
W/dalvikvm( 1075): VFY: unable to resolve virtual method 17809: Lorg/microg/gms/gcm/McsService;.checkSelfPermission (Ljava/lang/String;)I
D/dalvikvm( 1075): VFY: replacing opcode 0x6e at 0x003a
RobertoWa commented 1 year ago

on my android 10 it is working, "passed all tests"

mar-v-in commented 1 year ago

Is this happening on a physical device or an emulator? If it's an emulator: are you using a device profile to hide the fact you are using an emulator?

ale5000-git commented 1 year ago

It is an emulator and yes, I use a device profile. But the normal ReCAPTCHA works, just the ReCAPTCHA Enterprise doesn't work.

In this configuration there is the latest FakeStore and it is without a Google account.

ale5000-git commented 1 year ago

@mar-v-in The emulator is this: https://www.mediafire.com/file/29okxzx8qi5nmkm/Leapdroid_1.8.0.0.exe/file It is already rooted but you have to remove GApps and install microG.

mar-v-in commented 1 year ago

Normal recaptcha always works, emulators are just much more likely to trigger the requirement to actually do the captcha (real devices that also pass SafetyNet are often just running through without asking to select pictures) reCAPTCHA enterprise is without UI and thus will just fail if it's unhappy.

Which profile did you use on that emulator?

ale5000-git commented 1 year ago

The profile is this: https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/origin/profiles/lenovo_yoga_tab_3_pro_10_inches_23.xml