Skip to main content
add relevant tag
Source Link
Dan Hulme
  • 35k
  • 17
  • 91
  • 157

When I push a command adb uninstall com.pckg the /data/data/com.pckg is deleted, but I want to preserve the folder w/o using adb uninstall -k com.pckg as I need to install another app with same package name & different signature which conflicts with -k cmd.

I tried mv /data/data/com.package /data/data/com.package1 but com.package1 got deleted after adb uninstall command.

I don't want to copy the folder to a new location bczbecause it takes a lot of time.

When I push a command adb uninstall com.pckg the /data/data/com.pckg is deleted, but I want to preserve the folder w/o using adb uninstall -k com.pckg as I need to install another app with same package name & different signature which conflicts with -k cmd.

I tried mv /data/data/com.package /data/data/com.package1 but com.package1 got deleted after adb uninstall command.

I don't want to copy the folder to a new location bcz it takes a lot of time.

When I push a command adb uninstall com.pckg the /data/data/com.pckg is deleted, but I want to preserve the folder w/o using adb uninstall -k com.pckg as I need to install another app with same package name & different signature which conflicts with -k cmd.

I tried mv /data/data/com.package /data/data/com.package1 but com.package1 got deleted after adb uninstall command.

I don't want to copy the folder to a new location because it takes a lot of time.

Source Link

How to prevent deletion of /data/data/<pckg_name> while Uninstalling Apps (ROOTED DEVICE)

When I push a command adb uninstall com.pckg the /data/data/com.pckg is deleted, but I want to preserve the folder w/o using adb uninstall -k com.pckg as I need to install another app with same package name & different signature which conflicts with -k cmd.

I tried mv /data/data/com.package /data/data/com.package1 but com.package1 got deleted after adb uninstall command.

I don't want to copy the folder to a new location bcz it takes a lot of time.