一款名为Gander的Android应用在Hacker News亮相,这是一款文件查看器,特别之处在于它不申请任何权限,甚至包括互联网权限[1]。该应用支持PDF、Word、Excel、PowerPoint、图片、视频、音频、Markdown和代码文件的查看[1]。
Gander的体积仅为14 MB[1],采用MIT许可证在Github上开源[1]。在技术实现方面,应用使用Pdfium库处理PDF文件,借助Media3库处理媒体文件,而Office格式文档则通过WebView中的JavaScript库进行渲染[1]。应用存在一些限制:复杂的PowerPoint演示文稿渲染不完全,电子表格的图表不会绘制,同时不支持旧版二进制格式的.doc和.ppt文件[1]。
A developer has unveiled Gander, an Android file viewing application that operates without requesting any permissions from users, including internet access [1]. The lightweight app, which weighs just 14 MB, supports a comprehensive range of file formats including PDF, Word, Excel, PowerPoint, images, video, audio, Markdown, and code files [1].
The application is built using a combination of technologies to handle different file types: Pdfium for PDF rendering, Media3 for media playback, and JavaScript libraries within WebView for rendering Office formats [1]. Gander is released under the MIT license and is available as open-source code on Github [1]. However, the app does have some limitations—complex PowerPoint presentations may not render completely, spreadsheet charts are not drawn, and legacy binary formats such as .doc and .ppt files are not supported [1].