Friday, July 12, 2013

Flashing a ROM onto your Android phone

When I flashed a ROM on to my Android phones, I followed the steps below:
1. Yeah, the first step is to find the ROM that matches the phone
2. Connect the phone to computer via USB able.
3. Make sure in Developer options, USB debug is checked. And yeah, if you are running pure newer Android ROM, for example JB4.2, the developer option you saw in older version of Android ROM is not there. It is hidden somewhere. There is magic "word" to call it out. From Settings-> About phone -> Build number, knock on the "Build number" 7 times, then the "Developer options" will come out in the "Settings".
إفتح يا سمسم iftaḥ ya simsim .

4. If the phone can not be recognized by the computer, use the Device Manager on the computer to update the driver. I usually choose the USB Composite Device in the compatible list.
5. Run adb reboot bootloader
6. Run fastboot oem rebootRUU if using the zip file to flash
7. Run fastboot flash zip zip-file-for-ROM
8. Run fastboot reboot
9. If using RUU to flash, start from Step 5, run the RUU exe directly and follow the instructions.
10. Sometimes, I need to flash the device with older ROM first, then flash the device again with newer ROM.

I forgot to mention that the phone may need to be S-OFF, and the CID may needs to match the ROM's build in CID, or may need to set the cid to super cid, a special ID for every ROM. To change the CID, in the bootloader mode, run fastboot oem writecid cid_char_string.

If you can find a RUU, it would be easy to run it to flash the phone.

Thursday, July 11, 2013

Google Android Studio 0.2.x

Google released Android Studio 0.2.0 with build number of 130.737825.

It is a new bundle and users need to download the installer from Google Android website.
http://developer.android.com/sdk/installing/studio.html#Updating

In the installation guides, it suggests users to back up some folders in the 0.1.x installation if users want to install the new version in the folder of the older version previously installed on the computer.

One of the most important feature in this release is the parallel build of independent modules, but it is not turned on in default settings, users need to "go to Preferences > Compilerand check the box Compile independent modules in parallel."

And this release is not backward compatible with previous releases.

After downloading the recent update of 0.2.1, the start up time is terrible long. After clicking on the shortcut icon on the desktop, I waited for about 1 mins for the window with progress bar show up, and the progress bar move slowly too, it took another 20 seconds for the Quick Start windows show up. This made me feel I am using very old version of Netbeans which usually took 2 mins to start up, but now the latest Netbeans starts up very quick. The time taking to start up this version of Android Studio is in the range of Netbeans 7.3.1, but in Netbeans it also starts up a bunches of services, servers, and load up my projects.

If I set the Android Studio to load up my projects at start up, it would take more longer. Even the project has been built, the building system is still trying to rebuilt the project again, and do other stuffs like checking something.

It also takes longer to create a new project. The building system is very busy. And while the system is doing the indexing, the tip window is not responsive.

Update 130.762670, 0.2.3, this is a minor update with more user friendly improvement on error warning message.

Updated to 0.2.7, and learnt a way to delete project in QuickStart - just move the mouse to the project and hit the "Delete" button in your keyboard/keypad.