Code Monkey home page Code Monkey logo

app-privacy-report-viewer's Introduction

app-privacy-report-viewer

Local viewer for App Privacy Reports in iOS 15

iOS 15 introduces a new feature in Privacy Settings called Record App Activity.

When enabled, you can save Save App Activity to dump the data to a newline-delimited json file of the form App_Privacy_Report_v4_<time>.ndjson

e.g.

{
  "stream": "com.apple.privacy.accounting.stream.tcc",
  "accessor": { "identifier": "com.google.ProjectFi", "identifierType": "bundleID" },
  "tccService": "kTCCServiceAddressBook",
  "identifier": "BE766661-F44C-46F8-A3E5-258FAE68D603",
  "kind": "event",
  "timestamp": "2021-06-09T14:19:48.270-05:00",
  "version": 3
}

This tool is a simple app to import these files and display them in a web interface running on your local computer.

To get started:

  • Ensure deno is installed (it's easy to install)
  • Run deno run --allow-net --allow-env --allow-read=.,`which deno` --allow-write=. https://raw.githubusercontent.com/johnspurlock/app-privacy-report-viewer/v0.8/src/app.ts
  • Open the locally-running web app at http://localhost:8015
  • Drag and drop your App_Privacy_Report_v4_<time>.ndjson file into the web app

If you encounter an error with the deno run command (which constrains to minimum os permissions) on your particular os/shell, try a less-restrictive alternate:

  • deno run --allow-net --allow-env --allow-read --allow-write https://raw.githubusercontent.com/johnspurlock/app-privacy-report-viewer/v0.8/src/app.ts

Once imported, you can filter by filename, date, type of access, and bundleId (app).

For example, filter to all activity from the Apple Podcasts app: http://localhost:8015/?bundleId=com.apple.podcasts

Screenshot of webapp


The data never leaves your machine, it's stored locally in a sqlite db called reports.db in your run directory, so you can open it for custom queries with any standard sqlite client like DB Browser for SQLite.

All processing is done on your local machine (should be able to run it offline after first launch), and the code is available here on github for full transparency.

app-privacy-report-viewer's People

Contributors

adobin avatar johnspurlock avatar metbril avatar qinyuhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.