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,352
  • 21
  • 80
  • 110
John Lawrence Aspden
  • 16,583
  • 11
  • 63
  • 104

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
  • 208
  • 2
  • 14