0

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

afile-from-phone

from my pc to

files/afile

in the storage area that belongs to org.test.myapp on the phone?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110

1 Answers1

0

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.

sgtpotatoe
  • 340
  • 6
  • 17