Skip to content

Guide on how to migrate data from an legacy version of IITC Mobile

Alexander Danilov edited this page Feb 17, 2024 · 10 revisions

If you have previously used IITC Mobile from iitc.me or IITC Mobile v0.32 (the latest, available on Google Play) you may want to keep your data (e.g. Draw Tools schemas) when upgrading to the new version of IITC Mobile. Then this article is for you.

The problem is that since outdated versions fail to authorize, you can't activate the plugin to back up your data. Therefore, you need to enter the backup command in the console. Here's how to do it:

  1. Open the legacy IITC Mobile app and go to Settings -> Advanced Settings -> Configure IITCm menu

    Screenshoot
  2. Check the Debug checkbox, press Ok and return to the main IITC window

    Screenshoot
  3. Press the three dots again (menu) and select Debug

    Screenshoot
  4. In the debug console, paste this code:

let data = {}; 
Object.keys(localStorage).sort().forEach(function(key) { 
    data[key] = localStorage.getItem(key); 
}); 
if (!window.app) window.app = android;
app.saveFile("backupfile.txt","application/json",JSON.stringify(data));

You will then be presented with a save file window. Choose where to save the backup and memorize that folder.

Screenshoot
  1. Uninstall the outdated version of IITC Mobile and install the current IITC Mobile from the website or F-Droid

  2. Open the new IITC Mobile, authorize through Google and open the plugins

    Screenshoot
  3. Click on the three dots (menu) and click Add plugins by URL

    Screenshoot
  4. Paste the URL of the backup plugin from DanielOnDiordna https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/DanielOnDiordna/backup-restore-alldata.user.js and activate the plugin

    Screenshoot
  5. Go back to the main window of IITC Mobile, click on the status bar, select the Backup/Restore all data button and Restore

    Screenshoot
  6. In the window that appears, in the file selection field, select your backup file that you created in step 4 and click Restore all

    Screenshoot

For IITC users


For plugin developers


For IITC developers

Clone this wiki locally