不检查更新
This commit is contained in:
parent
4e5287047f
commit
2e26323913
|
@ -4,10 +4,10 @@
|
|||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2025-07-07T06:37:35.266033300Z">
|
||||
<DropdownSelection timestamp="2025-08-02T03:09:35.609697900Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="Default" identifier="serial=8.217.74.194:8924;connection=1af33e42" />
|
||||
<DeviceId pluginId="Default" identifier="serial=8.217.74.194:8924;connection=5f91b786" />
|
||||
</handle>
|
||||
</Target>
|
||||
</DropdownSelection>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import com.android.build.gradle.internal.api.ApkVariantOutputImpl
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
|
@ -49,6 +50,19 @@ android {
|
|||
viewBinding = true
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
applicationVariants.all {
|
||||
val variant = this
|
||||
variant.outputs.all {
|
||||
val versionName = variant.versionName
|
||||
val versionCode = variant.versionCode
|
||||
val outputFileName = "app-${variant.applicationId}-v${versionName}-${versionCode}.apk"
|
||||
|
||||
if (this is ApkVariantOutputImpl) {
|
||||
this.outputFileName = outputFileName
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -40,7 +40,6 @@ class OpenAppService : JobIntentService() {
|
|||
// FileUtils.writePackageName(recordPackageName?:"")
|
||||
FileUtils.writeDevice(recordPackageName?:"", deviceInfo?: "")
|
||||
FileUtils.runPlugin(recordPackageName?:"")
|
||||
MockTools.exec("pm grant ${AUTO_JSPACKAGENAME} android.permission.READ_EXTERNAL_STORAGE") //sdcard权限
|
||||
MockTools.exec("pm grant ${AUTO_JSPACKAGENAME} android.permission.SYSTEM_ALERT_WINDOW") //悬浮窗权限
|
||||
MockTools.exec("settings put secure enabled_accessibility_services ${AUTO_JSPACKAGENAME}/${AUTO_JSPACKAGENAME}.core.accessibility.AccessibilityService")
|
||||
doScript(this@OpenAppService, AUTO_JSPACKAGENAME) //autojs
|
||||
|
|
|
@ -213,7 +213,7 @@ object AppUtils {
|
|||
fun installRecord(context: Context): Boolean {
|
||||
var installRet = false
|
||||
startInstallTime = System.currentTimeMillis()
|
||||
if (CheckAppNeedUpgrade(context) || !checkAppInstalled(
|
||||
if (!checkAppInstalled(
|
||||
context,
|
||||
recordPackageName
|
||||
)
|
||||
|
@ -232,11 +232,9 @@ object AppUtils {
|
|||
|
||||
if (installRet && !videoProxy.contains("123.56.44.45")) {
|
||||
//检查是否有新版本
|
||||
if (!CheckAppNeedUpgrade(context)) {
|
||||
file.delete()
|
||||
extraFile?.delete()
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
@ -604,10 +602,7 @@ object AppUtils {
|
|||
try {
|
||||
var url = "http://39.103.73.250/tt/upload/ddj/$recordFileName"
|
||||
var ret = false
|
||||
ret = if (checkAppInstalled(
|
||||
context,
|
||||
recordPackageName
|
||||
) || !CheckAppNeedUpgrade(context)
|
||||
ret = if (checkAppInstalled(context, recordPackageName)
|
||||
) {
|
||||
true
|
||||
} else {
|
||||
|
|
|
@ -208,9 +208,8 @@ object ShellUtils {
|
|||
} catch (e: IOException) {
|
||||
LogUtils.e(
|
||||
Log.ERROR,
|
||||
"ShellUtils",
|
||||
"Error while reading process error stream: ${e.message}",
|
||||
e
|
||||
"cmd:$cmd",
|
||||
"Error while reading process error stream: ${e.message}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -199,7 +199,7 @@ object TaskUtils {
|
|||
" ".toByteArray(charset = Charsets.UTF_8),
|
||||
"$url?$params"
|
||||
)
|
||||
LogUtils.e("IOSTQ:execReloginTask->result:$result")
|
||||
LogUtils.d("IOSTQ:execReloginTask->result:$result")
|
||||
if (result != null && result.isNotEmpty()) {
|
||||
taskJson = JSONObject(result).apply {
|
||||
val code = getInt("code")
|
||||
|
|
Loading…
Reference in New Issue