Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
没有签名
签名指令
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore D:\Key\SignKey -storepass tianchaoxiong E:\crack\new_crack.apk centaur
简单说明
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore D:\Key\SignKey(签名文件) -storepass tianchaoxiong(签名密码) E:\crack\crack.apk(代签文件) centaur(别名)
apktool 重新打包的时候出错出现如下问题。
W: E:\crack\crack\AndroidManifest.xml:3: error: No resource identifier found for attribute 'roundIcon' in package 'android'
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\TIANCH~1\AppData\Local\Temp\brut_util_Jar_3416291978402405725.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 25, --version-code, 1, --version-name, 1.0, -F, C:\Users\TIANCH~1\AppData\Local\Temp\APKTOOL4933612420035001687.tmp, -0, arsc, -0, arsc, -I, C:\Users\Tianchaoxiong\AppData\Local\apktool\framework\1.apk, -S, E:\crack\crack\res, -M, E:\crack\crack\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:473)
at brut.androlib.Androlib.buildResources(Androlib.java:407)
at brut.androlib.Androlib.build(Androlib.java:306)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\TIANCH~1\AppData\Local\Temp\brut_util_Jar_3416291978402405725.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 25, --version-code, 1, --version-name, 1.0, -F, C:\Users\TIANCH~1\AppData\Local\Temp\APKTOOL4933612420035001687.tmp, -0, arsc, -0, arsc, -I, C:\Users\Tianchaoxiong\AppData\Local\apktool\framework\1.apk, -S, E:\crack\crack\res, -M, E:\crack\crack\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\TIANCH~1\AppData\Local\Temp\brut_util_Jar_3416291978402405725.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 25, --version-code, 1, --version-name, 1.0, -F, C:\Users\TIANCH~1\AppData\Local\Temp\APKTOOL4933612420035001687.tmp, -0, arsc, -0, arsc, -I, C:\Users\Tianchaoxiong\AppData\Local\apktool\framework\1.apk, -S, E:\crack\crack\res, -M, E:\crack\crack\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
其实 在Android sutdio 2.3之后AndroidManifest中添加了 两个新的属性
android:roundIcon=”@mipmap/ic_launcher_round”
android:supportsRtl=”true”
第一个是圆形图片 回打包报错也就是因为这个。(删除这个重新打包即可)
第二个是部分从右往左读的语言布局支持从右往左颠倒。
当然上面两个属性都是在API17之后