How to Factory Reset Your Android Phone or Tablet When It Won’t Boot

Source URL: Click here


Safe mode can help you troubleshoot your Android, but sometimes you’ll need to wipe everything and restore your device to its factory state. You can even perform a factory reset when your Android phone or tablet won’t boot normally.

Ensure you have any important data backed up before doing a reset. This includes your Google Authenticator credentials, which will be lost during the reset. Disable two-factor authentication on your accounts first or you’ll experience some trouble afterwards.


If You Can’t Boot
If safe mode doesn’t help fix your device, you can perform a hard reset by booting into a special recovery mode. First, ensure your device is fully shut down.

Press and hold the correct keys to boot the device into recovery mode. This will vary from device to device. Here are some examples:

Nexus 7: Volume Up + Volume Down + Power
Samsung Galaxy S3: Volume Up + Home + Power
Motorola Droid X: Home + Power
Devices With Camera Buttons: Volume Up + Camera
Similar devices will likely use similar key combinations. For example, the Nexus 4 also uses Volume Up + Volume Down + Power.

If your device isn’t on this list and none of the above methods work, do a Google search for the name of your device and “recovery mode” – or look in the device’s manual or support pages.

Continued here: Source URL: Click here


Need to install a .inf file from the command line?

I came across this one recently, the pc is locked down and the only way of installing files is through the command line (CMD) as administrator, so to install inf files use this syntax:

rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\<file>.inf

DOS Networking Commands

Various switch accessable using /? after the base command, eg nbtstat /?

Frequently used command and switches:

IP to hostname lookup: nbtstat -a ip-address


Display Connection Configuration: ipconfig /all
Display DNS Cache Info: ipconfig /displaydns
Clear DNS Cache: ipconfig /flushdns
Release/Renew All IP Address Connections: ipconfig /release and /renew
Re-Register the DNS connections: ipconfig /registerdns

Local net user information: net /?

Network Connections: control netconnections
Test Connectivity: ping whatismyip.com
Trace Route: tracert
Displays the TCP/IP protocol sessions: netstat
Display Local Route: route
Display Resolved MAC Addresses: arp
Display Name of Computer Currently on: hostname
NameServer Lookup: nslookup whatismyip.com

Netsh command info - click here

Device manager error codes



Error code Message
Code 1 This device is not configured correctly.
Code 3 The driver for this device might be corrupted, or your system may be running low on memory or other resources.
Code 10 This device cannot start.
Code 12 This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system.
Code 14 This device cannot work properly until you restart your computer.
Code 16 Windows cannot identify all the resources this device uses.
Code 18 Reinstall the drivers for this device.
Code 19 Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. To fix this problem, you can first try running a Troubleshooting Wizard. If that does not work, you should uninstall and then reinstall the hardware device.
Code 21 Windows is removing this device.
Code 22 This device is disabled.
Code 24 This device is not present, is not working properly, or does not have all its drivers installed.
Code 28 The drivers for this device are not installed.
Code 29 This device is disabled because the firmware of the device did not give it the required resources.
Code 31 This device is not working properly because Windows cannot load the drivers required for this device.
Code 32 A driver (service) for this device has been disabled. An alternate driver may be providing this functionality.
Code 33 Windows cannot determine which resources are required for this device.
Code 34 Windows cannot determine the settings for this device. Consult the documentation that came with this device and use the Resource tab to set the configuration.
Code 35 Your computer's system firmware does not include enough information to properly configure and use this device. To use this device, contact your computer manufacturer to obtain a firmware or BIOS update.
Code 36 This device is requesting a PCI interrupt but is configured for an ISA interrupt (or vice versa). Please use the computer's system setup program to reconfigure the interrupt for this device.
Code 37 Windows cannot initialize the device driver for this hardware.
Code 38 Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory.
Code 39 Windows cannot load the device driver for this hardware. The driver may be corrupted or missing.
Code 40 Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly.
Code 41 Windows successfully loaded the device driver for this hardware but cannot find the hardware device.
Code 42 Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system.
Code 43 Windows has stopped this device because it has reported problems.
Code 44 An application or service has shut down this hardware device.
Code 45 Currently, this hardware device is not connected to the computer.
Code 46 Windows cannot gain access to this hardware device because the operating system is in the process of shutting down.
Code 47 Windows cannot use this hardware device because it has been prepared for safe removal, but it has not been removed from the computer.
Code 48 The software for this device has been blocked from starting because it is known to have problems with Windows. Contact the hardware vendor for a new driver.
Code 49 Windows cannot start new hardware devices because the system hive is too large (exceeds the Registry Size Limit).

