Update checkin service API

This commit is contained in:
Marvin W 2022-01-18 18:52:31 +01:00
parent 9304375da7
commit 854f879da4
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
2 changed files with 12 additions and 0 deletions

View File

@ -2,4 +2,6 @@ package com.google.android.gms.checkin.internal;
interface ICheckinService {
String getDeviceDataVersionInfo();
long getLastCheckinSuccessTime();
String getLastSimOperator();
}

View File

@ -59,6 +59,16 @@ public class CheckinService extends IntentService {
public String getDeviceDataVersionInfo() throws RemoteException {
return LastCheckinInfo.read(CheckinService.this).getDeviceDataVersionInfo();
}
@Override
public long getLastCheckinSuccessTime() throws RemoteException {
return LastCheckinInfo.read(CheckinService.this).getLastCheckin();
}
@Override
public String getLastSimOperator() throws RemoteException {
return null;
}
};
public CheckinService() {