Given a generic application I would like to transfer it, full with its own data, to another device or to the emulator.
After restoring the application and its
/data/data/com.app directory it should be supposed to work as normal, provided that its business logic doesn't take into account that the device ID has changed or other facilities (like accounts) are missing.
/data/data/com.app brutally may result in data corruption when app is active.
How do I do that, with or without root?