diff options
author | Philip P. Moltmann <moltmann@google.com> | 2016-11-02 16:37:50 -0700 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2016-11-07 10:01:02 -0800 |
commit | 4f78e1fa55255a261247e9a112bc4433cd1a9ab0 (patch) | |
tree | f4429d0b3a82e03c81961a3657da9facf6411f07 /AndroidManifest.xml | |
parent | 2c899574ca1e8774ec2c1c4464ed117f2d92ea06 (diff) | |
download | android_packages_apps_PackageInstaller-4f78e1fa55255a261247e9a112bc4433cd1a9ab0.tar.gz android_packages_apps_PackageInstaller-4f78e1fa55255a261247e9a112bc4433cd1a9ab0.tar.bz2 android_packages_apps_PackageInstaller-4f78e1fa55255a261247e9a112bc4433cd1a9ab0.zip |
Uninstaller: For result lifecycle safe
- Move old uninstallation code to TV only (code in app_details.xml,
uninstall_progress.xml, UninstallAppProgress,
UninstallAppProgressFragment)
- use increasing (non-random) IDs for all uninstallations, even those
without uninstall-event-handling.
- Have new workflow to uninstallations that require the result to be
forwarded. For those just show a progress dialog. (code in
UninstallUninstalling). To deal with lifecyle events I am reusing the
EventResultPersister similar to the installation.
Test: Uninstalled from Settings
Change-Id: Iabdebd5412a910efa94c74efc4dd141879614d0b
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ed521b3d..c03d6fbb 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -95,10 +95,26 @@ </intent-filter> </activity> + <receiver android:name=".UninstallEventReceiver" + android:permission="android.permission.INSTALL_PACKAGES" + android:exported="true"> + <intent-filter android:priority="1"> + <action android:name="com.android.packageinstaller.ACTION_UNINSTALL_COMMIT" /> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.BOOT_COMPLETED" /> + </intent-filter> + </receiver> + + <activity android:name=".UninstallUninstalling" + android:excludeFromRecents="true" + android:theme="@style/AlertDialogActivity" + android:exported="false" /> + <receiver android:name=".UninstallFinish" android:exported="false" /> - <activity android:name=".UninstallAppProgress" + <activity android:name=".television.UninstallAppProgress" android:configChanges="mnc|mnc|touchscreen|navigation|screenLayout|screenSize|smallestScreenSize|orientation|locale|keyboard|keyboardHidden|fontScale|uiMode|layoutDirection|density" android:exported="false" /> |