update:2020.09.04
fix:截图上传,应用信息更新
add:
This commit is contained in:
2020-09-04 11:05:55 +08:00
parent 2340af523e
commit 83d7be8caf
7 changed files with 125 additions and 17 deletions

View File

@@ -205,5 +205,8 @@ public class Configure {
public final static String NET_AND_LAUNCH_API = HTTP_TAG_HEAD_NEW + "automatic/get";
//获取应用升级自启
public static final String GET_STUDENTS_INFO = HTTP_TAG_HEAD_NEW + "Sn/getStudent";
//通过sn获取信息
public static final String SEND_SCREENSHOT = HTTP_TAG_HEAD_NEW + "Screenshot/addImg";
}

View File

@@ -76,6 +76,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Utils {
@@ -1033,7 +1034,7 @@ public class Utils {
* 屏幕截图
* 适用于lanucher版
*/
public static void shotScreen() {
public void shotScreen() {
//adb截图方法
new Thread(new Runnable() {
@Override
@@ -1041,7 +1042,7 @@ public class Utils {
Log.e("whh0914", "开始屏幕截图...");
String filepath = "/sdcard/screenShot.png";
try {
execRootCmdSilent("screencap -p " + filepath);
CmdUtil.execute("screencap -p " + filepath);
} catch (Exception e) {
Log.e("whh0914", "屏幕截图出现异常:" + e.toString());
}
@@ -1049,6 +1050,7 @@ public class Utils {
}).start();
}
/**
* 执行命令但不关注结果输出
*/