Outlook command line switches


/a path:\<filename> Creates an item with the specified file as an attachment. Example:
"C:\Program Files\Microsoft Office\Office12\Outlook.exe" /a "C:\My Documents\labels.doc"
If no item type is specified, IPM.Note is assumed. Cannot be used with message classes that aren’t based on Outlook.

/altvba <otmfilename> Opens the VBA program specified in otmfilename, rather than
%appdata%\Microsoft\Outlook\
VbaProject.OTM.

/autorun macroname Opens Outlook and immediately runs the macro specified in macroname.
(no longer supported after Outlook 2003 SP2)

/c <messageclass> Creates a new item of the specified message class (Outlook forms or any other valid MAPI form).Examples:
§  /c ipm.activity
creates a Journal entry
§  /c ipm.appointment
creates an appointment
§  /c ipm.contact
creates a contact
§  /c ipm.note
creates an e-mail message
§  /c ipm.stickynote
creates a note
§  /c ipm.task
creates a task

/checkclient Prompts for the default manager of e-mail, news, and contacts.
/cleanautocompletecache Removes all names and e-mail addresses from the AutoComplete list.
/cleancategories Deletes any custom category names that you have created. Restores categories to the default names.

/cleanclientrules Starts Outlook and deletes client-based rules.

/cleanconvongoingactions Deletes the Conversations Actions Table (CAT). CAT entries for a conversation thread usually expire 30 days after no activity. The command-line switch clears all conversation tagging, ignore, and moving rules immediately stopping any additional actions.

/cleandmrecords Deletes the logging records saved when a manager or a delegate declines a meeting.
/cleanfinders Removes Search Folders from the Microsoft Exchange server store.
/cleanfreebusy Clears and regenerates free/busy information. This switch can only be used when you are able to connect to your Microsoft Exchange server.
/cleanfromaddress Removes all manually added From entries from the profile.
/cleanips Restores receival of new messages in Exchange Cached mode (KB968773)
/cleanprofile Removes invalid profile keys and recreates default registry keys where applicable.
/cleanpst Launches Outlook with a clean Personal Folders file (.pst)
/cleanreminders Clears and regenerates reminders.

/cleanroamedprefs All previous roamed preferences are deleted and copied again from the local settings on the computer where this switch is used. This includes the roaming settings for reminders, free/busy grid, working hours, calendar publishing, and RSS rules.

/cleanrules Starts Outlook and deletes client- and server-based rules.
/cleanschedplus Deletes all Schedule+ data (free/busy, permissions, and .cal file) from the server and enables the free/busy information from the Outlook Calendar to be used and viewed by all Schedule+ 1.0 users.

/cleanserverrules Starts Outlook and deletes server-based rules.
/cleansharing Removes all RSS, Internet Calendar, and SharePoint subscriptions from Account Settings, but leaves all the previously downloaded content on your computer. This is useful if you cannot delete one of these subscriptions within Outlook 2010.

/cleansniff Deletes duplicate reminder messages.
/cleansubscriptions Deletes the subscription messages and properties for subscription features.
/cleanviews Restores default views. All custom views you created are lost.
/designer Starts Outlook without figuring out if Outlook should be the default client in the first run.

/embedding <msgfilename> Opens the specified message file (.msg) as an OLE embedding. Also used without command-line parameters for standard OLE co-create.
/explorer Opens the new window in “explorer” mode (link bar on).

/f <msgfilename> Opens the specified message file (.msg) or Microsoft Office saved search (.oss).
(Support for oss-files has been dropped since Outlook 2003 SP2 due to security restrictions)

/finder Opens the Advanced Find dialog box.
/firstrun Starts Outlook as if it were run for the first time.
/folder Opens a new window in “folder” mode (Navigation Pane off).
/hol <holfilename.hol> Opens the specified .hol file.
/ical <icsfilename> Opens the specified .ics file.
/importprf path:\<filename.prf> Launches Outlook and opens/imports the defined MAPI profile (*.prf). If Outlook is already open, queues the profile to be imported on the next clean launch.
/l <olkfilename> Opens the specified .olk file.
/launchtraininghelp assetid Opens a Help window with the Help topic specified in assetid.
/m emailname Provides a way for the user to add an e-mail name to the item. Only works in conjunction with the /c command-line parameter.
Example:
outlook.exe /c ipm.note /m emailname

/nocustomize Starts Outlook without loading outcmd.dat (customized toolbars) and *.fav file.
/noextensions Starts Outlook with extensions turned off, but listed in the Add-In Manager.
/nopollmail Starts Outlook without checking mail at startup.
/nopreview Starts Outlook with the Reading Pane off and removes the option from the View menu.
/p <msgfilename> Prints the specified message (.msg).
Prior to Outlook 2007, this does not work with HTML messages.
/profile <profilename> Loads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks (“).
/profiles Opens the Choose Profile dialog box regardless of the Options setting on the Tools menu.
/recycle Starts Outlook using an existing Outlook window, if one exists. Used in combination with /explorer or /folder.

/regserver Rewrites all Outlook specific registry keys and re-associates file extensions without having to reinstall Outlook or run setup with the /y switch. The settings are stored in the Outlook.srg file located in the same folder as the Outlook program.

/remigratecategories Starts Outlook and and initiates the following commands on the default mailbox:
§  Upgrades colored For Follow Up flags to Office Outlook 2007 color categories.
§  Upgrades calendar labels to Office Outlook 2007 color categories.
§  Adds all categories used on non-mail items into the Master Category List.
Note: This is the same command asUpgrade to Color Categories in each Outlook mailbox properties dialog box.
/remigrateconversations
/resetfoldernames Resets default folder names (such as Inbox or Sent Items) to default names in the current Office user interface language.For example, if you first connect to your mailbox Outlook using a Russian user interface, the Russian default folder names cannot be renamed. To change the default folder names to another language such as Japanese or English, you can use this switch to reset the default folder names after changing the user interface language or installing a different language version of Outlook.
/resetfolders Restores missing folders for the default delivery location.
/resetformregions Empties the form regions cache and reloads the form region definitions from the Windows registry.
/resetoutlookbar Rebuilds the Outlook Bar.
/resetnavpane Clears and regenerates the Navigation Pane for the current profile.
/resetquicksteps Restores the default Quick Steps. All user-created Quick Steps are deleted.
/resetsearchcriteria Resets all Instant Search criteria so that the default set of criteria is shown in each module.
/resetsharedfolders Removes all shared folders from the Navigation Pane.
/resettodobar
Clears and regenerates the To-Do Bar task list for the current profile. The To-Do Bar search folder is deleted and re-created.

/restore
Attempts to open the same profile and folders that were open prior to an abnormal Outlook shutdown.

/rpcdiag
Opens Outlook and displays the remote procedure call (RPC) connection status dialog.

/s <filename> Loads the specified shortcuts file (.fav).
/safe Starts Outlook without extensions, Reading Pane, or toolbar customization.
/safe:1 Starts Outlook with the Reading Pane off.
/safe:2 Starts Outlook without checking mail at startup.
/safe:3 Starts Outlook with extensions turned off, but listed in the Add-In Manager.
/safe:4 Starts Outlook without loading Outcmd.dat (customized toolbars) and *.fav file.

/select foldername Starts Outlook and opens the specified folder in a new window. For example, to open Outlook and display the default calendar use:
"C:\Program Files\Microsoft Office\Office12\Outlook.exe" /select outlook:calendar

/share feed://URL/filename Specifies a sharing URL to connect to Outlook. For example, use stssync://URL to connect a Microsoft Windows SharePoint Services 3.0 list to Outlook.
/share stssync://URL
/share web://URL/filename
/sniff Starts Outlook and forces a detection of new meeting requests in the Inbox, and then adds them to the calendar.
/t <oftfilename> Opens the specified .oft file.
/unregserver Deletes all registry keys and file associations for Outlook. Its actions are based on the Outlook.srg file located in the same folder as the Outlook application. Use the /regserver switch to rewrite the registry keys and file associations after using this switch.
/v <vcffilename> Opens the specified .vcf file.
/vcal <vcsfilename> Opens the specified .vcs file.
/x <xnkfilename> Opens the specified .xnk file.

Using my rooted / modded Galaxy s2 (Cyanogen) (3)

last updated 7th November 2012

Finishing off setting up my new o/s

Signed in with gmail account and sync'd

Installed Titanium backup from Play store.

To install the other apps, i opted to install clean newest versions from the Play store, then used titanium backup to restore just the data of the application. An example of this would be a clean install of Dolphin Brower from the Play Store, then used Titanium backup to restore my backed up favourites. Top app, and free.

With Titanium you are able to restore the whole app, or the data for the app (data stored on sdcard) very cool - click here

Cool new features over ICS o2 stock

Booting up faster, general operation is much quicker, no application issues, no need to click "ok" after entering secure PIN, Can customize the notification pull down menu (not available on ios or ics), able to choose different transition effects between screens like on the non rooted "go launcher ex" app. Cool news sounds for notifications, Smaller google search bar on front page,

