Commit Graph

253881 Commits

Author SHA1 Message Date
Dianne Hackborn
ab1b52a0c4 Merge "Fix issue #30013670: Phone AP crash when testing VT call" into nyc-mr1-dev 2016-07-12 23:28:38 +00:00
Chris Thornton
9b550cb188 Merge "SoundTriggerDetector should look at the return code to honour success" into nyc-mr1-dev 2016-07-12 23:24:41 +00:00
TreeHugger Robot
9cf5bf04d2 Merge "Move grantDefaultPermissions back to onNewUserCreated" into nyc-mr1-dev 2016-07-12 23:22:46 +00:00
Adrian Roos
db12b15feb Fix navigation bar order in seascape
This reverts the revert in commit c44368016a,
thus reapplying 27315acfbb.

Also fixes the bug that was the reason this needed to be reverted and
fixes a case where the order was not correctly updated (landscape to
seascape or vice versa)

Fixes: 29612635
Change-Id: Id51cf7edaeeea16cba08bcd5a30313f58fa00d4d
2016-07-12 16:14:54 -07:00
Damien Bargiacchi
9676281c4f Don't show times before 2000-01-01
BUG=27802041

Change-Id: Iaa826e029c3b887e2bda6d12bc7c372d862ed320
2016-07-12 16:03:37 -07:00
TreeHugger Robot
c8967160aa Merge "Don't hold lock calling into PackageMgr" into nyc-mr1-dev 2016-07-12 22:52:29 +00:00
Chris Tate
69818781f3 Merge "Explicitly flush compress/encrypt stream before close" into nyc-mr1-dev 2016-07-12 22:47:00 +00:00
Robert Carr
92ca6d067b When display is frozen prefer preserving orientation.
While the display is frozen, we just want to preserve the orientation
from changing. Otherwise we will have strange loops as
SHOW_WHEN_LOCKED windows appear/dissapear over relaunch.

Bug: 29994732
Bug: 29542506
Bug: 29942346
Change-Id: Iec5f79db0cf5001c3c8e5d6a7a0136b758e0a934
2016-07-12 15:40:01 -07:00
Suprabh Shukla
db8c1dbc5e Disallowing bluetooth config for demo users
Bluetooth is currently not multi-user aware, so bluetooth pairings are
carrying across demo users. Have to disable bluetooth config to prevent
security risks in retail environments.

Bug: 30039481
Change-Id: I28ad0d9585a4e6e22af8772132d585c01b33abc9
2016-07-12 15:35:47 -07:00
Adrian Roos
7a3bf7c46e Allow LockPatternUtils usage on non-looper threads
Fixes an issue where LPU could no longer
be used on a non-looper thread even though
the looper is only used for a certain callback.

Now only using that callback mechanism is fatal
on a non-looper thread.

Change-Id: I2d766bd6c913e345ed6a3500b486263c8bc12b07
Fixes: 30076804
2016-07-12 15:32:04 -07:00
Adrian Roos
7aaa551733 Suppress immersive mode confirmation if navbar is empty
Bug: 29501674
Change-Id: Icc5b02e378dfca9136a0d04f286926127fdec70d
2016-07-12 15:27:52 -07:00
Vladislav Kaznacheev
9a44eaec53 Fix docs for View.DRAG_FLAG_GLOBAL
Document that cross-app drags only involve apps compiled for API 24 or later.

Bug: 30076806
Change-Id: Ia630f4623c23d787b52692ff1f6475408cefa177
2016-07-12 15:24:48 -07:00
Makoto Onuki
4885b274c1 Merge "Don't backup & restore disabled shortcuts." into nyc-mr1-dev 2016-07-12 22:01:08 +00:00
Makoto Onuki
efbbe7ea9d Revert "Handle package broadcasts before apps do"
And fix b/29939691 (don't try to load locked users) in a different way

Bug 29939691
Bug 29895275

Change-Id: Ib55f9c5d5547c54daa4e05c1e50bf4bbceaf1991
2016-07-12 14:47:20 -07:00
Fyodor Kupolov
5fd967d263 Move grantDefaultPermissions back to onNewUserCreated
Otherwise pre-grants may not work on managed profiles because apps could be
uninstalled when the user is started

Bug: 29955102
Change-Id: I8fafaf1ca6193c1a13bd2f0b463ee30fe473e6b5
2016-07-12 14:46:19 -07:00
Wei Jia
d973c00b4a MediaPlayer: fix typo for OnInfoListener.
Bug: 30099323
Change-Id: Ic59fe64b4d2b6dcf28d31cb7c480ba6cb7a4cea1
2016-07-12 14:38:50 -07:00
TreeHugger Robot
1ae277831d Merge "Do remove starting windows for activities in an invisible stack" into nyc-mr1-dev 2016-07-12 21:32:39 +00:00
Wale Ogunwale
98742a5871 Do remove starting windows for activities in an invisible stack
Depending on app launch timing it is possible for the initializing
activity that is the top of an invisible stack to still have its
starting window visible since we skip removing orphaned starting
window for the top activity in a stack. We now remove starting
windows for all activities in an invisible stack.

Bug: 28173906
Change-Id: Ie5284c9681d06969f647cbe46a77dd072ca61435
2016-07-12 14:29:22 -07:00
Usman Abdullah
a2b109a0a8 Grant Camera Permissions to DialerPackage
The Dialer apps now need camera permissions because they support video
calling. Having the app  ask for permission at runtime is not reasonable
because this is difficult to do in situations like:
  - incoming video calls
  - outging emergency video calls

It also would lead to a poor user experience in the scenario mentioned
above.

We already do this for a couple other permissions including microphone
permissions, and since the idea here is the same we are requesting camera
permissions for the dialer app as well to support video calling.

bug=30036076

Change-Id: Ie2c1bdbcb97236e8497339512dcdb8d921641cf6
2016-07-12 14:19:32 -07:00
Todd Kennedy
04918fe027 Don't hold lock calling into PackageMgr
There's a subtle deadlock; when dumping state, we obtain the package manager
lock before trying to obtain the package installer session lock. Meanwhile,
creating a new session obtains the locks in the reverse -- the package
installer takes the package installer session lock and then tries to obtain
the package manager lock.

Here, we avoid holding the package installer session lock before we call
into the package manager. Alternatively, we could consider not holding the
package manager lock when dumping package installer state. But, given the
scope of the dumping logic, that's a bigger change with other, unknown
side effects.

Change-Id: I11f08484cd335bb7ad3bc557808eb48d14bd29cf
Fixes: 30089638
2016-07-12 14:07:40 -07:00
Chris Tate
1165790f70 Merge "Harden framework against backup transport crashes" into nyc-mr1-dev 2016-07-12 21:00:29 +00:00
Daniel Nishi
ff69a4ba1b Add a constant for when the storage manager is toggled on and off.
Bug: 30095915
Change-Id: I9fef3ec47552d344cff51fc1f2cf2e02e9b51574
2016-07-12 13:59:37 -07:00
Christopher Tate
ad869cc908 Thread-safe pipe teardown during restore operations
Bug 29135140

Change-Id: Id474f180815318618ec28ff953dc0cab892f781e
2016-07-12 13:56:35 -07:00
Anthony Hugh
1b7c5631c4 Merge "Prevent back button from being handled by app after waking device" into nyc-mr1-dev 2016-07-12 20:39:06 +00:00
Dianne Hackborn
4d8959489d Fix issue #30013670: Phone AP crash when testing VT call
Intent categories may be null.

Change-Id: Ic2e0438460741b264ddbfe77d2a14973f9af7d95
2016-07-12 13:36:02 -07:00
Sudheer Shanka
dbd5480ac4 Merge \\\\\\\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\\\\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9 am: 76c9d70756 -s ours am: 6ae7a5f72b am: 322e70cef3 am: a730e5977e am: cbe258aa27 -s ours
am: 5b28589127

Change-Id: I1a8bfc2b3acb05edea636ba0c2e1eabaa83d8acb
2016-07-12 20:01:06 +00:00
Sudheer Shanka
903fb640c6 Merge \\\\\\\\"DO NOT MERGE: Reduce shell power over user management.\\\\\\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e am: fd0757f195 -s ours am: 7975dd5b48 am: 008d66e49c am: e8458d8f88 am: 1bb51deaf4 -s ours
am: 5441a248f4

Change-Id: Ib4f04849819432248e069997659215ecf2840e67
2016-07-12 20:01:04 +00:00
Sudheer Shanka
5b28589127 Merge \\\\\\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\\\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9 am: 76c9d70756 -s ours am: 6ae7a5f72b am: 322e70cef3 am: a730e5977e
am: cbe258aa27  -s ours

Change-Id: I1cd45ce38ea1859fef073124cd3362076b2c33e4
2016-07-12 19:52:48 +00:00
Sudheer Shanka
5441a248f4 Merge \\\\\\\"DO NOT MERGE: Reduce shell power over user management.\\\\\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e am: fd0757f195 -s ours am: 7975dd5b48 am: 008d66e49c am: e8458d8f88
am: 1bb51deaf4  -s ours

Change-Id: I82e3b82dd260fef67e4c17156d9a868771e70e61
2016-07-12 19:52:44 +00:00
Sudheer Shanka
cbe258aa27 Merge \\\\\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9 am: 76c9d70756 -s ours am: 6ae7a5f72b am: 322e70cef3
am: a730e5977e

Change-Id: Ic3f93423fed99fe6e1b1142e9f949866897954ae
2016-07-12 19:47:49 +00:00
Sudheer Shanka
1bb51deaf4 Merge \\\\\\"DO NOT MERGE: Reduce shell power over user management.\\\\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e am: fd0757f195 -s ours am: 7975dd5b48 am: 008d66e49c
am: e8458d8f88

Change-Id: If984b3437bc60d99e693907aef24f3b7b1218836
2016-07-12 19:47:44 +00:00
Sudheer Shanka
a730e5977e Merge \\\\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9 am: 76c9d70756 -s ours am: 6ae7a5f72b
am: 322e70cef3

Change-Id: I8c18ad1a029c13f1be022e12031f29d3cbba2220
2016-07-12 19:42:40 +00:00
Sudheer Shanka
e8458d8f88 Merge \\\\\"DO NOT MERGE: Reduce shell power over user management.\\\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e am: fd0757f195 -s ours am: 7975dd5b48
am: 008d66e49c

Change-Id: I18ca4b24a2e18b122106027568cb92e3a10822ca
2016-07-12 19:42:38 +00:00
Sudheer Shanka
322e70cef3 Merge \\\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9 am: 76c9d70756 -s ours
am: 6ae7a5f72b

Change-Id: I89dd8c81075ebc85173c5fc37e8a4d1dfe312bbb
2016-07-12 19:34:39 +00:00
Sudheer Shanka
008d66e49c Merge \\\\"DO NOT MERGE: Reduce shell power over user management.\\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e am: fd0757f195 -s ours
am: 7975dd5b48

Change-Id: I343863180866b38af4f91a6f79068c21096e7ce0
2016-07-12 19:34:38 +00:00
Sudheer Shanka
6ae7a5f72b Merge \\\"DO NOT MERGE: Add pm operation to set user restrictions.\\\" into lmp-mr1-dev am: d327d73edf am: cb7e0643c9
am: 76c9d70756  -s ours

Change-Id: I860be1d599fe60603b37ba8388a20c44c37d6f68
2016-07-12 19:27:39 +00:00
Sudheer Shanka
7975dd5b48 Merge \\\"DO NOT MERGE: Reduce shell power over user management.\\\" into lmp-mr1-dev am: f1d9152f9f am: 177422c91e
am: fd0757f195  -s ours

Change-Id: I17b97d1cfefa769b07ea798c6f87f8af22a31329
2016-07-12 19:27:37 +00:00
Sudheer Shanka
76c9d70756 Merge \\"DO NOT MERGE: Add pm operation to set user restrictions.\\" into lmp-mr1-dev am: d327d73edf
am: cb7e0643c9

Change-Id: I42d732fcc3ed8745dcc35e433e066ee8babe3e42
2016-07-12 19:20:38 +00:00
Sudheer Shanka
fd0757f195 Merge \\"DO NOT MERGE: Reduce shell power over user management.\\" into lmp-mr1-dev am: f1d9152f9f
am: 177422c91e

Change-Id: I7de2c4181d5b42e505310b4639eb82719ae42c16
2016-07-12 19:20:34 +00:00
Jason Monk
3750c9a15a Merge "SysUI: Protect against crash in BatteryController" into nyc-mr1-dev 2016-07-12 19:18:51 +00:00
TreeHugger Robot
2921dfac50 Merge "Don't hold a lock while loading default wallpaper" into nyc-mr1-dev 2016-07-12 19:18:08 +00:00
Sudheer Shanka
cb7e0643c9 Merge \"DO NOT MERGE: Add pm operation to set user restrictions.\" into lmp-mr1-dev
am: d327d73edf

Change-Id: I131a01fb8d4ccd440a7727df2fde0ce433bc30d1
2016-07-12 19:11:37 +00:00
Sudheer Shanka
177422c91e Merge \"DO NOT MERGE: Reduce shell power over user management.\" into lmp-mr1-dev
am: f1d9152f9f

Change-Id: I61633ebe7944d54f3da36eedaf4bab7308ff3c96
2016-07-12 19:11:35 +00:00
Sudheer Shanka
d327d73edf Merge "DO NOT MERGE: Add pm operation to set user restrictions." into lmp-mr1-dev 2016-07-12 19:03:20 +00:00
Sudheer Shanka
f1d9152f9f Merge "DO NOT MERGE: Reduce shell power over user management." into lmp-mr1-dev 2016-07-12 19:03:14 +00:00
Chris Tate
2917abeef2 Merge "Back up / restore lock wallpapers" into nyc-mr1-dev 2016-07-12 18:56:47 +00:00
Chris Tate
b9c057c316 Merge "Don't walk mutexed collections outside the mutex" into nyc-mr1-dev 2016-07-12 18:56:26 +00:00
Chris Tate
87488ac89b Merge "Fix up mangled SELinux labeling of wallpaper files" into nyc-mr1-dev 2016-07-12 18:56:20 +00:00
Christopher Tate
bf13ccf4b7 Back up / restore lock wallpapers
If writing both system + lock wallpapers winds up hitting the
transport-defined quota, the next backup operation steps back
to storing only the system wallpaper.

Also makes sure to unbind full-backup target agents following
the backup operation.  In practice this usually doesn't matter
because the target gets killed following the operation, but
the wallpaper agent runs in the system process where this does
not happen, so was mistakenly being left in place and reused
for the next operation, failing to re-run the full create +
backup lifecycle.

Bug 28968107

Change-Id: I219c2ddd7e899a430ef4cf693b1259464c15eed5
2016-07-12 18:34:05 +00:00
Mahaver Chopra
3d9805d502 Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.
Currently we used global setting to restrict user from enabling oem
unlock. As global settings can be chagned using adb, using user
restrictions instead.

Bug: 29893399
Change-Id: Ic83112a4838b8279bf50408a29ae205e0b8639ee
2016-07-12 19:29:14 +01:00