Skip to content

Testing ReCAPTCHA Enterprise fail #1946

Open

Description

@ale5000-git

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

Activity

  1. RobertoWa commented on May 30, 2023

    @RobertoWa

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

  2. mar-v-in commented on May 31, 2023

    @mar-v-in
    Member

    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?

  3. ale5000-git commented on May 31, 2023

    @ale5000-git
    MemberAuthor

    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.

  4. ale5000-git commented on May 31, 2023

    @ale5000-git
    MemberAuthor
  5. mar-v-in commented on May 31, 2023

    @mar-v-in
    Member

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions