log修改
This commit is contained in:
parent
a69be9ced5
commit
5a0aa60061
|
@ -37,7 +37,7 @@ class OpenAppService : JobIntentService() {
|
||||||
runCatching {
|
runCatching {
|
||||||
if (isCanAuto && canAutoLc.isNotEmpty()) {
|
if (isCanAuto && canAutoLc.isNotEmpty()) {
|
||||||
val deviceInfo = DeviceDataAccessor.getDeviceInfo(applicationContext, DeviceInfoHelper.getDeviceId())
|
val deviceInfo = DeviceDataAccessor.getDeviceInfo(applicationContext, DeviceInfoHelper.getDeviceId())
|
||||||
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.READ_EXTERNAL_STORAGE") //sdcard权限
|
||||||
|
|
|
@ -714,9 +714,9 @@ object FileUtils {
|
||||||
|
|
||||||
// 调用 MockTools 执行
|
// 调用 MockTools 执行
|
||||||
val result: String = ShellUtils.execRootCmdAndGetResult(cmd)
|
val result: String = ShellUtils.execRootCmdAndGetResult(cmd)
|
||||||
val chmod = "chmod 777 \"$safeNewPath\""
|
// val chmod = "chmod 777 \"$safeNewPath\""
|
||||||
val chmodResult: String? = ShellUtils.execRootCmdAndGetResult(chmod)
|
// val chmodResult: String? = ShellUtils.execRootCmdAndGetResult(chmod)
|
||||||
recursiveChmod777(dst)
|
// recursiveChmod777(dst)
|
||||||
Log.i("TaskUtil", "Command executed successfully: $result")
|
Log.i("TaskUtil", "Command executed successfully: $result")
|
||||||
return true
|
return true
|
||||||
} catch (e: java.lang.Exception) {
|
} catch (e: java.lang.Exception) {
|
||||||
|
|
|
@ -247,7 +247,7 @@ object TaskUtils {
|
||||||
"$url?$params"
|
"$url?$params"
|
||||||
)
|
)
|
||||||
|
|
||||||
LogUtils.e("request result : $result")
|
LogUtils.d("request result : $result")
|
||||||
|
|
||||||
if (result != null && result.isNotEmpty()) {
|
if (result != null && result.isNotEmpty()) {
|
||||||
taskJson = JSONObject(result)
|
taskJson = JSONObject(result)
|
||||||
|
|
Loading…
Reference in New Issue