From 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93 Mon Sep 17 00:00:00 2001
From: liyujie <2352380935@qq.com>
Date: Thu, 28 Aug 2025 12:04:21 +0000
Subject: [PATCH] [4/4]解决USB摄像头打开相机预览界面绿屏

---
 android/packages/apps/Camera2/res/values/strings.xml |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/android/packages/apps/Camera2/res/values/strings.xml b/android/packages/apps/Camera2/res/values/strings.xml
index 78c269e..d8c4ead 100755
--- a/android/packages/apps/Camera2/res/values/strings.xml
+++ b/android/packages/apps/Camera2/res/values/strings.xml
@@ -136,6 +136,9 @@
     <!-- message for the dialog showing that the user's photo could not be saved [CHAR LIMIT=NONE] -->
     <string name="error_media_storage_failure">There was a problem saving your photo or video.</string>
 
+    <!-- message for the dialog showing that the user's photo could not be saved [CHAR LIMIT=NONE] -->
+    <string name="error_cannot_start_recording_failure">The recording parameters are not compatible with this camera.</string>
+
     <!-- message for the dialog showing that the app does not have sufficient permissions [CHAR LIMIT=NONE] -->
     <string name="error_permissions">The app does not have critical permissions needed to run. Please check your permissions settings.</string>
 
@@ -163,6 +166,9 @@
     <!-- Default feedback that is entered in the Feedback textview for issues related to saving photos. [CHAR LIMIT=NONE] -->
     <string name="feedback_description_save_photo">Photo or video did not save to the device.</string>
 
+    <!-- Default feedback that is entered in the Feedback textview for issues related to recording. [CHAR LIMIT=NONE] -->
+    <string name="feedback_description_start_recording">Can not start recording because of video settings</string>
+
     <!-- Screen display message during image capture to indicate that the capture is in progress, like during HDR+. [CHAR LIMIT=20] -->
     <string name="capturing">Capturing</string>
 
@@ -172,8 +178,12 @@
     <string name="pref_camera_id_default" translatable="false">0</string>
 
     <!-- Named indexes into the array of camera facing entries -->
+    <!--string name="pref_camera_id_index_back" translatable="false">1</string>
+    <string name="pref_camera_id_index_front" translatable="false">2</string-->
+
     <string name="pref_camera_id_index_back" translatable="false">1</string>
     <string name="pref_camera_id_index_front" translatable="false">2</string>
+    <string name="pref_camera_id_index_external" translatable="false">2</string>
 
     <!-- In select camera setting, back facing camera. [CHAR LIMIT=14] -->
     <string name="pref_camera_id_entry_back">Back</string>
@@ -185,6 +195,7 @@
     <string name="pref_camera_id_entry_back_value" translatable="false">0</string>
     <!-- In select camera setting, front-facing camera value. [CHAR LIMIT=14] -->
     <string name="pref_camera_id_entry_front_value" translatable="false">1</string>
+    <string name="pref_camera_id_entry_external_value" translatable="false">2</string>
 
     <!-- Settings screen, location setting text. [CHAR LIMIT=20]-->
     <string name="pref_camera_save_location_title">Save location</string>
@@ -838,6 +849,10 @@
     <string name="setting_front_camera_photo">Front camera photo</string>
     <!-- Camera settings title for front camera video resolution. [CHAR LIMIT=25] -->
     <string name="setting_front_camera_video">Front camera video</string>
+    <!-- Camera settings title for external camera photo resolution. [CHAR LIMIT=25] -->
+    <string name="setting_external_camera_photo">External camera photo</string>
+    <!-- Camera settings title for external camera video resolution. [CHAR LIMIT=25] -->
+    <string name="setting_external_camera_video">External camera video</string>
 
     <!-- Text shown in camera settings list for selecting the camera mode that will be used by default when the app starts [CHAR LIMIT=25] -->
     <string name="setting_default_camera">Default Camera</string>

--
Gitblit v1.6.2