Created
March 19, 2013 19:53
-
-
Save chris-piekarski/5199503 to your computer and use it in GitHub Desktop.
Add new permissions to Android platform.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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