Testing ReCAPTCHA Enterprise fail
Open
Nobody has claimed this yet.
bug
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 3.2k
- Avg merge
- 12d 11h
- Merged PRs (30d)
- 4
Description
Describe the bug
Testing ReCAPTCHA Enterprise fail with Failed: Internal error
To Reproduce
Steps to reproduce the behavior:
- 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with RecaptchaWebImpl.kt at lines 144, 316, 466, and 731, using the attached logcat and Android 4.4.4 reproduction. Trace the timeout and missing getPackageManager method, then verify that testing ReCAPTCHA Enterprise no longer reports an Internal error on Android 4.4.4.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100