Thursday, September 20, 2012

Hacking Galaxy Nexus to flash "yakju" version


Why to flash "yakju"?
Well, that is for the sure a good one. If you have a Galaxy Nexus, then probably you bought it to free your soul from the HW manufacturer control, into Google's geeks free world. But then, you might have discovered that not all Galaxy Nexus's firmwares are maintained by Google; some of them are maintained by Samsung. That must have been a turn down for you as it was for me :s
Apparently, yakju is one of those maintained by Google for GSM/ HSPA+, takju is the same, adding Google Wallet support for it.
I knew all this when I knew that the new JellyBean Android 4.1 was released for Galaxy Nexus, but found no updates for my device!

How to tell which version do I have?
A couple of applications can do this for you, one of which is "Android System Info". Install it and go to the "System" tab, and choose the BuildInfos, under "product" you'll find your version

Tools you will need
fastboot, adb. These are development tools that comes with Android's SDK. You will find it everywhere on the internet.
After you download them, enable USB debugging on your device from settings => Developer Options.
You can do a quick test by opening your terminal, and executing adb devices it should print the ID of your device, something in the following format

List of devices attached 
0A3CX02B180XXXXX device


Backup you data
The process will wipe out everything. You need to backup everything before missing around with your phone. I even made a backup of the SW image. The back up list will definitely change from one user to the other, here is a small list i made:
1- SMS: Use SMS Backup & Restore, this tutorial was a great help.
2- Photos & Videos: Transfer them to your PC.
3- WhatsApp: WhatsApp already keeps a backup of your messages, you can force it to do a backup from the settings.
4- Call logs: Even call logs can be backed up. Check this tutorial

Make a backup of your system images
To make a backup of your system images, you need another custom bootloader, other than the one provided by Google/Samsung. A bootloader is a piece of SW that checks the OS image's integrity, and loads it.
Download this bootloader image  and copy it to the same folder as the fastboot and adb, then follow the following steps:

  1. Boot your device into the fastboot mode. Do this by shutting down your device, then pressing the volume up, volume down and power buttons at the same time.
  2. Unlock the bootloader. The bootloader is originally locked to avoid any missing around with the system images. Unlocking will wipe away all your data, and it will prompt your for a confirmation before it goes on. To unlock your device, execute this command fastboot oem unlock, the device will prompt you if you really want to do this. Use the volume up/down to move to the YES, and press the power button to confirm.
  3. Reboot the bootloader: fastboot reboot-bootloader
  4. Boot into the OS normal mode: fastboot reboot
  5. Reboot into fastboot mode, same as 1
  6. Boot from the custom bootloader: fastboot boot recovery-clockwork-5.5.0.2-maguro.img
  7. From the menus, choose to backup your images. They will be on /sdcard/clockworkmod/backup.
  8. Move the backup images to your PC: adb pull /sdcard/clockworkmod/backup your_path/Nexus_backup

Flash the new images
Download the new images from https://developers.google.com/android/nexus/images . I decided to download IceCream Sandwich version, although I'm targeting JellyBean, to test the OTA updates and make sure i'm now in Google Geeks' hands.

  1. Enter fastboot mode.
  2. Flash the new bootloader: fastboot flash bootloader bootloader-maguro-primela03.img
  3. Reboot the bootloader: fastboot reboot-bootloader
  4. Flash the radio image: fastboot flash radio radio-maguro-i9250xxla02.img
  5. Reboot the bootloader: fastboot reboot-bootloader
  6. Update the system image: fastboot -w update image-yakju-imm76i.zip
Your device will restart, and Voila, you have a Google firmware, enjoy OTA updates :)

Sunday, June 24, 2012

Beginner's Guide to Buying a Bike (Egyptian Market)




My Beloved Orbea Dakar 2010... 2500 km old :)
Well... I always get this question: "I wanna buy a bicycle, what should i do". Biking is not that common in Egypt among adults, but sure it's booming. That's why i decided to write this note, to save myself time and help promote the idea ;)

I'm not sure about your budget, but i can give the basics and leave you to decide.


  1. Prices: good bikes can start from from 1500LE all the way to 8000.
  2. Types:basically, there are four types of bikes, Mountain, Race, City, and Hybrid.A mountain bike is for mountains, a race is for race, a City is for city, and hybrid is for both. easy.. right? :)- A mountain is more durable, can resist wild terrains, have front only or front and rear suspension, have wider tyres which means more greb of the terrin.

