Delete @removed APIs that never shipped.
These were never part of any public API level, so apps should never have been using them. Test: builds, boots Bug: 31241513 Change-Id: I4fc8f5c325da56694a5db98acc995a22d4947805
This commit is contained in:
@@ -730,12 +730,6 @@ public abstract class Context {
|
||||
*/
|
||||
public abstract boolean moveSharedPreferencesFrom(Context sourceContext, String name);
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public boolean migrateSharedPreferencesFrom(Context sourceContext, String name) {
|
||||
return moveSharedPreferencesFrom(sourceContext, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an existing shared preferences file.
|
||||
*
|
||||
@@ -1451,12 +1445,6 @@ public abstract class Context {
|
||||
*/
|
||||
public abstract boolean moveDatabaseFrom(Context sourceContext, String name);
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public boolean migrateDatabaseFrom(Context sourceContext, String name) {
|
||||
return moveDatabaseFrom(sourceContext, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an existing private SQLiteDatabase associated with this Context's
|
||||
* application package.
|
||||
@@ -4382,12 +4370,6 @@ public abstract class Context {
|
||||
*/
|
||||
public abstract Context createDeviceProtectedStorageContext();
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public Context createDeviceEncryptedStorageContext() {
|
||||
return createDeviceProtectedStorageContext();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new Context object for the current Context but whose storage
|
||||
* APIs are backed by credential-protected storage. This is the default
|
||||
@@ -4416,12 +4398,6 @@ public abstract class Context {
|
||||
@SystemApi
|
||||
public abstract Context createCredentialProtectedStorageContext();
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public Context createCredentialEncryptedStorageContext() {
|
||||
return createCredentialProtectedStorageContext();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the display adjustments holder for this context. This information
|
||||
* is provided on a per-application or activity basis and is used to simulate lower density
|
||||
@@ -4462,12 +4438,6 @@ public abstract class Context {
|
||||
*/
|
||||
public abstract boolean isDeviceProtectedStorage();
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public boolean isDeviceEncryptedStorage() {
|
||||
return isDeviceProtectedStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the storage APIs of this Context are backed by
|
||||
* credential-protected storage.
|
||||
@@ -4478,12 +4448,6 @@ public abstract class Context {
|
||||
@SystemApi
|
||||
public abstract boolean isCredentialProtectedStorage();
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public boolean isCredentialEncryptedStorage() {
|
||||
return isCredentialProtectedStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
|
||||
@@ -720,10 +720,6 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
*/
|
||||
public String deviceProtectedDataDir;
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public String deviceEncryptedDataDir;
|
||||
|
||||
/**
|
||||
* Full path to the credential-protected directory assigned to the package
|
||||
* for its persistent data.
|
||||
@@ -733,10 +729,6 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
@SystemApi
|
||||
public String credentialProtectedDataDir;
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public String credentialEncryptedDataDir;
|
||||
|
||||
/**
|
||||
* Full path to the directory where native JNI libraries are stored.
|
||||
*/
|
||||
@@ -1140,8 +1132,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
seInfoUser = orig.seInfoUser;
|
||||
sharedLibraryFiles = orig.sharedLibraryFiles;
|
||||
dataDir = orig.dataDir;
|
||||
deviceEncryptedDataDir = deviceProtectedDataDir = orig.deviceProtectedDataDir;
|
||||
credentialEncryptedDataDir = credentialProtectedDataDir = orig.credentialProtectedDataDir;
|
||||
deviceProtectedDataDir = orig.deviceProtectedDataDir;
|
||||
credentialProtectedDataDir = orig.credentialProtectedDataDir;
|
||||
uid = orig.uid;
|
||||
minSdkVersion = orig.minSdkVersion;
|
||||
targetSdkVersion = orig.targetSdkVersion;
|
||||
@@ -1264,8 +1256,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
seInfoUser = source.readString();
|
||||
sharedLibraryFiles = source.readStringArray();
|
||||
dataDir = source.readString();
|
||||
deviceEncryptedDataDir = deviceProtectedDataDir = source.readString();
|
||||
credentialEncryptedDataDir = credentialProtectedDataDir = source.readString();
|
||||
deviceProtectedDataDir = source.readString();
|
||||
credentialProtectedDataDir = source.readString();
|
||||
uid = source.readInt();
|
||||
minSdkVersion = source.readInt();
|
||||
targetSdkVersion = source.readInt();
|
||||
@@ -1336,10 +1328,10 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
return;
|
||||
}
|
||||
|
||||
deviceEncryptedDataDir = deviceProtectedDataDir = Environment
|
||||
deviceProtectedDataDir = Environment
|
||||
.getDataUserDePackageDirectory(volumeUuid, userId, packageName)
|
||||
.getAbsolutePath();
|
||||
credentialEncryptedDataDir = credentialProtectedDataDir = Environment
|
||||
credentialProtectedDataDir = Environment
|
||||
.getDataUserCePackageDirectory(volumeUuid, userId, packageName)
|
||||
.getAbsolutePath();
|
||||
|
||||
|
||||
@@ -411,17 +411,6 @@ public abstract class PackageManager {
|
||||
*/
|
||||
public static final int MATCH_DIRECT_BOOT_AWARE = 0x00080000;
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public static final int MATCH_ENCRYPTION_UNAWARE = 0x00040000;
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public static final int MATCH_ENCRYPTION_AWARE = 0x00080000;
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public static final int MATCH_ENCRYPTION_AWARE_AND_UNAWARE = MATCH_ENCRYPTION_AWARE
|
||||
| MATCH_ENCRYPTION_UNAWARE;
|
||||
|
||||
/**
|
||||
* Querying flag: include only components from applications that are marked
|
||||
* with {@link ApplicationInfo#FLAG_SYSTEM}.
|
||||
|
||||
@@ -420,12 +420,6 @@ public class PreferenceManager {
|
||||
mSharedPreferences = null;
|
||||
}
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public void setStorageDeviceEncrypted() {
|
||||
setStorageDeviceProtected();
|
||||
}
|
||||
|
||||
/**
|
||||
* Explicitly set the storage location used internally by this class to be
|
||||
* credential-protected storage. This is the default storage area for apps
|
||||
@@ -445,12 +439,6 @@ public class PreferenceManager {
|
||||
mSharedPreferences = null;
|
||||
}
|
||||
|
||||
/** @removed */
|
||||
@Deprecated
|
||||
public void setStorageCredentialEncrypted() {
|
||||
setStorageCredentialProtected();
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the storage location used internally by this class is the
|
||||
* default provided by the hosting {@link Context}.
|
||||
|
||||
Reference in New Issue
Block a user