Remove hard dependancy on ancient barcode-reader

Hi,

could you please remove the dependacy on com.google.zxing.client.android when exporting a config as qr-code? It might have made sense a decade ago, but nowadays every barcode/qrcode-“scanner” can also create qrcodes from an input.

Android has been complaining for years, that the zxing-barcode reader was created for an older android version, and i assume, that installation will be blocked on android 14…?

Regards,

Thomas

Unfortunately that’s not how Android works :frowning: There’s no official Intent to export a QRCode or import one. So random apps can’t just work.

While there’s solution to generate the code online (but exposing passwords to random site) there’s none to read without integrating a big library for a feature that is nearly not used.

Uhm, maybe i’m a bit slow, but if i go to Manage Hosts → + → Import from … QR CODE, i get the normal android popup where i can select any QR-Code reader, scan the barcode, which immediatly after scanning closes, returns to yatse, where the new host shows up? Does this still use the zxing-librarys?

But in any case, cant you just replace the qr-code function with a generic json-export/import with the shareto-funktion? Pretty much anything would be better than an Android 4.4 app…

You can already export the hosts to a file and import them …

And I’m not really in the mood to explain how Android works :wink:

I ran into this QR-code issue and was searching for a solution.

I want to add that the hard coded dependency becomes more inportance when the linked app isn’t availabe any more.

Deprecated:
com.google.zxing.client.android
Possible repacement:
com.atharok.barecodescanner

That app does not support “com.google.zxing.client.android.ENCODE” only “com.google.zxing.client.android.SCAN”

You can ask them to support the other intent and it will work without any change.

Hi @Tolriq,
I have requested this funcionality and got a response from the main dev.
He is willing to provide ENCODE within the next update cycle (probably Jan 25).

Related to your response, correct me if i’m wrong, there is no hardcoded scanner app within Yatse. Just an indent issue, no app with ENCODE installed on my device?

Exactly. The hard coded stuff is a link to an app that actually support both.

If that other app handle both then I’ll change for it.

Got added