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

8 小时 42 分钟前
 bush911

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

任务见 2 楼

319 次点击
所在节点    Android
5 条回复
bush911
8 小时 41 分钟前
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
7 小时 49 分钟前
要把 Tasker 设为默认短信应用才能删
v1
7 小时 48 分钟前
如果是 coloros 可能有额外的权限限制
bush911
7 小时 40 分钟前
@v1 谢谢。是 Coloros 。 默认短信应用设置不了 takser ,只能设置系统出厂的短信应用。看来是没戏了
v1
7 小时 38 分钟前
@bush911 #4 刷机,刷国际版氧 OS 或者类原生 lineageos

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.xtra.eu.org/t/1219362

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX