20625 Commits

Author SHA1 Message Date
Yuncheol Heo
a1920c1bc9 am 016f95ee: am 11ea0e35: Change the property name to pass selinux.
* commit '016f95ee964aacf3f61a31cb3cb7480a6be27f13':
  Change the property name to pass selinux.
2014-09-13 03:24:47 +00:00
Jeff Brown
8c3b757948 am 18f9b97a: am ce0a756f: Merge "Add support for dozing after screen off." into lmp-dev
* commit '18f9b97ac486e93ca62e2d30a5eb29b2b3763add':
  Add support for dozing after screen off.
2014-09-13 03:13:07 +00:00
Matthew Williams
0db6bea563 am 87092929: am 7e84b1a4: Merge "Fix NPE in JobServiceContext" into lmp-dev
* commit '87092929a02a88730a60e7edf85539c3711c23f8':
  Fix NPE in JobServiceContext
2014-09-13 02:34:08 +00:00
Craig Mautner
449c6b9d50 am c6e2ab79: am 1260584f: Merge "Rework the task affiliate chain validation" into lmp-dev
* commit 'c6e2ab7998b63040b9b1d2d236c1245460e7f6b9':
  Rework the task affiliate chain validation
2014-09-13 02:32:38 +00:00
Robert Greenwalt
f4e3d53619 am 603090b8: am 3234c20e: Merge "Update Inet state when NetworkMonitor re-evaluates a network." into lmp-dev
* commit '603090b8c7a39255f2239f3bac23db6754b1f2a4':
  Update Inet state when NetworkMonitor re-evaluates a network.
2014-09-13 02:32:27 +00:00
Christopher Tate
3d46abc452 am 82c44d36: am 89b91209: Merge "Track enable/disable of transport components" into lmp-dev
* commit '82c44d3621ecf6c1fa675c6216deb427f7da912a':
  Track enable/disable of transport components
2014-09-13 02:32:22 +00:00
Robert Greenwalt
ad641b2dac am ce5e32b3: am da8158b1: Merge "Better handling of unvalidated networks." into lmp-dev
* commit 'ce5e32b38937386195ca0a63c92cdacd7ad8e0f2':
  Better handling of unvalidated networks.
2014-09-13 02:32:07 +00:00
Dianne Hackborn
1b7e58f748 am 7da811c2: am 8b01fb7e: Merge "Fix issue #17479850: AppOpsManager.checkPackage() allows..." into lmp-dev
* commit '7da811c260b7913bd88a7b7fc1ed2e47928cc154':
  Fix issue #17479850: AppOpsManager.checkPackage() allows...
2014-09-13 02:30:39 +00:00
Tsuwei Chen
fbaeeda836 am 345926e6: am 4290fb7b: Merge "Handle user privacy properly during network initiated requests. Bug: 16131208" into lmp-dev
* commit '345926e691664520c781fb05deb41d090f0473eb':
  Handle user privacy properly during network initiated requests. Bug: 16131208
2014-09-13 02:30:28 +00:00
Yuncheol Heo
4b5c2d3cfc Change the property name to pass selinux.
- Added the prefix 'persist.sys.' to pass selinux and to make the
  properties persistent after reboot.
- Shortened the name to fit the length to 31.
- Got together the properties in the near place.

Bug: 17491732
Change-Id: I051f1bacc51ee372806077159020600ffeb30f48
2014-09-13 11:21:46 +09:00
Jeff Brown
2175e9c366 Add support for dozing after screen off.
On some devices, we want the screen off transition to complete before
we start dozing.  Added a new config.xml attribute config_dozeAfterScreenOff
to configure this behavior.

Defer starting dreams until the display is ready.

Fixed some minor issues in the system UI doze service when setting the
display state.

Bug: 16187655
Change-Id: Ib1bc60de5457166f4b4880732db5df989dda67a4
2014-09-12 17:31:54 -07:00
Matthew Williams
c0595a7d7d Merge "Fix NPE in JobServiceContext" into lmp-dev 2014-09-12 23:26:40 +00:00
Matthew Williams
7ac52d5bf6 Fix NPE in JobServiceContext
BUG: 17485390
The VERB_BINDING timeout that is set to wait for onBind() to complete
wasn't being cleared when onBind() returns false, i.e. that the service wasn't
available to be bound to.
This led to an NPE when the stale timeout expired. Fix is to clear the timeout
when onBind fails.

Change-Id: I318ca5ce1f3e12b170f7f256608ea7e28f3f120a
2014-09-12 23:26:28 +00:00
Guang Zhu
34c5a6205a am 24a36fa3: am 336a9316: Merge "do not allow monkey to flip OEM unlock flag" into lmp-dev
* commit '24a36fa33f304e112b93d5cecbb84a80c523ef9b':
  do not allow monkey to flip OEM unlock flag
2014-09-12 23:22:40 +00:00
Amith Yamasani
fcce1340c7 am 263a799f: am 849e1a9c: Merge "Prevent device owner registration after setup is complete" into lmp-dev
* commit '263a799fb983559a431ff8f9ce30e3f773ee04d2':
  Prevent device owner registration after setup is complete
2014-09-12 23:21:33 +00:00
Craig Mautner
6225dd239f Merge "Rework the task affiliate chain validation" into lmp-dev 2014-09-12 23:08:34 +00:00
Robert Greenwalt
b242cf53e8 Merge "Update Inet state when NetworkMonitor re-evaluates a network." into lmp-dev 2014-09-12 23:03:36 +00:00
Christopher Tate
f610bff9ef Merge "Track enable/disable of transport components" into lmp-dev 2014-09-12 23:03:31 +00:00
Paul Jensen
ad50a1fed0 Update Inet state when NetworkMonitor re-evaluates a network.
Previously the Inet state (the little exclamation mark beside the WiFi
and Cellular bars) only transitioned from bad to good once.  With this
change it can transition back to bad (and later to good again) if a network
re-evaluation is triggered, say by ConnectivityManager.reportBadNetwork.
Also, avoid triggering re-evaluation in two unwanted cases.

bug:16214361
Change-Id: I7856724249ffcbb0945276dcf45019876231fdaf
2014-09-12 23:02:28 +00:00
Craig Mautner
2ade126e62 Rework the task affiliate chain validation
The old chain was problematic. It started verification at the end of
the chain and then went no further. Then it went back down the
chain to the beginning with no checks. It also removed entries and
tried to add them back past the end of the ArrayList during boot
which caused the system process to shut down.

This method uses the ordering imposed by taskIds which is the same
order that the tasks were created. It fixes up and notes dropped
links and then reconstructs the list correctly.

Fixes bug 17467284.

Change-Id: I746ec2cdcc7ac6403278cfefc7a6db9b5549d226
2014-09-12 16:01:21 -07:00
Robert Greenwalt
61642ce8c3 Merge "Better handling of unvalidated networks." into lmp-dev 2014-09-12 23:00:37 +00:00
Dianne Hackborn
39b278798e Merge "Fix issue #17479850: AppOpsManager.checkPackage() allows..." into lmp-dev 2014-09-12 22:45:01 +00:00
Dianne Hackborn
0fcef84cca Fix issue #17479850: AppOpsManager.checkPackage() allows...
...root or shell to claim any package name

Re-arrange so checkPackage() doesn't go through the path where
the package name will be forced for root and shell uids.

