History log of /frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
44196d3136e3f6d2eba6cef347d516bcd8f8a321 18-Feb-2017 Lingjun Li <lingjunl@google.com> Null check before calling TrustAgentService and throw Security exception if the API is not allowed.
Test: manual

Change-Id: I5dfe6bc4347459e0e4349c7624afdde86fce0000
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
93a145f6880f71332b8288774671392259a9b6df 24-Jan-2017 Lingjun Li <lingjunl@google.com> Add escrow token APIs to TrustAgentService
Security review: b/31273740
Design doc: go/auto_login
Test: manual
Change-Id: Ib11d4146135a58f1dc451ae8e081977a8f8e6ace
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
327323d2b337077433fe02438a79cc98e91799e3 12-Jan-2017 Zachary Iqbal <zacharyi@google.com> Added an onDeviceUnlockLockout callback to TrustAgentService.

Test: Manually tested onDeviceUnlockLockout being called with an actual
TestAgentService implementation.

Notes:
- Active Trust Agents are no longer killed/unbinded from when a temporary
device lockout occurs. Instead, the onDeviceUnlockLockout callback of
the agent is called.

Change-Id: Ifa0984d1d7e5153568334d736e9ebd5a00ef1297
Bug: 34198873
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
5d639783a3619ef5f70af31b4ed420455d1e7329 21-Jul-2016 Adrian Roos <roosa@google.com> TrustAgents: Improve debug logging

Bug: 30037948
Change-Id: If374c6d4b4fb6e5341986dc42a2f7debb60a4955
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
035e92447084b96ef2c9125e77105c237e20bad3 18-Mar-2016 Ricky Wai <rickywai@google.com> Fix work profile screen timeout policy

Settings screen should apply both primary and managed maximum
timeout policy, even separate profile challenge is enabled.

Bug: 27493348
Change-Id: Ia1ec1cafc7665c54816833af64e0f446a77a55b2
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
517b3a4d9f76e4e351632b442f2fc68bd8100c46 03-Mar-2016 Adrian Roos <roosa@google.com> Start trust agents earlier on successful unlocks

Frequently, trust agents are not running because
a successful unlock is required for them to start.

Unfortunately, that means they were not able to receive the
successful unlock. To fix this, we'll now override
StrongAuth requirements and start agents early if we
detect a successful unlock.

Bug: 23021202
Change-Id: Ie85f78d9ce2823dd5c9b6215a52db069fb796d91
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
d69e4c1460017062e7c36be55801cb434ad19d97 24-Apr-2015 Dianne Hackborn <hackbod@google.com> Update use of procstate for services.

Now that we have a separate foreground service proc state
(above a sleeping top app), update various system services
to put their bindings into this state when appropriate.

There are two new bind flags for this -- one that just always
makes it a foreground service, another that only does it when
the device is awake (useful for things like the wallpaper).

And with all of that, tweak network policy manager to only
include apps that are at least foreground service state when
in power save and device idle modes. This will allow us to
further reduce the set of apps that have network access
(in particular not giving access to the current top app when
the screen is off), hopefully leading to even better battery
life.

Change-Id: I91d85a5c5ed64e856149e9a5d94a634a7925ec7f
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
94e15a59b757678949cccb5d783bee1638e84697 16-Apr-2015 Adrian Roos <roosa@google.com> Allow dismissing Keyguard from TrustAgentService

Bug: 19900313
Change-Id: I44d13ee6fe65070327076e73a3ed96c94acdc108
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
1221b0628d0b896102c20545b30fa7bafa08ae32 26-Mar-2015 Adrian Roos <roosa@google.com> Properly unregister TrustAgentWrapper's broadcast receiver

Bug: 19820505
Change-Id: I6f9463a54aa1c33d485b8f55c5f22f18535b0d29
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
bd5e03b6d996aa39a6f607a55ffd0691a55b1cee 11-Mar-2015 Adrian Roos <roosa@google.com> Merge "Notify TrustAgentService when device policy configuration no longer applies"
a43fd03b9b23f9ad0deae9ee69ee80aaa1433cdb 09-Mar-2015 Adrian Roos <roosa@google.com> Notify TrustAgentService when device policy configuration no longer applies

Also updates the outdated javadoc to match the current API.

Bug: 19500731
Change-Id: I7976bbcc815b84e168718672377a963ffea68c51
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
dfdbad309f610c242931cd588a9c1ea1112b8bd0 05-Mar-2015 Adrian Roos <roosa@google.com> Prevent receiver leak in TrustAgentWrapper

Bug: 19601687
Change-Id: Idfe5429926e1c849dc2d908b4877d8410335391c
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
481a6df99fea124bc4354da34ff668750cdc9041 20-Nov-2014 Adrian Roos <roosa@google.com> Add device locked API for TrustAgentService

Bug: 18414067
Change-Id: I96c68af9ccc9940acf9fab3b5bd39a3485f01045
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
fc29e0b5829034d9c0a60882d2a21606b2f513b1 11-Nov-2014 Adrian Roos <roosa@google.com> Properly destroy TrustAgentWrapper when not bound

Also fixes a potential issue where refreshing agents
for a user that no longer exists would result in a crash.

Bug: 18318629
Change-Id: I3589ea7e0f2e63fca02daeecf3ca964a8a8e4b3b
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
e303bf443532c2ad756260133f00747bcff11e69 27-Aug-2014 Jim Miller <jaggies@google.com> Update TrustAgentService API after review

This change incorporates API council feedback and enables the
TrustAgent whitelisting API.

It also contains a minor cleanup of DPM's use of UserHandle
to eliminate unnecessary object creation.

Fixes bug 17008504

Change-Id: I63cc50169fde54b34406845818bcaf6aadc1a3db
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
76b9b8b0ca537bad6c4da388d77a9e5dee023856 23-Aug-2014 Jim Miller <jaggies@google.com> Limit grantTrust() duration to DevicePolicy-imposed limit.

Fixes bug 17046034

Change-Id: I5c512c2d05e7e0ed81eaf0dcafacc6f62a5c5937
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
d4efaac5d54cdb3735b032bb76a5639949f33216 15-Aug-2014 Jim Miller <jaggies@google.com> Update TrustAgentService API after review.

Also documents timebase on related DevicePolicyManager API.

Fixes bugs 16401527 and 17046034

Change-Id: I8ee6d0055ab6f52ec71630344d3232f7875d9c1d
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
3c9a3501651aa8ad4f289e89119a6c0b4bdaf78a 06-Aug-2014 Adrian Roos <roosa@google.com> Pass initiatedByUser to TrustListeners

Bug: 16840500
Change-Id: I8d9bd8fe9a305066f33ac5c888d8a41ce219a6f1
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
8f21158fe64eb93ff005dc1b831b282b95531023 29-Jul-2014 Adrian Roos <roosa@google.com> Trust: Make setEnabledFeatures asynchronous

Unsynchronizes the call into app code from setEnabledFeatures,
replacing it with a callback mechanism. Also makes this actually
work by fixing the check in TrustManagerService to take into account
whitelisting.

Change-Id: I0831752cd2d3158eda9c8404a5569498f11ac2ac
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
7861c663fd64af33ec2a4c5ad653c806dc8bd994 25-Jul-2014 Adrian Roos <roosa@google.com> Add setManagingTrust and expose it on lockscreen

Adds a facility for trust agents to indicate if they
are ready to manage trust. Also adds an indication to
the lock icon on the lockscreen to show whether trust is
being managed.

Bug: 15518469
Bug: 16123013

Change-Id: Ie17f588aebeafe66c81dea4a69c733b0d2c72fd4
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
604e7558ef32098644b2f9456d7743a07ae789dc 19-Jul-2014 Jim Miller <jaggies@google.com> Add new DevicePolicyManager API to allow fine-grained TrustAgent management

This adds a new feature that allows a device admin to specify a
whitelist of features that are allowed for the given admin.

Change-Id: I83f853318efbcf72308532d0a997374f73fa9c10
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
c5f95cea2639b698594a85acbde6a5519941d7b1 24-Jul-2014 Adrian Roos <roosa@google.com> Restart trust agents when updated or when they are dead

ActivityManager restarts the trust agent service for us
when it gets killed automatically. This does not apply
when its process crashes too often or when its package
gets updated however.
To catch the update case, the trust agent connection
is removed as soon as the package disappears, and then
readded when the new package appears.
To catch the repeated crashing case, the connection is
reset if it hasn't successfully connected for several minutes.

Also adds a button to SampleTrustAgent to simulate a crash.

Bug: 16137258
Change-Id: I1b18fc7a3025e23e25ca1623b6af658d5430a94b
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
7d59b4f981e24a4a446522e9b8d3d6a7115c1459 27-May-2014 Adrian Roos <roosa@google.com> Add and improve logged TrustAgent connection events

Adds events for when a TrustAgentService gets connected
or is stopped. Also explicitly revokes trust when a
trust agent gets disconnected, such that it shows up in
dumpsys.

Bug: 15281644
Change-Id: I5875a34da923345683279c1f755d43454ff6318d
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
7a4f3d448b17b4bea190c906d7ecc7f8bec9ff80 02-May-2014 Adrian Roos <roosa@google.com> Add dumpsys facility and a history to TrustManagerService

TrustManagerService now keeps track of all events that
influence its state and reports them when it is dumped or
a bugreport is collected.

Bug: 15079129

Change-Id: Iac13de8a848d2b12c8d06168a6969f55b264144a
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
7e03dfcb796ef1a6000a5fd5fda03c9e15ea62e1 16-May-2014 Adrian Roos <roosa@google.com> Apply revised TrustAgent API

Bug: 14997466
Change-Id: I81042e058a20f28603a11471882f3dcfc4f8b13c
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java
82142c21dd333307682d5f4bb09de3ab3ccfa06c 27-Mar-2014 Adrian Roos <roosa@google.com> Define trust agent framework components

Adds the TrustManager system service that allows
registering for changes to the trust status and
reporting events that are important to trust agents.

Bug: 13723878
Change-Id: I7d0d2ea86fd755702d31aa5d49cac038a6cd4301
/frameworks/base/services/core/java/com/android/server/trust/TrustAgentWrapper.java