Android copy protection and file protection

In my application, I access my sqlite database in the following hard-coded location in my code:

/ data / data / com.mydomain.appname / databases / database.db

If I enable copy protection on Market Place, will my application have access to this location?

Or I will have to change it to something like:

/ data-private / data / com.mydomain.appname / databases / database.db

(or something like that)

Since I only have a Dev phone, I have no way to check whether my application works, as a rule, after enabling copy protection.

Thanks!

[edit: this question has been rephrased for clarity]

+4
source share
2 answers

In my experience, setting copy protection to enabled does not affect how you access files in your application in any way.

However, I recommend that you never change the copy protection in this application. I made this mistake about 9 months ago, and the users of my application were not very happy. I basically downloaded the application and turned on copy protection. I decided to disable copy protection because of all the messages about how weak / easy to get around this. So, on my next update of this game, I turned off copy protection. The problem is that the non-copy protected version of the application could not read the files created by the copy-protected version of the application. Therefore, people could not save or load saved games or high scores. The solution was to completely remove the game and reinstall, which is far from desirable.

Perhaps they have already fixed this, but I do not want to check and find out.

+6
source

I also added my copy-protected application, but I received messages from friends that they could not find the application on the Market, but as soon as I switched the copy protection, everyone could find their application. But there were no problems with access to data or anything with the option turned on.

+3
source

Source: https://habr.com/ru/post/1301885/


All Articles