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