Change-Id: I450cd6ac8148afd75b526724afdf46ab63de4c43
2014-09-12 15:38:33 -07:00
Tsuwei Chen
ae69f9fdb3 Merge "Handle user privacy properly during network initiated requests. Bug: 16131208" into lmp-dev 2014-09-12 22:36:53 +00:00
Guang Zhu
112d0abb0d Merge "do not allow monkey to flip OEM unlock flag" into lmp-dev 2014-09-12 22:20:20 +00:00
Guang Zhu
514c580459 do not allow monkey to flip OEM unlock flag
Bug: 11435021
Change-Id: I3a6865bc6c9fde245d8f4af3230716eac4a3f1b1
2014-09-12 22:17:14 +00:00
Christopher Tate
64f10efab7 Track enable/disable of transport components
For fallback / rollback of backup transport selection we need to
handle live enable/disable of legacy or superseded transports.
We now watch for component enable state changes in packages that
host transports, and rebind as needed.

The semantics for selecting the current transport have also been
adjusted.  We no longer require that the selected transport be
live and currently bound in order to be designated as the active
instance.  This prevents nondeterministic races around upgrade
and replacement.

Bug 17136637

Change-Id: Idaf45cf4522a23576444e6b11626ee3f7f47c36c
2014-09-12 22:01:12 +00:00
Amith Yamasani
48766577d4 Merge "Prevent device owner registration after setup is complete" into lmp-dev 2014-09-12 21:59:46 +00:00
Tsuwei Chen
7c485bf66a Handle user privacy properly during network initiated requests.
Bug: 16131208

Change-Id: Ic6f83fcf24eef9e0e26e303bb652651f0dc2970a
2014-09-12 14:56:00 -07:00
Chris Wren
446bb6117d am 8bce74e6: am c92ee713: Merge "Invalidate the people cache on Contacts provider changes." into lmp-dev
* commit '8bce74e6388883286c8f630cebd1870cd8b7ee5f':
  Invalidate the people cache on Contacts provider changes.
2014-09-12 19:19:41 +00:00
Jeff Sharkey
5f49e915f9 am df843862: am 05c1f749: Merge "Fix lock inversion in PackageInstaller." into lmp-dev
* commit 'df8438627733ce2f19f1735df535ed52be60d396':
  Fix lock inversion in PackageInstaller.
2014-09-12 19:19:31 +00:00
Jeff Sharkey
ce1dd5bee6 am dc104ede: am 48058460: Merge "Bring install and install-multiple into parity." into lmp-dev
* commit 'dc104eded26c50c7c01eea5e164a0f95c2cbd0d1':
  Bring install and install-multiple into parity.
2014-09-12 19:19:25 +00:00
Cheuksan Wang
9d0f4c537f am 249ef14b: am 59c04032: Merge "Send and download MMS via content provider instead of PDU bytes." into lmp-dev
* commit '249ef14bb9527cc563483eeb3afabcdca6a16da2':
  Send and download MMS via content provider instead of PDU bytes.
2014-09-12 19:18:58 +00:00
Christoph Studer
e04e61b28c am ece217e9: am ebdd94ba: Merge "NoMan: Refresh ManagedServices on user switch" into lmp-dev
* commit 'ece217e9c8903ed8545663bce1293d33e653888b':
  NoMan: Refresh ManagedServices on user switch
2014-09-12 19:18:53 +00:00
Chris Wren
2ec88183e8 am 04322209: am c88b35aa: Merge "remove unused matchesCallFilter(Bundle, int)" into lmp-dev
* commit '043222093990ee001561dc86b6850056d65dfe9b':
  remove unused matchesCallFilter(Bundle, int)
2014-09-12 19:18:27 +00:00
Esteban Talavera
85b18b6dca am 69f6f114: am d23d7c60: Merge "Add new adb dpm (= DevicePolicyManager) command" into lmp-dev
* commit '69f6f1141d164aa1bdc0ed88dacdc52f930a5603':
  Add new adb dpm (= DevicePolicyManager) command
2014-09-12 19:17:49 +00:00
Jinsuk Kim
4379b356e7 am e95a1058: am de02cd6d: CEC: Stub MHL Device
* commit 'e95a1058403bfc87cfe6819e3be1d0f5fa21fa6e':
  CEC: Stub MHL Device
