version:4.5
fix: update:增加远程获取sn接口
This commit is contained in:
@@ -6,8 +6,8 @@ import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.aoleyun.sn.IGetLicenseInterface;
|
||||
import com.aoleyun.sn.utils.SPUtils;
|
||||
import com.aoleyun.sn.SystemInfoInterface;
|
||||
import com.aoleyun.sn.utils.Utils;
|
||||
|
||||
public class RemoteService extends Service {
|
||||
private String TAG = RemoteService.class.getSimpleName();
|
||||
@@ -26,17 +26,15 @@ public class RemoteService extends Service {
|
||||
return super.onStartCommand(intent, flags, startId);
|
||||
}
|
||||
|
||||
IGetLicenseInterface.Stub mBinde = new IGetLicenseInterface.Stub() {
|
||||
SystemInfoInterface.Stub mBinde = new SystemInfoInterface.Stub() {
|
||||
@Override
|
||||
public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLicense() throws RemoteException {
|
||||
String ebagCode = (String) SPUtils.get(RemoteService.this, "ebagCode", "");
|
||||
Log.e(TAG, "getLicense: " + ebagCode);
|
||||
return ebagCode;
|
||||
public String getSerial() throws RemoteException {
|
||||
return Utils.getSerial();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user