文件验证
签名
获取签名的标准途径
相关类汇总:
android.content.Context 类:
Interface to global information about an application environment. This is an abstract class whose implementation is provided
by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as
launching activities, broadcasting and receiving intents, etc.
android.content.pm 类(单独类,没有继承任何父类):
Con ns classes for accessing information about an application package, including information about its activities, permissions,
services, signatures, and providers.Most of the information about an application package is defined by its manifest file.
android.content.pm.PackageManager 类:
Class for retrieving various kinds of information related to the application packages that are currently installed on the device.
You can find this class through android.content.Context.getPackageManager().
android.content.pm.PackageInfo 类:
verall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest .xml.
获取签名涉及的类和函数:
android.content.Context.getPackageManager().getPackageInfo(String packageName, int flags) 的功能为: Retrieve overall information about an
application package that is installed on the system.
android.content.Context.getPackageManager().getPackageInfo(String packageName, int flags).signatures :Array of all signatures read from the
package file
浅谈 android 完整性检测
日 24 八月 2014 Write By #123
常见 android 完整性检测
[1] 检测签名
[2] 校验 classes.dex
[3] 检验整个 apk (这种比较少见)
验证哪方面的检测
先直接对 apk 进行签名,然后安装运行,如果运行出错那么可以推测有签名检测;如果签名没问题,那反编译再回编译安装运
行出问题,那么说明有校验 classes.dex 校验。
找到校验的地方
[1] 针对签名 : 可以搜索 getPackageInfo 、PackageManager、 Signature、signatures、签名 RSA 文件。
[2] 针对 classes.dex, 搜索 classes.dex,解压缩 ZipEntry,资源文件读取也可以注意下.(还有一些,暂时不记得了)。
[3] 算法 md5,hash。
[4] 函数、错误提示等。
搜索
您可能关注的文档
- 初一自招基础12整式的除法1学生.pdf
- 吉诺股份8327472017年中报点评新三板道路救援龙头收入利润增长超50clean.pdf
- 二次手册精讲-第一、二节0504-0505.pdf
- kubernetes培训20191109课件参考持续集成与发布.pdf
- 河南省2009年到2015年特岗真题.pdf
- 讲义jd综合05-总平面布局2020 1 12.pdf
- 惊蛰节气知识科普课件PPT.pptx
- 初中科学九年级全一册(浙教版)常见的碱核心知识清单.docx
- 黑龙江省牡丹江市2025-2026学年高一上学期期末考试语文试题及参考答案.docx
- 小学三年级道德与法治《心中的“110”:安全意识与自护能力》复习知识清单.docx
原创力文档

文档评论(0)