33528 Commits

Author SHA1 Message Date
Sergey Poromov
570c939e48 Merge "Synchronize results from runner thread to main full backup thread." into nyc-dev 2016-02-17 13:46:01 +00:00
Sergey Poromov
cd8c13fc4e Synchronize results from runner thread to main full backup thread.
Previously, all results from runner thread - both for preflight
or full backup pass were ignored.
This change adds two synchronized method to get preflight result
and result of full backup pass.
This leads to better coverage of AGENT_ERROR to return in callback
as a result of backup operation.
On the other side we won't start backup pass in main thread
if preflight check hasn't been succeeded.

Change-Id: Id5f9e4c956a1bd5c396d59b7ad2098139a15e69d
2016-02-17 14:24:39 +01:00
Erik Kline
907b255ebf Remove references to BaseDhcpStateMachine and DhcpStateMachine
am: 29a215268d

* commit '29a215268dfa18f5023dc3c06b33db68e91ae316':
  Remove references to BaseDhcpStateMachine and DhcpStateMachine
2016-02-17 13:06:49 +00:00
Erik Kline
29a215268d Remove references to BaseDhcpStateMachine and DhcpStateMachine
Bug: 26991160
Change-Id: I3742780a4e5121c163d9d1380951e25edaba19f3
2016-02-17 21:44:25 +09:00
Erik Kline
5c78685d56 Add IpManager#shutdown() to terminate the state machine.
am: b1ee39540e

* commit 'b1ee39540ead2e4ee74d4dba9ee1b84211766221':
  Add IpManager#shutdown() to terminate the state machine.
2016-02-17 12:20:19 +00:00
Andrei Stingaceanu
9496df19ae Suspend packages - decline suspending the active launcher
Bug: 26953019
Bug: 26683041
Bug: 22776761
Change-Id: I7b65abff03aa32f5db8dce68364467a588facdac
2016-02-17 11:59:44 +00:00
Andrei Stingaceanu
5ae4e73ef0 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev 2016-02-17 11:57:51 +00:00
Erik Kline
b1ee39540e Add IpManager#shutdown() to terminate the state machine.
Additionally, remove IpManager.Callback#usingIpReachabilityMonitor()
now that this is now longer used.

Bug: 26991160
Change-Id: I9a17497c82238a9fb37a20d01aeca7bc4913ae2c
2016-02-17 20:54:10 +09:00
Michal Karpinski
910a367cbf Merge "Remote bugreport notifications rework" into nyc-dev 2016-02-17 10:53:19 +00:00
Jae Seo
519e0591fe Merge "TIF: Rename setTvInputInfo to updateTvInputInfo" into nyc-dev 2016-02-17 02:52:43 +00:00
Chong Zhang
a1c8cfe0ac Merge "Remove AM/WM traces" into nyc-dev 2016-02-17 01:03:20 +00:00
Chong Zhang
e05db74fd2 Remove AM/WM traces
Change-Id: I75f70ce18bf133527b33d42148c71c3fd1be9311
2016-02-16 16:59:17 -08:00
Chong Zhang
a02f168525 Merge "Clear mPendingScreenOff and stop color fade animiation if screen is on" into nyc-dev 2016-02-17 00:47:40 +00:00
Felipe Leme
cd6cd0064e Merge "Added option to check if an app is whitelisted for deviceidle." into nyc-dev 2016-02-17 00:46:37 +00:00
Felipe Leme
2b5087b381 Merge "Added extra check to avoid NPE if package does not exist." into nyc-dev 2016-02-17 00:46:17 +00:00
Chong Zhang
b131c7003b Clear mPendingScreenOff and stop color fade animiation if screen is on
bug: 24116819
Change-Id: I4a962878001b00daf5473d90cbd257ac318c0446
2016-02-16 16:33:57 -08:00
Felipe Leme
86e5a01708 Added extra check to avoid NPE if package does not exist.
BUG: 26685616

Change-Id: I244e479fd9668bc4f07b8797ce2fc1e1df7a4d28
2016-02-16 16:33:28 -08:00
Jae Seo
aa5605ffee TIF: Rename setTvInputInfo to updateTvInputInfo
As TvInputInfo includes many complex objects as fields, it is not
practical to check whether an existing TvInputInfo has actually
"changed" by using simple comparisons when a new TvInputInfo object is
set by a TV input service.
This code change renames
  - setTvInputInfo to updateTvInputInfo
  - onTvInputInfoChanged to onTvInputInfoUpdated
to indicate that the callback is mechanically invoked whenever
updateTvInputInfo method is called.

Change-Id: Ia351b3591d0ed9da962311546f0ba51158e6478e
2016-02-16 15:44:47 -08:00
Wale Ogunwale
5a21494d6e Merge changes from topic 'flaky-test' into nyc-dev
* changes:
  Fixed issue with losing window name when copying WindowManager.LayoutParams
  Added AM API to remove a stack
  Don't resume activity on start if there are activities pausing.
