How to protect a resource in an Android application

Please tell me how to protect our resource in the apk package. With a simple renaming process, you can copy and extract application resources such as images or soundFX files. My question is, is there a way to protect a resource in an Android application?

+5
source share
3 answers

The selectable must be accessible to the operating system, so it must be readable.

If you really want to keep it safe, you can think of its encrypted form as a source resource, then load it, decrypt it in ByteStream and transfer it to BitmapFactory. This, of course, has slight differences in performance and will force you to manually process many things that you could easily do in XML otherwise.

With everything aside, there are many ways to steal data - if this can be done, people can just take a screenshot.

+2
source

My question is, is there a way to protect a resource that can be used in an Android application?

. . " soundFX" , , .

, , , , Android. " soundFX" iOS, Windows, OS X, Linux .. - .

+1

I think resources can be protected. This is actually a low-level class / routine for reading resources: AssetManager- A regular Resourcesclass sits on top of these AssetManager. Thus, to protect resources, you can scramble resources and read / decode them using AssetManager low-level methods: see here

0
source

All Articles