20251201_061446_148
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#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
|
stageCount=13
|
||||||
libraryProject=
|
libraryProject=
|
||||||
baseVersion=15.11
|
baseVersion=15.11
|
||||||
publishVersion=15.11.12
|
publishVersion=15.11.12
|
||||||
buildCount=23
|
buildCount=29
|
||||||
baseBetaVersion=15.11.13
|
baseBetaVersion=15.11.13
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,43 +1,53 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<!-- 保留root-path适配特殊机型(如微信分身),谨慎启用(部分机型可能报安全警告) -->
|
<!-- ====================================== 核心适配:应用私有外部目录(必选)====================================== -->
|
||||||
<root-path
|
<!-- 1. 裁剪临时文件目录(对应BackgroundSettingsActivity中onCreate的CropTemp目录)
|
||||||
name="root_path"
|
路径:/storage/emulated/0/Android/data/${applicationId}/files/Pictures/CropTemp/
|
||||||
path="" />
|
关联代码:_mSourceCropTempFile = new File(cropTempDir, _mSourceCropTempFileName) -->
|
||||||
|
|
||||||
<!-- 核心适配1:BackgroundSourceUtils的背景图片目录(对应mfBackgroundDir) -->
|
|
||||||
<!-- 路径:/Android/data/${applicationId}/files/BackgroundPictureUtils/BackgroundSource/ -->
|
|
||||||
<external-files-path
|
|
||||||
name="background_source"
|
|
||||||
path="BackgroundPictureUtils/BackgroundSource/" /> <!-- 与BackgroundSourceUtils.initDirs()完全一致 -->
|
|
||||||
|
|
||||||
<!-- 核心适配2:App的临时目录(对应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) -->
|
|
||||||
<external-files-path
|
<external-files-path
|
||||||
name="app_private_pictures"
|
name="app_private_pictures"
|
||||||
path="Pictures/" /> <!-- 适配onCreate中getExternalFilesDir(Environment.DIRECTORY_PICTURES) -->
|
path="Pictures/" /> <!-- 仅保留1次,覆盖Pictures下所有子目录(含CropTemp) -->
|
||||||
|
|
||||||
<!-- 保留通用配置,适配分享/拍照等场景(多包名自动适配${applicationId}) -->
|
<!-- 2. 背景图片目录(对应BackgroundSourceUtils的背景存储目录)
|
||||||
<external-path
|
路径:/storage/emulated/0/Android/data/${applicationId}/files/BackgroundPictureUtils/BackgroundSource/
|
||||||
name="external_storage_root"
|
关联代码:mfBackgroundDir = new File(mBackgroundSourceUtils.getBackgroundSourceDirPath()) -->
|
||||||
path="." />
|
<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
|
<cache-path
|
||||||
name="cache_path"
|
name="cache_path"
|
||||||
path="." />
|
path="." />
|
||||||
<external-files-path
|
|
||||||
name="external_file_path"
|
<!-- 应用外部缓存目录(适配Android11+ 外部缓存场景,如第三方SDK依赖)
|
||||||
path="." /> <!-- 通用外部文件路径,多包名自动适配 -->
|
路径:/storage/emulated/0/Android/data/${applicationId}/cache/
|
||||||
<external-files-path
|
关联代码:getExternalCacheDir() -->
|
||||||
name="files_root"
|
|
||||||
path="mimoDownload" />
|
|
||||||
<external-cache-path
|
<external-cache-path
|
||||||
name="external_cache_path"
|
name="external_cache_path"
|
||||||
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>
|
</paths>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user