修改安卓原生工程的权限,要不然在线打包后还是报错

This commit is contained in:
田岩
2025-12-08 16:06:34 +08:00
parent 912fa16383
commit a680b589e8
13 changed files with 42 additions and 13 deletions
Binary file not shown.
Binary file not shown.
@@ -5,11 +5,38 @@
<action android:name="android.media.action.IMAGE_CAPTURE" /> <action android:name="android.media.action.IMAGE_CAPTURE" />
</intent> </intent>
</queries> </queries>
<uses-permission android:name="android.permission.CAMERA"/> <!-- <uses-permission android:name="android.permission.CAMERA"/>-->
<uses-permission android:name="android.permission.RECORD_AUDIO"/> <!-- <uses-permission android:name="android.permission.RECORD_AUDIO"/>-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>-->
<uses-permission android:name="android.permission.INTERNET"/> <!-- <uses-permission android:name="android.permission.INTERNET"/>-->
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>-->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- 补充缺失的关键权限 -->
<uses-permission android:name="android.permission.INTERNET"/> <!-- 必加:WebView 联网/本地文件加载 -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> <!-- 音频设置权限 -->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> <!-- Android 11+ 文件管理 -->
<uses-feature android:name="android.hardware.microphone" android:required="true"/> <!-- 声明麦克风硬件 -->
<application <application
android:allowBackup="false" android:allowBackup="false"
android:allowClearUserData="true" android:allowClearUserData="true"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -87,7 +87,8 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>"
] ]
}, },
"apple": { "apple": {
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
.uni-popup[data-v-4d2f82f0]{position:fixed;z-index:99}.uni-popup.top[data-v-4d2f82f0],.uni-popup.left[data-v-4d2f82f0],.uni-popup.right[data-v-4d2f82f0]{top:0}.uni-popup .uni-popup__wrapper[data-v-4d2f82f0]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-4d2f82f0],.uni-popup .uni-popup__wrapper.right[data-v-4d2f82f0]{padding-top:0;flex:1}.fixforpc-z-index[data-v-4d2f82f0]{z-index:999}.fixforpc-top[data-v-4d2f82f0]{top:0}.overlay-box[data-v-66e18456]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:999;background-color:rgba(0,0,0,.65)}.overlay-box .detail-img[data-v-66e18456]{position:absolute;left:50%;top:50%;width:100vw;max-height:100%;transform:translate(-50%,-50%)}.nav-bar[data-v-6f106210]{width:100%;height:var(--status-bar-height);position:fixed}.nav-bar-seat[data-v-6f106210]{width:100%;height:var(--status-bar-height)}.nav-bar-div[data-v-6f106210]{z-index:1900;width:100%;position:relative}.switch-div[data-v-d5172c68]{display:flex;justify-content:flex-end;align-items:center;margin-right:.625rem;margin-top:.3125rem;width:100%}.switch-div .switch-text[data-v-d5172c68]{font-weight:400;font-size:.875rem;color:#fff}.switch-div .switch[data-v-d5172c68]{transform:scale(.7) rotate(180deg)}.switch-div .switch[data-v-d5172c68] .uni-switch-input.uni-switch-input-checked{border-color:#9eacbf!important;background-color:#9eacbf!important}.switch-div .switch[data-v-d5172c68] .uni-switch-input:after{top:5px;left:5px;width:20px;height:20px}.switch-div .switch[data-v-d5172c68] .uni-switch-input:before{background-color:#62a1ff!important;border-color:#62a1ff!important}.switch-div .switch[data-v-d5172c68] .uni-switch-input:not(.uni-switch-input-checked){background-color:#62a1ff!important;border-color:#62a1ff!important}.fl1-div-1[data-v-d5172c68]{min-height:3.75rem;max-height:7.5rem}.show-box[data-v-d5172c68]{width:100vw;height:100vh;background:linear-gradient(120deg,rgba(51,51,51,.8),rgba(102,102,102,.8),rgba(51,51,51,.8));backdrop-filter:blur(10px);position:fixed;top:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center}.show-box-avatar[data-v-d5172c68]{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:900}.role-info[data-v-d5172c68]{position:relative;width:100vw;padding-top:6.5625rem;text-align:center;color:#fff;line-height:1.8125rem;font-size:1.1875rem}.role-info .role-avatar[data-v-d5172c68]{width:5.78125rem;height:5.78125rem;border-radius:50%;overflow:hidden;position:absolute;left:50%;transform:translate(-50%);top:0}.role-info .role-name[data-v-d5172c68]{margin-bottom:.8125rem}.role-info .title-tip[data-v-d5172c68]{padding-right:.625rem;position:relative}.role-info .title-tip[data-v-d5172c68]:after{content:"";position:absolute;animation:loading-d5172c68 2.5s infinite}@keyframes loading-d5172c68{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}.body-scene[data-v-d5172c68]{overflow:auto;width:calc(100% - 2.875rem);padding:.8125rem;color:rgba(255,255,255,.8);border:.125rem dashed rgba(255,255,255,.3);border-radius:.5rem;opacity:0;transition:opacity .5s ease}.body-scene.show[data-v-d5172c68]{opacity:1}.close-btn[data-v-d5172c68]{width:3.6875rem;height:3.6875rem;background-image:url(../../static/images/sparring/close-talk.png);background-repeat:no-repeat;background-position:center;background-size:cover;border-radius:50%;margin-top:1.4375rem;margin-bottom:3.5rem;flex-shrink:0} .uni-popup[data-v-4d2f82f0]{position:fixed;z-index:99}.uni-popup.top[data-v-4d2f82f0],.uni-popup.left[data-v-4d2f82f0],.uni-popup.right[data-v-4d2f82f0]{top:0}.uni-popup .uni-popup__wrapper[data-v-4d2f82f0]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-4d2f82f0],.uni-popup .uni-popup__wrapper.right[data-v-4d2f82f0]{padding-top:0;flex:1}.fixforpc-z-index[data-v-4d2f82f0]{z-index:999}.fixforpc-top[data-v-4d2f82f0]{top:0}.overlay-box[data-v-66e18456]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:999;background-color:rgba(0,0,0,.65)}.overlay-box .detail-img[data-v-66e18456]{position:absolute;left:50%;top:50%;width:100vw;max-height:100%;transform:translate(-50%,-50%)}.nav-bar[data-v-6f106210]{width:100%;height:var(--status-bar-height);position:fixed}.nav-bar-seat[data-v-6f106210]{width:100%;height:var(--status-bar-height)}.nav-bar-div[data-v-6f106210]{z-index:1900;width:100%;position:relative}.switch-div[data-v-18101377]{display:flex;justify-content:flex-end;align-items:center;margin-right:.625rem;margin-top:.3125rem;width:100%}.switch-div .switch-text[data-v-18101377]{font-weight:400;font-size:.875rem;color:#fff}.switch-div .switch[data-v-18101377]{transform:scale(.7) rotate(180deg)}.switch-div .switch[data-v-18101377] .uni-switch-input.uni-switch-input-checked{border-color:#9eacbf!important;background-color:#9eacbf!important}.switch-div .switch[data-v-18101377] .uni-switch-input:after{top:5px;left:5px;width:20px;height:20px}.switch-div .switch[data-v-18101377] .uni-switch-input:before{background-color:#62a1ff!important;border-color:#62a1ff!important}.switch-div .switch[data-v-18101377] .uni-switch-input:not(.uni-switch-input-checked){background-color:#62a1ff!important;border-color:#62a1ff!important}.fl1-div-1[data-v-18101377]{min-height:3.75rem;max-height:7.5rem}.show-box[data-v-18101377]{width:100vw;height:100vh;background:linear-gradient(120deg,rgba(51,51,51,.8),rgba(102,102,102,.8),rgba(51,51,51,.8));backdrop-filter:blur(10px);position:fixed;top:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center}.show-box-avatar[data-v-18101377]{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:900}.role-info[data-v-18101377]{position:relative;width:100vw;padding-top:6.5625rem;text-align:center;color:#fff;line-height:1.8125rem;font-size:1.1875rem}.role-info .role-avatar[data-v-18101377]{width:5.78125rem;height:5.78125rem;border-radius:50%;overflow:hidden;position:absolute;left:50%;transform:translate(-50%);top:0}.role-info .role-name[data-v-18101377]{margin-bottom:.8125rem}.role-info .title-tip[data-v-18101377]{padding-right:.625rem;position:relative}.role-info .title-tip[data-v-18101377]:after{content:"";position:absolute;animation:loading-18101377 2.5s infinite}@keyframes loading-18101377{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}.body-scene[data-v-18101377]{overflow:auto;width:calc(100% - 2.875rem);padding:.8125rem;color:rgba(255,255,255,.8);border:.125rem dashed rgba(255,255,255,.3);border-radius:.5rem;opacity:0;transition:opacity .5s ease}.body-scene.show[data-v-18101377]{opacity:1}.close-btn[data-v-18101377]{width:3.6875rem;height:3.6875rem;background-image:url(../../static/images/sparring/close-talk.png);background-repeat:no-repeat;background-position:center;background-size:cover;border-radius:50%;margin-top:1.4375rem;margin-bottom:3.5rem;flex-shrink:0}
File diff suppressed because one or more lines are too long
@@ -206,6 +206,7 @@
source.connect(processor); source.connect(processor);
processor.connect(audioContext.destination); processor.connect(audioContext.destination);
} catch (err) { } catch (err) {
this.$ownerInstance.callMethod('toShowToast'); this.$ownerInstance.callMethod('toShowToast');
} }