GOS Camera app already has a QR scan feature which is convenient (no need to download additional app). But it doesn't seem that it's possible to detect/read QR from an existing photo in the gallery. This is the only feature I need without having to install additional app for it.

Would it be possible to add it?

    a year later

    This feature should exist natively; users shouldn't be required to download a 3rd party app just for this

    DeletedUser76 as far as I understand, the QR code feature is part of the Android System Intelligence (Google) toolkit, which is the same functionality as text recognition in photos and videos. Building that from scratch might be a bit challenging, so I wouldn't get my hopes up.

      DeletedUser87 but there are plenty of apps for qr scanning that are not google apps. something should exist to utilize without having to build from scratch. unless i misunderstand what you're saying, which is very possible; i have extra small brain.

        For temporary solution: BinaryEye (FOSS) has this function.

        itsjpb this is not about scanning qr codes with a camera, but recognizing qr codes from images on screen. That requires the special software I mentioned.

        DeletedUser87 the QR code feature is part of the Android System Intelligence (Google) toolkit, which is the same functionality as text recognition in photos and videos. Building that from scratch might be a bit challenging,

        There are lots of very useful things that utilize ASI; reading text and barcodes from images is one, Now Playing and Car Crash Detection are others. Frankly I think the devs should work on sandboxing ASI just like the other google apps. It's a valuable enough feature, including for safety/security uses!

        DeletedUser76 I think GrapheneOS developers once mentioned about developing a new gallery app... maybe the new gallery app could come with this feature.

        But it shouldn't be necessary to use a whole new gallery app, ASI, or a 3rd party scanner app regardless! All they need to do is give the current GOS camera/scanner app the ability to import an existing image rather than capture one with the hardware camera. This shouldn't be terribly difficult...

          hemlockiv I feel like a special sandbox isn't necessary? You can just sideload ASI as a regular app, which you can't do with Play Services. So I think you could get it running. I just don't know which dependencies it has, like Private Compute, AICore, etc.

            DeletedUser87 Have you tried side loading ASI? It doesnt really do anything AFAIK because it normally does have those other dependencies/extensions. The sandbox is also a compatibility layer, to make the google apps function as intended. And it's a "sandbox" specifically because we still wouldn't want to give ASI its full system-level privileges that it expects.

              hemlockiv I can definitely try. Installing ASI by itself is no problem as you might already know, getting it to work will be the challenge.

              yeah, no luck so far. I strongly assume there's a lot more going on under the hood. I had extraced all the apps from a factory image, but there's a lot of config missing and a very good chance some apps need to be installed as system apps (and need according config files present in system folder you don't have access to on production builds). The same goes for stuff like the Pixel Stand which won't work on custom ROMs as well (I've tried in the past). Not to mention, you can't tune settings for any of these as they won't show up in the settings app (again, config files missing). So for now, this doesn't seem achievable.