Clean up some permissions.

Note that WRITE_OWNER_DATA and READ_OWNER_DATA don't actually appear
to be associated with anything or used by anyone, so they are just
deleted.

Also deprecate the activity API to go in the foreground.  I didn't
realize that was released in the SDK.  It needs to go away.

Change-Id: I96f53702c2c79e4999b6b2c498abb770bd27e03a
This commit is contained in:
Dianne Hackborn
2010-09-01 17:34:12 -07:00
parent bc5ec2f91a
commit d3efa39244
6 changed files with 13 additions and 80 deletions

View File

@@ -793,17 +793,6 @@
visibility="public" visibility="public"
> >
</field> </field>
<field name="READ_OWNER_DATA"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.permission.READ_OWNER_DATA&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="READ_PHONE_STATE" <field name="READ_PHONE_STATE"
type="java.lang.String" type="java.lang.String"
transient="false" transient="false"
@@ -1233,17 +1222,6 @@
visibility="public" visibility="public"
> >
</field> </field>
<field name="WRITE_OWNER_DATA"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.permission.WRITE_OWNER_DATA&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="WRITE_SECURE_SETTINGS" <field name="WRITE_SECURE_SETTINGS"
type="java.lang.String" type="java.lang.String"
transient="false" transient="false"

View File

@@ -712,7 +712,7 @@
value="&quot;android.permission.PERSISTENT_ACTIVITY&quot;" value="&quot;android.permission.PERSISTENT_ACTIVITY&quot;"
static="true" static="true"
final="true" final="true"
deprecated="not deprecated" deprecated="deprecated"
visibility="public" visibility="public"
> >
</field> </field>
@@ -793,17 +793,6 @@
visibility="public" visibility="public"
> >
</field> </field>
<field name="READ_OWNER_DATA"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.permission.READ_OWNER_DATA&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="READ_PHONE_STATE" <field name="READ_PHONE_STATE"
type="java.lang.String" type="java.lang.String"
transient="false" transient="false"
@@ -1233,17 +1222,6 @@
visibility="public" visibility="public"
> >
</field> </field>
<field name="WRITE_OWNER_DATA"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.permission.WRITE_OWNER_DATA&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="WRITE_SECURE_SETTINGS" <field name="WRITE_SECURE_SETTINGS"
type="java.lang.String" type="java.lang.String"
transient="false" transient="false"
@@ -20516,7 +20494,7 @@
synchronized="false" synchronized="false"
static="false" static="false"
final="false" final="false"
deprecated="not deprecated" deprecated="deprecated"
visibility="public" visibility="public"
> >
<parameter name="isPersistent" type="boolean"> <parameter name="isPersistent" type="boolean">
@@ -203586,7 +203564,7 @@
synchronized="true" synchronized="true"
static="false" static="false"
final="false" final="false"
deprecated="deprecated" deprecated="not deprecated"
visibility="public" visibility="public"
> >
</method> </method>
@@ -204134,7 +204112,7 @@
synchronized="true" synchronized="true"
static="false" static="false"
final="false" final="false"
deprecated="deprecated" deprecated="not deprecated"
visibility="public" visibility="public"
> >
<parameter name="pluginsPath" type="java.lang.String"> <parameter name="pluginsPath" type="java.lang.String">

View File

@@ -1620,6 +1620,9 @@ public class Activity extends ContextThemeWrapper
} }
/** /**
* @deprecated This functionality will be removed in the future; please do
* not use.
*
* Control whether this activity is required to be persistent. By default * Control whether this activity is required to be persistent. By default
* activities are not persistent; setting this to true will prevent the * activities are not persistent; setting this to true will prevent the
* system from stopping this activity or its process when running low on * system from stopping this activity or its process when running low on
@@ -1634,6 +1637,7 @@ public class Activity extends ContextThemeWrapper
* persistent, true if so, false for the normal * persistent, true if so, false for the normal
* behavior. * behavior.
*/ */
@Deprecated
public void setPersistent(boolean isPersistent) { public void setPersistent(boolean isPersistent) {
if (mParent == null) { if (mParent == null) {
try { try {

View File

@@ -191,20 +191,6 @@
android:label="@string/permlab_writeContacts" android:label="@string/permlab_writeContacts"
android:description="@string/permdesc_writeContacts" /> android:description="@string/permdesc_writeContacts" />
<!-- Allows an application to read the owner's data. -->
<permission android:name="android.permission.READ_OWNER_DATA"
android:permissionGroup="android.permission-group.PERSONAL_INFO"
android:protectionLevel="dangerous"
android:label="@string/permlab_readOwnerData"
android:description="@string/permdesc_readOwnerData" />
<!-- Allows an application to write (but not read) the owner's data. -->
<permission android:name="android.permission.WRITE_OWNER_DATA"
android:permissionGroup="android.permission-group.PERSONAL_INFO"
android:protectionLevel="dangerous"
android:label="@string/permlab_writeOwnerData"
android:description="@string/permdesc_writeOwnerData" />
<!-- Allows an application to read the user's calendar data. --> <!-- Allows an application to read the user's calendar data. -->
<permission android:name="android.permission.READ_CALENDAR" <permission android:name="android.permission.READ_CALENDAR"
android:permissionGroup="android.permission-group.PERSONAL_INFO" android:permissionGroup="android.permission-group.PERSONAL_INFO"
@@ -625,7 +611,10 @@
android:label="@string/permlab_setAnimationScale" android:label="@string/permlab_setAnimationScale"
android:description="@string/permdesc_setAnimationScale" /> android:description="@string/permdesc_setAnimationScale" />
<!-- Allow an application to make its activities persistent. --> <!-- @deprecated This functionality will be removed in the future; please do
not use.
Allow an application to make its activities persistent. -->
<permission android:name="android.permission.PERSISTENT_ACTIVITY" <permission android:name="android.permission.PERSISTENT_ACTIVITY"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS" android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="dangerous" android:protectionLevel="dangerous"
@@ -767,7 +756,7 @@
<!-- Allows applications to disable the keyguard --> <!-- Allows applications to disable the keyguard -->
<permission android:name="android.permission.DISABLE_KEYGUARD" <permission android:name="android.permission.DISABLE_KEYGUARD"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS" android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal" android:protectionLevel="dangerous"
android:description="@string/permdesc_disableKeyguard" android:description="@string/permdesc_disableKeyguard"
android:label="@string/permlab_disableKeyguard" /> android:label="@string/permlab_disableKeyguard" />

View File

@@ -783,20 +783,6 @@
contact (address) data stored on your phone. Malicious contact (address) data stored on your phone. Malicious
applications can use this to erase or modify your contact data.</string> applications can use this to erase or modify your contact data.</string>
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_writeOwnerData">write owner data</string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permdesc_writeOwnerData">Allows an application to modify the
phone owner data stored on your phone. Malicious
applications can use this to erase or modify owner data.</string>
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_readOwnerData">read owner data</string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permdesc_readOwnerData">Allows an application read the
phone owner data stored on your phone. Malicious
applications can use this to read phone owner data.</string>
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_readCalendar">read calendar events</string> <string name="permlab_readCalendar">read calendar events</string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->

View File

@@ -90,8 +90,6 @@
<assign-permission name="android.permission.CALL_PHONE" uid="shell" /> <assign-permission name="android.permission.CALL_PHONE" uid="shell" />
<assign-permission name="android.permission.READ_CONTACTS" uid="shell" /> <assign-permission name="android.permission.READ_CONTACTS" uid="shell" />
<assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" /> <assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" />
<assign-permission name="android.permission.READ_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.WRITE_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.READ_CALENDAR" uid="shell" /> <assign-permission name="android.permission.READ_CALENDAR" uid="shell" />
<assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" /> <assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" />
<assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" /> <assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" />