From 1e3e0500bc9307b36f21e1c39ed9cf3f75223bc5 Mon Sep 17 00:00:00 2001 From: MCDeltaT <68516357+MustardChef@users.noreply.github.com> Date: Sun, 14 May 2023 13:43:01 +0100 Subject: [PATCH 1/2] Create Backup And Restore Guide --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index cd841de..9102c4c 100644 --- a/README.md +++ b/README.md @@ -360,7 +360,14 @@   + +
+

  Backup and Restore Userdata

+
+ +  +

  FAQ

From fcb06890e77ae532997887a51e4a5685fd342719 Mon Sep 17 00:00:00 2001 From: MCDeltaT <68516357+MustardChef@users.noreply.github.com> Date: Thu, 18 May 2023 19:45:07 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9102c4c..6193e83 100644 --- a/README.md +++ b/README.md @@ -342,7 +342,7 @@ > **Note**: > -> If you want to preseve your data, make a backup of the `%LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx` file. After uninstalling, copy the VHDX file back to the `%LOCALAPPDATA%\Package\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache` folder. +> If you want to preseve your data, make a backup of the `%LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx` file. After uninstalling, copy the VHDX file back to the `%LOCALAPPDATA%\Package\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache` folder. For a more comprehensive and detailed guide, take a look at the **Backup and Restore section** in this README markdown - To remove WSA installed through WSABuild: @@ -360,10 +360,24 @@
  - +
-

  Backup and Restore Userdata

+

  Backup and Restore Userdata

+## Backing Up Your Userdata + +In order to make a backup of your WSA data you must copy the Userdata.vhdx (which includes, but is not limited Android Apps and their data, settings etc.), located at `%LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx`, to a safe location + +## Restoring Your Backup + +Before attempting to restore your backup, you must remove WSA if installed. Then before you run the "Run.bat" script (to reinstall WSA after removing it), you need to remove these two lines from Install.ps1: +```powershell +Start-Process "wsa://com.topjohnwu.magisk" +Start-Process "wsa://com.android.vending" +``` +After running the script, do not run WSA at all, and go to %localappdata%\Packages and (if the folders do not exist, create them) in MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\ paste the userdata.vhdx + +Now run WSA and your serdata should hopefully be restored