Commit Graph

155 Commits

Author SHA1 Message Date
Daniel Sandler
df3f6d6c47 Migrate package notification controls to AppOps.
We still show the [X] Show Notifications box in
InstalledAppDetails for now, however the information should
be mostly in sync with the AppOps screen. ("Mostly" because
there's no way to register for changes to AppOp modes at
present.)

Change-Id: Ia5cdda26c140aed8ee7329caaeedac04b8cbd8f1
2013-02-01 13:29:52 -05:00
Dianne Hackborn
0dd9902c89 App ops: add UI for viewing and controlling ops per-app.
Change-Id: Iadd68cbd429af4d431dcd09b9adacd09c5092ae6
2013-01-25 11:27:04 -08:00
Fabrice Di Meglio
b27223f139 Fix Switches padding for Settings app
- use setPaddingRelative() instead of setPadding()

Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
2013-01-15 18:54:11 -08:00
Jeff Sharkey
97d07fa3ae Push scrollbars to screen edges.
Push scrollbar to screen edges on custom ListView and ScrollViews to
match Preferences framework behavior.

Bug: 7633165
Change-Id: Ideecd0e243c7de7bf977caef2b1585e707a00ca4
2012-11-30 16:15:09 -08:00
Dianne Hackborn
4de4061c8b Fix issue #7448596: Can't uninstall app that was installed by another user
Change-Id: I6614346f8da80ffedd71645ee2920cf85b92c87c
2012-10-31 18:12:03 -07:00
Zhijun Peng
aa21480109 Settings: Fix the memory leak in Settings
Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
2012-10-19 14:07:42 +08:00
Amith Yamasani
7a1c4cdfae Fix check for multiple users
Bug: 7365839

Remove the Uninstall for all users option if less than 2 users on the device.

Change-Id: I5d2d853e05e1d505b67f8b83b1d5ea7f9c6e7215
2012-10-17 13:36:21 -07:00
Dianne Hackborn
9072d9efc6 Fix issue #7330867: Cannot disable a built-in app if you've downloaded updates
Change-Id: Ie9dfe4a9195e4583bead8066807e4bba8274801f
2012-10-12 19:20:09 -07:00
Jeff Sharkey
54b3f501ca Avoid NPE when missing PackageInfo.
Bug: 7296861
Change-Id: I87b64d5f4b1f34e47d785a18a029130fdca874a1
2012-10-05 13:34:41 -07:00
Dianne Hackborn
ab616d477b Fix issue #7226978: Still in app detail screen after uninstall
Change-Id: I3b03db0a68bfab5dd010474ee714d5f7a5538af0
2012-10-04 15:44:50 -07:00
Jeff Sharkey
347188667b Avoid NPE when installing app update.
PMS sends REMOVED followed quickly by ADDED.  Ignore when missing
package, since it may be coming back shortly.  Eventually we should
change this to watch EXTRA_REPLACING.

Bug: 7269896
Change-Id: I3b518f4faee34019c5c808824d5e46261f6d206a
2012-10-03 16:06:41 -07:00
Jeff Sharkey
be32d4b408 Follow API changes in framework.
Change-Id: I6c1f5c9ec342f69ceae3dddaa0cfab4e0a742372
2012-10-02 18:57:55 -07:00
Dianne Hackborn
c715fb1207 Fix issue 7198767, 7198366, 7189824.
Bug #7198767: Crash on choosing App info from the Recent apps tab
Bug #7198366: Settings UI should not show other Users' apps
Bug #7189824: Settings crashes on trying to access Battery usage summary

Also fix running services to be able to show user bitmap when in
secondary users, crash in running services if a service is running
whose app is not installed for the current user.

Change-Id: Ief24810c9ddce1ec3f8641ce08af79e1bc18f221
2012-09-21 17:02:22 -07:00
Amith Yamasani
b1bf9cf383 Fix a crash in InstalledAppDetails
Initialize mPackageInfo in onCreate

Bug: 7194755
Change-Id: Ic82351591bd38c4c161bbb23c4033038d1d7fa85
2012-09-19 10:58:32 -07:00
Dianne Hackborn
0fca4296ac Fix issue #7178865: Selecting an app from Settings > Apps>...
...all crashes on a secondary user

Change-Id: I977932bce3ea2816e4c9d1002488b658a96e3986
2012-09-18 12:04:00 -07:00
Dianne Hackborn
3db54cb976 Add app details menu item to uninstall an app for all users.
Also some fixes: uninstalled apps are now marked as such in the
all apps lists, and sorted to the bottom like disabled apps.  We
don't immediately close the installed app details screen when
launching the uninstall UI.

