version:4.5

fix:
update:增加远程获取sn接口
This commit is contained in:
2022-05-18 15:47:37 +08:00
parent 5b335c3029
commit 1b83a79957
6 changed files with 117 additions and 25 deletions

View File

@@ -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();
}
};
}