2016-02-16 22:32:23 +00:00
Svetoslav Ganov
415dd94ae5 Fail fast when trying to delete a non-existing pacakge.
bug:26921392

Change-Id: I518cc43f3b1b28bd239093feead46107c62eb419
2016-02-16 20:47:26 +00:00
Makoto Onuki
dafec11e69 Merge "Don't allow deactivating DAs when the user is not unlocked" into nyc-dev 2016-02-16 20:47:10 +00:00
Esteban Talavera
f79c887c59 Merge "Let admin disable fingerprint for the work challenge" into nyc-dev 2016-02-16 19:29:07 +00:00
Robin Lee
e154bed3b9 Merge "Auto-call prepare() for new always-on VPNs" into nyc-dev 2016-02-16 18:56:53 +00:00
Wale Ogunwale
06e8ee0c8a Added AM API to remove a stack
Use the new API when closing Pip.

Bug: 26982752
Change-Id: I074d23b5535a4534626183ab77142d3932a803f0
2016-02-16 10:09:51 -08:00
Wale Ogunwale
5658e4b94d Don't resume activity on start if there are activities pausing.
The path to start an activity if it isn't running was unconditionally
resuming the starting activity which we don't do if there are activities
pausing. It now starts the activity in a paused state if other activities
are pausing. It is then resumed when pause completes.

Also, improved logging in BoundsAnimationController and removed some
disabled code that has been in the codebase for 6yrs...

Bug: 26982752
Change-Id: Ie042fc938331127f1270fca1b5905b067b9dae7c
2016-02-16 10:09:24 -08:00
Jaewan Kim
c3e78d5e62 Merge "Revert "PIP: Use long press HOME for PIP on Android TV (2/2)"" into nyc-dev 2016-02-16 17:11:58 +00:00
Jaewan Kim
76b7d0d5d7 Revert "PIP: Use long press HOME for PIP on Android TV (2/2)"
Long press HOME will launch recents instead.

Bug: 27159966
Change-Id: I9a4fd847d716d7e4e4754c7a9c48628c46f82233
2016-02-16 09:09:18 -08:00
Jeff Sharkey
82a6017fc5 Merge "More protected broadcasts." into nyc-dev 2016-02-16 16:48:29 +00:00
Jeff Sharkey
37fc7a7fc0 More protected broadcasts.
These actions are owned by the system and should not be sent by
third-party apps for security reasons.

Bug: 27171917, 27169730, 27172357, 27163393
Change-Id: I3161cd3c1c37d26a92723b22878dc5aef6f30c47
2016-02-16 09:41:57 -07:00
Michal Karpinski
e9377a7d84 Remote bugreport notifications rework
Merging two notifications into one.

Bug: 27095707
Change-Id: Ib6582dabb7370f9b3b6e673b19ab43b70c73433a
2016-02-16 16:34:35 +00:00
Yohei Yukawa
ce3f338040 Merge changes I0f79243e,Ia27e19f9,Iec6b89f0,I276c7eb0 into nyc-dev
* changes:
  Have unified setter/getter for Secure Settings.
  Remove redundant arguments.
  Use Context#getSystemService(Class<T>) in IMMS.
  Use Java7 diamond operator in InputMethodUtils.
2016-02-16 16:11:50 +00:00
Andrei Stingaceanu
355b232d79 Suspend packages - new API for retrieving the suspended status
Instead of always rebuilding the full ApplicationInfo for a
package when callers are only interested in the suspended status
add a new fast API in Packagemanager (which only checks the
suspended user setting for the requested package and returns
a boolean) and change the appropriate caller code too.

Bug: 26794775
Bug: 22776761
Change-Id: Ide8428ef734479360d5a8a75fd8e0ed8ddf2da7a
2016-02-16 14:57:29 +00:00
Shreyas Basarge
b55fa08c74 Merge "Fixes JobScheduler not persisting flex and sourcePackage" into nyc-dev 2016-02-16 14:55:44 +00:00
Erik Kline
209fd91dae Add IpManager.ProvisioningRequest class
am: 93b1a36e31

* commit '93b1a36e31b42c5b33a0164f2832ab9aa12d9a00':
  Add IpManager.ProvisioningRequest class
2016-02-16 10:15:09 +00:00
Erik Kline
93b1a36e31 Add IpManager.ProvisioningRequest class
This class captures provisioning request parameters to be passed to
IpManager#startProvisioning().

Bug: 26991160
Change-Id: I56652bbc4b9ae6cfca3f225a8d99cdfc01bb54d9
2016-02-16 18:11:47 +09:00
Arunesh Mishra
4e0bdf3a38 Fix boot loop problem for volantis.
Bug: 27192965

Change-Id: I90febaf6a750d539847f45c2795d74b2a4b69f02
2016-02-16 00:05:53 -08:00
Jeff Sharkey
115d2c189a Add feature versions for devices and apps.
We're starting to see more instances of device features that will
increment separately from the SDK API level, such as camera HAL,
GPU capabilities, Bluetooth, and other hardware standards.

