Skip to content

Commit f06efcf

Browse files
2.0 (#9)
* Refact Web * Refact Tools * Refact Data * Remove Old * Refact All * feat:improve csc_tool xml patch * feat:enhance webUI * Update csc_tool.c * feat:webUI add filter * Update src/core/jni/csc_tool.c Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --------- Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 6d3143d commit f06efcf

35 files changed

Lines changed: 5188 additions & 2214 deletions

.github/workflows/apk.yml

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

.github/workflows/magisk.yml

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Build Magisk Module
22

33
on:
44
push:
5-
# paths:
6-
# - 'scr/**'
5+
branches: [ main, master, 2.0 ]
76
workflow_dispatch:
87

98
jobs:
@@ -12,41 +11,40 @@ jobs:
1211

1312
steps:
1413
- uses: actions/checkout@v3
15-
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
1620
- name: Set up NDK
1721
uses: nttld/setup-ndk@v1
1822
with:
1923
ndk-version: r25c
20-
21-
- name: Build Native Libraries
24+
25+
- name: Build WebUI
26+
run: |
27+
cd src/webui
28+
npm install
29+
npm run build
30+
31+
- name: Build csc_tool (Native)
2232
run: |
23-
mkdir -p $GITHUB_WORKSPACE/module_files/libs
24-
25-
echo "Building auto_modify_cscfeature..."
26-
cd $GITHUB_WORKSPACE/scr/auto_modify_cscfeature/
27-
ndk-build
28-
echo "Copying from $(pwd)/libs to $GITHUB_WORKSPACE/module_files/libs/"
29-
cp -r libs/* $GITHUB_WORKSPACE/module_files/libs/
30-
31-
echo "Building auto_modify_json_csc..."
32-
cd $GITHUB_WORKSPACE/scr/auto_modify_json_csc/
33-
ndk-build
34-
echo "Copying from $(pwd)/libs to $GITHUB_WORKSPACE/module_files/libs/"
35-
cp -r libs/* $GITHUB_WORKSPACE/module_files/libs/
36-
37-
echo "Building cscdecode..."
38-
cd $GITHUB_WORKSPACE/scr/cscdecode/
39-
ndk-build
40-
echo "Copying from $(pwd)/libs to $GITHUB_WORKSPACE/module_files/libs/"
41-
cp -r libs/* $GITHUB_WORKSPACE/module_files/libs/
33+
cd src/core
34+
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=jni/Application.mk
35+
mkdir -p ../../module_files/libs
36+
# 拷贝编译出的二进制文件到模块目录
37+
cp -r libs/* ../../module_files/libs/
4238
4339
- name: Create Magisk Module
4440
run: |
41+
# 移除 .gitkeep 防止打包
42+
find module_files -name ".gitkeep" -delete
4543
cd module_files
4644
zip -r9 ../auto_modify_cscfeature.zip ./*
4745
4846
- name: Upload Artifact
4947
uses: actions/upload-artifact@v4
5048
with:
5149
name: auto_modify_cscfeature
52-
path: auto_modify_cscfeature.zip
50+
path: auto_modify_cscfeature.zip

module_files/configs/carrier.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[
2+
{
3+
"key": "CarrierFeature_RIL_ConfigNetworkTypeCapability",
4+
"value": "CHC-CHC-GSM-CHN",
5+
"command": "MODIFY",
6+
"desc": "修改 设备支持的网络类型能力",
7+
"enabled": false
8+
},
9+
{
10+
"key": "CarrierFeature_Setting_BlockToSelectDUNApnType",
11+
"value": "",
12+
"command": "DELETE",
13+
"desc": "删除 阻止选择DUN(拨号上网)APN类型",
14+
"enabled": false
15+
},
16+
{
17+
"key": "CarrierFeature_Setting_DisableNetworkMode",
18+
"value": "",
19+
"command": "DELETE",
20+
"desc": "删除 禁用的网络模式",
21+
"enabled": false
22+
},
23+
{
24+
"key": "CarrierFeature_VoiceCall_ConfigNetworkList",
25+
"value": "NetworkModeInChn",
26+
"command": "MODIFY",
27+
"desc": "修改 语音呼叫支持的网络列表",
28+
"enabled": false
29+
},
30+
{
31+
"key": "CarrierFeature_VoiceCall_ConfigOpStyleForMobileNetSetting",
32+
"value": "voltesettingscommon,voltesettingCHN,support_hvolte_solution_ctc,support_volte_ctc_spec_2019_11",
33+
"command": "MODIFY",
34+
"desc": "修改 移动网络设置相关的操作样式",
35+
"enabled": false
36+
},
37+
{
38+
"key": "CarrierFeature_VoiceCall_ConfigOpStyleMobileNetworkSettingMenu",
39+
"value": "+cdmasystemselect,+datapreferduringcalling,+cdmasubscription,+voltecall,+preferrednetworks,+sroaming,+networkstatus,networkstatus_current_state,+preferrednetworkmode",
40+
"command": "MODIFY",
41+
"desc": "修改 移动网络设置菜单的操作样式",
42+
"enabled": false
43+
},
44+
{
45+
"key": "CarrierFeature_RIL_Display4gPlusIconBandwidth",
46+
"value": "20",
47+
"command": "MODIFY",
48+
"desc": "修改 配置4G Plus(通常是LTE-Advanced)图标显示带宽",
49+
"enabled": false
50+
},
51+
{
52+
"key": "CarrierFeature_VoiceCall_ConfigOpStyleForNetworkSetting",
53+
"value": "SupportSoftSim",
54+
"command": "MODIFY",
55+
"desc": "修改 软SIM(Soft SIM)支持(三星畅联?)",
56+
"enabled": false
57+
},
58+
{
59+
"key": "CarrierFeature_SystemUI_ConfigOpBrandingForIndicatorIcon",
60+
"value": "CHC",
61+
"command": "MODIFY",
62+
"desc": "图标风格",
63+
"enabled": false
64+
},
65+
{
66+
"key": "CarrierFeature_VoiceCall_ConfigOpStyleForHdIcon",
67+
"value": "CHC_OPEN_HD,5G_SUPPORT",
68+
"command": "MODIFY",
69+
"desc": "图标风格",
70+
"enabled": false
71+
}
72+
]

0 commit comments

Comments
 (0)