Mountain Bike
  1. - A race is the one with ultra light/slim body, ultra thin rim and tyres. that means light weight and less resistance to the road, in common language, more speed. However, you'll feel every tiny winy pump or stone on the road in your mmm.... body!
    Race Bike
    - City bike is ,as the name emplies, for paved roads of a city. It's the one in between race and mountain, it's lighter than mountain, with no suspension and don't have the same straight handlebar like that of mountains'. It has stronger rim/body, and wider tyres than race. That means it's faster than mountain, stronger than race.
    City Bike
    - A hybrid is something even more in between mountain and city. However, i can't find a clear definition for it. they have the same straight handlebar of mountain, and might have front suspension, but with tyres as thin as the roads'.
    Hybrid Bike
    Sure you don't care for such theories... let's get practical :DIn Egypt, you have 3 kind of common activities, offroading at Wadi Degla, commuting in the city, and travelling.If you'll go off roading get a mountain, if you'll go commuting get a city, if you'll go travelling get a race! simple one.. huhIf you are not sure exactly what you'll be doing, or will be doing a mix of these, get a mountain.At least you can anytime change its tyres to more thin ones and get more speed, and change the tyres back when you'll go offroading. Anyways Cairo's roads are more like off roading.. right? :D
  2. Frames:The lighter the better, the acceptable quality at good prices will be made of aluminium alloy. some high end bikes are made of carbon, but i'm not sure if those are even available in Egypt :D
  3. Brakes:Two main types of brakes, rubber V brakes and disc brakes. V brakes are the old ones we had in our childhood bikes.
    V Brakes
    Disc brakes are like those of a car, a disc at the centre of the wheel, and pads holding the disc when breaks are applied. It's more reliable with muds. disc brakes can be triggered by wire or by oil (hydraulically)
    Disc Brakes
  4. Suspension:Suspension makes a ride enjoyable, and is essential for offroading. a bike can have a front suspension (Hard tail bikes) or both fron and rear suspension (soft tail bikes) the front suspension is in the front fork, and the rear is usually beneath the seat.Suspension can be as simple as a spring piston, or can be oil piston (hydraulic), or air piston (pneumatic). This is the same order of prices and quality as well (cheaper to more expensive, and low quality to better quality)
    The best type of suspensions are those that can be controlled on/off. Cause for some technical reasons, the suspension being on wastes some of your energy contracting and expanding the suspension.
    Spring front suspension
  5. Gear box:The most important part of a bike, the part that goes all round and round with gears shifting up and down all the way. This is the part that can make your ride enjoyable or you'll finish your ride with curses and frustration!The best brand of Gear boxes is Shimano, it's used in most of the bikes actually, even bikes that have their own brands are using Shimano. Enough for you to know that it's a Japanese company :). Shimano has a bunch of gear boxes' models, which i'm not an expert of, so you'll have to do your own research comparing the models on the internet.
  • What are the available brands in egypt?The info i have is mainly about the mountain ones. and the info i'll introduce might be old, or might change anytime, but by now you should have the basics to do your own market research.I'll talk first about my own bike, The Orbea Dakar. Orbea is brand, and Dakar is the model. Orbea is spanish designer company, and chinease made bikes, although they say that starting 2011 models, they are spain made. http://www.orbrea.com/This brand, and specially this model is booming in Egypt. I'll just let you know that back in 2010, the first model Dakar 2010 was introduced to Egypt at a price of 1500 LE. Dakar 2012 is now around 2700! also there are a couple of other Orbea models that penetrated the market that are better and more expensive than Dakar. Dakar is considered a low end brand of Orbea.

  • Orbea Dakar 2012
    Gitane: 
    it's a french brand, more expensive than Orbea, i think it's starting from 4000 L.E.
    Peugeot: they use to be heavier than Gitane and Orbea, but i'm not sure about the new models. price wise, they are in between Orbea and Gitane.However, i believe Orbea has more number of models in the market, they have a couple of race bikes as well, the cheapest is the Aqua (around 5000LE). And actually they have better support and spare parts' availability
  • Where to buy?There are two main sellers in Egypt, Abo El Goukh (Yes, it is the same one you bought your first bike from ;) ) and  Besceletta. Abo El Gouhk is Orbea's official seller in Egypt. they have a lot of branches, the main branch that is the official seller is the one at Al Gomhorya st. near Ramsis,  to the right if you are coming from Ramsis  Sq., they call it there "El Mo'assasa" and it's at a second floor, so u might not realize it from the first glimpse. They provide a quite good support for Orbea -compared to other sellers in Egypt who provide none- Another branch is the one directly in front of it, in a corridor off Gomhorya St. named "Goukho 2000" and the third is "Abo El Goukh Today" at Roshdy st. downtown. This one has even a couple of other brands, Tubro, Fomas. They look like they have good quality (light weight, shimano gearbox) and cheaper than Orbea, but less known brands in the Egyptian market, anyways, i bought my Orbea when it was just introduced to the market and nobody ever heard of it. But what i did is that i searched the internet, and found they have their name in the international market. Goukho 2000 has a brand called Xtasy. http://www.xtasybike.com/en/index.shtmlIt's designed in Germany and is around 1900LE. But for sure you will need to consider the support and after sale services provided.
    Besceletta 
    http://bescletta.com is more into Peugeot and Gitane, and they have their maintenance center as well. Their main branch is at Al Khalifa Al Ma'mon St., Heliopolis, near Metro Market, and have another branch at Ahmed Oraby St., Mohandeseen, near Sphinx square


Friday, October 23, 2009

Installing flickr plasma widget on KDE

I was trying to install a flickr plasma widget (plasma-widget-flickr) to my KDE on Ubuntu. It is also downloadable using apt-get
If you downloaded the source file, you'll have to install libkde5-dev and cmake packages.

after i installed the packages, i couldn't see the widget in "add widget" list. I kept trying to install from a local file, but none of the installed file was accepted in the open file dialog.

All you have to do it to run "kbuildsycoca4" from the console, and the widget will appear. When googling "kbuildsycoca4" i found out:

kbuildsycoca4, as part of the KDE command line tools ensures the proper operation of KDE by reading in all the .desktop, .directory, .kimgio and .protocol files to constructs a binary database.

KDE itself accesses this database during operation to provide configuration information a program needs to run.

This tool is part of ksycoca, which stands for KDE System Configuration Cache