Skip to content

Commit 73b0ec8

Browse files
committed
更新 ColorOS Features Enhance 服务脚本,重构目录结构和文件复制逻辑,增强日志记录,删除不必要的调试信息,确保临时配置文件的强制复制和目录初始化的稳定性。
1 parent dc566a4 commit 73b0ec8

File tree

6 files changed

+394
-169
lines changed

6 files changed

+394
-169
lines changed

.promptx/pouch.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"currentState": "role_activated_with_memory",
3+
"stateHistory": [
4+
{
5+
"from": "initial",
6+
"command": "init",
7+
"timestamp": "2025-07-22T14:36:24.102Z",
8+
"args": [
9+
{
10+
"workingDirectory": "d:\\Android Project\\ColorFeatureEnhance",
11+
"ideType": "cursor"
12+
}
13+
]
14+
},
15+
{
16+
"from": "initialized",
17+
"command": "action",
18+
"timestamp": "2025-07-22T14:36:46.187Z",
19+
"args": [
20+
"assistant"
21+
]
22+
},
23+
{
24+
"from": "role_activated_with_memory",
25+
"command": "init",
26+
"timestamp": "2025-07-22T15:15:39.827Z",
27+
"args": [
28+
{
29+
"workingDirectory": "d:\\Android Project\\ColorFeatureEnhance",
30+
"ideType": "cursor"
31+
}
32+
]
33+
},
34+
{
35+
"from": "initialized",
36+
"command": "action",
37+
"timestamp": "2025-07-22T15:15:44.045Z",
38+
"args": [
39+
"assistant"
40+
]
41+
}
42+
],
43+
"lastUpdated": "2025-07-22T15:15:44.053Z"
44+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"source": "project",
4+
"metadata": {
5+
"version": "2.0.0",
6+
"description": "project 级资源注册表",
7+
"createdAt": "2025-07-22T15:15:39.838Z",
8+
"updatedAt": "2025-07-22T15:15:39.839Z",
9+
"resourceCount": 0
10+
},
11+
"resources": [],
12+
"stats": {
13+
"totalResources": 0,
14+
"byProtocol": {},
15+
"bySource": {}
16+
}
17+
}

exampleConfig/mod.zip

999 Bytes
Binary file not shown.

exampleConfig/mod/.gitattributes

Lines changed: 0 additions & 9 deletions
This file was deleted.

exampleConfig/mod/post-fs-data.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ copy_system_to_temp() {
4444
return 1
4545
fi
4646

47-
log_debug "系统配置目录内容:"
48-
ls -la "$SYSTEM_CONFIG_DIR" 2>/dev/null | while read line; do
49-
log_debug " $line"
50-
done
51-
5247
local copied_count=0
5348

5449
# 复制 app-features.xml
@@ -125,17 +120,17 @@ ensure_default_configs
125120

126121
# 3. 执行挂载逻辑
127122
log_info "开始挂载配置文件"
128-
# mount --bind $MODDIR/my_product/etc/$APP_FEATURES_FILE /my_product/etc/$APP_FEATURES_FILE
129-
# mount --bind $MODDIR/my_product/etc/$OPLUS_FEATURES_FILE /my_product/etc/$OPLUS_FEATURES_FILE
123+
mount --bind $MODULE_CONFIG_DIR/$APP_FEATURES_FILE $SYSTEM_CONFIG_DIR/$APP_FEATURES_FILE
124+
mount --bind $MODULE_CONFIG_DIR/$OPLUS_FEATURES_FILE $SYSTEM_CONFIG_DIR/$OPLUS_FEATURES_FILE
130125

131126
# 挂载any目录下的其他文件
132-
TMPDIR=/data/adb/cos_feat_e/anymount
133-
if [ -d "$TMPDIR" ]; then
134-
for i in `/bin/find $TMPDIR -type f -printf "%P "`; do
135-
/bin/mount /$TMPDIR/$i /$i
136-
log_info $i
137-
restorecon /$i
138-
done
139-
fi
127+
# TMPDIR=${0%/*}/anymount
128+
# if [ -d "$TMPDIR" ]; then
129+
# for i in `/bin/find $TMPDIR -type f -printf "%P "`; do
130+
# mount /$TMPDIR/$i /$i
131+
# log_info $i
132+
# restorecon /$i
133+
# done
134+
# fi
140135

141136
log_info "=== post-fs-data阶段完成 ==="

0 commit comments

Comments
 (0)