Change-Id: Id22b749c20fc2441733c604d1de8889269217c5c
2012-09-16 18:27:14 -07:00
Jake Hamby
3465b67740 Add support for per-package policy for sending premium SMS.
The default behavior for sending a message to a premium SMS
short code (or suspected premium SMS number) is to ask the user for
confirmation. Enable the user to set a default policy ("remember this
choice" checkbox) to always/never allow the app to send SMS to
premium short codes in the future. The policy can be changed by
the Settings app in the app info screen.

Bug: 5513975
Change-Id: I93053fef1524ee7772cc87364c760cb3dbf01ad7
2012-09-14 16:47:04 -07:00
Dianne Hackborn
2e3c75094b Make settings a little aware of multi-user install.
Change-Id: Id04f137dbc80dfee7b6c436efc2225ceccb88faa
2012-08-24 13:13:46 -07:00
Jean-Baptiste Queru
b1f962377e am 291389ed: am 5dbc1f64: Merge "Fix use of holo drawables in a few more places"
* commit '291389ed5ce3c97c7f5ec145f00a6bc68862f8f4':
  Fix use of holo drawables in a few more places
2012-08-14 08:41:17 -07:00
Björn Lundén
c8272b0752 Fix use of holo drawables in a few more places
Change-Id: Ie549ff14812da807729641fab1871fffe35f80b6
2012-08-14 01:25:21 +02:00
Jean-Baptiste Queru
9e8e9a1783 am 6fb425e2: am eefa61ed: Merge "Settings: Use ICS alert drawable"
* commit '6fb425e2805a1c27c048fc954d402f4612cbf74d':
  Settings: Use ICS alert drawable
2012-08-13 16:03:15 -07:00
Jean-Baptiste Queru
eefa61ed2e Merge "Settings: Use ICS alert drawable" 2012-08-13 11:53:46 -07:00
Dianne Hackborn
1f6ddac9f4 If external storage is emulated, don't show it as separate entries.
The installed app details UI is really complicted for the two-partition
internal and external storage case...  however, in our lovely new world
of emulated external storage, there is no reason for this, since the
external storage is using the same partition as internal storage.  So
in this case, don't show external storage as a separate item, just
combine it into the base app size and data size values.

Change-Id: Iea0e78f2d532ad50e20fef98740c93b2e897890a
2012-07-12 16:26:44 -07:00
Dianne Hackborn
313ab17270 Fix issue #6761130: Clearing app data in settings does not clear app's USB storage
The installed app details was not correctly distinguishing between cache and
normal data on external storage.  The cache files on external storage are now
correctly shown in the cache section, since those are what get deleted when
you hit the clear cache button.

Change-Id: Id98bdb7fb5202d6a092fe5a772638eeb6aed2b47
2012-06-29 15:01:23 -07:00
Dianne Hackborn
e458832c76 Implement issue #6633077: Improve permissions display for...
...inherited permissions from shared UIDs

Bug: 6633077
Change-Id: I91917339e83b79a3dfcfcb70a68d571c9a7f7e14
2012-06-15 11:00:17 -07:00
Björn Lundén
e7c53b1c9e Settings: Use ICS alert drawable
Point to the correct holo alert drawable.

Change-Id: Ia15aaa028c8371cb2478baeecd2da31520c43a5d
2012-05-31 23:35:24 +02:00
Daniel Sandler
70b5999839 Refinements to notification controls in Settings.
- the switch is now a checkbox
- a dialog is posted to explain the ramifications of
  disabling notifications
- the user may no longer disable notifications from system
  apps (signed with the system cert); this is roughly the
  same as the constraint on disabling packages (with the
  exception that launchers may not be disabled entirely, but
  their notifications may still be disabled).

Bug: 6493120 (checkbox)
Bug: 6448988 (confirmation dialog & protect system apps)
Change-Id: I6c7a47ba2eb943936d7f59cfc807a4390acc980d
2012-05-17 13:21:57 -04:00
Dianne Hackborn
309c5dcee1 Rework manage applications to be page-able.
Turn everything around so that we can have multiple list views
with their own adapters.  Switch to using a ViewPager for managing
the different lists.  Smile!

Change-Id: I9c102abb06cf67f313a8696507aa4597b38c7ab9
2012-05-16 19:31:07 -07:00
Michael Jurka
c9029d99a3 New API to allow third-party apps to bind widgets
Change-Id: Ieec9f247fdbfc02c2ad8f5bb7f6b9efe0669af84
2012-04-24 18:52:53 -07:00
Amith Yamasani
3fd8051a89 Don't let monkeys launch storage management activities.
Guard against monkeys in two places where intents to other activities are
launched.

Bug: 5415988
Change-Id: Ia3c5514c02423f7b249f655296bb02e279789dfd
2012-04-23 13:46:10 -07:00
Daniel Sandler
4a824be44c Add notification shutoff switch to app details page.
Requires change Ieccac574.

Bug: 5547401
Change-Id: I9856658cc638723414a5c2c3c6807241c3ce6166
2012-04-23 04:53:14 -07:00
Dianne Hackborn
5c2b48d4d5 Fix issue #5320747: Disabling an app that is an active device administrator...
...can lead to an unsecure device

Now you can't disable device admins.

Or clear their data.

Or force stop them.

Or uninstall them (though the package manager also prevents uninstalling, might
as well disable this button along with everything else).

Change-Id: I69eefc2342e6f932908e9f5b87d3a601752810a4
2011-09-16 13:36:20 -07:00
Dianne Hackborn
f0b63c2c3e Fix issue #4999758: Disabling a system app should require...
...a scary sounding confirmation

Change-Id: I88b14a95b804f14d25a9efcb04b282d60f9719c3
2011-07-18 16:20:47 -07:00
Dianne Hackborn
bd9ddab4f4 Fix up storage UI for old USB storage.
- In the storage overview, if storage is not emulated then we have a
new first section showing internal storage.
- In manage applications, we know show storage use on the SD card
separately from internal storage use.

Change-Id: I7eb993f59fdb5de5f5dcfe4a3bc2b95ae30d754a
2011-06-29 15:41:28 -07:00
Marco Nelissen
3a5079823a Merge "Fix crash in Settings" 2011-06-27 14:58:57 -07:00
Dianne Hackborn
3937b15bbf am c9a477ae: am e3cfa9bc: am 13bac39d: Remove obsolete compat mode UI.
* commit 'c9a477aeaccda8a6fec48ee02ef04d5f7285097a':
  Remove obsolete compat mode UI.
2011-06-27 14:15:10 -07:00
Marco Nelissen
5d4b25c9a7 Fix crash in Settings
Change-Id: Idfc3a7e91caa1d8007db0c4bee856cfe0cbd2905
2011-06-27 14:11:26 -07:00
Dianne Hackborn
13bac39d21 Remove obsolete compat mode UI.
Change-Id: Ie16f70af4b8d6f33db21363a478049659669e0b3
2011-06-23 17:04:06 -07:00
Dianne Hackborn
a12c1e3226 Re-enable user disabling of apps.
Change-Id: I5f3a474926cf2b93e311435f67f36837f5f56caa
2011-06-17 14:50:11 -07:00
Dianne Hackborn
aef746c45f Implement new manage apps UI for compat mode.
Change-Id: Ia8db7f534b7294fbbb34e0acdedab3a96cea59e9
2011-05-26 01:06:11 -07:00
Mike Lockwood
2715376cfa IUsbManager hasDefaults() and clearDefaults() no longer take UID parameter
Change-Id: If661a17646e2698e92cfdfb1a3d0e5dd42e06279
BUG: 4061035

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-09 12:10:41 -05:00
Dianne Hackborn
c442e52dca Fix issue #4021524 HMI63B: "Force stop" button not disabled after app is stopped
There should probably be a broadcast from PM about this.  Later.

Change-Id: I713197ed458f8f6a914efb3800cd1b192f741613
2011-03-08 14:40:25 -08:00
Dianne Hackborn
861c04fbd4 Show force stop button if package is not fully stopped.
Change-Id: I88ccb0907352e082ccb538da77aeccc5ab309a49
2011-03-01 19:16:38 -08:00
Mike Lockwood
9d6d92b33e InstalledAppDetails: "Clear defaults" button now clears USB service settings
The USB service caches the preferred activity preferences for USB devices
and accessories and allows permission to access the hardware based on the
user's selection.  The "Clear defaults" button can now be used to clear
these settings.

Change-Id: I307c118cb0ce06362e289e35bca93a47ce4631a5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-01 08:05:59 -08:00
Kenny Root
424acfb7ad Measure external storage application usage
Application data usage on the SD card (or USB storage) was not being
reported by the Manage Applications screen. This is important for
upcoming OBB space accounting.

Bug: 3308791
Change-Id: Ibc9ad013cb2f6d0ee28caadca8899c1ff6e78f44
2011-01-17 09:58:26 -08:00
Patrick Dubroy
0c5b9ca58b fix 3185231: Dragging app to info button doesn't work
When dragging an app from all apps to the info button, it
is currently showing an empty dialog.
2011-01-05 15:28:21 -08:00
Dianne Hackborn
ee2937941d Further manage apps fragmentization.
All of the UI under manage apps should now be working.  Various
cleanup through new framework APIs.  Fragmentized developer settings.

Change-Id: I2b42a2dd0d015e0fdcde497579ddad3dceea9da2
2010-11-01 14:48:22 -07:00
Dianne Hackborn
f4eb85bc3c Start fragmentizing Manage Applications.
Change-Id: I0c3d6a358d0236893aba7257537ec32bfad4170d
2010-10-29 17:48:26 -07:00
Dianne Hackborn
6dc1bf84cf Manage apps "on SD card" now shows all apps that can go on SD card.
Change-Id: Icc413891b2b884bb1af340b4c09ab3935c8e51ca
2010-10-04 22:35:26 -07:00
Dianne Hackborn
2f144fc07d Fix android:allowClearUserData.
Now respect this flag for system apps.

Change-Id: I496b0051a4998cb41b8c07fd0eb85e253de1eb97
2010-09-30 18:49:18 -07:00