# IceCatMobile Migration Project board: https://github.com/orgs/mozilla-mobile/projects/40 ## 📱 Testing ⚠️ **Warning**: Replacing a _IceCatMobile_ (IceCat for Android) installation with _Fenix_ (IceCat Preview) can (and at the time of writing this definitely **will**) result in **DATA LOSS**. Do not replace an installation of IceCatMobile (IceCat for Android) that contains data you do not want to risk losing (e.g. open tabs, history, bookmarks, top sites, ..). ## Release The following links point to the latest *Fenix* (IceCat Preview) builds (Nightly; from `main`) that are setup to **replace** a *IceCatMobile* (IceCat for Android) release version (`org.gnu.icecat`). * [ARM64/Aarch64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-production.latest/artifacts/public/build/arm64-v8a/geckoBeta/target.apk) * [ARM devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-production.latest/artifacts/public/build/armeabi-v7a/geckoBeta/target.apk) * [x86_64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-production.latest/artifacts/public/build/x86_64/geckoBeta/target.apk) * [x86 devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-production.latest/artifacts/public/build/x86/geckoBeta/target.apk) ## Beta The following links point to the latest *Fenix* (IceCat Preview) builds (Nightly; from `main`) that are setup to **replace** a *IceCatMobile Beta* (IceCat for Android - Beta) release version (`org.gnu.icecat.beta`). * [ARM64/Aarch64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-beta.latest/artifacts/public/build/arm64-v8a/geckoBeta/target.apk) * [ARM devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-beta.latest/artifacts/public/build/armeabi-v7a/geckoBeta/target.apk) * [x86_64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-beta.latest/artifacts/public/build/x86_64/geckoBeta/target.apk) * [x86 devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/project.mobile.fenix.v2.icecatmobile-beta.latest/artifacts/public/build/x86/geckoBeta/target.apk) ## Nightly The following links point to the latest *Fenix* (IceCat Preview) builds (Nightly; from `main`) that are setup to **replace** a *IceCatMobile Nightly* (IceCat for Android - Nightly) release version (`org.mozilla.icecatmobile_aurora`). * [ARM64/Aarch64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.arm64-v8a/artifacts/public/build/arm64-v8a/target.apk) * [ARM devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.armeabi-v7a/artifacts/public/build/armeabi-v7a/target.apk) * [x86_64 devices (64 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.x86_64/artifacts/public/build/x86_64/target.apk) * [x86 devices (32 bit; Android 5+)](https://icecat-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.x86/artifacts/public/build/x86/target.apk) ## 📝 Changelog The data migration work is tracked on the following project board: https://github.com/orgs/mozilla-mobile/projects/40 * **2019-09-05** - The first [migration builds](https://tools.taskcluster.net/index/project.mobile.fenix.v2.icecatmobile-production/latest) are available now. A IceCat for Android (release) installation can be replaced with them. No actual migration code is in those builds yet. The replaced build is a "clean" Fenix installation. * **2019-10-22** - First iteration of migration code to migrate history, bookmarks and open tabs landed in builds. * **2019-11-02** - IceCat Account users remain logged in after migrating to Fenix. ## 💻 Development When working on migration code it is helpful to have a local IceCatMobile build and a local Fenix build that can replace the IceCatMobile build. The following manual setup is needed to achieve that. In the example commands below, we assume you are replacing a **IceCatMobile Nightly** build with a **Fenix Nightly** build. ## IceCatMobile Download the latest version of IceCatMobile: - [ARM64/Aarch64 devices (64 bit; Android 5+)](https://archive.mozilla.org/pub/mobile/nightly/latest-mozilla-esr68-android-aarch64/) - [ARM devices (32 bit; Android 5+)](https://archive.mozilla.org/pub/mobile/nightly/latest-mozilla-esr68-android-api-16/) - [x86_64 devices (64 bit; Android 5+)](https://archive.mozilla.org/pub/mobile/nightly/latest-mozilla-esr68-android-x86_64/) - [x86 devices (32 bit; Android 5+)](https://archive.mozilla.org/pub/mobile/nightly/latest-mozilla-esr68-android-x86/) Strip out the original signature: ``` zip --delete icecatmobile.apk "META-INF/*" ``` Re-sign the APK with your own debug key (that will also be used later for Fenix): ``` jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -keypass android icecatmobile.apk androiddebugkey ``` You can now install this APk that is ready to be used for migration: ``` adb install icecatmobile.apk ``` ## Fenix In the `app/build.gradle`, add the following line in the correct scope to sign your app with the same debug key used on the IceCatMobile APK: ```groovy android { buildTypes { icecatmobileNightly { signingConfig signingConfigs.debug } } } ``` Follow the build instructions in the [README](https://github.com/mozilla-mobile/fenix/blob/main/README.md) to get a Fenix build setup. Now select the `geckoNightlyIceCatMobileNightly` build variant in Android Studio and deploy it. This build should have replaced your IceCatMobile build now. ## Sample browser When working on migration code that lives in the [Android Components repository](https://github.com/mozilla-mobile/android-components) it can be helpful to replace a local IceCatMobile build with the sample browser (instead of Fenix). The following setup is needed for that. Add the sharedUserId to the AndroidManifest.xml of sample browser: ```XML