GrapheneOS/PdfViewer
GrapheneOS/PdfViewer has 1,074 GitHub stars and 150 forks. GitHot measured +2 stars in 24 hours, +4 in 7 days, and +10 in 15 days. Last checked 2026-11-23 12:45 UTC. Last push 2026-11-20.
Progression mesurée des étoiles
- in 24h
- +2
- in 7 days
- +4
- in 15 days
- +10
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
À propos
Un lecteur PDF Android simple basé sur pdf.js et des fournisseurs de contenu. L’application ne nécessite aucune autorisation. Le flux PDF est transmis à la WebView sandboxée sans lui donner accès aux contenus ni aux fichiers. La CSP garantit que le JavaScript et les propriétés de style à l’intérieur de la WebView sont entièrement statiques.
SécuritéREADME.md
OriginalSimple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to the network, files, content providers or any other data.
Content-Security-Policy is used to enforce that the JavaScript and styling properties within the WebView are entirely static content from the APK assets along with blocking custom fonts since pdf.js handles rendering those itself.
It reuses the hardened Chromium rendering stack while only exposing a tiny subset of the attack surface compared to actual web content. The PDF rendering code itself is memory safe with dynamic code evaluation disabled, and even if an attacker did gain code execution by exploiting the underlying web rendering engine, they're within the Chromium renderer sandbox with less access than it would have within the browser.
Tests
Android instrumentation tests
Requires a connected device or running emulator.
./gradlew connectedAndroidTest
To run a single test:
./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=app.grapheneos.pdfviewer.test.PdfViewerLaunchTest
JavaScript unit tests
Requires Node.js 24+. Make sure modules are installed:
npm install
Run the tests:
npm test
Explorer des projets similaires
Chargement…