idb icon indicating copy to clipboard operation
idb copied to clipboard

Add missing TCC permissions

Open tylervick opened this issue 2 years ago • 4 comments

Motivation

There have been several new user permissions introduced over the last couple of major iOS versions. This change adds the missing permissions that may be modified via existing TCC.db queries.

Notably, the "Health" permission is missing since it requires modification to a standalone healthdb.sqlite database. This will be implemented in a future PR.

The following permissions have been added:

  • calendar
  • biometrics (aka FaceID)
  • media
  • reminders
  • motion
  • siri
  • speech
  • userTracking

Test Plan

  • Run idb approve -h
  • Verify the output contains added permissions:
usage: idb approve [-h] [--scheme SCHEME] [--udid UDID]
                       [--log {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--json]
                       bundle_id
                       {photos,camera,contacts,url,location,notification,microphone,calendar,faceid,media,reminders,motion,siri,speech,user_tracking}
                       [{photos,camera,contacts,url,location,notification,microphone,calendar,faceid,media,reminders,motion,siri,speech,user_tracking} ...]
  • Grant any/all of the introduced permissions for a valid bundle ID:

    • idb approve com.example.app calendar
  • Verify the supplied permissions have been successfully granted for the bundle ID

  • Revoke any/all of the introduced permissions for a valid bundle ID:

    • idb revoke com.example.app calendar
  • Verify the supplied permissions have been successfully revoked for the bundle ID

Related PRs

tylervick avatar Sep 06 '22 19:09 tylervick

@grzmiel has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Jan 18 '23 21:01 facebook-github-bot

Do you have any new about this PR?

fleytman avatar Aug 21 '23 06:08 fleytman

These are very useful changes, what's stopping you from making a merge of changes at this point?

fleytman avatar Nov 27 '23 03:11 fleytman

@fleytman unfortunately I don't have permission to merge this - I just re-requested a review from @grzmiel, perhaps they can help

tylervick avatar Dec 03 '23 16:12 tylervick