Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Saturday, January 19, 2013

Samsung Nexus S: Flush Jelly Bean Factory Image

I have been waiting for OTA for several months with no luck. So finally decided to flush my Samsung Nexus S with Jelly Bean 4.1.2 factory image. Here is how I did it. 
  1. (PC) Download Nexus Root Toolkit from here (don't worry. I did not root my phone, just unlocked it for flushing!). 
  2. (PC) Install the software. When prompted, choose your device. In my case, it was Samsung Nexus S, 850MHz, i9020a. Allow the software to download necessary files for your phone.
  3. (PC) Connect your phone to the PC with a USB cable. Run the 'Nexus Root Toolkit' software and click on 'Unlock'. Follow the on screen instructions to unlock your phone.
  4. (PC) Download Nexus S factory image from here
  5. (PC) Unzip the downloaded image in the installation directory of Nexus Root Toolkit. In my case the path was C:\Program Files\WugFresh Development\data
  6. (Phone) Turn off your device 
  7. (Phone) Go to Bootloader (press&hold volume up button then press&hold power button) 
  8. (PC) Go to the folder where you unzipped the factory image. Make sure that the folder contains adb.exe and fastboot.exe.
  9. (PC) Double click on flash-all.bat file. This will flush the factory image in the phone.
  10. (PC) When done, click on 'OEM Lock in the Nexus Root Toolkit to lock bootloader again.
Enjoy your Jelly Bean:)

Wednesday, July 25, 2012

Samsung Nexus S i9020a: OTA Update to JB 4.1.1 from 4.0.4

Several user have reported the following procedure as successful, but some failures were also reported. Try at your own risk:)

  1. Connect your charger! This is a prerequisite
  2. Go into airplane mode
  3. Under settings->apps->all (scroll the page to the left), 
      • select 'Google Services framework'
      • force stop it and 
      • then delete its data


  4. Enable wifi only (don't leave airplane mode)
  5. Settings->about->system updates->check for update.

Repeat this several times if it doesn't work at first. There is no need to remove the sim card or  reboot.

Monday, April 9, 2012

Samsung Nexus S i9020a: Update to ICS 4.0.4 from 2.3.4/2.3.6 (without rooting)

Update from 2.3.4 (GTJ61)/2.3.6 (GRK39C) to 2.3.6 (GRK39F)

  1. Download this file
  2. Rename the downloaded file to update.zip
  3. Put it update.zip you have downloaded on your sd card. 
  4. Turn off your device 
  5. Go to Bootloader (press&hold volume up button then press&hold power button) 
  6. When in Fastboot mode navigate to Recovery using volume up/down buttons 
  7. Press the power key to select Recovery 
  8. If you see a warning logo, press the power button and then press volume up button then release both to go to the Main Recovery menu
  9. From the menu, select Apply update from /sdcard, and choose update.zip from the list. 
  10. When update is finished go back and select reboot system now
Update from 2.3.6 (GRK39F) to 4.0.4 (IMM76D)

  1. Download this file
  2. Use the above steps again to update.
*** The same procedure should work for other devices as well but the file would be different. You will have to find the right update file.

Saturday, December 10, 2011

HowTo: Root HTC Droid Incredible || Android Phone

Follow the steps to get root access of a HTC droid incredible phone and install CyanogenMode Android OS using windows PC.

  1. Install HTC USB Drivers on your PC. Driver can be found here.
  2. Download this kit that contains adb, fastboot and other necessary scripts.
  3. Connect your phone with the PC via usb cable with USB Debugging enabled in the phone. (do not select file transfer mode for the sdcard).
  4. Download revolutionary from http://revolutionary.io/ and collect the Beta Key.
  5. Unzip the revolutionary-x.x.zip inside the folder where adb.exe is available.
  6. Run revolutionary.exe from command line.
  7. Then follow the steps from here to install CyanogenMode.

Monday, May 9, 2011

Android: UDP Receiver

For my android app, I needed a UDP receiver which can receive broadcast packets. So I tried to create a UDP socket using the following.

mySocket = new DatagramSocket(PORT, ADDRESS);


But this socket could only receive unicast packets not the broadcast ones. I had to change it as follows to make it work for broadcast.

mySocket = new DatagramSocket(PORT);