Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

has no signatures that match those in shared user android.uid.system #5

Open
handsometong opened this issue Jun 28, 2018 · 3 comments

Comments

@handsometong
Copy link

android studio打包成功的jks一直报has no signatures that match those in shared user android.uid.system; ignoring!但是java -jar signapk.jar platform.x509.pem platform.pk8 old.apk new.apk打包的apk可以正常运行。用的platform.x509.pem platform.pk8都是一样的

@qxtx244
Copy link

qxtx244 commented Dec 28, 2018

android studio打包成功的jks一直报has no signatures that match those in shared user android.uid.system; ignoring!但是java -jar signapk.jar platform.x509.pem platform.pk8 old.apk new.apk打包的apk可以正常运行。用的platform.x509.pem platform.pk8都是一样的

我也遇到了这个问题。通过keytool -list -keystore *.jks命令查看到通过keytool-importkeypair签名的jks文件里确实已经包含了系统签名,只不过里面既包含系统签名,又包含jks文件原来存在的签名,不知道是不是这个原因?

@qxtx244
Copy link

qxtx244 commented Dec 28, 2018

android studio打包成功的jks一直报has no signatures that match those in shared user android.uid.system; ignoring!但是java -jar signapk.jar platform.x509.pem platform.pk8 old.apk new.apk打包的apk可以正常运行。用的platform.x509.pem platform.pk8都是一样的

我想我找到原因了,导致问题的可能原因是运行sh脚本默认选择了‘N‘导致jks中包含多个相同alias的签名信息。不要将keytool-importkeypair命令放在sh脚本文件里,应该直接在终端上输入,然后会出现一个确认,输入‘Y’确认覆盖,得到的jks文件可以使android studio成功对apk进行系统签名并直接run。我在android studio上成功了。

@qxtx244
Copy link

qxtx244 commented Dec 28, 2018

android studio打包成功的jks一直报has no signatures that match those in shared user android.uid.system; ignoring!但是java -jar signapk.jar platform.x509.pem platform.pk8 old.apk new.apk打包的apk可以正常运行。用的platform.x509.pem platform.pk8都是一样的

并且定制系统的系统签名与android源码中的签名可能不一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants