Skip to content


Choose a tag to compare
@thestinger thestinger released this 21 Nov 22:52
· 272 commits to main since this release

Full list of changes from the previous release (version 6). Notable changes:

  • update pdf.js to 2.10.377
  • update other dependencies
  • update minimum API version to 26 (Android 8.0+)
  • update target API version to 31 (Android 12)
  • remove/replace some of the deprecated API usage
  • replace Feature-Policy with Permissions-Policy
  • remove legacy cruft from Content-Security-Policy
  • replace launcher icon with a nicer one
  • enable full R8 optimization
  • enable strict resource shrinking

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 content or files. Content-Security-Policy is used to enforce that the JavaScript and styling properties within the WebView are entirely static content from the apk assets. 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 no access to the network (unlike a browser), files, or other content.