packServer/AndroidStation/app/src/main/AndroidManifest.xml
liufumingren 43dae198db chore: Android 扫码台设置页、发布脚本健壮性与文档同步
- Android 扫码台:设置页新增「设为默认桌面 / 解除默认桌面 / 回到盒子桌面 / 打开系统设置」等现场免 adb 操作
- android_client/build.ps1:gradle 的 javac 提示走 stderr,改成 2>&1 逐行 Write-Host,避免被当成构建失败
- deploy-lib.cjs:ssh 加 ServerAliveInterval/CountMax 与 -n,避免发布脚本卡在远端命令结束前不退出
- set-password.js:重置密码时补写 password_changed_at(否则旧 JWT 不失效)
- .gitignore:忽略 video_split/(调试用的视频拆帧产物)
- 文档同步:README / backend README(微信网关、成员扫码绑定、平台管理员、顶栏下载入口、已下线的自建微信表)/
  database README / desktop README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-29 17:21:41 +08:00

84 lines
3.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 局域网设备发现(UDP)与扫码推送(TCP)都只需要建 socket -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- 启动时把媒体音量拉到最大(普通权限,装上即授予) -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- 开机自启动:工位设备断电重启后不用人去点图标 -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Android TV 支持:required=false 表示同一份包也能装到手机/平板上 -->
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<!-- 本应用只支持横屏 -->
<uses-feature
android:name="android.hardware.screen.landscape"
android:required="true" />
<application
android:name=".App"
android:allowBackup="true"
android:banner="@drawable/app_banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.AndroidStation">
<!-- 设备端主界面:只展示状态并接收 USB 扫码枪输入 -->
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<!-- 电视桌面入口 -->
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
<!-- 普通桌面入口 -->
<category android:name="android.intent.category.LAUNCHER" />
<!--
也可以被选作盒子桌面(kiosk):
某些电视盒子 ROM(实测 G96max H616 / Android 10)禁止后台拉起 Activity
(日志:Background activity start … isBgStartWhitelisted: false),
开机广播收到也回不到前台。设成 HOME 后由系统自己启动,稳定常驻。
现场用 `adb shell cmd package set-home-activity com.gztbyc.scancenter/.MainActivity` 切换。
-->
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- 服务设置:不导出,只从主界面进入 -->
<activity
android:name=".SettingsActivity"
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
android:exported="false"
android:screenOrientation="landscape"
android:windowSoftInputMode="adjustPan" />
<!-- 开机自启动。BOOT_COMPLETED 属于隐式广播限制的豁免项,静态注册在 Android 8+ 仍然有效。 -->
<receiver
android:name=".receiver.BootReceiver"
android:enabled="true"
android:exported="true">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
</application>
</manifest>