Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3664247 authored by Christopher Tate's avatar Christopher Tate
Browse files

New API: apps can request a wipe of their own data

Bug 9588299

Change-Id: I817a90e272ba279d7171f6dbe88dbafd7e42b050
parent a3416020
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2890,6 +2890,7 @@ package android.app {
  }
  public class ActivityManager {
    method public boolean clearApplicationUserData();
    method public void dumpPackageState(java.io.FileDescriptor, java.lang.String);
    method public android.content.pm.ConfigurationInfo getDeviceConfigurationInfo();
    method public int getLargeMemoryClass();
+12 −1
Original line number Diff line number Diff line
@@ -1401,6 +1401,17 @@ public class ActivityManager {
        }
    }

    /**
     * Permits an application to erase its own data from disk.  This is equivalent to
     * the user choosing to clear the app's data from within the device settings UI.
     *
     * @return {@code true} if the application successfully requested that the application's
     *     data be erased; {@code false} otherwise.
     */
    public boolean clearApplicationUserData() {
        return clearApplicationUserData(mContext.getPackageName(), null);
    }

    /**
     * Information you can retrieve about any processes that are in an error condition.
     */