2014-09-12 19:17:33 +00:00
Jinsuk Kim
13c59d9546 am 10a5ea22: am b524e3b0: CEC: Refactoring for MHL
* commit '10a5ea22b4b148861e02b86067f97eec076de492':
  CEC: Refactoring for MHL
2014-09-12 19:17:28 +00:00
Jinsuk Kim
ff0133a194 am 527346ab: am ead8ed86: CEC: Bug fixes for vendor-specific command handling
* commit '527346ab17d4090a15c3408db2047f5e6800c8f4':
  CEC: Bug fixes for vendor-specific command handling
2014-09-12 19:17:22 +00:00
Yuncheol Heo
9bd1df046b am 4d3f04f5: am ca46bfef: Merge "Handle <Menu Status> message." into lmp-dev
* commit '4d3f04f57963c7cacf64fd52f6a0c5537ffadbd1':
  Handle <Menu Status> message.
2014-09-12 19:17:18 +00:00
Chris Wren
99f4c7d0c9 Invalidate the people cache on Contacts provider changes.
The Contacts database only seem to notify that a change has happened, not
which row was changed.  We simply invalidate the whole cache on changes.

Added an info log for even 100th invalidation, so we can see how often it happens.

Bug: 17466975
Change-Id: I9988ea8db776c88afd835a4b3c50b9a982a309d0
2014-09-12 18:30:28 +00:00
Amith Yamasani
d616a33578 Prevent device owner registration after setup is complete
This change prevents adding a device owner after setupwizard
has finished provisioning. Only the new dpm shell command
can set a device owner.

Bug: 17316711
Change-Id: I98bdfd9b8c8da3042111c45e2e7fd2b559fac510
2014-09-12 11:25:51 -07:00
Jeff Sharkey
37ccf18b84 Merge "Fix lock inversion in PackageInstaller." into lmp-dev 2014-09-12 18:17:03 +00:00
Jeff Sharkey
71ac935526 Merge "Bring install and install-multiple into parity." into lmp-dev 2014-09-12 18:16:52 +00:00
Paul Jensen
2161a8ea12 Better handling of unvalidated networks.
Give unvalidated networks penalized scores and allow them to satisfy
requests.

Previously unvalidated networks were never allowed to satisfy
NetworkRequests and so never caused CONNECTIVITY_ACTION broadcasts.
Previously if there were no other networks present an unvalidated
network would still be made the default.  This change formalizes
this behavior using our existing network score logic by assigning
unvalidated networks a highly penalized score.

bug:16358003
bug:17364306
Change-Id: I28fcd6f5ac4b52a4d1c234c472cfa8ba998bcc6f
2014-09-12 13:32:00 -04:00
Cheuksan Wang
a6c52ac624 Merge "Send and download MMS via content provider instead of PDU bytes." into lmp-dev 2014-09-12 17:07:49 +00:00
Christoph Studer
820b70da02 Merge "NoMan: Refresh ManagedServices on user switch" into lmp-dev 2014-09-12 17:03:51 +00:00
Jeff Sharkey
cbf47916b3 Fix lock inversion in PackageInstaller.
In a small handful of cases individual sessions call up into the
installer while holding their local locks.  Defend against this by
treating most InternalCallback events as async.  For sealed events,
perform the upcall outside of the session lock.

Bug: 17482676
Change-Id: I265d981c98c8928a0fced09d8b029ca16eb650d9
2014-09-12 09:55:32 -07:00
Chris Wren
135ce76a26 Merge "remove unused matchesCallFilter(Bundle, int)" into lmp-dev 2014-09-12 14:04:33 +00:00
Christoph Studer
b53dfd4fae NoMan: Refresh ManagedServices on user switch
Fix a bug where ManagedServices didn't unbind from obsolete and
bind to new services after switching the current user.

Bug: 17477093
Change-Id: Ica28978a01f84ba17bdd93e2feaf68547e837bcc
2014-09-12 15:38:56 +02:00