seems most of the logic lies in ./frameworks/base/core/java and ./frameworks/base/services/java
a quick snip.. d...@deva-ubunt:/data/build/omap4_l277/frameworks/base$ grep -R -i "factory reset" * core/res/res/values/strings.xml: <string name="policydesc_wipeData">Perform a factory reset, deleting core/java/android/os/RecoverySystem.java: * sometimes called a "factory reset", which is something of a core/java/android/provider/Settings.java: * change if a factory reset is performed on the device.) docs/html/sdk/android-2.2-highlights.jd:after performing a factory reset or when switching devices.</p> docs/html/guide/topics/data/backup.jd:application data and settings. If a user performs a factory reset or converts to a new services/java/com/android/server/MasterClearReceiver.java: Slog.w(TAG, "!!! FACTORY RESET !!!"); services/java/com/android/server/MasterClearReceiver.java: Slog.e(TAG, "Can't perform master clear/factory reset", e); -- Regards, Deva www.bittoggler.com On Wed, Oct 27, 2010 at 2:20 PM, Robin Gujjar <robin.guj...@gmail.com> wrote: > Hi , > > i am trying to implement the factory reset in eclair. I already > implemented it in manual mode by pressing some > key combination. and directly booting in recovery mode. but i need to > add it in Eclair code also formt he UI menu: > > Setting--->Privacy---> Factory reset.. > > Can any one give me some pointer which code i need to look in android > framwork. > > thanks in advance > ROBS > > > > > > > > > > > > > > > > > > > > > . > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting