I’ve got an android app, which is debuggable.
I can back up its important files to my PC like so:
adb exec-out run-as org.test.myapp cat files/afile > afile-from-phone
But how do I put them back?
I.e. what command with copy the file
from my pc to
in the storage area that belongs to org.test.myapp on the phone?
If your device allows you to run adb as root you can do:
adb push afile-from-phone data/app/org.test.myapp/
Change “data” for “system” if it’s a system app.