【问题标题】:Avoid uninstalling unsigned android application before installing the signed version避免在安装签名版本之前卸载未签名的 android 应用程序
【发布时间】:2011-10-19 12:23:50
【问题描述】:

我正在测试一个测试应用程序的签名版本。但是当我尝试覆盖以前的安装时,安装程​​序会报告“未安装应用程序”。

我在应用程序 SharedPreferences 中有有趣的信息,我想知道是否有任何方法可以避免卸载我以前的未签名版本而丢失我的 SharedPreferences。

提前谢谢你!

【问题讨论】:

    标签: android installation signed


    【解决方案1】:

    从终端试试这个:

    adb shell pm uninstall -k your.package.name.here
    

    这应该会卸载您的应用,但会留下其数据。然后,当您安装签名版本时,您的首选项将保持不变。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-13
      • 1970-01-01
      • 2016-05-10
      • 2017-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多