20251201_061446_148

This commit is contained in:
2025-12-01 06:14:56 +08:00
parent 80363c6b4c
commit a6b25eaf2b
3 changed files with 1219 additions and 445 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sun Nov 30 20:24:08 GMT 2025
#Sun Nov 30 22:14:13 GMT 2025
stageCount=13
libraryProject=
baseVersion=15.11
publishVersion=15.11.12
buildCount=23
buildCount=29
baseBetaVersion=15.11.13

View File

@@ -1,43 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 保留root-path适配特殊机型如微信分身谨慎启用部分机型可能报安全警告 -->
<root-path
name="root_path"
path="" />
<!-- 核心适配1BackgroundSourceUtils的背景图片目录对应mfBackgroundDir -->
<!-- 路径:/Android/data/${applicationId}/files/BackgroundPictureUtils/BackgroundSource/ -->
<external-files-path
name="background_source"
path="BackgroundPictureUtils/BackgroundSource/" /> <!-- 与BackgroundSourceUtils.initDirs()完全一致 -->
<!-- 核心适配2App的临时目录对应mfPictureDir = App.getTempDirPath() -->
<!-- 路径:/Android/data/${applicationId}/files/temp/ -->
<external-files-path
name="app_temp"
path="temp/" /> <!-- 与App.getTempDirPath()的路径后缀严格匹配 -->
<!-- 核心适配3拍照/裁剪临时文件目录适配mfTakePhoto、_mSourceCropTempFile -->
<!-- 路径:/Android/data/${applicationId}/files/Pictures/对应BackgroundSettingsActivity的appPrivateDir -->
<!-- ====================================== 核心适配:应用私有外部目录(必选)====================================== -->
<!-- 1. 裁剪临时文件目录对应BackgroundSettingsActivity中onCreate的CropTemp目录
路径:/storage/emulated/0/Android/data/${applicationId}/files/Pictures/CropTemp/
关联代码_mSourceCropTempFile = new File(cropTempDir, _mSourceCropTempFileName) -->
<external-files-path
name="app_private_pictures"
path="Pictures/" /> <!-- 适配onCreate中getExternalFilesDir(Environment.DIRECTORY_PICTURES) -->
path="Pictures/" /> <!-- 仅保留1次覆盖Pictures下所有子目录含CropTemp -->
<!-- 保留通用配置,适配分享/拍照等场景(多包名自动适配${applicationId} -->
<external-path
name="external_storage_root"
path="." />
<!-- 2. 背景图片目录对应BackgroundSourceUtils的背景存储目录
路径:/storage/emulated/0/Android/data/${applicationId}/files/BackgroundPictureUtils/BackgroundSource/
关联代码mfBackgroundDir = new File(mBackgroundSourceUtils.getBackgroundSourceDirPath()) -->
<external-files-path
name="background_source"
path="BackgroundPictureUtils/BackgroundSource/" />
<!-- 3. 应用临时目录对应App.getTempDirPath(),适配拍照临时文件)
路径:/storage/emulated/0/Android/data/${applicationId}/files/temp/
关联代码mfPictureDir = new File(App.getTempDirPath())、mfTakePhoto = new File(mfPictureDir, "TakePhoto.jpg") -->
<external-files-path
name="app_temp"
path="temp/" />
<!-- ====================================== 兼容适配:其他必要目录(可选)====================================== -->
<!-- 应用内部缓存目录(适配少数依赖缓存的场景,如图片缓存)
路径:/data/user/0/${applicationId}/cache/
关联代码getCacheDir() -->
<cache-path
name="cache_path"
path="." />
<external-files-path
name="external_file_path"
path="." /> <!-- 通用外部文件路径,多包名自动适配 -->
<external-files-path
name="files_root"
path="mimoDownload" />
<!-- 应用外部缓存目录适配Android11+ 外部缓存场景如第三方SDK依赖
路径:/storage/emulated/0/Android/data/${applicationId}/cache/
关联代码getExternalCacheDir() -->
<external-cache-path
name="external_cache_path"
path="." />
<!-- 通用应用外部文件目录(适配分享/下载等通用场景覆盖files下所有目录
路径:/storage/emulated/0/Android/data/${applicationId}/files/
关联代码getExternalFilesDir(null) -->
<external-files-path
name="external_file_path"
path="." />
<!-- ====================================== 废弃移除:高风险/无用途配置====================================== -->
<!-- 1. 移除<root-path>高风险Android11+ 禁止应用访问根目录,部分机型报安全警告,无实际用途 -->
<!-- 2. 移除重复的app_private_pictures配置避免冲突 -->
<!-- 3. 移除<external-path name="external_storage_root">Android11+ 已废弃,无法访问外部存储根目录 -->
<!-- 4. 移除<external-files-path name="files_root">:无对应代码使用,冗余配置 -->
</paths>