13

The title says it all. Say I have an application, a game for instance. Which I wish to uninstall from my phone, and reinstall sometime in the future. However, I don't want my game save to be lost.

Is it possible to uninstall an app but to keep its data?

Thanks in advance.

Madara's Ghost
  • 436
  • 1
  • 9
  • 19

3 Answers3

12

My technique

If you don't want to root your device, you can use adb and pm instead. These steps will be hard to follow unless you already are familiar with the use of command-line tools.

  1. Install adb on your computer, and set things up so that it can communicate with your device. Don't forget to enable USB debugging on your device. It's a big hassle to get adb working for the first time; the consolation prize is that you only have to do it once.

  2. Use a USB cable to connect your computer with your device.

  3. Use adb shell to connect to your device.

  4. Use pm list packages to see a list of installed package IDs.

  5. Use pm uninstall -k plus your package ID, to remove the package but keep your user data.

See also this related post.

jasonspiro
  • 219
  • 2
  • 8
  • CAUTION: pm uninstall -k leads to being unable to reinstall the app via play store or f-droid. Play store complains that "another user has already installed this app" – oarfish Feb 24 '22 at 22:39
  • 1
    @oarfish: I tried it on my own device (running Android 8 "Oreo") within the past few weeks, and Google Play Store reinstalled the app without any problem. – jasonspiro Nov 21 '22 at 07:31
6

Try this program SD Maid.

Open program, go to AppControl tab and click the app you want. There is an option called, "Remove app but keep its data".

Edit:

I'm not sure but it might require root.

roxan
  • 5,457
  • 5
  • 31
  • 42
-2

Eventually, simply uninstalling and reinstalling normally worked! Turns out data is saved this way or another.

Madara's Ghost
  • 436
  • 1
  • 9
  • 19
  • 5
    I'm pretty sure this isn't true for most apps. When you uninstall an app, everything in /data/data/<packagename> is thrown away. Maybe your app saved to a different location or has cloud saves. – a cat Aug 30 '13 at 15:32
  • @lunboks: Perhaps, but since it worked for me, I accepted it. It's clear that the better answer would be to use some sort of backup app, just in case, and it reflects by the answer with most votes :) – Madara's Ghost Aug 30 '13 at 15:54