Discuz! Board

 找回密碼
 立即註冊

QQ登入

只需一步,快速開始

搜尋
熱搜: 活動 交友 discuz
檢視: 102|回覆: 0

Accessing the default blocklist image Block

[複製連結]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2023-3-30 17:20:24 | 顯示全部樓層 |閱讀模式
According to Google “Many of those apps either do not work as desired or provide a less-than ideal experience because there are no proper APIs for blocking calls and messages.” With the introduction of a BlockedNumberProvider in Android Nougat users can add numbers to a list of phone numbers that they don’t want to receive telephony communications from calls SMS MMS . Perhaps there are finally proper APIs for blocking calls and messages! Let’s explore this further:phone numbers data flow The diagram above shows the flow of how applications can access the default blocklist. Any application can launch an intent to the Telecom UI to access the default blocklist.

This Telecom UI is the same UI as shown in the scre switzerland phone number list enshot above. Only the default messaging app default dialer app or any carrier apps can access the default blocklist. Huh? So only a few applications can read and write directly to the BlockedNumberProvider? Doesn’t sound like an open API to me. Let’s see if there are any permissions to circumvent this data flow: Blocklist Permissions In Android access to system APIs and user sensitive data usually requires permissions. Permissions are divided into several protection levels: Normal: These permissions are granted automatically accessing internet for example Dangerous: These permissions require explicit user approval accessing the camera or microphone Signature.



These permissions are automatically granted but only if the app that is using this permission is signed with the same certificate as the app that defines the permission. These permissions are typically not granted for apps that can be downloaded from Google Play. After looking over the permissions overview on the Android developer site there doesn’t seem to be a permission that allows an application to read/write to BlockedNumberProvider. However according to the Block phone numbers data flow there must be a way for certain applications to read/write directly to this provider.


回覆

使用道具 舉報

您需要登入後才可以回帖 登入 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|DiscuzX

GMT+8, 2024-11-25 08:43 , Processed in 0.078339 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回復 返回頂部 返回列表