Skip to content
프로젝트

GrapheneOS/PdfViewer has 1,075 GitHub stars and 149 forks. GitHot measured +1 stars in 24 hours, +5 in 7 days, and +10 in 15 days. Last checked 2026-11-24 14:36 UTC. Last push 2026-11-20.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+5
in 15 days
+10
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

pdf.js와 콘텐츠 프로바이더를 기반으로 하는 간단한 Android PDF 뷰어입니다. 앱에 권한이 전혀 필요하지 않습니다. PDF 스트림은 콘텐츠나 파일에 대한 접근 권한을 부여하지 않은 샌드박스 WebView로 전달됩니다. CSP를 사용해 WebView 내부의 JavaScript와 스타일 속성이 완전히 정적으로 유지되도록 강제합니다.

보안

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…