Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR Code Scanning not working [Xiaomi Poco M3] #657

Closed
DevSupporter opened this issue Jan 5, 2021 · 20 comments
Closed

QR Code Scanning not working [Xiaomi Poco M3] #657

DevSupporter opened this issue Jan 5, 2021 · 20 comments
Labels
bug A bug report

Comments

@DevSupporter
Copy link

Info
  • Version: 1.4.1
  • Source: Google Play
  • Vault encrypted: Yes
  • __Device: Xioami Poco M3
  • __Android version and ROM: 10
Steps to reproduce

1.) Tap to scan a new QR Code --> Premission for camera allowed
2.) Camera opens up, but without "Scanning Frame" (Fullscreen preview of camera)
3.) No matter how close / far you go to an QR Code - no scan possible

--> All other Apps like Google Auth, Microsoft etc. are able to scan

What do you expect to happen?

Scan of QR Code

What happens instead?

Nothing - only preview of camera

@DevSupporter DevSupporter added the bug A bug report label Jan 5, 2021
@alexbakker
Copy link
Member

alexbakker commented Jan 6, 2021

Are you sure you're seeing this issue on 1.4.1? There was an issue in 1.4 with QR code scanning, but after the release of 1.4.1 all other feedback we've gotten suggests that the issue was fixed.

In case you're sure: could you capture a log with ADB and share it? We have a guide on how to do so here: https://github.com/beemdevelopment/Aegis/blob/master/CONTRIBUTING.md#capturing-a-log-with-adb.

@DevSupporter
Copy link
Author

DevSupporter commented Jan 6, 2021

Yes I'm sure it's the latest version 1.4.1 (also read about your latest issues with the camera). I tried to debug the application but I failed to only log the aegis related stuff (so I have now a full debug log with probably lots of confidential informations?). So may you help me which parts are relevant?

What I also can mentioned, as it is a Xioami phone I deactivated some bloatware (also like google lens etc.) and maybe this is causing the issue?

@Cohiba99
Copy link

Cohiba99 commented Jan 7, 2021

If it helps, reading Aegis 1.4.1 QR codes works fine on my Xiaomi Poco X3 NFC running debloated MIUI 12.0.4

@alexbakker
Copy link
Member

@DevSupporter Someone with exactly the same device reports that QR scanning is working for them. Do you have the same version of MIUI as @Cohiba99? If not, can you update to the latest version and see if that fixes the issue?

@DevSupporter
Copy link
Author

The phone is running on MIUI 12.0.5, so the latest version. Cohiba99 was writing about the Poco X3, but I have the issue with the Poco M3. I also installed an GCam addaption for the phone, but I already tried to uninstall und retry but still have the issue. I tried several other Apps, like andotp, TOTP Authenticator etc. and they all work. Only for Aegis (which I want to use) the issue with the missing viewfinder / QR Code scanning is happening

@alexbakker
Copy link
Member

Ah my bad, I misread your message, X3 and M3 look very similar.

Only for Aegis (which I want to use) the issue with the missing viewfinder / QR Code scanning is happening

There is no viewfinder, the preview you're seeing is what all other user also see. I guess we can write a debug patch to see what the picture your phone is taking through CameraX looks like.

@DevSupporter
Copy link
Author

Yes no problem (about X3 / M3) that's why I just pointed it out.

Good to know that there is no "viewfinder". But I tried again with several QR-Codes, it just does not scan it. How could you provide me the patch so that I can test it?

@alexbakker
Copy link
Member

alexbakker commented Jan 7, 2021

I'll have to write it and provide you with an APK.

@CryptoSlob
Copy link

I am having the same issue with a Motorola G7 power. I am on version 1.4.1 as well.

@TransientResponse
Copy link

TransientResponse commented Jan 17, 2021

Same issue with OnePlus 7Pro, Oxygen OS 10.3.7. Tested app versions 1.3, 1.4, 1.4.1 and 1.4.2.

Edit: 1.4.2 from the play store works, but still does not display the "viewfinder". I was previously using the F-Droid versions, except 1.4.2 from github (apk download).

@alexbakker
Copy link
Member

Let's try forcing CameraX to target a higher resolution. Can those who experience this issue try the following debug APK and report back: https://alexbakker.me/u/c1mv100j2u.apk?

@TransientResponse
Copy link

For my part, that didn't work either. I generated a test code from http://security-totp.appspot.com and your debug APK didn't detect it. But release 1.4.2 from the Play Store does. I can continue on with the Play Store version, but I'm happy to test things to help other people get theirs working.

@alexbakker
Copy link
Member

@TransientResponse

If 1.4.2 is able to scan QR codes, then so should 1.4.1, because no changes to the scanner were made since then. It's surprising that the debug APK doesn't work for you though. On my device, it's able to detect QR codes at much greater distances now. Curious what others' findings are.

but still does not display the "viewfinder"

There is no view finder, it will try to detect QR codes visible anywhere in the camera preview.

@DevSupporter
Copy link
Author

DevSupporter commented Jan 20, 2021

Just short feedback from my side (little bit on a hurry): I downloaded the APK with the higher resolution for the cam, but it did not changed anything. Still scanning of QR Code is not possible (tried several ones and also the generator posted above). I also retry with the new version 1.4.2 but also here nothing changed for me (Poco M3)

@TransientResponse
Copy link

@alexbakker Sorry for the confusion, what I meant was that whether QR scanning works or not (for me) seems to be dependent on the installation source of the APK. It seems anything other than Play Store (F-Droid or manual download) does not work, while Play Store works. I said "1.4.2 from the Play Store" worked because that's the only version the Play Store offers (only the latest).

And thank you for clarifying on the view finder; most QR scanners have one so I kind of assumed Aegis would as well.

@Brian-Chow
Copy link

I'm not sure if this is the same issue, or a different one. It's related to both this and issue #677 in that I have extreme difficulty scanning QR codes, especially dark mode ones, but not always just dark mode. Using a OnePlus 9 OxygenOS 11.2.2.2 -- I would say...80% of the time I can't pick up a barcode from within Aegis. What I find interesting is that Binary Eye (FOSS -- F-Droid, Github, and Google Play) can, 100% of the time, pick up barcodes that Aegis doesn't, and it also uses ZXing for it's engine.

@alexbakker
Copy link
Member

@Brian-Chow Can you try the APK linked here: #657 (comment)? Does it improve the situation at all?

@Brian-Chow
Copy link

@Brian-Chow Can you try the APK linked here: #657 (comment)? Does it improve the situation at all?

I haven't had a chance to test exhaustively, but so far, in my limited testing, no, it seems the be the same. Either both the google play and dev version pick up the QR, or neither does.

@alexbakker
Copy link
Member

For anyone still not able to scan QR codes with Aegis at all, please see: #726 (comment).

@terriyu
Copy link

terriyu commented Jul 5, 2022

[Commented on wrong issue, comment removed]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report
Projects
None yet
Development

No branches or pull requests

7 participants