当前位置: 代码迷 >> 综合 >> cts verity:BYOD Managed Provisioning - Camera support cross profile video capture (without extra out
  详细解决方案

cts verity:BYOD Managed Provisioning - Camera support cross profile video capture (without extra out

热度:101   发布时间:2023-11-20 10:08:12.0
BYOD Managed Provisioning - Camera support cross profile video capture (without extra output path) 

=> After recording, video can not be played.


请贵司参考如下diff修改验证,若第三方相机也要做类似的修改已避免权限问题不能播放,感谢~
diff --git a/src/com/mediatek/camera/mode/VideoModeHelper.java b/src/com/mediatek/camera/mode/VideoModeHelper.java
index befb94c..e5edc0b 100755
--- a/src/com/mediatek/camera/mode/VideoModeHelper.java
+++ b/src/com/mediatek/camera/mode/VideoModeHelper.java

@@ -238,6 +238,7 @@
if (valid) {
resultCode = Activity.RESULT_OK;
resultIntent.setData(uri);
+ resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
Log.d(TAG, "[doReturnToCaller](" + valid + ")" + ",mCurrentVideoUri = " + uri);
}
mIModuleCtrl.backToCallingActivity(resultCode, resultIntent);

diff --git a/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java b/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java
index 2dc2125..d78928d 100755
--- a/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java
+++ b/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java

@@ -1065,6 +1065,7 @@
int resultCode;
resultCode = Activity.RESULT_OK;
resultIntent.setData(mUri);
+ resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
mAppController.setResultExAndFinish(resultCode, resultIntent);
}



  相关解决方案