Saturday, October 17, 2009

[android-developers] Changed file permissions in Donut 1.6 stops TRIAL software

My trial software used to limit use to 100 uses. The number of times
the user had used it was stored in

"/data/anr"

This worked great because this directory is not browseable, but it is
writeable by applications. You could only read/write/delete the file
if you knew the exact name of the file eg:

"/data/anr/banana.txt"

I could store the number of uses in this file and if the user
uninstalled the app and re-installed it the app would still remember
the number of times they used the app.

Problem is, in 1.6 they seem to have changed the permissions of this
file and I cannot write to

"/data/anr/banana.txt"

any more. Short of accessing the network and transmitting the usage
accross the internet to a license server, can anyone think of a way to
replicate this?

Is there another directory with the same miraculous properties?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment