Sunday, August 25, 2013

Journey of bringing JellyBean 4.3 to Nexus 7 gen 1

I was (and still am) pretty darn frustrated when I realized that OTA Jelly Bean 4.3 failed to install on my Nexus 7 generation 1.  It's like some hidden problem in my Nexus 7 and I need to resolve it.  I knew it's going to a long journey to investigate the issue and eventually resolve it, so I tried to push it til weekend.  And this is that weekend, so here we go.

My very last resort is to wipe out my Nexus 7 and start everything from new, I was ALMOST OK to do that except that I have a Puzzle & Dragon game on that device, and I have quite some progress on it and didn't want to lost those.  Fortunately, Gunho provides a solution, although I haven't tested out it yet.

So now that I have it taken care of, I am now ready for the worst case.

When OTA installation failed, my logical next step is to think about side loading the update .  That approach brought me into some trouble as I found that the Android SDK I had didn't seemed to be working.  So I had to use Eclipse, and then [Andorid SDK Update] to update it.  After I had it updated, I found that on my Dell XPS desktop, I am not able to get the full drive view (14+ Gb) of my Nexus 7.  So I switched to the Windows side of my MacMini.  Now I got trouble because the Nexus 7 Windows driver did not see the Nexus 7 after Nexus 7 got into Recovery ADB mode.  There is a hack to fix that problem, But that hack doesn't work with my MacMini since it can't boot to allow F8 getting into safe mode.  So now I am on my S12 netbook running Windows 7, hoping that this would help solving the problem.

And then I found that the stupid command prompt on this S12 piece of shit netbook doesn't recognize the Z Drive I mapped for access the adb command line.  So I have to explicitly map it on command line.

Now I need to get to:
Z:\_Apps\AndroidMobileDev\android-sdk\platform-tools
and then example what I have:

Adb devices  : shows me the device.  So it's a good start. Now I do this:

adb reboot recovery

And trying to do "adb devices" and found that no device is connected.

Same as what a lot of people complain about.  It's time to give this fix a try.

Eventaully, I got the sideloading working using the fix mentioned above.  It worked exactly as stated, but then I need to do it this way (instead uninstall the previous "Android Composite ADB Interface"):

- Right click on "Android Composite ADB Interface"
- Select "Update Driver Software ..."
- Click "Browse my Computer for driver software."
- After you tried to install, you may get a message saying that a better driver already exist.  If that is the case, you need to force to system to use your hacked driver by:

- select "Let me pick from a list of device drives on my computer".  And in there pick the one your hacked.
- You will then get a warning saying that the driver is not certified.  Just say OK.

This works on Windows 7.  On Windows 8 you need to reboot in a mode that ignore driver certification using [F8].

Now I get sideloading working, but then, I got "assert failed" and then "installation aborted".

So I have a feeling that I might need to go extreme by restoring the system into fresh factory mode.  The senario 2 of this seemed to explain my exact situation. But then I am stuck with the problem which the bootloader step giving me this:

sending bootloader ... okay
'writing bootlader'.... failed (remote: (invalid state))

Just like 
Just like what have been mentioned here.  Now I feel stuck.

So I installed "Wug's Nexus Root Toolkit v1.7.1", and then did both backup on all apps and specific app (the only one I care) using [Backup].  And then I use [Flash Stock + Unroot] to flash the device to stock JWR66Y (4.3).

But I still got problem.  It was the same "invalid state" issue.

Finally I found out the solution.

All is need is to restore back to Android 4.2 (nakasi-jdq39-factory-c317339e.tgz) instead of 4.3.  Once done (and connect to WiFi), the system will kick off the 4.3 update.  And I got it completed successfully.

Then I used Wug's Nexus Root Toolkit v1.7.1 to restall the data for the only game that I care by:


Now I have a clean Nexus 7, with latest Andorid 4.3.

Next time if I got problem updating the later OS (like 4.4), for the worst case, I will have to do these:

  • Use Nexus Root Toolkit to backup all data
  • Use [Flash Stock + Unroot] in Nexus Root Toolkit to roll back to stock Andorid 4.3.
  • Apply official OTA update
  • Restore apps
  • Restore app data.


After all these, I suddenly realize the value of keeping my Lenovo S12 netbook running Windows 7 Home edition: for all the dirty hacking tasks.







Saturday, July 13, 2013

Galaxy Nexus, Dell XPS 8500 and USB Ports

I knew this before, but just proved it once again, that not all USB ports on my new Dell XPS 8500 are equal.

I realized it when I tried to connect my Galaxy Nexus to my new Dell so that I can do android development.  All 4 ports on the front and on the top of computer failed to establish the connection, but the port and the left side of the top roll worked.  In fact, I don't event need to explicitly install the Samsung driver, and everything just started working.  So ... strange.


Saturday, April 6, 2013

HTC Desire is now officially a feature phone to me ... because of Puzzle & Dragons

I rarely turn on my phone HTC Desire partly because my pre-paid voice plan doesn't have data support, and rarely do people call me.  After all, my Galaxy Nexus with no voice but "unlimited" (slow down after 2Gb) data plan does all I need to do daily.  Still I used once in a while thought of using it more as a voice phone with internet capability, and it as such.

Today, though, I found that this damn phone even suck as being a internet capable device when I tried to install and play Puzzle & Dragon on it.  Sure it installed the app alright, but the speed was sooooooo  freakkkking slooooowwww  down to a torture level.

So, yep, my HTC Desire is almost dead to me except being a feature phone.

Sunday, March 3, 2013

Google Chrome and Google Bookmark

Since Firefox constantly messing up on my desktop machine (Mac Mini 2009) under Windows 8, I decided to completely give up on Firefox and just use Chrome.  With extension support, Chrome pretty much does everything I want a browser to do.  The finally problem is to add the ability to add page to Google Bookmark, and even that has been solved by the suggestion here.  So goodbye Firefox, I don't miss you.

Saturday, March 2, 2013

Nexus 7 and watching movies on Flash drive

There is a reason why Nexus disable accessing thumb drive directly from micro USB port: it drains battery life fast.  10 hours battery life will turned into 4 to 5 hours.  I learned that during my recent flight to Montreal (Quebec, Canada).  I kept watching movies and TV shows on the flight using my Nexus 7 and various thumb drives, and of course my Nexus 7 was rooted.  After watching 2+ hours of video, I found the battery drained down to 50%.  So with that means watching 5 hours will use up all the batteries.  That's not good for a long flight like the one to Hong Kong.  And unfortunately there's no external battery, no microSD slot or a model with 64 to 128Gb of storage.  Still, I will continue using Nexus 7 as video playback device in trips because it works so well and can handle almost all video file formats.


Saturday, February 16, 2013

wonder which device to blame

Today our family is driving to Toronto, and I found this the perfect moment to try out thethering feature of my Roger iPad mobile phone plan.  So I turned on the Personal Hotspot feature on my Galaxy Nexus.  MyPad 3 and my Nexus 7 was able to pick up hotspot, but not my Microsoft Surface device.  I was puzzled, and kept trying various options.  Eventually, I yanked out the SIM card, and use it on my iPad 3, and use iPad 3 as personal hotspot.  Now, all my devices, including Microsoft Surface, are able to access Internet.  So I am pretty puzzled now.  I don't whether I should blame my Galaxy Nexus lame at being a personal hotspot, or Microsoft Surface sucks at accessing personal hotspot.  But at least I am glad that I have various devices to try out different options.

Friday, February 15, 2013

So I can still root after 4.2.2 update on Nexus 7

I was so used to accepting all the update on my Galaxy Nexus phone that I did the same on my Nexus 7 when a 4.2.2 update alert popped up.  Only after then I realized that the N7 was, once again, unrooted, and I lost one HUGE feature on my N7: watching video directly from thumb drive.  So now I need to find a working rooting instruction for Andorid 4.2.2 on Nexus 7.

Luckily, the old one that worked is still working as long as you follow a few lines of instruction on the site to make it working on 4.2.2. .  I tried and it worked pretty well.   So ... I am happy again :-D .