BinaryEye icon indicating copy to clipboard operation
BinaryEye copied to clipboard

BinaryEye 1.45.0 crashes from QR code

Open hardfalcon opened this issue 3 years ago • 3 comments

Hi, I get reproducible crashes with BinaryEye 1.45.0 when trying to scan the following QR code: binaryeye_1 45 0_crash

hardfalcon avatar Oct 14 '21 20:10 hardfalcon

Thanks a lot for reporting this! 👍

The reason is that WifiNetworkSuggestion.Builder.setWapiPassphrase() is throwing an IllegalArgumentException with the message "passphrase not ASCII encodable".

I just added a try/catch block around setWapiPassphrase() to safely catch these exceptions, but I'm afraid Android doesn't accept passphrases that aren't ASCII encodeable (see here).

markusfisch avatar Oct 15 '21 19:10 markusfisch

You're welcome, thanks for this great app! :)

The fact that the Android API for adding WPA PSKs seems to only accept ASCII strings is strange because the "native" QR code scanner that is built into the wifi setup dialog of Android 10 (/e/ on a Fairphone 3 in my case) accepts the very same QR code without any issues, and when clicking the "Share" button on the added connection, it actually shows the complete password with the emoji: Screenshot_20211015-213829_Settings

hardfalcon avatar Oct 15 '21 19:10 hardfalcon

Hm, very strange, indeed 🤔

I will look into it...

markusfisch avatar Oct 15 '21 19:10 markusfisch