Merge "Keep track of admin actions for DO disclosures"

This commit is contained in:
TreeHugger Robot
2016-11-17 21:40:44 +00:00
committed by Android (Google) Code Review
6 changed files with 356 additions and 5 deletions

View File

@@ -6749,4 +6749,54 @@ public class DevicePolicyManager {
throw re.rethrowFromSystemServer();
}
}
/**
* Called by the system to get the time at which the device owner last retrieved security
* logging entries.
*
* @return the time at which the device owner most recently retrieved security logging entries,
* in milliseconds since epoch; -1 if security logging entries were never retrieved.
*
* @hide
*/
public long getLastSecurityLogRetrievalTime() {
try {
return mService.getLastSecurityLogRetrievalTime();
} catch (RemoteException re) {
throw re.rethrowFromSystemServer();
}
}
/**
* Called by the system to get the time at which the device owner last requested a bug report.
*
* @return the time at which the device owner most recently requested a bug report, in
* milliseconds since epoch; -1 if a bug report was never requested.
*
* @hide
*/
public long getLastBugReportRequestTime() {
try {
return mService.getLastBugReportRequestTime();
} catch (RemoteException re) {
throw re.rethrowFromSystemServer();
}
}
/**
* Called by the system to get the time at which the device owner last retrieved network logging
* events.
*
* @return the time at which the device owner most recently retrieved network logging events, in
* milliseconds since epoch; -1 if network logging events were never retrieved.
*
* @hide
*/
public long getLastNetworkLogRetrievalTime() {
try {
return mService.getLastNetworkLogRetrievalTime();
} catch (RemoteException re) {
throw re.rethrowFromSystemServer();
}
}
}

View File

@@ -325,4 +325,8 @@ interface IDevicePolicyManager {
boolean bindDeviceAdminServiceAsUser(in ComponentName admin,
IApplicationThread caller, IBinder token, in Intent service,
IServiceConnection connection, int flags, int targetUserId);
long getLastSecurityLogRetrievalTime();
long getLastBugReportRequestTime();
long getLastNetworkLogRetrievalTime();
}