Skip to main content
1 of 2

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.