20170 Commits

Author SHA1 Message Date
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
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
Esteban Talavera
d09fbafa92 Merge "Add new adb dpm (= DevicePolicyManager) command" into lmp-dev 2014-09-12 10:35:44 +00:00
Esteban Talavera
b5ef162129 Add new adb dpm (= DevicePolicyManager) command
Adds new adb command to execute DevicePolicyManager tasks. First subcommand
allows us to set a device owner on a provisioned device (provided no accounts
are associated with the device). This is required as GTS tests run on provisioned
devices. We plan to add more subcomands required for new GTS tests, such as the
ability to create a managed profile.

Bug: 17312478, 17316711
Change-Id: I2613178ea82a6c6268e7f8012e74c4a852fea0d4
2014-09-12 11:33:59 +01:00
Jinsuk Kim
3b9309a01c CEC: Stub MHL Device
Replaced HdmiMhlLocalDevice with stub implementation,
and removed other MHL classes.

Bug: 17479050

Change-Id: I08880b0703eb4a94ae5e8aa973886a15f8160a38
2014-09-12 17:30:32 +09:00
Jinsuk Kim
a94417a516 CEC: Refactoring for MHL
This helps MHL code clean-up.

- Factored MHL constants out to a new class
- Renamed some methods

Bug: 17479050
Change-Id: Ia39f8bb51ce552ac10f587e6ee0431951f2f494b
2014-09-12 17:25:58 +09:00
Jinsuk Kim
d4a94db1cd CEC: Bug fixes for vendor-specific command handling
- Add sendStandby()
- Respond with <Feature Abort>[INCORRECT_MODE] when the listener
  is not ready

Bug: 17379243
Bug: 17358887
Change-Id: I26a4157a70f11206978763fbbe69e4190e3e1d5c
2014-09-12 16:22:23 +09:00
Yuncheol Heo
753fcc8a8a Merge "Handle <Menu Status> message." into lmp-dev 2014-09-12 07:17:32 +00:00
Yuncheol Heo
29b3e79dc3 Merge "Respond <Feature Abort: Invaild operand> for the invaild messages." into lmp-dev 2014-09-12 06:27:37 +00:00
Griff Hazen
929d5ac575 Merge "Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener" into lmp-dev 2014-09-12 06:15:13 +00:00
Yuncheol Heo
184b124ec2 Handle <Menu Status> message.
- Just accept the message, not to response <Feature Abort>.
- Added the CEC message validation info.

Bug: 17382771
Change-Id: I0c1ba870b0acfcd0414f0a3e7bb6c41483879116
2014-09-12 15:09:07 +09:00
Yuncheol Heo
4c21289781 Respond <Feature Abort: Invaild operand> for the invaild messages.
- Previously it responsed <Feature Abort: Unrecognized opcode>, for the
  invaild messages, but 'Invaild operand' is more accurate response.
- It'll not response <Feature Abort> for the invaild source and the destination.

Bug: 17382769
Change-Id: I4c5a146a57cc64f54224fa86810a777c232f4c9b
2014-09-12 14:32:46 +09:00
Jungshik Jang
b3ecb72af8 Use async polling for HPD action
Since Device polling holds whole IO thread while it's running,
other sending requests would be blocked until it's finished.
Usually polling takes more than 1 seconds and some action might
be timeouted.
This change sends polling message asynchrousely for
each device address.

Bug: 17381548

Change-Id: I2f47931c5882649d6ac56092986d34d1da48f710
2014-09-12 13:37:33 +09:00
Jeff Sharkey
5c0ed94deb Merge "Consistent clean up of failed installs." into lmp-dev 2014-09-12 04:25:06 +00:00
Jeff Sharkey
e980804df1 Bring install and install-multiple into parity.
This ensures that both are using (almost) identical logic when
deciding what installs to proceed with.  Installs from "pm" for all
users now run as OWNER, and rely solely on INSTALL_ALL_USERS to
express intent.  This keeps install session notifications simple.

Since installer UID can vary from installer package name, start
persisting the UID.  Also parse some missing flags for install
sessions.

Bug: 17469392
Change-Id: I6d89b1a787aa2024cc4bebf6b9c29317c358e147
2014-09-11 21:24:00 -07:00
Dianne Hackborn
aeb88ed612 Merge "Work on issue #17477510: Time change notifications sent too often" into lmp-dev 2014-09-12 02:34:36 +00:00
Dianne Hackborn
d7f460936c Merge "Fix issue #17377423: Frequently see 500ms latency on app open..." into lmp-dev 2014-09-12 02:32:55 +00:00
Craig Mautner
20d97e1ce2 Merge "Add null checks to WindowState.getStack() calls." into lmp-dev 2014-09-12 02:24:42 +00:00
Dianne Hackborn
998e608ddd Work on issue #17477510: Time change notifications sent too often
Record the number of time change events seen by the alarm manager.

Change-Id: I154e7e068626c71f76ee7b26f3e38a885025e0fa
2014-09-11 19:13:23 -07:00
Jinsuk Kim
68ab6cf0ea Merge "Replace the MHL register name 'scratchpad' with 'vendor'" into lmp-dev 2014-09-12 02:12:36 +00:00
Craig Mautner
cbc771f50e Merge changes Ia6fe9724,I682b9acb into lmp-dev
* changes:
  Show all windows from activity that hides keyguard
  Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
2014-09-12 01:45:29 +00:00
Adam Lesinski
3bab7c188d Merge "UsageStats should deal with changing time" into lmp-dev 2014-09-12 01:42:21 +00:00
Jinsuk Kim
b3fbf9dbe8 Replace the MHL register name 'scratchpad' with 'vendor'
Bug: 17479050
Change-Id: If6fe2949d17ad2d407df5b797c1915eb0e9bf421
2014-09-12 10:42:14 +09:00
Craig Mautner
41a7b7911e Add null checks to WindowState.getStack() calls.
Fixes bug 12786011.

Change-Id: I7fed856f8c96eec47df0912cea9bce705ecf690a
2014-09-11 18:40:22 -07:00
Adam Lesinski
66143fa5b3 UsageStats should deal with changing time
When the system time is changed, the UsageStats API
will modify all existing entries to correspond with the
new time change. If the time changed when the device was
off, stats in the future will be deleted.

Change-Id: Ica3e9917d4d1a180f97700e52ab390e3673e1e82
2014-09-11 18:39:01 -07:00
Craig Mautner
7d7808fcf8 Show all windows from activity that hides keyguard
Popup windows from the activity hiding the keyguard weren't being
shown. This change retrieves that activity from PhoneWindowManager
and applies the show or hide call to the windows that match the
activity.

Fixes bug 16479813.

Change-Id: Ia6fe97240aec85c5233eee9038138f7d48095a6e
2014-09-11 18:02:38 -07:00
Dianne Hackborn
9d52f791b9 Fix issue #17377423: Frequently see 500ms latency on app open...
...even for apps in cache

64 bit devices are cool, so they get to use more RAM for their
caches.

Shhhh, don't tell 32 bit devices, they get terribly jealous.

Change-Id: Iec9a0c43718a75530555bac50185658a682969aa
2014-09-11 17:46:06 -07:00
Amith Yamasani
cf79a56c71 Merge "Check for singleUser attribute even for persistent apps" into lmp-dev 2014-09-12 00:44:06 +00:00
Michael Wright
1208e2718d Change constant to PowerManager.RELEAES_FLAG_WAIT_FOR_NO_PROXIMITY
Bug: 17290118
Change-Id: Iae3866bf3f7ac24f756ec4c183e848a79d1f779b
2014-09-12 00:23:14 +00:00
Amith Yamasani
12a1d81de7 Check for singleUser attribute even for persistent apps
This enables Nfc to start a service on a different user.

Bug: 17462401

Change-Id: I92b2bcc2867a380ee18f77a40032bc43e4672c23
2014-09-11 16:39:31 -07:00
Craig Mautner
532e551e68 Merge "Add null check to TaskPersister file list." into lmp-dev 2014-09-11 22:36:18 +00:00
Griff Hazen
335e1f03df Fix a NPE in NotificationManagerSerivice.cancelNotificationFromListener
If a provided notification key does not resolve to a Notification Record

Bug: 17473071
Change-Id: Ib4b4156ca91eb9e545274a36722c2dc547aa39a3
2014-09-11 14:53:23 -07:00
Cheuksan Wang
ee04543d58 Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
2014-09-11 14:17:15 -07:00
Craig Mautner
a5badf06dd Add null check to TaskPersister file list.
Ran out of file descriptors and got a null file list. This
checks for null file list.

Fixes bug 17461213.

Change-Id: Ia6d49d0bdb6da98623b76d2b87cd09bc0afa1f27
2014-09-11 13:35:23 -07:00
Christopher Tate
90f86baebd Write new wallpaper files from scratch...
...rather than overwriting the existing wallpaper bitmap file "in
place."  If the new bitmap is smaller than the previous one, we wind
up with the previous image's contents as spurious trailing file
contents.  Also, it means that if any wallpaper image is particularly
large on disk, then we'll forever be backing up that high-water-mark
amount of data every time the wallpaper is changed.

The fix is to open the "write the new bitmap to disk" fd with
MODE_TRUNCATE.

Bug 17285333

Change-Id: I3d8708d72e316834b7ecec20386153a703efddd9
2014-09-11 12:41:52 -07:00
Michael Wright
cde5bb45cc Change callback methods from add to register.
Also changes intent returning method from get to create. Both changes
are in response to API council feedback.

Bug: 17389882
Change-Id: I3b57e3fc202148e3bbb24ac61229f04e8b4ac41e
2014-09-11 19:37:30 +00:00