Skip to content
Proyek

Tentang

Penampil PDF Android sederhana yang berbasis pdf.js dan content provider. Aplikasi ini tidak memerlukan izin apa pun. Stream PDF dimasukkan ke WebView yang disandbox, tanpa memberinya akses ke konten atau file. CSP digunakan untuk memastikan JavaScript dan properti styling di dalam WebView sepenuhnya statis.

Keamanan dan privasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+6
dalam 1 bulan
+15

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Simple 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

Jelajahi proyek terkait

Memuat…