Skip to content

命令行 CLI ​

装完模块后:

bash
/data/adb/qsc/bin/qsc help
/data/adb/qsc/bin/qsc status

入口在 /data/adb/qsc/bin/,不挂载 system/bin(避免暴露 Magisk)。需 Root(adb shell / su)。

底层仍是模块内 bin/qsc.sh;qsc 是原生薄包装(无 NDK 时安装 shell 回退)。

常用命令 ​

命令 / 缩写作用
help / -h列出全部命令
status / st [--raw]当前状态摘要 / 原始字段
on / off / toggle软开关(data/module_off)
config / cfg / conf list|get|set配置(list 可写 ls)
log [行数]运行日志尾部
events [行数]充电事件尾部
stats / power-stats省电证据(驻停总结 + service_power_stats)
diagnostic on|off|status开关 data/diagnostic_on
debug on|off|status开关 data/debug_on(详细排障日志)
diagnose / diag生成诊断报告
test-switch / test测停充开关(须插电)
detect重新探测设备档案
daemon …管理 qscd
version / ver / -v版本信息

输错命令时会提示「你是不是想用: …」,并指向 help。

示例 ​

bash
/data/adb/qsc/bin/qsc st
/data/adb/qsc/bin/qsc cfg set power_stop 80
/data/adb/qsc/bin/qsc cfg set power_start 70
/data/adb/qsc/bin/qsc diagnostic on
/data/adb/qsc/bin/qsc stats
/data/adb/qsc/bin/qsc off
/data/adb/qsc/bin/qsc events
/data/adb/qsc/bin/qsc diag
# 插电后:
/data/adb/qsc/bin/qsc test

相关脚本 ​

脚本说明
/data/adb/qsc/bin/qsc外部 CLI 入口
bin/qsc.sh实际命令实现
bin/diagnose.sh诊断报告
bin/test_switch.sh完整测开关
bin/detect_device.sh机型探测
bin/qscd_fetch.sh守护下载与切换
打开充电控制.sh / 关闭充电控制.sh软开关快捷方式

多行配置(如 power_stop_schedule)更适合用 WebUI / 直接编辑 config.conf;CLI config set 覆盖常用单行键。

充电控制 · QSC_Battery · Magisk / KernelSU / APatch