--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
You cannot do this. A factory reset does exactly that -- it returns the device to its initial fresh-from-the-factory state. No software on the device can distinguish between the first setup and subsequent post-reset setups.
Why do you need to do this? If your initial boot handler does not run after a factory reset, then the new phone execution sequence will not be the same as when the device is set up after being given or resold to a new owner.
--
christopher tate
android framework engineer
... but then something on the phone has to run on first post-wipe boot
in order to query whatever location that is to decide whether to run!
Yes, you can use an off-device data store to decide whether to do some
sort of heavy once-ever processing [though again, I don't know why you
would do that given that it interferes with the owners' ability to
donate / resell / gift the phone], but *on-device* you're still doing
the same thing: using a service that does at least *some* minimal
amount of work at boot after each time the device has been factory
reset.
Thanks guys!
We needed this info because we want to maintain a count of our devices
in the field (and avoid sending this info on a factory reset). This
req. could be considered in the future releases of Android wherein a
region of memory persists after factory resets. Maybe this region
could store the no. of factory resets, unlocked count, some OEM data,
etc and accessible only to an OEM.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.