Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Created March 19, 2013 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/5199503 to your computer and use it in GitHub Desktop.
Save chris-piekarski/5199503 to your computer and use it in GitHub Desktop.
Add new permissions to Android platform.
To add a new permission to Android modify the frameworks/base/core/res/AndroidManifest.xml file. Make sure you add the strings too. After rebuilding check that the api/current.txt file was updated to include the new permissions.
<!-- Allows an application to write the company system settings. -->
<permission android:name="android.permission.WRITE_COMPANY_SETTINGS"
android:permissionGroup="android.permission-group.DEVELOPMENT_TOOLS"
android:protectionLevel="signature|system|development"
android:label="@string/permlab_writeCompanySettings"
android:description="@string/permdesc_writeCompanySettings" />
<!-- Allows an application to read the company system settings. -->
<permission android:name="android.permission.READ_COMPANY_SETTINGS"
android:permissionGroup="android.permission-group.DEVELOPMENT_TOOLS"
android:protectionLevel="signature|system|development"
android:label="@string/permlab_readCompanySettings"
android:description="@string/permdesc_readCompanySettings" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment