|
|
@ -77,6 +77,7 @@ import javax.net.ssl.SSLSocketFactory; |
|
|
import javax.net.ssl.TrustManager; |
|
|
import javax.net.ssl.TrustManager; |
|
|
import javax.net.ssl.X509TrustManager; |
|
|
import javax.net.ssl.X509TrustManager; |
|
|
|
|
|
|
|
|
|
|
|
import cn.huidu.toolkit.HuiduTech; |
|
|
import cn.hutool.crypto.asymmetric.Sign; |
|
|
import cn.hutool.crypto.asymmetric.Sign; |
|
|
import okhttp3.MediaType; |
|
|
import okhttp3.MediaType; |
|
|
import okhttp3.MultipartBody; |
|
|
import okhttp3.MultipartBody; |
|
|
@ -677,7 +678,13 @@ public class MQTTService extends Service { |
|
|
screenshotFuture = singleThreadExecutor.submit(() -> |
|
|
screenshotFuture = singleThreadExecutor.submit(() -> |
|
|
SignWayUtil.ysTakeScreenshot(path) |
|
|
SignWayUtil.ysTakeScreenshot(path) |
|
|
); |
|
|
); |
|
|
}else if("bv".equals(Constant.androidBoardType)){ |
|
|
|
|
|
|
|
|
}else if("huidu".equals(Constant.androidBoardType)){ |
|
|
|
|
|
screenshotFuture = singleThreadExecutor.submit(() -> { |
|
|
|
|
|
HuiduTech helper = new HuiduTech(MyApplication.getInstance()); |
|
|
|
|
|
helper.screenCapture(path); |
|
|
|
|
|
return true; |
|
|
|
|
|
}); |
|
|
|
|
|
}else if("bv".equals(Constant.androidBoardType)){ |
|
|
screenshotFuture = singleThreadExecutor.submit(() ->{ |
|
|
screenshotFuture = singleThreadExecutor.submit(() ->{ |
|
|
try{ |
|
|
try{ |
|
|
Bitmap screenBitmap = MyApplication.getInstance().getLztek().screenCapture(); |
|
|
Bitmap screenBitmap = MyApplication.getInstance().getLztek().screenCapture(); |
|
|
@ -787,6 +794,7 @@ public class MQTTService extends Service { |
|
|
final String localPath = StringUtil.strSplice(Constant.CACHE_PATH, "update/", appName); |
|
|
final String localPath = StringUtil.strSplice(Constant.CACHE_PATH, "update/", appName); |
|
|
FileUtil.downloadFile(url, localPath, () -> { |
|
|
FileUtil.downloadFile(url, localPath, () -> { |
|
|
isDownloadFile = false; |
|
|
isDownloadFile = false; |
|
|
|
|
|
LoggerUtil.e("uploadApp", "APP下载完成"); |
|
|
AppUtil.installApp(localPath, DeviceUtil.getPackageName(), DeviceUtil.getPackageName(), true); |
|
|
AppUtil.installApp(localPath, DeviceUtil.getPackageName(), DeviceUtil.getPackageName(), true); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|