8224 Commits

Author SHA1 Message Date
Christopher Tate
f9767d680d Infrastructure for notification backup/restore
Introduce a fairly general "store byte[] blobs as backup keys" helper, and
use that to integrate with the Notification Manager.  The helper provides all
the machinery of managing prior state, compressing the blob on the wire, etc.

Bug 19848954
Bug 20105530
Bug 17755700

Change-Id: I4aa808172244af6db0ab2f4440cc266a797655d7
2015-04-20 14:08:25 -07:00
Stuart Scott
c6213ba09f Merge "Fixing build break" 2015-04-20 20:16:25 +00:00
Svet Ganov
7a0fe44d6a Merge "Report all permissions for user in PermissionsState" 2015-04-20 20:10:32 +00:00
Svet Ganov
7aa6dfeb01 Report all permissions for user in PermissionsState
Change-Id: I08a228018401820ef82cf1f95fe29556d3aeba5e
2015-04-20 13:09:11 -07:00
Stuart Scott
9a9a1d923d Fixing build break
Change-Id: I7ab3673627d1fda2d96a17c7e1823417fcb5cfef
2015-04-20 11:33:06 -07:00
Stuart Scott
f1fb39763d Move factoryReset to service and protect.
bug:16161518
Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
2015-04-20 10:52:35 -07:00
Erik Kline
f851d6dd2a CONNECTIVITY_ACTION is the new _IMMEDIATE
Bug: 20013379
Change-Id: I3e904dc0a0ddb30c7bb8cdb24d0762052ddc59eb
2015-04-20 16:11:58 +09:00
Jeff Sharkey
eba260d6d3 Wait for first scan before partitioning is done.
This means newly created volumes are at least created for other
platform components to start poking with.

Bug: 19993667
Change-Id: I561a5d0e3659ff9146832aeb6a31ab78fd9da580
2015-04-19 14:35:16 -07:00
Jeff Sharkey
e6c04f9417 Broadcast hidden volumes, notification polish.
Send limited broadcast intent when certain volume state changes
occur; the only customer for now is ExternalStorageProvider.

Change notification flow to be less bumpy.  Pick USB icon based on
disk type, and avoid using "generic" disk labels.

Bug: 19993667
Change-Id: I263bc9e9aae2ae57eb4d1afe76da686aee5475fb
2015-04-18 23:11:00 -07:00
Jeff Sharkey
529f91fc8e Always send volume UUID with installd commands.
Since packages can be moved to other volumes, all relevant commands
to installd now require an explicit volume UUID parameter.

Bug: 20275577
Change-Id: Ie84f5bc43c7aada5800b8d71692c7928b42b965e
2015-04-18 21:11:58 -07:00
Jeff Sharkey
355df8f16a Merge "Wire up non-visible volumes, more states." 2015-04-18 23:25:31 +00:00
Jeff Sharkey
27de30d31c Wire up non-visible volumes, more states.
Adds logic to ExternalStorageProvider to scan non-visible volumes,
such as USB OTG devices.  We use internal paths when surfacing these
volumes, which also optimizes around the FUSE daemon for public
devices.  Also dumps internal state when requested.

VolumeInfo now directly contains DiskInfo, which means it's
snapshotted when sending events, avoiding teardown races.  Switch
notifications to use this DiskInfo directly.

Finish wiring up new volume state, including helper methods to make
it readable/writable state clearer.  Handle disks and volumes with
spaces in their labels.

Bug: 19993667
Change-Id: I5c75e5658a6415976811477aebafee7694bde0f4
2015-04-18 16:20:30 -07:00
Jeff Sharkey
6b875a7497 Merge "Volumes know parent disks; unsupported disks." 2015-04-18 01:12:25 +00:00
Jeff Sharkey
7e92ef3a11 Volumes know parent disks; unsupported disks.
This is cleaner and more direct than the reverse of having the disk
publish child volume membership.  Rename state constants to match
public API.  Add state representing bad removal.  Make it clear that
volume flags are related to mounting.

Send new unsupported disk event when we finish scanning an entire
disk and have no meaningful volumes.

Splice disk labels into description when known.  Only adoptable
slots are directly visible to apps.

Bug: 19993667
Change-Id: I12fda95be0d82781f70c3d85c039749052dc936b
2015-04-17 17:35:11 -07:00
Svetoslav
6c589570c4 Remove unnecessary WRITE_SMS permission - framework
Currently only one app can write to the SMS provider and it has to
be set as the default SMS app by the user in the UI. The default
SMS app is set by enabling the write SMS app op for it and keeping
this op off for other SMS apps. Hence, this permission does not
guard anything and can be taken out. The API change is fine as if
an app refers to the permission in the manifest as string it will
be ignored and if it was referred in Java the value is statically
compiled in the source.

