Reputation: 2027
I have one question about Android. I need to run one of my activities only once - at the beggining. So, usually the best solution is to create file which contains flag isFirstRun and check the value after application's start.
But in my application it is very important to protect this file before deleting by user. Even if user has rooted phone he should not be able to change the value or delete this file.
So, is it possible to write this information to any Android system registry or somewhere else where user can't change this value?
Upvotes: 0
Views: 270
Reputation: 4307
No, it is not possible, for a simple reason, a root user have access to everything by definition. It won't make sense to have a program that has more rights than root.
Upvotes: 2
Reputation: 137382
The user can delete all the data your application saves. Consider saving this information on some server.
Upvotes: 2