Flashing Cyanogenmod Into A Nexus 7 2012 Tablet

I bought my Nexus 7 tablet a bit late in the game, in 2013, when everyone else was buying the new Nexus 7 2013 edition. Although being a model behind has its obvious drawbacks, the benefits can include a device with all the initial problems resolved (avoiding the first adopter’s problems with software and hardware), a cheaper price and usually a year’s worth of reviews and discussions to read prior to making the purchase. However, like everything else, one has to buy carefully.

There have been a couple of updates from Google on the software front since the tablet has been released, including the update to Lollipop (Android 5.1.1). This update, as you may already know, has caused a lot of grief to a lot of people, by making some tablets unusably slow, including mine (oh, why didn’t I say “no” to the update dialog). Far from making it a better experience (something one expects from a software update), it turns the tablet into something you do not want to use and there is no going back to previous version.

I have been leaving the tablet unused for quite a few months now, since it takes a few minutes just to get past the lock screen, so yesterday I decided to load a custom ROM, namely Cyanogenmod to make it my daily device again. This, as it happened, gave me a new set of problems to deal with, namely:

  • After flashing a new recovery image, namely TWRP-3.0.0-0-signed.zip, the device will boot into recovery, but cannot mount any of the partitions such as data and system, which results in a failed attempt to install Cyanogenmod and Gapps (Google Apps package).
  • I tried the multirom version as discussed in this web page, but it does not even boot (I think it was meant for the later models of Nexus 7).
  • I tried to flash a CWM recovery image for Nexus 7 as listed on this web page and it has the same problem mounting partitions as the TWRP recovery software.

So what to do? After a few hair pulling moments, I decided to give TWRP another try, this time, thinking that this device has been around for a while, I decided to flash an older version of TWRP, namely version 2.8.6. I thought, surely, if the newer version does not work, then the older version may not work? Wrong. TWRP version 2.8.6 recovery image worked perfectly. I was able to wipe the System partition, flash Cyanogenmod version 10.2 and Gapps (make sure you get the correct version of Gapps) and root the device successfully. Now I am looking forward to using my old Nexus 7 tablet as a daily device again.


Working with node dblite module on Windows

If you get an error with dblite module on Node JS on Windows, it could be caused by missing SQLite binaries in the system path. So make sure you download the sqlite binaries and add it to the system path so that it can be found by dblite when it is running on Node. Happy days!

I encountered this error while working on a clean install of Windows 10 on a brand new machine.

Converting a large text file into an sqlite database

Sometimes we need to deal with large text files that are more than some text editors can handle. I recently have to convert a large text file containing a list of words which contains more than 600,000 lines.  The file size was just under 100MB and to open it with a text editor was an exercise in frustration.  Continue reading “Converting a large text file into an sqlite database”

Fix the annoying Android File Transfer bug on the Macbook

Plug in another USB device (such as a flash drive) and the computer should reconnect the keyboard and trackpad again. Sometimes it takes a couple of tries. There are also more permanent solutions such as removing the Android File Transfer Agent app.

Have you been working on an app and you decided to deploy your android app to your phone, only to find out that when you plug the phone into one of the USB ports, the Android File Transfer app pops up and then you find that your built-in keyboard and trackpad does not work? Or worse, have you ever wanted to just charge your phone only to find out that you computer’s keyboard and trackpad stops working when you plug the phone into the USB port? Continue reading “Fix the annoying Android File Transfer bug on the Macbook”