How to copy files into the app-specific files directory of a release app?

681 Views Asked by At

I want to copy a file to the internal storage directory reserved for an application (not my application, I only have the apk) built in release mode. I thought of two solutions, but none of them actually work (note that rooting the phone is not an option):

  • Directly copying the data to the internal storage folder of that app (not possible because the app was built in release mode).

  • Installing another app in debug mode with the same ID as the original app, copying the file there then installing the original app. However, this does not work because the two apps have different signatures, and if I first uninstall the debug app android wipes its internal storage folder.

Is there any other way to do this? What I need is to somehow have that file end up in that app's internal storage.

0

There are 0 best solutions below