ColorOS 快捷命令(一加ace3)

打开智能侧边栏

content call --uri content://com.coloros.sidebar --method OVOICE_OPEN_FLOATBAR_ACTION

快捷启用录音(colorsOS)

am start -a com.oplus.soundrecorder.open_quick_recording \
  -f 0x10000000 \
  -n com.coloros.soundrecorder/oplus.multimedia.soundrecorder.slidebar.TransparentActivity

colorsOS 识屏

//shell
am startservice \
  -n com.coloros.colordirectservice/.ColorTextAccessibilityService \
  --ez start_directui_with_collection true \
  --ei collection_wake_up_type 4
//JavaScript
var ok = false;
var err = "";

try {
    var it = new android.content.Intent();
    it.setComponent(new android.content.ComponentName(
        "com.coloros.colordirectservice",
        "com.coloros.colordirectservice.ColorTextAccessibilityService"
    ));

    it.putExtra("start_directui_with_collection", true);
    it.putExtra("collection_wake_up_type", 4);

    var cn = context.startService(it);
    ok = cn != null;
} catch (e) {
    err = String(e);
    ok = false;
}

ok;
© 版权声明
THE END
喜欢就支持一下吧
点赞1
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容