bush911
V2EX  ›  Android

有没有安卓的程序猿大佬给看下这个 Tasker 的任务为什么对一加 13 无效

  •  
  •   bush911 · 5h 17m ago via Android · 303 views
    • 安卓 15 ,已 root ,Tasker 的日志和行为记录里面能看到执行了删除短信的操作。
    • 但短信依旧存在。
    • 默认信息 app 用的 Google 的 message ,系统短信应用已经给冻结。

    同样的任务在 Pixel 6 上没问题。强迫症问 AI 半天也没搞定。

    任务见 2 楼

    bush911
        1
    bush911  
    OP
       5h 16m ago via Android
    Task: SMS Delete 存档
    Settings: Abort Existing Task

    A1: Variable Set [
    Name: %Sms
    To: %SMSRF ]

    <gets ID of latest sms received.>
    A2: SQL Query [
    Mode: URI Formatted
    File: content://sms
    Columns: _id
    Query: address = ?
    Selection Parameters: %Sms
    Order By: date DESC limit 1
    Variable Array: %sms_id
    Use Global Namespace: On ]

    <stop if get ID failed.>
    A3: Stop [ ]
    If [ %sms_id1 !Set ]

    <I assume this action take the SMS ID from URI and parse it for use in the future?>
    A4: Java Function [
    Return: uri
    Class Or Object: Uri
    Function: parse
    {Uri} (String)
    Param 1 (String): content://sms/%sms_id1 ]

    <I think this action gets the content from the parsed URI?>
    A5: Java Function [
    Return: cr
    Class Or Object: CONTEXT
    Function: getContentResolver
    {ContentResolver} () ]

    <And this action is most likely the action that delete the SMS in the parsed URI.>
    A6: Java Function [
    Class Or Object: cr
    Function: delete
    {int} (Uri, String, String[])
    Param 1 (Uri): uri ]
    v1
        2
    v1  
       4h 24m ago
    要把 Tasker 设为默认短信应用才能删
    v1
        3
    v1  
       4h 22m ago
    如果是 coloros 可能有额外的权限限制
    bush911
        4
    bush911  
    OP
       4h 15m ago
    @v1 谢谢。是 Coloros 。 默认短信应用设置不了 takser ,只能设置系统出厂的短信应用。看来是没戏了
    v1
        5
    v1  
       4h 12m ago
    @bush911 #4 刷机,刷国际版氧 OS 或者类原生 lineageos
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3245 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:18 · PVG 19:18 · LAX 04:18 · JFK 07:18
    ♥ Do have faith in what you're doing.