this post was submitted on 17 Jul 2024
75 points (94.1% liked)

Android

28007 readers
196 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 1 year ago
MODERATORS
 

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!

all 36 comments
sorted by: hot top controversial new old
[–] woelkchen@lemmy.world 71 points 4 months ago (1 children)

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

[–] db2@lemmy.world 16 points 4 months ago (1 children)

GrapheneOS has an actively maintained PDF viewer app though.

https://github.com/GrapheneOS/PdfViewer

[–] electro1@infosec.pub 10 points 4 months ago (1 children)

It's a secure PDF designed to sandbox the file before launching it, but unfortunately it's painful to use: no page scrolling, and no dark content view..

[–] db2@lemmy.world -3 points 4 months ago (1 children)

Page scrolling works fine and dark mode doesn't make sense...

[–] based_shrimp@lemmy.world 14 points 4 months ago

Dark mode really starts to make sense when you're looking at documents for 7-10 hrs/day almost every other day for a month or two

[–] f1error@thelemmy.club 28 points 4 months ago

Because... Fuck Adobe. This is my near-daily mantra.

[–] mp3@lemmy.ca 23 points 4 months ago (1 children)

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

[–] jbk@discuss.tchncs.de 4 points 4 months ago

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

[–] henchman2019@lemmy.world 21 points 4 months ago* (last edited 4 months ago) (2 children)

You really should ask this in

http://discuss.grapheneos.org/

~~https://lemmy.ml/c/grapheneos.~~

It's a very helpful community. Someone will either explain why or point you to a FAQ. I bet it has something to do with the built in reader being insecure.

Edited... I totally gave the wrong url. Sorry. Corrected.

[–] CommunityLinkFixer@lemmings.world 10 points 4 months ago

Hi there! Looks like you linked to a Lemmy community using a URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !grapheneos@lemmy.ml

[–] clark@midwest.social 6 points 4 months ago

Thanks for letting me know! (:

[–] ililiililiililiilili@lemm.ee 10 points 4 months ago (2 children)

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 2 points 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

[–] clark@midwest.social 1 points 4 months ago (5 children)

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 10 points 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

[–] viking@infosec.pub 7 points 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.

[–] ililiililiililiilili@lemm.ee 6 points 4 months ago (1 children)

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.

[–] zelnix@lemmy.ml 2 points 4 months ago

The default app is unusable. There's literally no scrolling functionality. You have to tap a button to change pages

[–] Jako301@feddit.de 3 points 4 months ago (1 children)

Apple is a bit like Microsoft in that regard. Their browser (safari) is so tightly integrated into their operating system that removing it is basically impossible. Due to that, they can use/abuse it for basic functionality like a pdf reader instead of creating a separate app for it.

Android, on the other hand, doesn't even have a real default browser. While Chrome ships as the default since android 4, it's basically just the app tacked on top. Since PDF readers on android existed before Chrome became the default, Google was never really bothered with including a build in PDF reader in their browser. It simply wasn't necessary. And since most browser depend on chromium, which lacks this functionality, they don't have it either.

Firefox on Android has the option to open PDFs, so if you want it, that would be an option. It isn't a limitation of the operating system, Google simply couldn't be bothered and most others just use copy + past on Chrome.

[–] clark@midwest.social 1 points 4 months ago

That makes total sense, now I get it. So all in all, it's more secure to have separate apps doing the job instead of jamming it all into an ecosystem?

[–] pe1uca@lemmy.pe1uca.dev 1 points 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 7 points 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.

[–] RustyHeater@lemmy.world 6 points 4 months ago* (last edited 4 months ago)

The good news is anyone can grab the GrapheneOS PDF viewer. https://github.com/GrapheneOS/PdfViewer Or from the Google Play store https://play.google.com/store/apps/details?id=app.grapheneos.pdfviewer.play

[–] Reverendender@sh.itjust.works 3 points 4 months ago (1 children)

I’m very interested in your reasons for switching, and I would love to read periodic updates on your experience.

[–] clark@midwest.social 3 points 4 months ago (1 children)

You mean switching from iPhone to GOS? I can return to your comment after a while of using GOS to update you on my experience.

[–] WIPocket@lemmy.world 2 points 4 months ago

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

[–] SaltyIceteaMaker@lemmy.ml 2 points 4 months ago

Isn't your browser already a pdf viewer?

[–] electricprism@lemmy.ml 2 points 4 months ago (3 children)

I long for the day PDF can just be replaced by SVG since its basically just vector anyways.

[–] dogsnest@lemmy.world 8 points 4 months ago

It was a long and expensive battle just to keep "pdf" as "open" (lol) as it already is.

There are a million legacy reasons why Adobe, MS, IBM, Meta, Alphabet, are loathed, but here we are....

[–] redcalcium@lemmy.institute 4 points 4 months ago (1 children)

Pdf has a mind-bogging array of features, which make it so entrenched in the corporate world with no viable replacements at the moment. Things like forms where users can fill them out and submit (surprisingly a popular feature), cryptographic signing to prevent tampering, DRM, etc. Heck, I think you can even add JavaScript code to a pdf.

[–] JASN_DE@lemmy.world 2 points 4 months ago

forms where users can fill them out and submit (surprisingly a popular feature)

How is that surprising?

[–] mp3@lemmy.ca 1 points 4 months ago

And SVG can be quite readable if the text isn't converted to path.

[–] shalva97@lemmy.world 1 points 4 months ago* (last edited 4 months ago)

You could try their official app https://play.google.com/store/apps/details?id=com.adobe.reader

while many people hate it, it does work and has nice UI. Dark theme is my favourite.

[–] Andromxda@lemmy.dbzer0.com 1 points 4 months ago