Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 789
    • Issues 789
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • briarbriar
  • Merge requests
  • !501

Require a system permission to open the settings activity

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged akwizgran requested to merge 909-restrict-access-to-settings-activity into master Mar 30, 2017
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

This branch adds a permission to SettingsActivity so it can only be opened by our own app or an app with the READ_NETWORK_USAGE_HISTORY permission, which is only granted to system apps.

This allows the system settings app to open SettingsActivity but prevents other apps from doing so (including am on the command line).

Tested on Android 4.0.4 and 6.0.1 (CM 13).

Fixes the first part of #909 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 909-restrict-access-to-settings-activity