|
|
@ -288,7 +288,7 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String remoteFilePath = REMOTE_PATH_TMP + "bv.txt";
|
|
|
|
String remoteFilePath = REMOTE_PATH_TMP + "bv.txt";
|
|
|
|
String cmd = "am stack start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"query_bv\" --es path \"" + remoteFilePath + "\"";
|
|
|
|
String cmd = "am start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"query_bv\" --es path \"" + remoteFilePath + "\"";
|
|
|
|
adbShellResponse = null;
|
|
|
|
adbShellResponse = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
adbShellResponse = adb.shell(cmd);
|
|
|
|
adbShellResponse = adb.shell(cmd);
|
|
|
@ -473,7 +473,7 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
usb = (usbCamera != 0) ? "true" : "false";
|
|
|
|
usb = (usbCamera != 0) ? "true" : "false";
|
|
|
|
cameraId = channelJson.optInt("cameraId", cameraId);
|
|
|
|
cameraId = channelJson.optInt("cameraId", cameraId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final String cmd = "am stack start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"take_photo\" --es path \""
|
|
|
|
final String cmd = "am start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"take_photo\" --es path \""
|
|
|
|
+ remoteFilePath + "\" --ez usb " + usb + " --ei cameraId " + Integer.toString(cameraId) + " --ei channel "
|
|
|
|
+ remoteFilePath + "\" --ez usb " + usb + " --ei cameraId " + Integer.toString(cameraId) + " --ei channel "
|
|
|
|
+ Integer.toString(channel) + " --ei preset " + Integer.toString(preset) + " --es leftTopOsd \"" + leftTopOsd + "\"";
|
|
|
|
+ Integer.toString(channel) + " --ei preset " + Integer.toString(preset) + " --es leftTopOsd \"" + leftTopOsd + "\"";
|
|
|
|
// adbShellResponse = null;
|
|
|
|
// adbShellResponse = null;
|
|
|
@ -525,7 +525,7 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
height = channelJson.optInt("videoCY", height);
|
|
|
|
height = channelJson.optInt("videoCY", height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final String cmd = "am stack start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"recording\" --es path \""
|
|
|
|
final String cmd = "am start -n " + PACKAGE_NAME_MP + "/" + PACKAGE_NAME_MP + ".BridgeActivity --es action \"recording\" --es path \""
|
|
|
|
+ remoteFilePath + "\" --ez usb " + usb + " --ei cameraId " + Integer.toString(cameraId) + " --ei channel "
|
|
|
|
+ remoteFilePath + "\" --ez usb " + usb + " --ei cameraId " + Integer.toString(cameraId) + " --ei channel "
|
|
|
|
+ Integer.toString(channel) + " --ei preset " + Integer.toString(preset) + " --ei duration " + Integer.toString(duration)
|
|
|
|
+ Integer.toString(channel) + " --ei preset " + Integer.toString(preset) + " --ei duration " + Integer.toString(duration)
|
|
|
|
+ " --el videoId " + Long.toString(dt.getTime() / 1000) + " --ei width " + Integer.toString(height) + " --ei height "
|
|
|
|
+ " --el videoId " + Long.toString(dt.getTime() / 1000) + " --ei width " + Integer.toString(height) + " --ei height "
|
|
|
|