1+ ############
2+ Instructions
3+ ############
14..
25 SPDX-FileCopyrightText: (c) 2016 ale5000
36 SPDX-License-Identifier: GPL-3.0-or-later
47 SPDX-FileType: DOCUMENTATION
58
6- ============
7- Instructions
8- ============
9+ You can `build it yourself <./BUILD.rst >`_ or download the prebuilt version.
910
10- You can build it yourself or download the prebuilt version.
11+ .. contents :: Contents:
12+ :local:
13+ :depth: 2
14+ :backlinks: none
1115
1216
13- Build
14- -----
17+ Prerequisites
18+ =============
1519
16- ``./gradlew buildOta ``
20+ - An Android device or emulator running **Android 4.4 or later **.
21+ - A custom recovery (see `Supported recoveries `_ below) or root access.
22+
23+ Supported recoveries
24+ --------------------
25+
26+ The following custom recoveries are supported:
27+
28+ - `TWRP <https://twrp.me/ >`_ (Team Win Recovery Project)
29+ - `OrangeFox Recovery <https://orangefox.download/ >`_
30+ - `PitchBlack Recovery Project (PBRP) <https://pitchblackrecovery.com/ >`_
31+ - `SKYHAWK Recovery Project (SHRP) <https://skyhawkrecovery.github.io/ >`_
32+ - `LineageOS Recovery <https://github.com/LineageOS/android_bootable_recovery >`_
33+ - `ClockworkMod Recovery (CWM) <https://en.wikipedia.org/wiki/ClockworkMod >`_
34+ - `PhilZ Touch Recovery <https://xdaforums.com/t/2015-10-09-cwm-6-0-5-1-philz-touch-6-59-0-libtouch_gui-1-42.2201860/ >`_
35+ - `Omni Recovery <https://github.com/omnirom/android_bootable_recovery >`_
1736
1837
1938Download
20- --------
39+ ========
2140
2241You can find the stable releases here:
2342
@@ -26,3 +45,68 @@ You can find the stable releases here:
2645Instead if you want to try the nightly builds you can find them here:
2746
2847- `Nightly - Full flavour <https://gitlab.com/micro5k/google-sync-addon/-/jobs/artifacts/main/browse/output?job=build-job >`_
48+
49+
50+ Installation
51+ ============
52+
53+ The methods below are **mutually exclusive **, choose **one ** that matches your setup and follow only those steps.
54+
55+ .. tip ::
56+ Regardless of which installation method you choose, you can pre-configure options before flashing by setting system properties on the device.
57+ For example, to enable a longer live setup timeout:
58+
59+ .. code-block :: sh
60+
61+ adb shell " setprop zip.google-sync-addon.LIVE_SETUP_TIMEOUT 8"
62+
63+ Via custom recovery
64+ -------------------
65+
66+ 1. Transfer the flashable zip to your device's internal storage or microSD card.
67+ 2. Reboot into recovery (hold **Power + Volume Down ** — exact key combination depends on your device).
68+ 3. In TWRP, tap **Install **, navigate to the zip file and select it.
69+ 4. Swipe to confirm the flash.
70+ 5. Follow the on-screen prompts for the live setup (e.g., choose which optional apps to install).
71+ 6. Once the flashing is complete, tap **Reboot ** → **System **.
72+
73+ Via ADB sideload
74+ ----------------
75+
76+ 1. Reboot into recovery.
77+ 2. In TWRP, tap **Advanced ** → **ADB Sideload **, then swipe to start.
78+ 3. On your PC, run:
79+
80+ .. code-block :: sh
81+
82+ adb sideload google-sync-addon-* .zip
83+
84+ 4. Follow the on-screen prompts for the live setup (e.g., choose which optional apps to install).
85+ 5. Once the flashing is complete, reboot the device.
86+
87+ Via ``zip-install.sh `` (ADB or terminal, root required, no recovery needed)
88+ ---------------------------------------------------------------------------
89+
90+ This method installs the zip from a running Android system using ``zip-install.sh ``.
91+
92+ 1. Connect your device via USB with USB debugging enabled *(ADB only — skip if using a terminal app on the device) *.
93+ 2. Open a shell: run ``adb shell `` on the PC or open a **terminal app ** directly on the device.
94+ 3. Transfer the flashable zip to your device's internal storage or microSD card.
95+ 4. Run:
96+
97+ .. code-block :: sh
98+
99+ cd < path/to/my_folder/>
100+ unzip ./google-sync-addon-* .zip zip-install.sh
101+ sh ./zip-install.sh ./google-sync-addon-* .zip
102+
103+ The script will flash the zip directly on the running system, without using the recovery.
104+
105+ 5. Follow the on-screen prompts for the live setup (e.g., choose which optional apps to install).
106+ 6. Once the flashing is complete, reboot the device.
107+
108+
109+ Uninstallation
110+ ==============
111+
112+ To uninstall re-flash the zip, enable live setup and select **Uninstall **.
0 commit comments