java.lang.SecurityException when install apk

前端 未结 3 751
轻奢々
轻奢々 2021-01-02 08:28

as you know apk is a zip archive, I extracted it and replaced some resources, and zipped it again, when I install it, I get this exception

java.lang.SecurityExceptio

3条回答
  •  悲哀的现实
    2021-01-02 08:48

    Did you sign it after re-packing it? Changing anything in it broke the existing signature.

    If the package is already installed and you re-sign the new one with a different signing key, it will also refuse to install.

提交回复
热议问题