Forgive me for this stupid question. I just transitioned from iPhone to Pixel (GrapheneOS) and I’m curious why there isn’t a built in PDF viewer like on iPhone? It feels like you have to open things externally pretty often, but I figure there’s a reason for that. I haven’t used Android in many years and I recently developed an interest for the technical aspects of things, so again, do forgive this beginners question.

Cheers y’all!

  • woelkchen@lemmy.world
    link
    fedilink
    English
    arrow-up
    57
    ·
    4 months ago

    Retail Android ships with Google’s proprietary PDF viewer. GrapheneOS isn’t the default experience.

  • m-p{3}@lemmy.ca
    link
    fedilink
    English
    arrow-up
    21
    ·
    4 months ago

    Easier to maintain and update when the reader is an app not part of the core OS.

    • jbk@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 months ago

      Yeah but system apps can be updated separately from the main OS on Android, so that doesn’t really apply

  • ililiililiililiilili@lemm.ee
    link
    fedilink
    English
    arrow-up
    9
    ·
    4 months ago

    GrapheneOS actually has a built in PDF reader. Open the “Apps” app if it isn’t installed. Look for “PDF Reader” and make sure its installed.

    • Azzu@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      4 months ago

      My Android /e/os, a fork of lineage os, also has a built-in one.

      So yeah OP, I guess the question is, why does your phone not have a built-in PDF reader, not why android doesn’t have one :D

    • Wild Bill@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      3
      ·
      4 months ago

      I think I might be using the wrong terminology, forgive me. What I mean is, in my case, why does the PDF have to open in PDF reader instead of directly in the browser (like on iPhone)? That’s what I mean when I say “opening things externally.”

      • ozymandias117@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        4 months ago

        It doesn’t have to, but GrapheneOS is designed around security first, privacy second, and usability third

        If you install Fennec browser on it and open, e.g., https://www.learningcontainer.com/download/sample-pdf-file-for-testing/?wpdmdl=1566&refresh=6697dcd62a0141721228502

        The PDF will display inside Firefox

        The default web browser on GrapheneOS, Vanadium, doesn’t parse PDF’s (they’re an incredibly insecure format) and passes them off to a sandboxed, hardened app specifically for that usecase

        This allows rejecting more permissions than doing it in the same process

      • ililiililiililiilili@lemm.ee
        link
        fedilink
        English
        arrow-up
        5
        ·
        4 months ago

        It doesn’t need to be opened with any specific app. Android lets you set default apps for different file types (this is determined by the ending file name characters after the “.”). Since you’re on GrapheneOS, you’re probably privacy-conscience and would be wise to stick with the app included with the OS. This behavior contrasts a user who heads to the Play Store and goes with any PDF reader willy-nilly.

      • viking@infosec.pub
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        4 months ago

        I think it’s a fundamental design question. Apple wants users to do everything within their ecosystem, so they internalize as many functions as possible, whereas Android was designed to be lightweight and modular. Everything you don’t absolutely need in a browser just clutters it up.

        Personally I like the flexibility of using exactly the app I want for functions rather than having my OS enforce a default.

      • pe1uca@lemmy.pe1uca.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        A browser is also an app, it’s not embedded into an OS.
        In some it comes preinstalled, which is the case for safari in ios.
        Also, some browsers just happen to include a PDF reader, but not all had or currently have.

        As @viking@infosec.pub mentioned, Android is meant to be lightweight so it can run in several configurations of hardware.
        Most OEM do include a browser in Android, this usually being Chrome. GrapheneOS is basically just Android (in this context) so it doesn’t include a browser or a PDF reader, but both are available as a dedicated app from the GrapheneOS team or with any other app you want, for example I use readera, or sometimes Firefox.

  • drwankingstein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 months ago

    AOSP has no default PDF viewer, many GAAPS (official roms, custom roms with full gapps etc.) roms do have a pdf viewer by default.

    There are many available PDF viewers around making a good pdf viewer is actually pretty hard, I reccomend just trying a bunch on fdroid and seeing what sticks out to you.

  • WIPocket@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    4 months ago

    I have a built-in “PDF Viewer” app in my GrapheneOS. (app.grapheneos.pdfviewer)