当前位置:网站首页>Android Security and Protection Policy
Android Security and Protection Policy
2022-08-01 10:02:00 【snail, Z】
Background:
With the development of applications, application security has become more and more important, and some criminals have begun to decompile or hijack some app source code.Some people even take screenshots and then identify them to obtain other people's content.How should we protect our application when processing it?Next, we can analyze the use of some scenarios
1. Prevent screenshots:
In the system, the logo to prevent screenshots has been provided, we just need to add it
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
This can only prevent a page from being screened. If all pages are needed, they can be placed in the base class (parent class), and subclasses can be configured by parameters
A screen capture via the IDE will also report an error.
The screen recording is also a black screen.
2. Data encryption
2.1SharedPreferences
TheSharedPreferences class is used more in Android to store temporary data, but the data stored in this class is stored in a folder as an xml file.All, just after rooting the device, find the file
边栏推荐
- Naive Bayes--Study Notes--Basic Principles and Code Implementation
- Android 安全与防护策略
- How to implement deep copy in js?
- 笔记。。。。
- 《时代》杂志:元宇宙时代将改变世界
- [Software Architecture Mode] The difference between MVVM mode and MVC mode
- 广域铭岛入选2022年重庆市数字经济产业发展试点示范项目名单
- Opencv creates a window - cv.namedWindow()
- mysql login in cmd and basic operations of database and table
- Three chess (C language implementation)
猜你喜欢
随机推荐
对于小应用来讲,使用哪款数据库比较好?
SkiaSharp's WPF self-painted five-ring bouncing ball (case version)
STM32 personal notes - program run and fly
Explain / Desc 执行计划分析
cisco交换机基本配置命令(华为交换机保存命令是什么)
Cross-domain network resource file download
已解决(pip安装库报错)Consider using the-- user option or check the permissions.
Naive Bayes--Study Notes--Basic Principles and Code Implementation
ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
18张图,直观理解神经网络、流形和拓扑
SQL Server database schema and objects related knowledge notes
AI篮球裁判火了,走步算得特别准,就问哈登慌不慌
周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条
将本地项目推送到远程仓库
ClickHouse多种安装方式
退役划水
Batch大小不一定是2的n次幂!ML资深学者最新结论
Quantify daily work metrics
Android 安全与防护策略