https://blog.csdn.net/u013394527/article/details/80982369
https://blog.csdn.net/baidu_31956557/article/details/100125376


Android Studio,logcat, Verbose, 过滤intent:

QQ中用via打开htm:
I/TeleScreen|CheckForwardManager: jump src: biz_src_jc_file, pkg: mark.via, scheme: content://com.tencent.mobileqq.fileprovider/external_files/storage/emulated/0/Android/data/com.tencent.mobileqq/cache/share/zj.htm, action: android.intent.action.VIEW, refId: null

微信用via打开htm:
I/ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat=content://com.tencent.mm.external.fileprovider/external/Android/data/com.tencent.mm/MicroMsg/b7e2b82341dbb86b43fd19f9590f0577/attachment/zj.htm typ=text/html flg=0x11000001 pkg=mark.via cmp=mark.via/.Shell (has extras) u=0} from uid 10207

参数

action: android.intent.action.VIEW
scheme: content://com.tencent.mobileqq.fileprovider/external_files/storage/emulated/0/Android/data/com.tencent.mobileqq/cache/share/zj.htm
(data: content://com.tencent.mm.external.fileprovider/external/Android/data/com.tencent.mm/MicroMsg/b7e2b82341dbb86b43fd19f9590f0577/attachment/zj.htm)
package: mark.via
type: text/html

浏览器应用的 intent-filter

<intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="file"/>
    <data android:scheme="content"/>
    <data android:scheme="https"/>
    <data android:scheme="http"/>
    <data android:mimeType="*/*"/>
    <data android:host="*"/>
</intent-filter>


网页搜索列表仍然没有

网页里选中文字用via搜索:
from:com.hty.browser, to:mark.via, with act:android.intent.action.WEB_SEARCH, callingUserId:0, toUserId:0

I/ActivityTaskManager: START u0 {act=android.intent.action.WEB_SEARCH flg=0x13000000 cmp=mark.via/.Shell (has extras)} from uid 10209

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