diff options
author | Clark Scheff <clark@cyngn.com> | 2014-09-11 16:02:33 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-09-16 15:04:50 +0000 |
commit | 58ffa8064b00fa40c9f6188dd10056b06529cfb3 (patch) | |
tree | 0c6b7c99f14d8848657d6fd6319da84df5b16e8b /AndroidManifest.xml | |
parent | 9456e3b1e911e1dbefd96fedd26413e47b7b60bc (diff) | |
download | packages_apps_ThemeChooser-58ffa8064b00fa40c9f6188dd10056b06529cfb3.zip packages_apps_ThemeChooser-58ffa8064b00fa40c9f6188dd10056b06529cfb3.tar.gz packages_apps_ThemeChooser-58ffa8064b00fa40c9f6188dd10056b06529cfb3.tar.bz2 |
Delete packages from inside app
Deleting themes offers a bad user experience in its current form.
Since PackageInstaller does not let us know that the package
removal was successful, the theme will remain in the viewpager until
we finally receive the broadcast from the PackageManager that the
theme was removed.
This patch adds the DELETE_PACKAGES permission and deletes the package
without using the PackageInstaller. This allows us to know immediately
that the package was removed and we can update the themes right away.
Change-Id: I229f2fbadc6f614a8180fb04735906f86e5e96fa
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 11cfc0d..4722ac9 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -24,6 +24,9 @@ <uses-permission android:name="android.permission.SET_WALLPAPER" /> <uses-permission android:name="android.permission.SET_KEYGUARD_WALLPAPER" /> + <!-- Used to cleanly uninstall themes without relying on the PackageInstaller apk --> + <uses-permission android:name="android.permission.DELETE_PACKAGES" /> + <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" /> |