APK-Installer
APK-Installer copied to clipboard
大佬,当安装包因为签名不一致安装失败时,可以增加一个选项“卸载并重新安装”吗
Describe your feature request
当安装包因为签名不一致安装失败时,增加一个选项吗“卸载并重新安装”。
How important is this to you?
Important
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
额,实际上我无法知道是什么原因导致的安装失败。。。
可以的,当手机上安装了ABC应用时,假如我尝试使用adb安装签名不一致的ABC应用到手机时,命令会返回以下错误: adb: failed to install E:\Github\ScreenTTS\app\build\intermediates\apk\debug\app-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.xiaoming.screentts signatures do not match previously installed version; ignoring!]
只要判断返回的结果是否包含有 signatures do not match previously installed version(签名与以前安装的版本不匹配)这段字符串就表明此次安装失败是因为签名导致的了。