This change adds the ability for device features to specify a
version, which is defined to be backwards compatible.  That is, apps
requesting an older version of a feature must continue working on
devices with a newer version of that same feature.

When a version is undefined, we assume the default version "0".

Bug: 27162500
Change-Id: If890bf3f3dbb715e8feb80e7059a0d65618482ea
2016-02-15 17:45:42 -07:00
Jeff Sharkey
c6ca265902 Filter components, prevent app start in safe mode.
When device is in safe mode, we're trying to keep third-party code
from running to give us a stable platform.  The ideal approach would
be to treat these apps as temporarily "uninstalled" when in safe mode,
but not all system internals are ready for this.

Instead, go back to previous behavior where we simply filtered
non-system components.  This isn't perfect, since there are still
cracks through which components can leak out (GET_ACTIVITIES, etc).

So as a last-ditch sanity effort, refuse to fork any third-party apps
while running in safe mode.

Bug: 27165374
Change-Id: I044ede02e923c499159faf59b12e79b97fe77fba
2016-02-15 15:33:34 -07:00
Shreyas Basarge
8e64e2e6a4 Fixes JobScheduler not persisting flex and sourcePackage
There was a bug with persisteing and restoring flex and
sourcePackage. Fixed it and added tests.

Change-Id: Ie8e4714b4727ecef4254773fd4339b28f4a47c01
2016-02-15 15:51:52 +00:00
Rubin Xu
6bdd7cab5a Merge "Fix typo in filling ACTION_MANAGED_PROFILE_UNLOCKED extras." into nyc-dev 2016-02-15 14:30:00 +00:00
Rubin Xu
b5f0049f98 Fix typo in filling ACTION_MANAGED_PROFILE_UNLOCKED extras.
Change-Id: Ic949a0d7f72d46d7cc36018b4b0fc54024c3b180
2016-02-15 14:12:32 +00:00
Paul Crowley
99a6c3e6d9 Merge "Send extra argument to unlock_user_keys on non-FBE startup" into nyc-dev 2016-02-15 14:04:05 +00:00
Nicolas Prévot
eff90bd5ff Merge "Allow privileged apps to set the organization color." into nyc-dev 2016-02-15 10:47:41 +00:00
Paul Crowley
d94ab73152 Send extra argument to unlock_user_keys on non-FBE startup
Non-FBE startup has a loop which sets up the appropriate lock state
for each user depending on whether FBE is being emulated; this loop
calls unlock_user_keys when emulation is off. I didn't modify this
loop when adding the extra arguemnt to unlock_user_keys.

Bug: 27155768
Change-Id: I825a61552383552eafb88c77c1f30591bdfd077c
2016-02-15 06:48:10 +00:00
Ian Pedowitz
e4c1ccec72 Revert "Fix missing observer reply callbacks"
This should not have merged from mnc-dr-dev, the underlying implementation has changed

This reverts commit dbb75248b19366d76cfdd7d4536d68467e7322c1.
2016-02-14 15:36:48 -08:00
Akshay Thakker
b9f686968c Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5 am: a3798d7a92
am: d6de840957

* commit 'd6de84095735a32e160f5ae9ce93489b0b19eeed':
  Fix missing observer reply callbacks
2016-02-14 22:48:31 +00:00
Akshay Thakker
d6de840957 Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5
am: a3798d7a92

* commit 'a3798d7a92ecefe1117b99a2e0f5edce1644f1d0':
  Fix missing observer reply callbacks
2016-02-14 22:37:55 +00:00
Akshay Thakker
a3798d7a92 Merge "Fix missing observer reply callbacks" into mnc-dr-dev
am: d1811e07d5

* commit 'd1811e07d5ee751cbdc37a3ff84e2e010ead7adf':
  Fix missing observer reply callbacks
2016-02-14 22:30:47 +00:00
Chong Zhang
3dbcd203c5 Merge "Clearing mDestroying flag when app is made visible again" into nyc-dev 2016-02-13 18:09:47 +00:00
Svet Ganov
f4ff39c92b Multi packages per APK - broadcasts
This change introduces the ability to have multiple packages per
APK. The feature is currently restricted to privileged apps and
updates to such apps.

In essence the manifest can have multiple child package declarations.
A child package can declare everything an Android package can except
some tags or attributes that are not applicable and instead inherited
from the parent when needed. For example, the target SDK of the parent
applies to all children.

A child package can be updated only through the parent package.
A package with multiple child packages is installed, uninstalled
atomically - no partial installs where some child packages are not
installed.

This change ensures that we send package broadcasts for child packages
when they are updated, removed, disabled, replaced, etc.

Sample app:ag/848432

Change-Id: I25b29c98152dcad9ede4d4eb040cc897b7f93426
2016-02-12 20:20:29 -08:00