Change-Id: I1128c3b034e6c7dda4baa051500ac1ef46a53575
2015-04-18 00:18:53 +00:00
Svet Ganov
d3c1ddb892 Merge "Add OP_READ_PHONE_STATE app op - framework" 2015-04-17 21:34:04 +00:00
John Reck
9d4efdf280 Revert "A bunch more cleanups"
This reverts commit c294d128d03bc9a9982b273a82516c04583438cc.

Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
2015-04-17 20:47:27 +00:00
John Reck
7809f835ca Revert "Move AssetAtlas off of SkBitmap*"
This reverts commit 87ffb63d90fb6dd2689fe72dcb24fda9a6156220.

Change-Id: I92adfcee454a0a19020cdd9e96a134be0ee529aa
2015-04-17 20:46:47 +00:00
Svet Ganov
16a1689950 Add OP_READ_PHONE_STATE app op - framework
The READ_PHONE_STATE permission protects PII information and
is in the Phone group. This change is adding the corrseponding
app op for gating access to the API guarded by READ_POHNE state
which will be used instead as an access control for legacy apps.

Change-Id: I2ff895a5a0e529f26ec0ad706266a30d829268ba
2015-04-17 20:43:56 +00:00
Andres Morales
e0a31c8bab Merge "Recover from dead GateKeeperService Binder" 2015-04-17 19:43:00 +00:00
Mady Mellor
62b5b02c4f Merge "Drag n drop for stylus" 2015-04-17 18:14:50 +00:00
Jim Miller
34424f2c5f Merge "Clean up message dispatch in FingerprintService" 2015-04-17 17:57:10 +00:00
Jeff Sharkey
3397b6803d Merge "Avoid deadlock when FSTRIM requested at boot." 2015-04-17 17:55:05 +00:00
Jeff Sharkey
1783f149c7 Avoid deadlock when FSTRIM requested at boot.
When PackageManager decides that FSTRIM is required at boot, we
can end up in deadlock.  Work around this for now by kicking the
requested FSTRIM can down the road for a few seconds until we're
connected to vold.

Bug: 20228019
Change-Id: I47e422e618d99e59aed8a8b79227821a3012eb9f
2015-04-17 10:53:19 -07:00
Michael Wright
fd25459a52 Merge "Rename affine transformation configuration change to be consistent." 2015-04-17 16:38:53 +00:00
Olawale Ogunwale
5c75f0fbe3 am 2051bded: am 53e2c6ec: am c0c8d198: Merge "[ActivityManager] Fix activity always visible."
* commit '2051bded279f2d81e89b2a3731d1ba164ff9054a':
  [ActivityManager] Fix activity always visible.
2015-04-17 16:36:02 +00:00
Andres Morales
301ea44992 Recover from dead GateKeeperService Binder
Change-Id: Ie25b46225a88fd59e6426a338bb94152d2c1b302
2015-04-17 09:35:57 -07:00
Olawale Ogunwale
53e2c6ec87 am c0c8d198: Merge "[ActivityManager] Fix activity always visible."
* commit 'c0c8d1983c5d7c9bc9469944a9d46856aff95ab9':
  [ActivityManager] Fix activity always visible.
2015-04-17 16:13:03 +00:00
Olawale Ogunwale
c0c8d1983c Merge "[ActivityManager] Fix activity always visible." 2015-04-17 15:50:48 +00:00
Wale Ogunwale
0bd2aa7603 Fail early when starting a background user activity.
If it shouldn't be displayed for all users.

Bug: 13507605
Change-Id: I8fe8e5a98759c1ca058cc7d222817f6d580ffa11
2015-04-17 08:37:56 -07:00
Adrian Roos
e57818a20e Merge "Allow dismissing Keyguard from TrustAgentService" 2015-04-17 02:44:09 +00:00
Adam Lesinski
a4766050c5 Merge "Report WiFi and Bluetooth energy collection in checkin stats" 2015-04-17 01:54:19 +00:00
Jim Miller
1304137918 Clean up message dispatch in FingerprintService
This fixes several issues that were causing missing events in
enrollment and authentication.

Bug 20271180

