Android implements the function example of shielding wechat black pulling and deleting contacts

Android implements the functions of blocking wechat hacking and deleting contacts, with little nonsense, as follows:

Effect achieved:

Let wechat never pop up the deleted dialog box, isn't it equivalent to shielding the function? Ha ha, the effect is shown in the figure:

Implementation principle:

1. We know that this page will pop up every time wechat deletes a contact

2. If you know about accessibilityservice or have read my previous two blogs, you will know that each time this box pops up, it will trigger accessibilityevent.type_ WINDOW_ STATE_ The changed event, so we just need to judge whether the current page is in the delete contact dialog box every time the event is triggered. If so, we simulate clicking the Cancel button. The ideas are actually very simple. You can directly look at the code:

usage method:

Settings - auxiliary functions - accessibility - click wechatdeletefail to open it (or find auxiliary functions in settings, etc.)

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>