andronix.docs
Modded OS

Upgrading from an Older Modded OS

Upgrade an old Modded OS from the Andronix 8.x app to Modded 2.0: check which one you have, back up your files, uninstall the old version, install the new one and bring your files back.

You installed a Modded OS with an older Andronix app (8.x or earlier) and want the new version? This page takes you through it in five steps: check what you have, back up your files, uninstall the old version, install the new one, and bring your files back.

The old and the new Modded OS live in different folders, so installing the new one doesn't remove or update the old one. Your old one keeps working until you uninstall it.

1. Check which one you have

Open Termux and run:

ls ~
You seeYou have
andronix-fs and start-andronix.shAn old Modded Ubuntu (XFCE)
androkde-fs and start-androkde.shAn old Modded Ubuntu KDE
androdeb-fs and start-androdeb.shAn old Modded Debian
androjaro-fs and start-androjaro.shAn old Modded Manjaro
.andronix (run ls -a ~) and a script like start-ubuntu.shA distro or Modded OS from Andronix 2.0. andronix list shows which.

Old Modded OS log you in as root; Andronix 2.0 logs you in as your own user. Free distros from the old app (folders like ~/ubuntu-fs) are covered in Installs from before Andronix 2.0.

2. Back up your files

Uninstalling deletes everything inside the old Modded OS, so copy your files to your phone's storage first. In Termux:

termux-setup-storage

Allow the storage permission when Android asks. Then set OLD to the folder name from step 1 (andronix, androkde, androdeb or androjaro) and pack the home folders into one file in your phone's Download folder:

OLD=androkde
cd ~/$OLD-fs && tar -czf /sdcard/Download/$OLD-home.tar.gz root $(ls -d home 2>/dev/null)

This saves /root (where the old Modded OS kept your files) and /home, if there is one. Check the file is there: ls -lh /sdcard/Download/$OLD-home.tar.gz. Programs you installed aren't saved; you install them again in the new version.

3. Uninstall the old version

Pick one way:

With the andronix command (installer 2.0.1 or newer). It deletes the old folder, its -binds folder and its start script, and nothing else:

Old Modded OSCommand
Modded Ubuntu (XFCE)andronix remove legacy-ubuntu-xfce --legacy
Modded Ubuntu KDEandronix remove legacy-ubuntu-kde --legacy
Modded Debianandronix remove legacy-debian --legacy
Modded Manjaroandronix remove legacy-manjaro --legacy

It shows what it will delete, with the sizes, and asks first.

If Termux says andronix: command not found, get the command first (this installs only andronix, no distro), then run the line from the table:

(curl -fsSL --retry 4 --retry-delay 3 https://dl.andronix.app/get.sh -o $PREFIX/tmp/get.sh || curl -4 -fsSL --retry 2 --retry-delay 3 https://dl.andronix.app/get.sh -o $PREFIX/tmp/get.sh) && sh $PREFIX/tmp/get.sh
Already installed the same Classic edition with Andronix 2.0? Then andronix remove legacy-… --legacy removes that new copy too. Use the manual way below instead, which only touches the old folders.

In the app (10.0 or newer): on the Modded OS tab, touch and hold your edition under Archived — yours to keep. The app copies the same command; paste it into Termux.

By hand, with the folder name from step 1 (OLD=androkde as above):

chmod -R u+w ~/$OLD-fs; rm -rf ~/$OLD-fs ~/$OLD-binds ~/start-$OLD.sh
There was never a separate uninstall script for Modded OS; the old app copied a command like these. The uninstall scripts for old free distros (UNI-ubuntu.sh and others) are still online: see Installs from before Andronix 2.0.

Removing a Modded OS from Andronix 2.0

For a Modded OS you installed with Andronix 2.0, use its edition id, for example andronix remove ubuntu-kde. See Remove a Modded OS. To keep its files, back it up first with andronix backup ubuntu-kde --to storage (Back up and restore).

4. Install the new version

In the Andronix app, open the Modded OS tab and pick:

  • Your old edition, rebuilt: if you bought a Modded OS before, it's under Archived — yours to keep, free. These Classic editions keep their original look, on current systems.
  • Or a Modded 2.0 edition: the new lineup. See Prices.

Then follow Installing Modded OS. It takes a few taps in the app and one command in Termux, and you create your own user at the end.

5. Bring your files back

Start the new Modded OS (for example ./start-ubuntu.sh, or open its desktop), then unpack the backup into a folder in your home:

mkdir -p ~/old-modded && tar -xzf /sdcard/Download/androkde-home.tar.gz -C ~/old-modded

Use your backup's file name. Your old files are now in ~/old-modded/root (and ~/old-modded/home). Move what you want to keep, for example mv ~/old-modded/root/Projects ~/. When you're done, delete ~/old-modded and the backup file.

The new version shares your phone's storage at /sdcard once Termux has the storage permission (step 2). See Phone storage.

On this page