如题, 假如我之前安卓装了 1.0 版本的 APK,如果有更新的版本,比如 1.1 出来,我是否仅需要下载 1.1 APK 覆盖安装即可拥有 1.1 的新功能 ?
Activity
2APK 直接覆盖安装就行,不要先卸载:卸载会把 App 里的存档一起删掉,覆盖安装存档不动。
但多数版本还要用新版本的源码重做一次导入包:App 只认同一版本做出来的导入包,旧的会被拒(比如 2.3.0 不收 2.2.x 的导入包)。每个版本的发布说明里都会写这一版要不要重做。步骤:
- 下载新版 APK,覆盖安装;
- 用这一版的源码照
docs/ANDROID.zh-CN.md第一步重做导入包,把新的android文件夹拷到手机的Download/S2X/D2R Mobile/,替换旧的; - 打开 App,会自己导入。
从 2.3.0 起还可以在更新前先备份存档:在 Download/S2X/D2R Mobile/ 放一个名为 export 的空文件再打开 App,存档会拷到 save-export/<日期-时间>/。
Yes: install the new APK over the old one, and don't uninstall first. Uninstalling deletes the App's saves; an install over the top keeps them.
Most releases also need a new import pack made from that version's source: the App only accepts an import pack made from the same version and refuses an older one (2.3.0 refuses a 2.2.x pack, for example). Each release note says whether it's needed. The steps:
- Download the new APK and install it over the old one.
- Remake the import pack from that version's source (step 1 in
docs/ANDROID.md), and copy the newandroidfolder toDownload/S2X/D2R Mobile/on the phone, replacing the old one. - Open the App; it imports by itself.
From 2.3.0 on you can also back up your saves before updating: put an empty file named export in Download/S2X/D2R Mobile/ and open the App, and the saves are copied to save-export/<date-time>/.
可以,直接覆盖安装即可 —— 但安卓版除了 APK,还要一起换导入包。
APK:从发布页下载新版
D2RMobile-android.apk,直接安装覆盖旧的,不需要先卸载。只要两个包都来自本项目的发布页(签名一致),覆盖安装不会动存档,也不会动手机上的Download/S2X/D2R Mobile/data游戏资源。导入包(这一步不能省):安卓版 APK 不含任何游戏内容。每个新版本都要用同一版源码重跑一次
把生成的
android文件夹整个拷到手机上覆盖旧的。打开 App 时它会发现导入包更新,带进度条自动重新导入。如果 APK 和导入包版本不一致,App 会提示「导入包与这版 App 不配套」,照提示重做导入包即可,存档不受影响。data文件夹:不用动,游戏一直从那里读资源。存档在 App 内部目录里,覆盖升级全程保留。唯一要注意的例外:如果手机上现在装的是签名不同的包(移植作者早期签名的旧版,或你自己从源码编译的 APK),系统不允许覆盖安装,必须先卸载 —— 而卸载会连存档一起删掉。这种情况请先备份:在
Download/S2X/D2R Mobile/里放一个名为export的空文件,打开 App,存档会导出到save-export/<日期-时间>/;卸载重装后,把备份放进save-import文件夹再打开 App 导回即可。补充两点:目前发布页最新版是 v2.3.2(安卓 APK 自 v2.3.1 起未变),版本号不是 1.x 系列;完整步骤见
docs/ANDROID.zh-CN.md的「换新版本」与「存档与卸载」两节。Yes — install the new APK over the old one. On Android, though, the APK is not the whole update.
APK: download the new
D2RMobile-android.apkfrom the releases page and install it over the old build — no uninstall needed. As long as both come from this project's releases (same signing key), the upgrade leaves your saves and the game resources inDownload/S2X/D2R Mobile/datauntouched.Import pack (do not skip this): the Android APK contains no game content. For every release, regenerate the pack from the source of that same release:
then copy the resulting
androidfolder over the old one on the phone. On startup the app notices the new pack and re-imports it with a progress screen. If the APK and the pack are from different releases, the app reports "This import pack does not match this version of the app"; redo the pack as it says — your saves are unaffected.datafolder: leave it alone; the game reads its resources from there. Saves live in the app's internal storage and survive an in-place upgrade.The one exception: if the build currently on the phone was signed with a different key (an earlier build signed by the port's authors, or an APK you compiled from source), Android refuses to install over it and you must uninstall first — which deletes the saves. Back them up first: put an empty file named
exportinDownload/S2X/D2R Mobile/and open the app; the saves are copied tosave-export/<date-time>/. After reinstalling, put that backup in asave-importfolder and open the app to bring them back.Two notes: the latest release is v2.3.2 (the Android APK has been unchanged since v2.3.1) — the numbering is not 1.x; full steps are in
docs/ANDROID.zh-CN.md, sections "换新版本" and "存档与卸载" (English:docs/ANDROID.md, "Moving to a new release" and "Saves and uninstalling").