参考:
http://www.jianshu.com/p/f45cfd9fccaa
Demo
修改后的apk
这是我很久以前忘了用什么工具对youdaodict逆向之后,注释掉两行smali之后重打包的apk。近几个月这个应用一启动不久就崩溃了,我还以为是签名时间到了,结果发现并没有到,应该是其他的什么原因。等待动态调试之。
[~/GitProjects/android_re/repos/youdaodict]$ apktool d youdaodict.apk [1:07:58]
I: Using Apktool 2.2.3 on youdaodict.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/caiqiqi/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[~/GitProjects/android_re/repos/youdaodict]$ ls [1:08:21]
youdaodict youdaodict.apk
[~/GitProjects/android_re/repos/youdaodict]$ cd youdaodict [1:08:32]
[~/GitProjects/android_re/repos/youdaodict/youdaodict]$ ls [1:08:38]
AndroidManifest.xml assets original smali
apktool.yml lib res unknown
[~/GitProjects/android_re/repos/youdaodict]$ keytool -printcert -file CERT.RSA
所有者: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
发布者: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
序列号: 936eacbe07f201df
有效期开始日期: Fri Feb 29 09:33:46 CST 2008, 截止日期: Tue Jul 17 09:33:46 CST 2035
证书指纹:
MD5: E8:9B:15:8E:4B:CF:98:8E:BD:09:EB:83:F5:37:8E:87
SHA1: 61:ED:37:7E:85:D3:86:A8:DF:EE:6B:86:4B:D8:5B:0B:FA:A5:AF:81
SHA256: A4:0D:A8:0A:59:D1:70:CA:A9:50:CF:15:C1:8C:45:4D:47:A3:9B:26:98:9D:8B:64:0E:CD:74:5B:A7:1B:F5:DC
签名算法名称: SHA1withRSA
版本: 3
扩展:
#1: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 48 59 00 56 3D 27 2C 46 AE 11 86 05 A4 74 19 AC HY.V=',F.....t..
0010: 09 CA 8C 11 ....
]
[EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US]
SerialNumber: [ 936eacbe 07f201df]
]
#2: ObjectId: 2.5.29.19 Criticality=false
BasicConstraints:[
CA:true
PathLen:2147483647
]
#3: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 48 59 00 56 3D 27 2C 46 AE 11 86 05 A4 74 19 AC HY.V=',F.....t..
0010: 09 CA 8C 11 ....
]
]