(stdscr)
| 2209 | |
| 2210 | # Overlay Prefix first, then HOME. Credentials/private material was excluded on source. |
| 2211 | if [ -d "$STAGE/payload/usr" ]; then |
| 2212 | cp -a "$STAGE/payload/usr/." "$PREFIX/" |
| 2213 | fi |
| 2214 | if [ -d "$STAGE/payload/home" ]; then |
| 2215 | cp -a "$STAGE/payload/home/." "$HOME/" |
| 2216 | fi |
| 2217 | |
| 2218 | rm -f "$PREFIX/var/lib/dpkg/lock" "$PREFIX/var/lib/dpkg/lock-frontend" "$PREFIX/var/lib/apt/lists/lock" 2>/dev/null || true |
| 2219 | hash -r 2>/dev/null || true |
| 2220 | command -v termux-reload-settings >/dev/null 2>&1 && termux-reload-settings >/dev/null 2>&1 || true |
| 2221 | rm -rf "$STAGE" |
| 2222 | echo "[+] Termux Transfer restore completed." |
| 2223 | echo "[+] Close Termux completely and open it again." |
| 2224 | echo "[+] Private credentials/tokens/SSH/GitHub authentication were intentionally NOT transferred." |
| 2225 | """ |
| 2226 | return script |
| 2227 | |
| 2228 | |
| 2229 | def _transfer_completion_text(archives): |
| 2230 | """Return post-creation transfer instructions in the user's selected language.""" |
| 2231 | archive_list = ", ".join(archives) |
| 2232 | is_greek = get_current_display_language() == "greek" |
| 2233 | if is_greek: |
| 2234 | return f""" |
| 2235 | ============================================================ |
| 2236 | ΤΟ ΣΥΣΤΗΜΑ ΜΕΤΑΦΟΡΑΣ ΕΙΝΑΙ ΕΤΟΙΜΟ |
| 2237 | ============================================================ |
| 2238 | Όλα τα αρχεία της μεταφοράς δημιουργήθηκαν με επιτυχία. |
| 2239 | |
| 2240 | Φάκελος: |
| 2241 | {TERMUX_TRANSFER_DIR} |
| 2242 | |
| 2243 | Αρχεία ZIP αυτής της μεταφοράς: |
| 2244 | {archive_list} |
| 2245 |
nothing calls this directly
no test coverage detected