summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InstallShortcutReceiver.java
Commit message (Collapse)AuthorAgeFilesLines
* Preventing a shortcut which requires permissions from being added toSunny Goyal2016-09-081-0/+10
| | | | | | | | | | | | | | | | homescreen A shortcut can be added by any app as INSTALL_SHORTCUT is a normal level permission. But the intent is actually launched by the launcher app which can have other permission as well. > When adding a shortcut from the broadcast, verify that the intent does not require any permission > When adding a shortcut using the two-step drop process, verify that the source app also has the permission to create such a shortcut Bug: 30778130 Change-Id: I710a490d69019dc25709db5a97020c20d9325007
* Removing shadow and badging from the icon which is shown in the menuSunny Goyal2016-07-261-1/+1
| | | | | | | These are added as soon as the icon is added to the workspace Bug: 28980830 Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
* Fixing model being updated on UI threadSunny Goyal2016-03-181-1/+1
| | | | | | | | | | | > When package gets unavailable or suspended, the disabled flag was getting updated on the UI thread. This could lead to inconsistent model if launcher activity didn't exist. > Fixing: When unsuspending one work profile apps, all work profile apps get unsuspended Bug: 27673573,27673373,27403236 Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
* Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on ↵Sunny Goyal2015-12-181-3/+3
|\ | | | | | | main thread" into ub-launcher3-burnaby-polish
| * Using SharedPrefenrece.apply instead of commit to prevent disk IO on main threadSunny Goyal2015-12-171-3/+3
| | | | | | | | | | Bug: 25903149 Change-Id: Ib1ee3fd27cca14f147f704aec768a330c4f03b33
* | Fixing some invalid checks and cleaning some redundant conditionsSunny Goyal2015-12-181-7/+5
|/ | | | Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
* Verifying the install shortcut intent before casting the extras to various ↵Sunny Goyal2015-12-071-12/+28
| | | | | | | object types Bug: 26043109 Change-Id: I95f127d62a6a508a850e11d6728afc7509fb07d1
* Tying LauncherAppState lifecycle with LauncherProviderSunny Goyal2015-11-241-1/+0
| | | | | | | The content provider is the first component started with the main process, which makes it ideal for initiating LauncherAppState Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
* Refactoring getPreferenceKey methodSunny Goyal2015-10-201-7/+3
| | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
* Fixing backup restoreSunny Goyal2015-06-251-6/+0
| | | | | | | | | | | | | | | > Not deleting icons from cache, which have not been restored yet > Not checking if activity exists during DB migration. Missing components are removed during loader anyway > Backing up and restoring bitmaps even when iconType is resource. This allows us to show a proper bitmap icon, until the correct resource is available. > Loading proper shortcutResource icon for promiseIcons > Checking against promise intent when verifying duplicates > A launcher App intent can contain EXTRA_PROFILE Bug: 22094970 Change-Id: I982971338846733833ec133119393af0bea0eb08
* Icons are not updated to TYPE_APPLICATION during restoreSunny Goyal2015-05-211-25/+11
| | | | | | | | | | > Use low res only for app shortcuts > Running icon migration after restore > Running icon migration again for all users > Deduping shortcuts added from widget tray Bug: 20945600 Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
* Trim all whitespace from titles and labels.Winson Chung2015-05-081-1/+1
| | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Preventing launcher crash because of invalid install shortcut intentSunny Goyal2015-05-041-2/+5
| | | | Change-Id: Ibede31c8f018b17da5f272aa505a31f40a1b76f3
* Fixing missing updates in package install sessionsSunny Goyal2015-04-221-6/+2
| | | | | | | | | | | | > Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
* Automatically adding managed profile shortcuts to homescreen.Sunny Goyal2015-04-101-11/+2
| | | | | | | | | | | | When the managed profile is created, a "Work" folder is created and added to the homescreen. All work profile apps are added to this folder and icons for subsequent installs (withing a fixed time frame) are automatically added to this folder. If this folder get deleted or the time-frame expires, icon for any new install is placed on the homescreen. Bug: 17410319 Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
* Deduping shortcuts to app-shortcuts if they have a valid intentSunny Goyal2015-04-101-0/+42
| | | | | | | > Only deduping shortcuts for the primary user as custom shortcuts for secondary users is not supported. Change-Id: If129dee64a395602006ebb996d4b09b93b89084f
* Rewrite: Widget preview loader logicSunny Goyal2015-03-201-1/+1
| | | | | | | | | > Widget previews are saved in data dir instead of cache dir > Expiring widget previews similar to IconCache > Removed support for setting thread priorities Bug: 19865031 Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-1/+2
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Removed disableAllApps flagSunny Goyal2015-02-261-5/+0
| | | | Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
* Fixing wrong package check when adding shortcutsSunny Goyal2014-12-031-1/+1
| | | | | Bug: 18571789,18535867 Change-Id: I2544fa634879846d812b00f8649520400f66d29e
* Fixing NullPointer Exception when user is deleted.Sunny Goyal2014-11-141-0/+3
| | | | | Bug: 18388507 Change-Id: I4176ea37a019c2a862e6b2875cc6b03ec9118571
* Adding shortcuts corresponding to ManagedUsers automatically.Sunny Goyal2014-11-121-165/+212
| | | | | Bug: 16188104 Change-Id: Ic07578dd187263f59f3c431cbb78dea90d0c24f4
* Adding NPE check in InstallShortcutReceiverSunny Goyal2014-10-141-15/+13
| | | | | | | > Removing some unused methods Bug: 17971165 Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
* Fix issue where shortcuts were still being added even if corresponding app ↵Adam Cohen2014-05-201-8/+19
| | | | | | | | is uninstalled issue 14410162 Change-Id: I7857aace069c4eb4c1ee504088f4526d61e1f30e
* Small refactor to separate adding workspace / all apps itemsAdam Cohen2014-02-051-1/+1
| | | | Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
* Allow DISABLE_ALL_APPS to be set using a system property.Nilesh Agrawal2014-01-091-1/+1
| | | | | | | | | - Moving the property to LauncherAppState - The property is only read on dogfood builds. The property can be set using setprop or /data/local.prop Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
* Do not allow duplicate shortcuts when ALL_APPS is disabled.Nilesh Agrawal2013-12-171-0/+32
| | | | | | | | When DISABLE_ALL_APPS is true, we want to have only one shortcut for each activityexposed via the Application's manifest. We ignore INSTALL_SHORTCUT broadcasts which have launch intents with ACTION_MAIN and CATEGORY_LAUNCHER. Applications can still create shortcuts pointing to an already exposed component if they provide data or extras in the intent. Change-Id: I0b05283ea6c522d197e0262c2997f7298e08740b
* Clean up importsMichael Jurka2013-12-131-2/+4
|
* Require valid arrays when adding and binding new Apps. (Bug 11627095)Winson Chung2013-11-141-1/+1
| | | | Change-Id: I8f2a4dc70bf376d804885f433ab20064823ebaac
* Merge "Ensuring that we have a valid name for installed shortcuts. (Bug ↵Winson Chung2013-10-171-11/+22
|\ | | | | | | 11266005)" into jb-ub-now-jetsonic
| * Ensuring that we have a valid name for installed shortcuts. (Bug 11266005)Winson Chung2013-10-171-11/+22
| | | | | | | | Change-Id: Idf723ba165522cf259d9fe71533e1d5765512865
* | Merge "Ensuring disabled packages remove all components on the workspace. ↵Winson Chung2013-10-171-0/+3
|\ \ | | | | | | | | | (Bug 11172454)" into jb-ub-now-jetsonic
| * | Ensuring disabled packages remove all components on the workspace. (Bug ↵Winson Chung2013-10-161-0/+3
| |/ | | | | | | 11172454)
* / Fix ConcurrentModificationException in InstallShortcutReceiverBjorn Bringert2013-10-171-9/+20
|/ | | | | | | | Before, if two shortcuts were added, and then the package for one of them removed, all while Launcher wasn't visible, Launcher crashed. Bug: 11264076 Change-Id: I892c190101389aa42d84d66960f5b6f6f43f2dfc
* Always set the LauncherAppState context before using it from a broadcast. ↵Winson Chung2013-09-271-0/+1
| | | | | | (Bug 10947459) Change-Id: I284786b538a9d58aa96cfc208ef68621e2500645
* Integrating some aosp fixes, ensuring that we update the install queue ↵Winson Chung2013-09-261-3/+35
| | | | | | | | | | | before returning to Launcher. - Fixing stuck page in All Apps (Bug 9347818) - Fixing shortcuts to uninstalled apps from being installed (Bug 10726510) - Consolidating vibration feedback - Ensuring that we trim names during comparison in AllApps list Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
* Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)Winson Chung2013-09-251-1/+1
| | | | Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
* Fix crash when setting wallpaperMichael Jurka2013-09-051-2/+2
| | | | | Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
* Initial changes to restore AllApps.Winson Chung2013-09-051-1/+1
| | | | | | | - Removes unused all apps code due to dynamic grid/spacing - Attempts to use CellLayout instead of PagedViewCellLayout Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
* Fixing folders to always show in view, removing old assets and references to ↵Winson Chung2013-08-231-2/+2
| | | | LauncherModel count.
* Removing old new-app animation code, and refactoring InstallShortcutReceiver ↵Winson Chung2013-07-261-137/+51
| | | | | | to use new add/bind logic. Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
* Lazily instantiate LauncherAppState.Daniel Sandler2013-06-271-2/+0
| | | | | | | | The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
* Using package broadcasts to key adding of shortcuts on the workspace.Winson Chung2013-06-261-1/+1
| | | | Change-Id: Id4f83cb0351d21e3f7c029c7fe39efdacd2d6f17
* Initial implementation of Shrink-wrapAdam Cohen2013-06-251-1/+2
| | | | Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
* Move LauncherApplication's state and code to LauncherAppState.Daniel Sandler2013-06-111-5/+5
| | | | | | | | This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
* Changing default screen to 0Adam Cohen2013-06-061-2/+2
| | | | Change-Id: I16b2440f99d4b91a3a74226cdac7054e7d5fd7f5
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+363
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b