Change-Id: Ic1c8ab35145de4d29d60238ef8ee71443a882348
2015-04-16 18:45:05 -07:00
Adam Lesinski
e283d33fed Report WiFi and Bluetooth energy collection in checkin stats
Also removed some legacy bluetooth energy collection
that was never invoked.

Also fixed an issue with Wifi scan power estimation.

Bluetooth energy recording is still disabled as strange results
are still reported.

Change-Id: Iafa37eba285fd933ff221116b14af260e904fa4f
2015-04-16 18:44:30 -07:00
Andres Morales
e4e13b4a97 Merge "Clear secure user ID and notify keystore when lock is cleared" 2015-04-17 01:34:57 +00:00
Adrian Roos
94e15a59b7 Allow dismissing Keyguard from TrustAgentService
Bug: 19900313
Change-Id: I44d13ee6fe65070327076e73a3ed96c94acdc108
2015-04-17 01:12:30 +00:00
Dianne Hackborn
a985bfb44c Merge "Some improvements to battery stats data." 2015-04-17 00:43:10 +00:00
Dianne Hackborn
0c820db22c Some improvements to battery stats data.
History now records when wifi data activity starts and "ends"
based on the triggers we get from the kernel used to determine
when to collect data.  (Basically the same as the current cell
data, but of course when it ends is just an arbitrary x seconds
after the last data traffic.)

Re-arranged the state bits to make room for this data in the
right place and move some other things that make more sense to
have in states2.

Try to improve overflow handling, so when it happens we allow
the various bit states to drop to 0 instead of being stuck
active for an indeterminant amount of time.

Added recording of the points where we decide we want to
retrieve new power stats, giving the reason for doing so.
These are only recorded when full logging is turned on.

Change-Id: Ic5d216960a07e0eb658731cdfba7f49ad3acf67e
2015-04-16 17:40:37 -07:00
Michael Wright
357285c50a Rename affine transformation configuration change to be consistent.
Change-Id: I295d1d07f3727e6d0159e1ccf210ae147fd7ffa3
2015-04-17 00:50:31 +01:00
Jinsuk Kim
f8e24ccf37 Merge "CEC: Do not terminate ARC on send error busy" 2015-04-16 23:33:49 +00:00
Andres Morales
cfb61601fa Clear secure user ID and notify keystore when lock is cleared
Change-Id: Id5bbde81b83add09e8362d439b19f1febe451003
2015-04-16 16:31:50 -07:00
Jeff Brown
f647832bd4 Merge "Add support for disabling display scaling for development." 2015-04-16 22:55:58 +00:00
Wale Ogunwale
2c1d9652fa Merge "Return more information when getAppTasks#getTaskInfo is called." 2015-04-16 22:36:54 +00:00
Wale Ogunwale
6041cc1a07 Merge "Added attribute showForAllUsers that deprecates showOnLockScreen" 2015-04-16 22:35:35 +00:00
Jeff Brown
43fbb42a72 Merge "Reduce display device log spam." 2015-04-16 22:33:15 +00:00
Jinsuk Kim
b23bbb6b2b Merge "CEC: Remove system audio on hotplug" 2015-04-16 22:33:08 +00:00
destradaa
fb23c67e8a Update GpsLocationProvider construction sequence to save time on startup.
b/20127262

This change moves long running operations: such as IO and broadcast receivers registration
to its internal handler. This sets the time to execute GpsLocationProvider ctor() to ~14ms.
A significant improvement from the 285ms reported originally in the bug.

Change-Id: I4ee4183a1afea86117004c0a052957b8bc1e4ce5
2015-04-16 14:05:30 -07:00
Amith Yamasani
0dbb64d627 Merge "Dump something for AppIdleController" 2015-04-16 20:08:46 +00:00
Mady Mellor
e40d785b7a Drag n drop for stylus
This assumes the gesture used to initiate the drag and drop would be a
stylus touch + button press. This enables stylus users to drop an item
by releasing the button, if it was pressed at the beginning of the drag n
drop. Users could still lift the stylus from the screen to end the drop.

Bug: 19621008
Change-Id: I01051f541bedf006480d46e728498a20f153b322
2015-04-16 12:47:42 -07:00
Wale Ogunwale
6035e0198b Return more information when getAppTasks#getTaskInfo is called.
The RecentTaskInfo object returned when getAppTasks#getTaskInfo
is called now contains baseActivity, topActivity, and numActivities.

Bug: 18723935
Change-Id: Ifc0cd68a57ed2c0823c23ac8d27e3b6ea6bc95e2
2015-04-16 11:14:46 -07:00