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