Hi.
How can I 'protect' my assets from the user copying it. I have images and .csv and .PDF files which I have created specially for the app. And I would like the user to access them only through my app. Not copy these files and use them else where.
All the assets are easy to access in the assets folder of the app in the phone memory.
You could encode your assets to strings, then use cryptography to encrypt your asset strings, then store each as "text" files. Then supply your app user with a key to decrypt then decode the files for use in your app. Delete the recreated physical files when the app is closed or goes into the background.
@Sanatan_Chakravarty With Companion, the files from the assets for debugging are stored in a (temporary) directory in the external storage, which of course are easily accessible for the developer (but only for him).