Issues / missing features

No swype keyboard as standard - had to install separately from previously store .APK file
Notepad and Tasks missing (downloaded colornote)
No FM Radio app

Apollo is the replacement music play which is very good.... but i've chosen "Music Player" by PIXI, improved lock screen controls.

To do

Remove triangle on boot

Cool apps to have on a rooted device

Security software, lookout or avast are very good.
in progress........
http://www.littlegreenrobot.co.uk/hackerzone/top-10-apps-for-rooted-android-phones/

Galaxy s2 ROM replacement (2)

Root the device first, guide here

This does need some technical knowledge and i cannot be responsible if you brick your device, I've done it and it works :)

This process will invalidate your phones warranty!


Once your phone is rooted, download the ROM you want, in my case i went for cyanogenmod stable v9.1 because its quite established and a good support forum.

You will also need the google apps package on the external sdcard, this contains the play store etc.

Method via Recovery - original instruction source
  1. Download the latest version of CyanogenMod.
  2. Optional: Download the Google Apps for the device.
  3. Place the CyanogenMod update.zip file on the root of the SD card.
    Optional: Place the Google Apps .zip on the root of the SD card also.
  4. Boot into the ClockworkMod Recovery.
  5. Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
    Optional: Select backup and restore to create a backup of current installation on the Samsung Galaxy S II.
  6. Select the option to Wipe data/factory reset.
  7. Then select the option to Wipe cache partition.
  8. Select Install zip from sdcard.
  9. Select Choose zip from sdcard.
  10. Select the CyanogenMod update.zip.
    Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip.
  11. Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The Samsung Galaxy S II should now boot into CyanogenMod!

Galaxy s2 rooting (1)

I've had my O2 Samsung Galaxy s2 for just over a year, like most systems Ive been getting slight deterioration and recently some application crashes, annoying voice talk on double click, and notably eBay crashing on the recent update.

So thought i would delve into rooting and installing another ROM.

This does need some technical knowledge and i cannot be responsible if you brick your device, I've done it and it works :)

This process will invalidate your phones warranty!



Instructions from Galaxys2root.com
For those of you who want to root your Galaxy S2 GT-i9100 on ICS (Ice Cream Sandwich Android 4.0+), here’s how to do it by flashing a new kernel.

Step 1. First, put your Galaxy S2 into download mode by holding down Volume Down, Center, and Power button together for about 10 seconds.


Step 2. When you see the warning screen, hit Volume Up button to enter download mode.


Step 3. Connect a micro-USB cable from your Galaxy S2 to your computer.


Step 4. Download ODIN program and CF Kernel. Then unzip both files.


Download ODIN


Download CF Kernel


Step 5. Run the ODIN program. You should see a yellow highlighted rectangle box with a number. If you don’t, you need to install Samsung Kies. Download Samsung Kies and install. After installing, un-plug your phone then plug it back in, you should now see it.


Step 6. Hit “PDA” and choose the “CF-Root-SGS2_XX_XEO_LPQ-v5.3-CWM5.tar” file you unzipped earlier.


Step 7. Hit “Start” and the kernel will start flashing to your phone.


Step 8. Your phone will reboot when it’s done.


Step 9. Once you reboot, check that you have the SuperSU app. If you do, you are rooted. Congrats!


Once you have done the above you will now have CWM and SuperSU application installed.

Using CWM backup your existing rom to your external SDCARD, as extra precaution put your s2 into usb mode and move the backup folder to your pc's hard disk, as if you brick the device you wont have access to the sd card unless you have a card reader.

I also backup my application data using titanium backup to the external sdcard.


CMS Supervisor 16 429 error


Run C:\Program Files\Avaya\CMS Supervisor R16\registrydefaults.bat on the target machine to re-register dlls and that should solve the issue.

Delete C:\documents and settings\userid\application data\avaya\cms supervisor r16\cache

If the above fails re-run the setup and select repair.

Good luck

GK

Printer Spoolsv.exe - Application Error


1.       Open Control Panel, select Classic View, select Administrative Tools, and then select the Services option.
2.       In the Services management console, locate the Spooler services, right-click on it and select Stop.
3.       Next, open the C:\Windows\System32\Spool\Printers folder.  (Here, we are assuming that your Windows is installed in the default C:\Windows folder)
4.       Delete all the .SHD and SPL files from this folder.
5.       Next, open the TMP folder and delete all old and unused files from this folder.
6.       Finally, restart the Spooler service from the Services management console.
This works on XP also.