From d3efa3924407da6d38aa5931ac29aa088d9eb986 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 1 Sep 2010 17:34:12 -0700 Subject: [PATCH] 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 --- api/9.xml | 22 --------------------- api/current.xml | 30 ++++------------------------- core/java/android/app/Activity.java | 4 ++++ core/res/AndroidManifest.xml | 21 +++++--------------- core/res/res/values/strings.xml | 14 -------------- data/etc/platform.xml | 2 -- 6 files changed, 13 insertions(+), 80 deletions(-) diff --git a/api/9.xml b/api/9.xml index 46f087fe93515..b266352f85f1f 100644 --- a/api/9.xml +++ b/api/9.xml @@ -793,17 +793,6 @@ visibility="public" > - - - - @@ -793,17 +793,6 @@ visibility="public" > - - - - @@ -203586,7 +203564,7 @@ synchronized="true" static="false" final="false" - deprecated="deprecated" + deprecated="not deprecated" visibility="public" > @@ -204134,7 +204112,7 @@ synchronized="true" static="false" final="false" - deprecated="deprecated" + deprecated="not deprecated" visibility="public" > diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index f7a9a1848f8dc..6e6e86f78950a 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -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 * activities are not persistent; setting this to true will prevent the * 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 * behavior. */ + @Deprecated public void setPersistent(boolean isPersistent) { if (mParent == null) { try { diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 19b30cc4e7a6e..0323b7044b53a 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -191,20 +191,6 @@ android:label="@string/permlab_writeContacts" android:description="@string/permdesc_writeContacts" /> - - - - - - - + diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 03b721c19b539..29ac2eafd7fde 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -783,20 +783,6 @@ contact (address) data stored on your phone. Malicious applications can use this to erase or modify your contact data. - - write owner data - - Allows an application to modify the - phone owner data stored on your phone. Malicious - applications can use this to erase or modify owner data. - - - read owner data - - Allows an application read the - phone owner data stored on your phone. Malicious - applications can use this to read phone owner data. - read calendar events diff --git a/data/etc/platform.xml b/data/etc/platform.xml index 7322e6c9424d1..6f8afff0fe1b5 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -90,8 +90,6 @@ - -